/* Pair Pocket landing site. Tokens first, everything below references them. */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --surface: #eaf2ff;
  --ink: #1b2640;
  --muted: #566480;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-ink: #ffffff;
  --field: #dbe9ff;
  --field-ink: #1b2640;
  --inv-bg: #f3f8ff;
  --inv-ink: #1b2640;
  --inv-muted: #566480;
  --inv-surface: #ffffff;
  --focus: #1b2640;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-title: clamp(1.625rem, 1.3rem + 1.2vw, 2.375rem);
  --step-head: clamp(2.375rem, 1.4rem + 3.4vw, 4.5rem);

  --r: 22px;
  --gap: 12px;
  --pad: clamp(20px, 3.4vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --paper: #111a2c;
    --surface: #172236;
    --ink: #e8eefb;
    --muted: #a5b3cb;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-ink: #0b1220;
    --field: #1e3a8a;
    --field-ink: #ffffff;
    --inv-bg: #060b16;
    --inv-ink: #e8eefb;
    --inv-muted: #a5b3cb;
    --inv-surface: #172236;
    --focus: #e8eefb;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-size: var(--step-head); }
.read h2, .read h3 { font-size: var(--step-title); }
.hero h1 { color: var(--ink); }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r); z-index: 20; }
.skip:focus { top: 12px; }

/* Buttons: one shape, one fill. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; border: 0;
  font: inherit; font-size: var(--step-body); font-weight: 700; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: var(--step-small); }
.btn-quiet { background: var(--surface); color: var(--accent-hover); }
.btn-quiet:hover { background: var(--field); }
.btn-block { width: 100%; }
.ico { flex: none; }

/* The split: reading column left, product stage right. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--gap); align-items: start; }
.read { grid-column: 1; grid-row: 1; background: var(--paper); min-width: 0; }
.stage {
  grid-column: 2; grid-row: 1;
  position: sticky; top: var(--gap); height: calc(100svh - 2 * var(--gap));
  background: var(--accent); border-radius: 40px; overflow: hidden;
  container-type: size; --sp: clamp(16px, 2vw, 32px);
}
/* Size of a phone clip (780x1688): as tall as the stage allows, minus the
   caption, but narrow enough to leave room beside it for the coins and
   bubbles. The decoration is placed from these numbers too. */
.stage > * {
  --ph: min(100cqh - 2 * var(--sp) - 44px, (100cqw - 2 * var(--sp) - 120px) * 1688 / 780);
  --pw: calc(var(--ph) * 780 / 1688);
}
.stage figure {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: var(--sp);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.stage figure.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.stage figure { z-index: 3; }
.stage figcaption { font-size: var(--step-small); color: var(--accent-ink); font-weight: 600; }
.stage .ph { background: var(--paper); }
/* As large as the stage allows: tall (phone) clips fill the height, wide ones the width. */
.stage .ph { width: 100%; max-height: calc(100% - 40px); border-radius: 20px; }
.stage .shot { background: var(--paper); width: auto; height: auto; max-width: 100%; max-height: calc(100% - 40px); border-radius: 20px; object-fit: contain; }
.stage .shot.tall { width: var(--pw); height: var(--ph); max-width: none; max-height: none; }
/* Clips are pictures, not players: nothing to click, no controls or menus. */
video.shot { pointer-events: none; user-select: none; -webkit-user-select: none; }
video.shot::-webkit-media-controls { display: none !important; }
.inline-clip { display: none; }

.bar a, .bar span { white-space: nowrap; }
.bar {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 16px;
  padding: 12px var(--pad);
  background: var(--paper); border-radius: 0;
  font-size: var(--step-small);
}
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-right: auto; font-size: var(--step-body); }
.links { display: none; gap: 14px; }
.links a { text-decoration: none; padding: 8px 0; }
.links a:hover { text-decoration: underline; }
.langs { display: flex; gap: 4px; }
.langs a { text-decoration: none; padding: 10px 10px; border-radius: var(--r); min-width: 44px; text-align: center; }
.langs a { border-radius: 999px; }
.langs a[aria-current] { background: var(--surface); font-weight: 700; color: var(--accent-hover); }
.langs a:not([aria-current]):hover { text-decoration: underline; }
details.langs { position: relative; display: block; }
details.langs summary { cursor: pointer; padding: 10px 12px; border-radius: var(--r); background: var(--surface); list-style: none; }
details.langs div { position: absolute; right: 0; top: 100%; background: var(--paper); border-radius: var(--r); padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); /* taste-skill-ignore: floating menu */ display: grid; min-width: 140px; }

/* Stripe motif, drawn with a mask so it follows the ink colour. */
.stripe {
  height: 40px; opacity: 0.9; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='56'%3E%3Ccircle cx='22' cy='28' r='9'/%3E%3C/svg%3E") repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='56'%3E%3Ccircle cx='22' cy='28' r='9'/%3E%3C/svg%3E") repeat-x;
}
.stripe-thin { height: 24px; }

