/* Swipe marketing site. Light "camera roll" canvas, one bold moment (the live
   swipe demo), iOS red/green reserved for the delete/keep meaning. */

:root {
  --ink: #0d1530;
  --ink-soft: #4a5472;
  --canvas: #f6f8fc;
  --mist: #e7eefb;
  --blue: #2f6bff;
  --blue-deep: #1b4fe0;
  --delete: #e5372d;
  --keep: #1f9d50;
  --card: #ffffff;
  --line: rgba(13, 21, 48, .1);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --radius-photo: 22px;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf1fb;
    --ink-soft: #a7b1cc;
    --canvas: #080d1f;
    --mist: #111a36;
    --card: #121b38;
    --line: rgba(237, 241, 251, .12);
    --blue: #5b8cff;
    --delete: #ff5a4f;
    --keep: #35c26c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 10; background: var(--card); padding: 8px 14px;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; overflow: visible; }
html, body { overflow-x: clip; }
/* sizes stay "3.2 MB" in right-to-left pages */
.photo .size, .stamp small, [data-freed] { direction: ltr; unicode-bidi: isolate; }
/* natural headline breaks in Japanese and Korean */
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; overflow-wrap: anywhere; }
:lang(ko) :is(h1, h2, h3) { word-break: keep-all; }
:lang(ja) .hero h1, :lang(ko) .hero h1, :lang(zh-Hans) .hero h1 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.08; letter-spacing: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.site-head { padding-block: 22px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 20px/1 var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.head-badge img { height: 40px; width: auto; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(24px, 6vw, 72px) clamp(56px, 9vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 {
  font: 800 clamp(44px, 6.4vw, 88px)/1 var(--display);
  letter-spacing: -.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 34em; margin: 0 0 32px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta .badge img { height: 56px; width: auto; }
.store-note { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- live demo (the one bold moment) ---------- */
.demo {
  position: relative; justify-self: center; width: min(420px, 100%);
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 48px) 26px;
  border-radius: 40px;
  background:
    radial-gradient(90% 70% at 50% 18%, rgba(255,255,255,.28), transparent 70%),
    linear-gradient(160deg, #4f8bff 0%, #2f6bff 45%, #1638b8 100%);
  box-shadow: 0 50px 90px -40px rgba(31, 79, 224, .65);
  color: #fff;
}
.stack { position: relative; aspect-ratio: 3 / 4; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.photo {
  position: absolute; inset: 0;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: var(--mist) center / cover no-repeat;
  box-shadow: 0 30px 60px -24px rgba(6, 18, 70, .6), 0 0 0 4px rgba(255,255,255,.9);
  transform-origin: 50% 100%;
  will-change: transform;
  cursor: grab;
}
.photo:active { cursor: grabbing; }
.photo.next { transform: rotate(-5deg) scale(.95) translate(-10px, 6px); filter: brightness(.9); }
.photo.third { transform: rotate(6deg) scale(.92) translate(14px, 10px); filter: brightness(.82); }
.photo:not(.top):not(.next):not(.third) { opacity: 0; }
.photo .size {
  position: absolute; left: 16px; bottom: 16px;
  font: 600 14px/1 var(--body); color: #fff;
  background: rgba(0, 0, 0, .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px; border-radius: 999px;
}
.stamp {
  position: absolute; top: 26px; padding: 8px 14px 6px;
  font: 800 30px/1 var(--display); letter-spacing: .02em;
  border: 4px solid currentColor; border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  opacity: 0; pointer-events: none;
}
.stamp small { display: block; font: 700 15px/1.2 var(--body); letter-spacing: 0; text-align: center; }
.stamp.del { color: var(--delete); inset-inline-end: 22px; transform: rotate(10deg); }
.stamp.keep { color: var(--keep); inset-inline-start: 22px; transform: rotate(-10deg); }

.demo-controls { display: flex; justify-content: center; gap: 22px; margin-top: 30px; }
.round {
  width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  transition: transform .15s ease;
}
.round:active { transform: scale(.92); }
.round svg { width: 28px; height: 28px; }
.round.del { background: var(--delete); box-shadow: 0 0 0 4px rgba(255,255,255,.85), 0 14px 30px -10px rgba(120, 10, 0, .6); }
.round.keep { background: var(--keep); box-shadow: 0 0 0 4px rgba(255,255,255,.85), 0 14px 30px -10px rgba(0, 80, 30, .6); }

.meter {
  margin-top: 24px; padding: 14px 18px 16px; border-radius: 20px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.meter-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: rgba(255,255,255,.85); }
.meter-row strong { font: 800 26px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); margin-top: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; transition: width .4s ease; }
.demo-hint { text-align: center; color: rgba(255,255,255,.85); font-size: 15px; margin: 14px 0 0; min-height: 1.6em; }
.demo-again { background: none; border: 0; color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-title {
  font: 800 clamp(32px, 4.2vw, 54px)/1.02 var(--display);
  letter-spacing: -.03em;
  margin: 0 0 clamp(32px, 4vw, 56px);
  max-width: 16em;
  text-wrap: balance;
}

/* phone frame around real app screens */
.phone {
  position: relative;
  border-radius: 44px;
  padding: 10px;
  background: #0a0f1f;
  box-shadow: 0 0 0 1.5px #8d96ab inset, 0 40px 70px -40px rgba(13, 21, 48, .6);
}
.phone img { border-radius: 34px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; background: #0b1124; }

/* steps: a real sequence, so numbering carries meaning */
.steps { background: var(--mist); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps .phone { width: min(260px, 100%); margin-bottom: 28px; }
.steps h3 { font: 700 26px/1.1 var(--display); margin: 0 0 10px; display: flex; gap: 12px; align-items: baseline; }
.steps h3::before { content: counter(step); font: 700 15px/1 var(--body); color: var(--blue); border: 1.5px solid currentColor; border-radius: 50%; width: 28px; height: 28px; display: inline-grid; place-items: center; flex: none; transform: translateY(-3px); }
.steps p { margin: 0; color: var(--ink-soft); max-width: 26em; }

/* features: two large alternating rows, then a quiet pair */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(56px, 8vw, 104px); }
.feature-row.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(300px, 80%); }
.feature-row h3, .pair h3 { font: 800 clamp(28px, 3vw, 40px)/1.05 var(--display); letter-spacing: -.02em; margin: 0 0 14px; }
.feature-row p, .pair p { color: var(--ink-soft); font-size: 19px; margin: 0; max-width: 28em; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 48px); }

/* privacy band */
.privacy { background: var(--ink); color: var(--canvas); }
.privacy .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.privacy svg { width: 72px; height: 72px; color: var(--blue); }
.privacy h2 { font: 800 clamp(30px, 4vw, 52px)/1.02 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.privacy p { margin: 0; font-size: 19px; opacity: .8; max-width: 36em; }
@media (prefers-color-scheme: dark) { .privacy { background: var(--mist); color: var(--ink); } }

/* faq */
.faq dl, .faq .qa { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font: 700 21px/1.3 var(--display);
}
[dir="rtl"] .faq summary { padding: 22px 0 22px 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 18px; font: 400 30px/1 var(--body); color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 40em; }

/* final call to action */
.final { text-align: center; }
.final h2 { font: 800 clamp(36px, 5vw, 68px)/1 var(--display); letter-spacing: -.035em; margin: 0 auto 18px; max-width: 13em; text-wrap: balance; }
.final p { color: var(--ink-soft); font-size: 19px; margin: 0 0 30px; }
.final .badge { display: inline-block; }
.final .badge img { height: 60px; width: auto; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 32px 48px; font-size: 15px; color: var(--ink-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--ink-soft); }
.lang select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }

/* ---------- responsive ---------- */
.hero .wrap > *, .feature-row > *, .pair > * { min-width: 0; }
@media (max-width: 900px) {
  .hero .wrap, .feature-row, .privacy .wrap { grid-template-columns: minmax(0, 1fr); }
  .feature-row.flip .feature-media { order: 0; }
  .steps ol { grid-template-columns: 1fr; gap: 56px; }
  .steps .phone { width: min(240px, 70%); }
  .pair { grid-template-columns: 1fr; }
  .head-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar span, .faq summary::after, .round { transition: none; }
}
