:root {
  color-scheme: light;
  --white: #fff;
  --ink: #151724;
  --muted: #4e5164;
  --line: #dcddeb;
  --indigo: #2825a5;
  --indigo-deep: #211e87;
  --lavender: #e3e2ff;
  --surface: #efeffa;
  --night: #171a2b;
  --radius: 16px;
  --gutter: clamp(20px, 4.3vw, 64px);
  --section: clamp(52px, 7.2vw, 104px);
  font-family: Inter, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 20px; }

:where(a, select, summary, button):focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 4px;
}
:where(.hero-band, .widget-extras, .closing-band, footer) :focus-visible {
  outline-color: #c9caff;
}

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), 1280px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 12px 16px;
  background: var(--white);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -.05em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-header nav, .header-actions { display: flex; align-items: center; }
.site-header nav { gap: clamp(14px, 3.1vw, 44px); }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .92rem;
  font-weight: 690;
}
.site-header nav a:hover, .footer a:hover, .explore-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.header-actions { justify-self: end; gap: 10px; }
#language, .download-link {
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 680;
  white-space: nowrap;
}
#language { border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.download-link { display: inline-flex; align-items: center; background: var(--indigo); color: var(--white); }
.download-link:hover { background: var(--indigo-deep); }

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -.047em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 { font-size: clamp(2.55rem, 4.45vw, 4.25rem); font-weight: 850; }
h2 { font-size: clamp(1.95rem, 3.7vw, 3.6rem); font-weight: 810; }
h3 { font-size: clamp(1.3rem, 2.35vw, 2.15rem); font-weight: 770; }
p, dd {
  line-height: 1.62;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
:lang(ja) :where(h1, h2, h3, p, dd),
:lang(zh) :where(h1, h2, h3, p, dd) { word-break: normal; }
:lang(hi) :where(h1, h2, h3) { letter-spacing: 0; line-height: 1.25; }

.hero-band, .closing-band { background: var(--indigo); color: var(--white); }
.hero-band {
  background-image: radial-gradient(ellipse at 50% 75%, #4744cc 0%, transparent 60%);
}
.hero-grid {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding-block: clamp(30px, 4.4vw, 65px);
}
.hero-copy { min-width: 0; text-align: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 5.1vw, 4.65rem); }
.hero-copy h1 span { color: var(--lavender); }
.hero-copy p {
  max-width: 45ch;
  margin: 14px auto 0;
  color: #f0efff;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  text-wrap: pretty;
}
.hero-actions .store-badges { justify-content: center; }
.device-showcase { width: min(100%, 900px); }
.showcase-title {
  margin-block: 3px 14px;
  color: #e6e5ff;
  font-size: .92rem;
  font-weight: 650;
  text-align: center;
}
.showcase-devices {
  display: grid;
  grid-template-columns: minmax(0, .59fr) minmax(0, .96fr) minmax(0, 2.12fr);
  align-items: end;
  gap: clamp(7px, 2.1vw, 32px);
}
.mockup {
  display: grid;
  min-width: 0;
  justify-items: stretch;
  gap: clamp(4px, 1vw, 12px);
  border-radius: 10px;
  text-align: center;
}
.mockup .device-frame {
  filter: drop-shadow(0 15px 15px #12105a80);
  transition: transform .2s ease, filter .2s ease;
}
.mockup:is(:hover, :focus-visible, [aria-current="true"]) .device-frame {
  filter: drop-shadow(0 16px 15px #12105a90) drop-shadow(0 0 6px #e3e2ff72);
}
.mockup:is(:hover, :focus-visible) .device-frame { transform: translateY(-5px); }
.mockup:active .device-frame { transform: translateY(-1px) scale(.98); }
.mockup-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .34em;
  min-height: 44px;
  font-size: clamp(.75rem, 1.5vw, 1rem);
  font-weight: 700;
}
.mockup-arrow { color: var(--lavender); }

.store-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px 13px;
  border: 1px solid #ecebff;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
}
.store-badge:hover { background: #edecff; }
.store-badge svg { width: 19px; height: 19px; flex: none; }
.store-badge-text { display: grid; }
.store-badge-sub { font-size: .65rem; line-height: 1.25; }
.store-badge-name { font-size: .94rem; line-height: 1.2; font-weight: 760; white-space: nowrap; }
.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: .94rem;
  font-weight: 700;
  text-underline-offset: 5px;
}
.app-shot {
  width: 100%;
  border-radius: var(--radius);
  background: #f0f1f3;
  box-shadow: 0 6px 22px #171a2b25;
}
img.is-screen-loading { visibility: hidden; }

.journey { padding-block: var(--section); }
.journey-heading p {
  margin-top: 10px;
  color: var(--muted);
  text-wrap: pretty;
}
.tour-toolbar {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 3vw, 32px);
  margin-top: clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.tour-position {
  display: flex;
  gap: .75em;
  align-items: baseline;
  font-size: .88rem;
  font-weight: 740;
}
.tour-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tour-progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  accent-color: var(--indigo);
}
.tour-progress::-webkit-progress-bar { background: var(--surface); }
.tour-progress::-webkit-progress-value { background: var(--indigo); }
.tour-progress::-moz-progress-bar { background: var(--indigo); }
.tour-change-device {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--indigo);
  font-size: .86rem;
  font-weight: 700;
  text-underline-offset: 3px;
  text-decoration: underline;
}
.chapter {
  display: grid;
  grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr);
  gap: clamp(16px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(16px, 3.3vw, 38px);
  border-bottom: 1px solid var(--line);
}
.chapter-copy { min-width: 0; }
.chapter-copy h3 { font-size: clamp(1.45rem, 3vw, 2.55rem); }
.chapter-copy p { margin-top: 9px; color: var(--muted); }
.chapter-copy details { margin-top: 12px; border-top: 1px solid var(--line); }
.tour-primary {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  min-height: 44px;
  margin-top: 18px;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--indigo);
  color: var(--white);
  font-size: .93rem;
  font-weight: 700;
}
.tour-primary::after { content: "→"; font-size: 1.17em; line-height: .9; }
.tour-primary:hover { background: var(--indigo-deep); }