.hero { padding-bottom: 72px; }
.hero-body { padding: clamp(40px, 9svh, 96px) var(--pad) 0; }
.hero h1 { font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.6rem); }
.sub { margin-top: 24px; font-size: var(--step-lead); line-height: 1.45; max-width: 30ch; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.sec, .feat { padding-inline: var(--pad); }
.sec { padding-block: 72px 24px; }
.sec p { max-width: 46ch; margin-top: 20px; }
.sec-features { padding: 72px 0 96px; }
.sec-features > h2 { padding-inline: var(--pad); }
.sec-features .h-small { font-size: var(--step-lead) !important; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.feat { margin-top: clamp(72px, 11svh, 112px); }
.feat p { max-width: 46ch; margin-top: 18px; }
.feat p + p { margin-top: 14px; }
.inline-clip { margin-top: 28px; }
.inline-clip .ph { width: 100%; border-radius: var(--r); }
.inline-clip .shot {
  display: block; margin-inline: auto; width: auto; height: auto; max-width: 100%; max-height: 82svh; border-radius: var(--r);
  /* An edge, so the clip does not blend into the page around it. */
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1), 0 8px 24px rgba(15, 23, 42, 0.08);
}
.hero .inline-clip { padding-inline: var(--pad); }

/* Recording placeholders */
.ph {
  aspect-ratio: var(--ar); display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: var(--bg); color: var(--ink); padding: clamp(16px, 3vw, 32px); text-align: left;
}
.ph p { margin: 0 !important; max-width: none !important; }
.ph-tag { font-size: var(--step-small); font-weight: 600; color: var(--accent-hover); }
.ph-title { font-size: var(--step-body); font-weight: 700; line-height: 1.2; }
.ph-shot { font-size: var(--step-small); color: var(--muted); max-width: 44ch !important; }
.ph-file { font-size: var(--step-small); color: var(--muted); }

/* Full-width sections */
.wrap { padding-inline: var(--pad); max-width: 1440px; margin-inline: auto; }
.try, .free, .built { padding-block: clamp(64px, 10svh, 112px); }
.try { background: var(--surface); border-radius: 40px; margin: 0 var(--gap); }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.try-copy p { margin-top: 24px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.45; }
.fallback { display: block; }
.js .fallback { display: none; }
.calc { display: none; }
.js .calc { display: grid; }
.calc {
  gap: 22px; background: var(--paper); border-radius: 32px; padding: clamp(24px, 3vw, 40px); max-width: 560px; width: 100%; justify-self: end;
  font-size: var(--step-body);
}
.calc-title { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; }
.calc-sum { display: grid; gap: 10px; }
.calc-sum > div { display: flex; justify-content: space-between; gap: 16px; }
.calc-sum dt { color: var(--muted); font-size: var(--step-small); align-self: center; }
.calc-sum dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.calc-mine { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--r); padding: 20px 24px; }
.calc-mine span { font-weight: 700; line-height: 1; }
.calc-mine strong { font-size: var(--step-head); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; color: var(--accent); transition: transform 0.25s var(--ease); }
.friends { display: grid; gap: 12px; }
.friend {
  min-height: 52px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--accent); background: var(--paper); color: var(--accent-hover);
  font: inherit; font-weight: 700; cursor: pointer; text-align: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.friend:hover { transform: translateY(-2px); }
