:root {
  color-scheme: light;
  --background: #f7f7fc;
  --surface: #ffffff;
  --surface-soft: #eeeef8;
  --text: #171725;
  --muted: #5d5d73;
  --border: #ddddeb;
  --accent: #5752d6;
  --accent-strong: #4844b8;
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.container { width: min(calc(100% - 3rem), 74rem); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
section[id] { scroll-margin-top: 96px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 750; letter-spacing: -.05em; }
.brand img { width: 40px; border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }

.hero { padding-block: 36px 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; min-height: 640px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(48px, 5.2vw, 78px); font-weight: 760; line-height: 1.08; letter-spacing: -.055em; }
.hero h1 span { color: var(--accent); }
.hero-description { margin-top: 26px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.store-link { display: inline-flex; width: 195px; min-height: 60px; border-radius: 8px; flex-shrink: 0; }
.store-link img { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--accent-strong); font-size: 15px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link span { display: inline-block; }
.hero-visual { position: relative; height: 640px; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(100%, 420px);
  aspect-ratio: 1;
  left: 6%;
  top: 140px;
  background: #e9e8f5;
  border-radius: 50%;
}
.device { display: block; overflow: hidden; border: 5px solid #363642; border-radius: 30px; background: white; box-shadow: 0 22px 48px rgb(50 45 100 / .12); }
.device img { width: 100%; }
.hero-device { position: absolute; }
.hero-device-primary { width: 248px; left: 18px; top: 64px; z-index: 1; --tilt: 0deg; }
.hero-device-secondary { width: 220px; right: 14px; top: 8px; --tilt: 8deg; transform: rotate(var(--tilt)); }

.section { padding-block: 100px; }
.screenshots-section { background: var(--surface); }
.section-heading { margin-bottom: 52px; }
.section-heading h2, .connections-copy h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 740; letter-spacing: -.05em; }
.section-heading p { margin-top: 20px; max-width: 42ch; color: var(--muted); font-size: 18px; }
.screen-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.screen-tab { display: flex; flex-direction: column; gap: 7px; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.screen-tab:hover { background: var(--surface-soft); }
.tab-name { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 24px; line-height: 1.3; font-weight: 650; letter-spacing: -.03em; }
.tab-detail { color: var(--muted); font-size: 14px; line-height: 1.65; }
.tab-arrow { color: var(--accent); opacity: 0; }
.screen-tab.is-active { background: var(--surface-soft); border-color: var(--accent); }
.screen-tab.is-active .tab-name { color: var(--accent-strong); }
.screen-tab.is-active .tab-arrow { opacity: 1; }
.screens-source { margin-top: 26px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.screen-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin-top: 40px; }
.screen-panel { min-width: 0; scroll-margin-top: 110px; }
.device-link { display: block; width: fit-content; max-width: 100%; margin-inline: auto; border-radius: 30px; }
.tour-device { width: 256px; max-width: 100%; }
.screen-panel figcaption { margin: 24px auto 0; max-width: 380px; min-height: 90px; text-align: center; }
.screen-panel h3 { font-size: 21px; font-weight: 650; letter-spacing: -.03em; }
.screen-panel figcaption p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.tour-controls { display: none; }
.tour-enhanced { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: center; }
.tour-enhanced .screen-tabs { grid-template-columns: 1fr; }
.tour-enhanced .screen-panels { display: block; margin-top: 0; min-height: 656px; }
.tour-enhanced .tour-controls { display: flex; width: fit-content; align-items: center; gap: 26px; margin: 22px auto 0; }
.round-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); font-size: 22px; line-height: 1; }
.round-button:hover { background: var(--surface-soft); border-color: var(--accent); color: var(--accent-strong); }
.screen-count { min-width: 42px; font-size: 14px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }

.how-to-section { background: var(--background); }
.flow-diagram { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 80px; list-style: none; padding: 16px 0 0; }
.flow-node { position: relative; text-align: center; }
.flow-icon { display: grid; place-items: center; width: 112px; height: 112px; margin-inline: auto; border-radius: 50%; background: #e9e8f6; color: var(--accent-strong); }
.icon { display: inline-block; width: 48px; height: 48px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-mail { --icon: url('../icons/envelope.svg'); }
.icon-edit { --icon: url('../icons/pencil-simple.svg'); }
.icon-check { --icon: url('../icons/check-circle.svg'); }
.icon-device { --icon: url('../icons/device-mobile.svg'); }
.icon-cloud { --icon: url('../icons/cloud.svg'); }
.step-number { display: block; margin-top: 22px; color: var(--accent-strong); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.flow-node h3 { margin-top: 10px; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.flow-node p { margin-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.flow-connector { position: absolute; top: 0; right: -80px; width: 80px; height: 112px; display: grid; place-items: center; }
.flow-connector::before, .flow-connector::after { content: ""; position: absolute; inset: 55px 0 auto; height: 2px; background: var(--border); }
.flow-connector::after { background: var(--accent); transform-origin: left; }
.flow-connector span { position: relative; z-index: 1; padding-inline: 6px; background: var(--background); color: var(--accent); font-size: 26px; }
.flow-bottom { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 48px; }
.flow-note { color: var(--muted); font-size: 14px; }
.flow-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.text-button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent-strong); font-size: 14px; font-weight: 600; white-space: nowrap; }
.text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-button span { margin-left: 6px; }

.connections-section { background: var(--surface); }
.connections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.connection-visual { display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 32px 24px; border-radius: 24px; background: var(--surface-soft); }
.connection-node { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 20px; text-align: center; font-size: 15px; font-weight: 600; }
.connection-node .icon { width: 64px; height: 64px; color: var(--accent-strong); }
.connection-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; color: var(--muted); font-size: 13px; }
.connection-choice span:last-child { color: var(--accent); font-size: 32px; }
.connections-copy h2 { font-size: clamp(34px, 3.5vw, 44px); }
.connections-copy p { margin-top: 22px; color: var(--muted); font-size: 17px; max-width: 40ch; }
.connections-copy .privacy-note { font-size: 13px; line-height: 1.85; }
.connections-copy .text-link { margin-top: 18px; }

.download-section { padding-block: 90px; background: #eeedf9; text-align: center; }
.download-icon { width: 96px; margin: 0 auto 30px; border-radius: 24px; box-shadow: 0 12px 28px rgb(50 45 100 / .1); }
.download-inner h2 { font-size: clamp(38px, 4.5vw, 60px); letter-spacing: -.055em; font-weight: 740; }
.download-inner > p { margin-top: 22px; font-size: 18px; color: var(--muted); }
.download-inner .store-link { justify-content: center; align-items: center; gap: 12px; width: auto; margin-top: 30px; padding: 12px 24px; border-radius: var(--radius); background: var(--accent-strong); color: white; font-size: 16px; font-weight: 600; white-space: nowrap; }
.download-inner .download-meta { margin-top: 24px; font-size: 13px; }
.site-footer { padding-block: 30px 38px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: center; }
.footer-brand { font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; color: var(--muted); font-size: 13px; }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.footer-credit { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) { scroll-behavior: smooth; }
  a, button { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
  .round-button:active { transform: scale(.98); }
  .text-link:hover span { transform: translateX(3px); transition: transform .2s ease; }
  .hero h1, .hero-description { animation: enter .7s ease both; }
  .hero-device-primary { animation: device-enter .85s .1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-device-secondary { animation: device-enter .85s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal.is-visible { animation: enter .65s cubic-bezier(.2, .7, .2, 1) both; }
  .tour-enhanced .screen-panel:not([hidden]) .device { animation: screen-enter .35s ease both; }
  .flow-diagram.is-playing .flow-node .flow-icon { animation: flow-step 1.4s ease both; }
  .flow-diagram.is-playing .flow-node:nth-child(2) .flow-icon { animation-delay: 1.6s; }
  .flow-diagram.is-playing .flow-node:nth-child(3) .flow-icon { animation-delay: 3.2s; }
  .flow-diagram.is-playing .flow-connector::after { animation: flow-line .8s 1.1s ease both; }
  .flow-diagram.is-playing .flow-node:nth-child(2) .flow-connector::after { animation-delay: 2.7s; }
}
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; transition: none !important; }
.motion-paused .reveal, .motion-paused .screen-panel .device { animation: none !important; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes device-enter { from { opacity: 0; transform: translateY(28px) rotate(var(--tilt)); } to { opacity: 1; transform: translateY(0) rotate(var(--tilt)); } }
@keyframes screen-enter { from { opacity: .6; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes flow-step { 0% { opacity: .4; transform: scale(.9); } 65% { opacity: 1; transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
@keyframes flow-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flow-line-vertical { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (min-width: 769px) and (max-height: 780px) {
  .hero-grid, .hero-visual { min-height: 550px; height: 550px; }
  .hero-device-primary { width: 224px; top: 32px; }
  .hero-device-secondary { width: 196px; }
  .hero h1 { font-size: clamp(48px, 5vw, 66px); }
}
.resources-section { border-top: 1px solid var(--border); }
.resource-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.resource-links a { display: grid; align-content: start; gap: 12px; border-top: 2px solid var(--accent); padding-block: 24px; }
.resource-links strong { color: var(--accent-strong); font-size: 22px; line-height: 1.5; }
.resource-links a > span, .resources-note { color: var(--muted); }
.resource-links a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.resources-note { max-width: 70ch; margin-top: 24px; font-size: 14px; }
@media (max-width: 768px) { .resource-links { grid-template-columns: 1fr; gap: 12px; } }

@media (max-width: 1024px) {
  .hero-grid { gap: 28px; }
  .hero-device-primary { left: 0; width: 224px; }
  .hero-device-secondary { width: 196px; right: 12px; }
  .tour-enhanced, .connections-grid { gap: 44px; }
  .flow-actions { gap: 16px; }
  .flow-bottom { align-items: flex-start; }
  .footer-links { gap: 10px 18px; }
}
@media (max-width: 768px) {
  .container { width: min(calc(100% - 40px), 600px); }
  .header-inner { height: 64px; gap: 16px; }
  .brand { font-size: 22px; gap: 9px; }
  .brand img { width: 34px; }
  .site-nav { gap: 20px; font-size: 13px; }
  section[id] { scroll-margin-top: 82px; }
  .hero { padding-block: 28px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .hero h1 { font-size: clamp(44px, 8vw, 58px); }
  .hero-description { margin-top: 20px; font-size: 16px; line-height: 1.75; }
  .hero-actions { gap: 20px; margin-top: 26px; }
  .hero-actions .store-link { width: 175px; min-height: 54px; }
  .hero-actions .text-link { font-size: 14px; }
  .hero-visual { width: min(100%, 350px); height: 360px; margin: 0 auto; }
  .hero-visual::before { width: min(90%, 270px); top: 68px; left: 10%; }
  .hero-device-primary { width: 160px; top: 10px; left: 16px; border-width: 4px; border-radius: 23px; }
  .hero-device-secondary { width: 142px; top: 4px; right: 26px; border-width: 4px; border-radius: 21px; }
  .device { box-shadow: 0 14px 32px rgb(50 45 100 / .12); }
  .section { padding-block: 72px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: 38px; }
  .section-heading p { font-size: 16px; margin-top: 16px; }
  .tour-enhanced { grid-template-columns: 1fr; gap: 36px; }
  .tour-enhanced .screen-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-tab { padding: 16px; gap: 8px; }
  .tab-name { font-size: 20px; gap: 8px; }
  .tab-detail { font-size: 12px; }
  .screens-source { margin-top: 20px; font-size: 12px; }
  .screen-panels { grid-template-columns: 1fr; }
  .tour-enhanced .screen-panels { min-height: 0; }
  .tour-device { width: min(100%, 256px); }
  .screen-panel figcaption { min-height: 82px; }
  .screen-panel h3 { font-size: 20px; }
  .screen-panel figcaption p { font-size: 14px; }
  .tour-enhanced .tour-controls { margin-top: 16px; }
  .flow-diagram { grid-template-columns: 1fr; gap: 64px; width: min(100%, 340px); margin-inline: auto; padding-top: 0; }
  .flow-node { display: grid; grid-template-columns: 72px 16px 1fr; grid-template-areas: "icon number title" "icon . copy"; gap: 8px 12px; align-items: center; text-align: left; }
  .flow-icon { grid-area: icon; width: 72px; height: 72px; }
  .flow-icon .icon { width: 34px; height: 34px; }
  .step-number { grid-area: number; margin: 0; font-size: 13px; }
  .flow-node h3 { grid-area: title; margin: 0; font-size: 20px; }
  .flow-node p { grid-area: copy; margin: 0; font-size: 14px; }
  .flow-connector { top: calc(100% + 10px); left: 0; right: auto; width: 72px; height: 44px; }
  .flow-connector::before, .flow-connector::after { inset: 0 auto 0 35px; width: 2px; height: auto; transform-origin: top; }
  .flow-connector span { padding: 0 4px; transform: rotate(90deg); line-height: 1; }
  .flow-bottom { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 34px; }
  .flow-note { font-size: 13px; }
  .flow-actions { gap: 24px; flex-wrap: wrap; }
  .connections-grid { grid-template-columns: 1fr; gap: 34px; }
  .connection-visual { min-height: 240px; padding: 28px 20px; }
  .connection-node { font-size: 14px; }
  .connection-node .icon { width: 56px; height: 56px; }
  .connection-choice { min-width: 64px; font-size: 12px; }
  .connections-copy h2 { font-size: 36px; }
  .connections-copy p { font-size: 16px; margin-top: 18px; }
  .connections-copy .privacy-note { font-size: 13px; }
  .download-section { padding-block: 72px; }
  .download-icon { width: 80px; border-radius: 20px; margin-bottom: 24px; }
  .download-inner h2 { font-size: 42px; }
  .download-inner > p { font-size: 16px; }
  .download-inner .download-meta { font-size: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { justify-content: flex-start; gap: 8px 18px; font-size: 12px; }
}
@media (max-width: 380px) {
  .site-nav { gap: 14px; font-size: 12px; }
  .brand { font-size: 20px; gap: 7px; }
  .brand img { width: 30px; }
  .hero-actions { gap: 16px; }
  .hero h1 { font-size: 42px; }
  .hero-actions .text-link { font-size: 13px; gap: 6px; }
  .screen-tab { padding: 14px 12px; }
  .tab-name { font-size: 18px; }
  .flow-node { grid-template-columns: 64px 14px 1fr; gap: 8px 10px; }
  .flow-icon { width: 64px; height: 64px; }
  .flow-connector { width: 64px; }
  .flow-connector::before, .flow-connector::after { left: 31px; }
  .flow-node h3 { font-size: 18px; }
}
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .flow-diagram.is-playing .flow-connector::after { animation-name: flow-line-vertical; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