.tour-ready .tour-scroll {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  align-items: start;
  gap: clamp(20px, 4vw, 60px);
  margin-top: clamp(18px, 3vw, 32px);
}
.tour-ready .journey-chapters { grid-area: 1 / 1; min-width: 0; }
.tour-ready .chapter {
  display: flex;
  min-block-size: clamp(380px, 72svh, 630px);
  align-items: center;
}
.tour-ready .chapter-static-image { display: none; }
.tour-ready .chapter[data-current] h3 { color: var(--indigo); }
.tour-stage {
  --preview-height: min(56svh, 480px);
  position: sticky;
  top: clamp(12px, 5svh, 48px);
  grid-area: 1 / 2;
  z-index: 2;
  min-width: 0;
  padding-inline: clamp(8px, 2vw, 22px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 36px #23208d17;
}
.tour-stage .tour-toolbar { margin: 0 0 8px; }
.interactive-device {
  display: grid;
  min-height: calc(var(--preview-height) + 16px);
  min-width: 0;
  place-items: center;
}
.interactive-device .device-frame {
  width: min(100%, calc(var(--preview-height) * var(--hardware-ratio)));
  filter: drop-shadow(0 8px 14px #171a2b26);
}
.interactive-screen { container-type: size; }
.interactive-screen .tour-shot {
  position: absolute;
  inset: 0;
  border-radius: 0;
  object-fit: fill;
  opacity: 0;
  transition: opacity .24s ease;
  user-select: none;
  pointer-events: none;
}
.interactive-screen .tour-shot.is-current { opacity: 1; }
.tour-zoom {
  display: block;
  min-height: 44px;
  margin: 0 auto;
  padding-inline: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--indigo);
  font-size: .8rem;
  font-weight: 680;
  cursor: zoom-in;
  text-underline-offset: 3px;
  text-decoration: underline;
}
.tour-hotspot {
  position: absolute;
  z-index: 2;
  left: clamp(23px, var(--spot-x), calc(100% - 23px));
  top: clamp(23px, var(--spot-y), calc(100% - 23px));
  min-width: 44px;
  min-height: 44px;
  max-width: calc(100% - 10px);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--indigo-deep);
  cursor: pointer;
  white-space: nowrap;
  font-size: clamp(.65rem, 4.9cqw, .83rem);
  font-weight: 760;
  user-select: none;
}
.tour-hotspot span, .tour-slot {
  padding: 4px 7px;
  border: 1px solid #5954d5;
  border-radius: 8px;
  background: #f3efff;
  box-shadow: 0 0 0 3px #7166ff26, 0 3px 9px #362b841c;
}
.tour-hotspot:focus-visible { outline-offset: -2px; }
.tour-slot { min-height: 36px; min-width: 52px; border-style: dashed; }
.tour-hotspot:is(:hover, :focus-visible) span, .tour-slot:is(:hover, :focus-visible, .is-targeted) {
  background: var(--lavender);
}
[data-step="1"] .tour-task { touch-action: none; cursor: grab; }
[data-step="1"] .tour-task.is-grabbed { z-index: 3; cursor: grabbing; }
.tour-task.is-grabbed span { background: var(--indigo); color: var(--white); }
.tour-travel {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--indigo);
  color: var(--white);
  white-space: nowrap;
  font-size: clamp(.65rem, 4.9cqw, .83rem);
  font-weight: 760;
  pointer-events: none;
}
.tour-feedback:not(:empty) {
  position: absolute;
  inset: auto 8px 44px;
  z-index: 4;
  width: fit-content;
  max-width: calc(100% - 16px);
  margin-inline: auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--night);
  color: var(--white);
  font-size: .82rem;
  pointer-events: none;
}