.friend:active { transform: scale(0.98); }
.friend[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.calc-note { font-size: var(--step-small); color: var(--muted); }

.free h2 { max-width: 14ch; }
.free .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.figs { display: grid; gap: 28px; }
.figs > div { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: baseline; }
.figs dt { color: var(--accent); text-align: right; white-space: nowrap; font-size: var(--step-title); font-weight: 500; font-variant-numeric: tabular-nums; }
.figs dd { max-width: none; }

.built { background: var(--inv-bg); color: var(--inv-ink); border-radius: 40px; margin: var(--gap); }
.built-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.built-copy > p { margin-top: 24px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.45; }
.feedback { background: var(--inv-surface); border-radius: 32px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; justify-items: start; }
.feedback h3 { font-size: var(--step-title); }
.feedback h3::before { content: none; }
.feedback p { color: var(--muted); max-width: 36ch; }
.btn-coffee { margin-top: 8px; background: #fef3c7; color: #92400e; }
.btn-coffee:hover { background: #fde68a; }
.coffee-link .ico { color: #b45309; }
.coffee-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.coffee-link:hover span { text-decoration: underline; }

.cta { background: var(--field); color: var(--field-ink); border-radius: 40px; margin: var(--gap); padding: clamp(96px, 16svh, 180px) var(--pad); display: flex; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; max-width: 1440px; margin-inline: auto; }
.cta h2 { font-size: var(--step-head); max-width: 10ch; line-height: 1.05; }
.cta-copy p { margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; max-width: 28ch; }
.dialog {
  justify-self: end; width: 100%; max-width: 440px; background: var(--paper); color: var(--ink);
  border-radius: var(--r); padding: 36px; display: grid; justify-items: center; text-align: center; gap: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); /* taste-skill-ignore: dialog */
}
.dialog img { margin-bottom: 8px; }
.dialog { border-radius: 32px; }
.dialog-title { font-size: var(--step-title); font-weight: 500; letter-spacing: -0.02em; }
.dialog-tag { color: var(--muted); }
.dialog-desc { margin: 12px 0 24px; font-size: var(--step-small); color: var(--muted); max-width: 32ch; }

.foot { padding-bottom: 32px; }
.star { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(72px, 12svh, 140px) var(--pad); max-width: 1440px; margin-inline: auto; }
.star h2 { font-size: var(--step-head); max-width: 16ch; }
.star p { margin-top: 16px; max-width: 42ch; }
.btn-star { min-height: 68px; padding-inline: 34px; font-size: var(--step-lead); }
.star-count { background: var(--accent-ink); color: var(--accent); border-radius: 999px; padding: 2px 12px; font-size: var(--step-small); }
.line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 0 var(--pad); font-size: var(--step-small); max-width: 1440px; margin-inline: auto; color: var(--muted); }
.line-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.line-b a { color: var(--ink); padding: 10px 0; }
.line-c { text-align: right; }
.soon { padding: 10px 0; }

/* Motion. Only transform and opacity; content is visible without JS. */
.reveal-on [data-r]:not(.in) > * { opacity: 0; transform: translateY(24px); }
.reveal-on [data-r] > * { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-r] > :nth-child(2) { --i: 1; }
[data-r] > :nth-child(3) { --i: 2; }
[data-r] > :nth-child(4) { --i: 3; }
[data-r] > :nth-child(5) { --i: 4; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-r]:not(.in) > * { opacity: 1; transform: none; }
  .stage figure, .btn, [data-r] > * { transition: none; }
  .stage figure:not(.on) { display: none; }
}

@media (min-width: 1280px) { .links { display: flex; } }
@media (max-width: 1599px) { .wordmark span { display: none; } }

@media (max-width: 900px) {
  .split { display: block; padding: 0; }
  .stage { display: none; }
  .inline-clip { display: block; }
  .bar { border-radius: 0; padding-inline: 20px; }
  .wordmark span { display: none; }
  .hero { padding-bottom: 32px; }
  .hero h1 { font-size: clamp(1.75rem, 8.2vw, 2.6rem); }
  .try-grid, .free .wrap, .built-grid, .cta-grid { grid-template-columns: 1fr; }
  .calc, .dialog { justify-self: stretch; max-width: none; }
  .cta { min-height: 0; }
  .cta-copy { align-self: start; }
  .figs > div { grid-template-columns: 64px 1fr; gap: 16px; }
  .line { grid-template-columns: 1fr; gap: 8px; }
  .line-b { justify-content: flex-start; }
  .line-c { text-align: left; }
  .star { padding-block: 72px; }
  .btn-star { width: 100%; }
}

/* Playful decoration on the stage: coins and speech bubbles, all decorative. */
/* In front of a phone clip: the coins float beside it and the bubbles overlap
   its edge a little. Behind a wide (older) clip, which fills the stage. */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.stage.wide .deco { z-index: 2; }
.coin {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 28px;
  background: var(--paper); color: var(--accent);
  animation: bob 5s ease-in-out infinite;
}
/* Placed from the phone's edges: 50% is the stage centre, --pw the phone width. */
.c1 { right: calc(50% + var(--pw) / 2 + 4px); top: 10%; }
.c2 { left: calc(50% + var(--pw) / 2 + 6px); top: 16%; width: 52px; height: 52px; font-size: 24px; animation-delay: -1.5s; }
.c3 { right: calc(50% + var(--pw) / 2 + 8px); bottom: 12%; width: 48px; height: 48px; font-size: 22px; animation-delay: -3s; }
.c4 { left: calc(50% + var(--pw) / 2 + 2px); bottom: 18%; width: 70px; height: 70px; animation-delay: -2.2s; }
.bubble {
  position: absolute; padding: 10px 20px; border-radius: 999px 999px 999px 8px;
  font-weight: 700; font-size: var(--step-body); white-space: nowrap;
  background: var(--paper); color: var(--accent-hover);
  animation: bob 6s ease-in-out infinite;
}
.b1 { right: calc(50% + var(--pw) / 2 - 28px); top: 30%; transform: rotate(-5deg); }
.b2 { left: calc(50% + var(--pw) / 2 - 28px); top: 46%; border-radius: 999px 999px 8px 999px; background: var(--field); color: var(--ink); animation-delay: -2s; }
.b3 { right: calc(50% + var(--pw) / 2 - 28px); bottom: 32%; background: var(--ink); color: var(--paper); animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--tilt, 0deg)); } }
.b1 { --tilt: -5deg; } .b2 { --tilt: 4deg; } .b3 { --tilt: -2deg; }
@media (prefers-reduced-motion: reduce) { .coin, .bubble { animation: none; } }
@media (max-width: 900px) { .deco { display: none; } }

#why { background: var(--surface); border-radius: 40px; margin: 24px var(--gap) 0; padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.feat h3::before { content: ""; display: inline-block; width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--accent); margin-right: 0.45em; vertical-align: 0.08em; }