.tour-focus-link {
  left: clamp(50%, var(--spot-x), calc(100% - 45px));
  font-size: clamp(.63rem, 4.6cqw, .8rem);
}
.tour-close {
  position: absolute;
  z-index: 2;
  top: var(--close-top);
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.tour-close:focus-visible { outline-offset: -4px; }
.tour-recording {
  position: absolute;
  bottom: var(--recording-bottom);
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: max(76px, 23%);
  padding: 3px 5px 0;
  border-radius: 10px;
  transform: translateX(-50%);
  background: #d6c5ed;
  color: var(--ink);
}
.tour-recording-time {
  font-size: clamp(.78rem, 5.2cqh, 1.2rem);
  line-height: 1.08;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.tour-recording-controls { display: flex; gap: 3px; }
.tour-recording-controls button {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(30px, 9.4cqh, 44px);
  height: clamp(30px, 9.4cqh, 44px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.tour-recording-controls button::before { content: ""; position: absolute; inset: -5px -1px; }
.tour-recording-controls [data-action="timer"] { background: #295ed5; color: #fff; }
.tour-recording-controls button span { font-size: clamp(.73rem, 3.6cqh, .94rem); line-height: 1; }
.tour-recording-controls button:focus-visible { outline-offset: 1px; }

.widget-showcase { padding-block: var(--section) 0; border-top: 1px solid var(--line); }
.widget-intro { margin-bottom: 24px; }
.widget-intro p {
  max-width: 65ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}
.widget-home {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px clamp(12px, 3vw, 36px);
  padding: clamp(18px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--surface);
}
.widget-home > h3 { grid-area: 1 / 1; }
.widget-home > p, .widget-panel { grid-column: 1 / -1; }
.widget-home > p {
  color: var(--muted);
  font-size: .94rem;
}
.widget-picker {
  grid-area: 1 / 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.widget-picker button {
  min-height: 44px;
  padding: 7px 15px;
  border: 1px solid #cbcde3;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: .91rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}
.widget-picker button:hover { border-color: var(--indigo); }
.widget-picker [aria-pressed="true"] { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.widget-panel {
  padding-block: 14px 6px;
  border-top: 1px solid #d5d6ea;
}
.widget-panel > p { color: var(--muted); font-size: .96rem; }
.widget-examples, .live-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  margin-top: 18px;
}
.widget-examples figure { flex: 0 1 350px; min-width: 0; }
.widget-examples figure:has([width="340"]) { flex-basis: 170px; }
.widget-examples img, .live-examples img { width: 100%; }
.widget-examples img { border-radius: 13px; }
.widget-showcase figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 690;
}
.widget-home > .widget-options { padding-top: 12px; border-top: 1px solid #d5d6ea; }

.widget-extras {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: start;
  padding: clamp(20px, 3.6vw, 50px);
  margin-top: clamp(16px, 2.6vw, 30px);
  border-radius: var(--radius);
  background: var(--night);
  color: var(--white);
}
.widget-extras h3 { color: var(--white); }
.live-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.widget-extras figcaption { color: #e3e4f4; }
.platform-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.platform-list div { padding-top: 13px; border-top: 1px solid #ffffff3b; }
.platform-list dt { font-size: .92rem; font-weight: 750; }
.platform-list dd, .widget-shortcut p { margin-top: 5px; color: #dfdff0; font-size: .9rem; }
.widget-shortcut { padding-inline-start: clamp(18px, 3vw, 42px); border-inline-start: 1px solid #ffffff3b; }
.widget-shortcut p { margin-top: 10px; }
.widget-shortcut img {
  width: min(100%, 195px);
  margin-top: 16px;
  border-radius: 10px;
}

.features { padding-block: var(--section); }
.feature-index {
  display: flex;
  flex-wrap: wrap;
  gap: 2px clamp(13px, 2.25vw, 28px);
  margin-top: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.feature-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .92rem;
  font-weight: 700;
}
.feature-index a:hover { color: var(--indigo); text-decoration: underline; text-underline-offset: 5px; }
.feature-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "description example";
  align-items: center;
  gap: clamp(20px, 5.2vw, 72px);
  padding-block: clamp(20px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}
.features .feature-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas: "example description";
}
.feature-copy { grid-area: description; min-width: 0; }
.feature-copy > p { margin-top: 12px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.feature-copy details { margin-top: 10px; border-top: 1px solid var(--line); }
.feature-copy details p { font-size: .94rem; }
.feature-pro {
  display: inline-block;
  margin-inline-start: .25em;
  padding: 4px 7px;
  border-radius: 5px;
  background: #dedcf7;
  color: var(--indigo-deep);
  font-size: .55em;
  letter-spacing: 0;
  vertical-align: .15em;
}
.feature-media {
  grid-area: example;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(10px, 2vw, 22px);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-media img, .feature-media picture {
  width: auto;
  max-width: 100%;
}
.feature-media img {
  max-height: clamp(320px, 32vw, 432px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 5px 18px #202e461e;
}

.pro-section { padding-block: var(--section); background: var(--surface); }
.pro-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 24px;
}
.pro-summary > div {
  padding: clamp(16px, 2.5vw, 30px);
  border-top: 3px solid #9499b9;
  background: var(--white);
}
.pro-summary > div + div { border-top-color: var(--indigo); }
.pro-summary h3 { font-size: clamp(1.18rem, 1.65vw, 1.65rem); }
.pro-summary p { margin-top: 8px; color: var(--muted); }
.pro-content .feature-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.pro-content .feature-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 2.4vw, 28px);
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
}
.pro-content .feature-copy, .pro-content .feature-media { flex: 1 1 280px; }
.pro-content .feature-media img { max-height: clamp(280px, 29vw, 380px); }

.faq {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 26px clamp(24px, 4vw, 66px);
  padding-block: var(--section);
}
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 48px;
  padding-block: 10px;
  cursor: pointer;
  font-weight: 690;
  line-height: 1.45;
}
.faq summary { min-height: 62px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.25rem; font-weight: 500; }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 14px; color: var(--muted); }

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: clamp(30px, 5.5vw, 70px);
}
.closing h2 { font-size: clamp(1.6rem, 3.35vw, 3rem); }
footer { background: var(--night); }
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 30px;
  padding-block: 23px;
  font-size: .85rem;
  color: #e1e1f4;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 17px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; }

@media (max-width: 1000px) {
  .widget-examples figure { flex-basis: min(38%, 350px); }
  .widget-examples figure:has([width="340"]) { flex-basis: min(19%, 170px); }
}

@media (max-width: 760px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr); min-height: auto; gap: 0 8px; padding-top: 7px; }
  .site-header nav { grid-area: 2 / 1 / auto / -1; gap: clamp(14px, 5vw, 34px); }
  .site-header nav a { font-size: .85rem; }
  .header-actions { grid-area: 1 / 2; gap: 5px; }
  #language, .download-link { padding-inline: 7px; font-size: .76rem; }
  #language { max-width: 32vw; }
  .brand { font-size: 22px; }
  .brand img { width: 28px; height: 28px; }

  .hero-grid { gap: 15px; padding-block: 27px 22px; }
  .hero-copy h1 { font-size: clamp(2.05rem, 8.35vw, 3.45rem); }
  .hero-copy p { margin-top: 10px; }
  .showcase-devices { grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.65fr); }
  .chapter { grid-template-columns: minmax(0, 1fr); }
  .tour-change-device { font-size: .78rem; }
  .tour-position { gap: .4em; font-size: .78rem; }

  .widget-home { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .widget-home > h3, .widget-picker { grid-area: auto; }
  .widget-picker button { padding-inline: 9px; font-size: .83rem; }
  .widget-examples { gap: 16px 11px; align-items: start; }
  .widget-examples figure { flex-basis: min(100%, 350px); }
  .widget-examples figure:has([width="340"]) { flex-basis: min(67%, 170px); }
  .widget-extras, .platform-list, .pro-summary, .pro-content .feature-gallery, .faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .widget-shortcut { padding: 16px 0 0; border: 0; border-top: 1px solid #ffffff3b; }
  .widget-shortcut img { margin-inline: auto; }
  .live-examples { grid-template-columns: minmax(0, 1fr); }
  .live-examples figure { width: min(100%, 350px); margin-inline: auto; }

  .features .feature-card:nth-child(n) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "description" "example";
  }
  .feature-media img { max-height: 396px; }
  .closing { align-items: start; }
}

@media (max-width: 370px) {
  :root { --gutter: 16px; }
  .header-actions { gap: 4px; }
  #language, .download-link { padding-inline: 6px; }
  .store-badge { gap: 6px; padding-inline: 8px; }
}

/* The inset maps each hardware render's display opening to the live capture.
   The outer ratio preserves the original capture proportions inside the opening. */
[data-tour-device="phone"] {
  --hardware-image: url("screens/device-frames/mobile.webp");
  --hardware-ratio: .5;
  --display-inset: 2.22% 6.36% 2.42% 5.91%;
  --display-radius: 14% / 5.65%;
}
[data-tour-device="tablet"] {
  --hardware-image: url("screens/device-frames/tablet.webp");
  --hardware-ratio: .71;
  --display-inset: 4.59% 5.95% 4.24% 5.48%;
  --display-radius: 3% / 2.1%;
}
[data-tour-device="mac"] {
  --hardware-image: url("screens/device-frames/pc.webp");
  --hardware-ratio: 1.455;
  --display-inset: 5.18% 5.73% 11.32% 4.65%;
  --display-radius: .72% / 1.25%;
}
.device-frame {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: var(--hardware-ratio);
}
.device-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hardware-image) center / 100% 100% no-repeat;
  filter: grayscale(1);
  pointer-events: none;
}
.device-display {
  position: absolute;
  inset: var(--display-inset);
  border-radius: var(--display-radius);
  overflow: hidden;
  background: #f2f2f6;
}
[data-tour-device="phone"] .device-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 4.4%;
  left: 50%;
  width: 28%;
  height: 3.35%;
  transform: translateX(-50%);
  border-radius: 100vw;
  background: radial-gradient(circle at 84% 50%, #353945 0 9%, #0b0c0e 14%);
  pointer-events: none;
}
.device-display .app-shot {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: fill;
  border-radius: 0;
  box-shadow: none;
}
.screen-dialog {
  width: min(94vw, 1200px);
  max-width: none;
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.screen-dialog::backdrop { background: #111324c9; }
html:has(.screen-dialog[open]) { overflow: hidden; }
.screen-dialog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 10px 14px;
}
.screen-dialog-bar h2 { font-size: 1.1rem; overflow-wrap: anywhere; }
.screen-dialog-actions { display: flex; gap: 7px; }
.screen-dialog-actions button {
  min-height: 44px;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--indigo-deep);
  cursor: pointer;
}
.screen-dialog-actions button[aria-pressed="true"] { background: var(--indigo); color: var(--white); }
.screen-dialog-viewport {
  height: min(74dvh, 800px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface);
}
.screen-dialog-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.screen-dialog.is-full-size img { width: auto; height: auto; max-width: none; }

@media (max-width: 760px) {
  .tour-ready .tour-scroll { display: block; }
  .tour-stage {
    --preview-height: min(43svh, 370px);
    position: sticky;
    top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .tour-ready .chapter {
    min-block-size: clamp(238px, 45svh, 425px);
    align-items: start;
    padding-block: 22px;
  }
  .screen-dialog-viewport { height: min(69dvh, 700px); }
}

@media (prefers-reduced-motion: reduce) {
  .mockup .device-frame, .interactive-screen .tour-shot { transition: none; }
}
