/* ovrina.app home page. The app's look on a plain page (white in light,
   near black in dark, no coloured light behind it): liquid glass cards,
   rounded type, the Ovrina palette. Light and dark follow the system.
   Only this page uses this file (the other pages use legal.css, the 404
   page uses site.css). */

/* Subset fonts: only the characters this page (and the 404 page) uses.
   ?v= changes whenever the subsets are regenerated, because /fonts/* is
   cached for 30 days (_headers). */
@font-face { font-family: "NSR"; font-weight: 400; font-display: swap; src: url(/fonts/nsr-r.woff?v=20261104) format("woff"); }
@font-face { font-family: "NSR"; font-weight: 700; font-display: swap; src: url(/fonts/nsr-b.woff?v=20261104) format("woff"); }
@font-face { font-family: "NSR"; font-weight: 800; font-display: swap; src: url(/fonts/nsr-eb.woff?v=20261104) format("woff"); }
@font-face { font-family: "Nun"; font-weight: 400; font-display: swap; src: url(/fonts/nunito-r.woff) format("woff"); }
@font-face { font-family: "Nun"; font-weight: 600; font-display: swap; src: url(/fonts/nunito-sb.woff) format("woff"); }
@font-face { font-family: "Nun"; font-weight: 700; font-display: swap; src: url(/fonts/nunito-b.woff) format("woff"); }
@font-face { font-family: "Nun"; font-weight: 800; font-display: swap; src: url(/fonts/nunito-eb.woff) format("woff"); }

/* Colours from lib/core/theme (Ovrina palette, Pure style). */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF; --text: #16171D; --muted: #575C69; --faint: #686C79;
  --accent: #2F47D6; --accent-2: #0FA6D0; --accent-text: #273DC5; --on-accent: #FFFFFF;
  --grad-text: linear-gradient(100deg, #2F47D6, #0A7FA6);
  --soft: rgba(47, 71, 214, .10); --soft-2: rgba(47, 71, 214, .18);
  --glass: rgba(255, 255, 255, .78); --glass-2: rgba(255, 255, 255, .56); --solid: #FFFFFF;
  --rim: rgba(255, 255, 255, .95); --line: rgba(27, 31, 59, .09); --line-2: rgba(27, 31, 59, .14);
  --shadow: 0 24px 60px -26px rgba(27, 31, 59, .30), 0 2px 6px rgba(27, 31, 59, .05);
  --shadow-sm: 0 10px 26px -14px rgba(27, 31, 59, .30);
  --course: #3478F6; --study: #C96F00; --personal: #1E9E6A; --plan: #DD4B8C;
  --free: rgba(30, 158, 106, .16); --busy-a: rgba(27, 31, 59, .20); --busy-b: rgba(27, 31, 59, .08);
  --bezel: #FFFFFF;
  --radius: 28px;
  --nav-h: 52px;
  --ease: cubic-bezier(.2, .9, .25, 1.12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0C11; --text: #F3F4F7; --muted: #A7ACB9; --faint: #8C91A0;
    --accent: #7C8FFF; --accent-2: #4FD2EE; --accent-text: #90A0FF; --on-accent: #0B1233;
    --grad-text: linear-gradient(100deg, #8C9CFF, #4FD2EE);
    --soft: rgba(124, 143, 255, .16); --soft-2: rgba(124, 143, 255, .26);
    --glass: rgba(255, 255, 255, .085); --glass-2: rgba(255, 255, 255, .045); --solid: #171922;
    --rim: rgba(255, 255, 255, .14); --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .15);
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .3);
    --shadow-sm: 0 12px 28px -14px rgba(0, 0, 0, .7);
    --course: #6CA6FF; --study: #FFB44D; --personal: #4FD49A; --plan: #FF7FB6;
    --free: rgba(79, 212, 154, .14); --busy-a: rgba(255, 255, 255, .20); --busy-b: rgba(255, 255, 255, .06);
    --bezel: #E9EBF1;
  }
}

* { box-sizing: border-box; }
/* anchors land below the top bar even when it is showing */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 17px/1.6 "Nun", "NSR", -apple-system, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ko"] [data-lang="en"], html[lang="en"] [data-lang="ko"] { display: none !important; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
/* body copy: no lone last word (Korean "있어요." on its own line) */
.lead, .sec-head p, .copy-col > p, .facts li, .tile p, .ft-hint, .demo-note, .launch p, .pv-cap, .plan-t b { text-wrap: pretty; }
.nw { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 800; text-decoration: none; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
svg.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.av { width: 26px; height: 26px; flex: none; border-radius: 50%; }

/* glass */
.card, .store, .chips li, .float-chip {
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--rim);
}
.card { border-radius: var(--radius); }

/* top bar: a thin, plain bar along the top edge, like apple.com. Opaque,
   so no blur. It slides up while you scroll down and comes back as soon as
   you scroll up (home.js adds .is-hidden); at the top it always shows.
   The web app pill stays where it was while the bar slides away: it
   moves down exactly as far as the bar moves up, with the same timing. */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); background: var(--bg); border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease-out); will-change: transform; }
.nav.is-hidden { transform: translateY(calc(-1 * var(--nav-h))); }
/* The bar's own links and buttons sit inside the top band that
   scroll-padding-top keeps clear, so tabbing to one made the browser scroll
   the page to "reveal" it, and the sticky bar never moves, so every Tab
   dragged the page up again. These margins move the box the browser tries
   to reveal 124px down, into the clear part of the window, both when the
   bar is showing and when it is still above the top, sliding back in.
   Anchor targets still land below the bar. */
.nav a, .nav button { scroll-margin-top: calc(-2 * var(--nav-h) - 20px); scroll-margin-bottom: calc(2 * var(--nav-h) + 20px); }
.nav-in { position: relative; display: flex; align-items: center; gap: 16px; height: 100%; }
.nav .brand { font-size: 20px; } .nav .brand .mark { width: 28px; height: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 "Nun", sans-serif; letter-spacing: -.01em; border-radius: 12px; }
.brand .mark { width: 32px; height: 32px; }
.brand.small { font-size: 18px; } .brand.small .mark { width: 26px; height: 26px; }
.links { display: flex; gap: 2px; margin-left: 6px; }
.links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.links a:hover { background: var(--soft); color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); }
.langs button { font-size: 14px; font-weight: 800; line-height: 1.4; border: 0; background: transparent; color: var(--muted); padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.langs button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
/* The web app link (/app/). transform is taken by the slide above, so the
   press feedback uses scale. pointer-events: auto keeps it clickable while
   it floats, also when the faded bar (reduce motion) lets clicks through. */
.web-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; line-height: 1.4; color: var(--accent-text); text-decoration: none; white-space: nowrap;
  /* the tint over the page colour, so it stays solid when it floats over content */
  background: linear-gradient(var(--soft), var(--soft)) var(--bg); pointer-events: auto;
  /* the main button's line of light along the top, and a thin accent edge */
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform .4s var(--ease-out), box-shadow .3s ease, scale .35s var(--ease); }
.web-pill:hover { background-image: linear-gradient(var(--soft-2), var(--soft-2)); scale: 1.03; }
.web-pill:active { scale: .98; }
.nav.is-hidden .web-pill { transform: translateY(var(--nav-h)); box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 4px var(--soft); flex: none; }

/* buttons
   The main button (.btn.primary: the hero's "Try it here", the out-now
   card's web app button) has the app's primary look, frosted accent: an
   accent tint over a layer of milky frost, a crisp edge a shade deeper
   than the tint, a fine light rim at the top left and a line of light
   inside the top edge. No coloured glow. Still a capsule. Hover lifts as
   before and takes a little more tint; press shrinks as before. The store
   buttons stay secondary (plain glass) with the same frost, rim and lift. */
:root {
  --a2-frost: rgba(255, 255, 255, .55);   /* milky frost under the tint */
  --a2-top: 84%;                           /* accent where the label is */
  --a2-bottom: 90%;                        /* accent at the bottom */
  --a2-top-hover: 90%;
  --a2-bottom-hover: 95%;
  --a2-haze: rgba(255, 255, 255, .18);     /* light gathered along the top */
  --a2-ink: #FFFFFF;                       /* 5.0:1 at least */
  --a2-edge: color-mix(in srgb, color-mix(in srgb, var(--accent) 82%, #000) 75%, transparent);
  --a2-rim: rgba(255, 255, 255, .5);       /* light rim, top left */
  --a2-shine: rgba(255, 255, 255, .35);    /* line of light inside the top edge */
  --a2-lift: 0 1px 2px rgba(27, 31, 59, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    /* the light accent a little paler, the deep ink label (6.8:1) */
    --a2-frost: rgba(255, 255, 255, .70);
    --a2-top: 70%;
    --a2-bottom: 78%;
    --a2-top-hover: 78%;
    --a2-bottom-hover: 86%;
    --a2-haze: rgba(255, 255, 255, .22);
    --a2-ink: var(--on-accent);
    --a2-edge: color-mix(in srgb, color-mix(in srgb, var(--accent) 70%, #000) 60%, transparent);
    --a2-rim: rgba(255, 255, 255, .6);
    --a2-shine: rgba(255, 255, 255, .42);
    --a2-lift: 0 0 #0000;
  }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .3s; }
.btn.primary {
  --a2-t: var(--a2-top);
  --a2-b: var(--a2-bottom);
  position: relative;
  color: var(--a2-ink);
  background-color: var(--a2-frost);
  background-image:
    linear-gradient(180deg, var(--a2-haze), transparent 30%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) var(--a2-t), transparent) 30%,
      color-mix(in srgb, var(--accent) var(--a2-b), transparent));
  border-color: var(--a2-edge);
  box-shadow: inset 0 1px 0 var(--a2-shine), var(--a2-lift);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  transition: transform .35s var(--ease), --a2-t .2s, --a2-b .2s;
}
.btn.primary:hover { --a2-t: var(--a2-top-hover); --a2-b: var(--a2-bottom-hover); }
.btn.ghost { background: var(--glass); color: var(--text); border-color: var(--line); box-shadow: inset 0 1px 0 var(--rim); }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.98); }
.btn .i { width: 18px; height: 18px; }
/* The light rim: a 1px ring over the border, light at the top left and
   gone by the bottom right, where the crisp edge shows. */
.btn.primary::before, .store::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--a2-rim) 15%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* Animating the tint on hover needs the two numbers registered. */
@property --a2-t { syntax: "<percentage>"; inherits: false; initial-value: 84%; }
@property --a2-b { syntax: "<percentage>"; inherits: false; initial-value: 90%; }

/* segmented controls and toggles */
.ctl { margin: 0 0 20px; }
.ctl-label { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
:lang(ko) .ctl-label { letter-spacing: 0; text-transform: none; font-size: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 15px; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--solid); color: var(--text); box-shadow: 0 4px 14px -6px rgba(20, 24, 60, .35); }
.seg button .av { width: 22px; height: 22px; }
.seg button .i { width: 17px; height: 17px; }

/* chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips.center { justify-content: center; margin-top: 30px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14.5px; box-shadow: inset 0 1px 0 var(--rim); }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }

/* sections */
.section { padding: 84px 0; }
.sec-head { max-width: 760px; margin: 0 0 36px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.kicker { margin: 0 0 12px; font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--accent-text); }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.18; letter-spacing: -.025em; margin: 0 0 14px; }
:lang(ko) h2 { letter-spacing: -.035em; }
h1 em, h2 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head p, .copy-col > p:not(.kicker) { color: var(--muted); font-size: 18px; margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.st { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "mock head" "mock ctl"; column-gap: 56px; row-gap: 6px; align-items: center; }
.st-head { grid-area: head; align-self: end; }
.st-ctl { grid-area: ctl; align-self: start; }
.st .mock-wrap { grid-area: mock; }
.copy-col > p:not(.kicker) { margin-bottom: 22px; }
.text-link { display: inline-flex; gap: 6px; margin-top: 4px; font-weight: 800; color: var(--accent-text); text-decoration: none; border-radius: 8px; }
.text-link:hover { text-decoration: underline; }
.demo-note { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; color: var(--faint); font-size: 14px; font-weight: 600; }
.demo-note .i { margin-top: 3px; width: 15px; height: 15px; }

/* ---------- hero ---------- */
/* overflow-x: clip: the tilted stage can poke a few px past the edge
   between ~900 and 1100 px; clip (unlike hidden) keeps the vertical axis
   visible, so the chips above the stage still show. */
.hero { padding: 64px 0 30px; text-align: center; overflow-x: clip; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 22px; padding: 8px 14px; border-radius: 999px; background: var(--soft); color: var(--accent-text); font-weight: 800; font-size: 14px; }
h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 22px; }
:lang(ko) h1 { letter-spacing: -.045em; line-height: 1.14; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 0 auto 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
/* The store buttons: secondary, plain glass with the main button's frost
   along the top, light rim (see .btn.primary::before) and small lift. */
.store { position: relative; display: inline-flex; align-items: center; gap: 11px; padding: 10px 18px 10px 14px; border-radius: 18px; text-align: left; text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 30%), linear-gradient(180deg, var(--glass), var(--glass-2));
  box-shadow: inset 0 1px 0 var(--rim), var(--a2-lift);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  transition: transform .35s var(--ease); }
.store::before { --a2-rim: rgba(255, 255, 255, .7); }
@media (prefers-color-scheme: dark) {
  .store { background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%), linear-gradient(180deg, var(--glass), var(--glass-2)); }
  .store::before { --a2-rim: rgba(255, 255, 255, .22); }
}
.store:hover { transform: translateY(-2px) scale(1.02); }
.store:active { transform: scale(.98); }
.store .i { width: 26px; height: 26px; color: var(--accent-text); }
.store b { display: block; font-size: 15.5px; line-height: 1.2; }
.store small { display: block; color: var(--faint); font-weight: 700; font-size: 13px; line-height: 1.3; }
.age { margin: 16px 0 0; font-size: 14px; font-weight: 700; color: var(--faint); }
.where { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--faint); text-wrap: balance; }
.where a { color: var(--muted); font-weight: 800; text-underline-offset: 3px; border-radius: 6px; white-space: nowrap; }
.where a:hover { color: var(--text); }

.stage-wrap { margin-top: 56px; }
.js .stage { --t: 1; }
.stage { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 0 7%;
  transform: perspective(1600px) rotateX(calc(var(--t, 0) * 9deg)) translateY(calc(var(--t, 0) * 18px)); transform-origin: 50% 0; will-change: transform; }
.window { margin: 0; border-radius: 22px; overflow: hidden; background: var(--solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.window .bar { display: flex; gap: 7px; padding: 12px 14px; background: linear-gradient(180deg, var(--glass), var(--glass-2)); border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; }
.window .bar i:nth-child(1) { background: #FF6159; } .window .bar i:nth-child(2) { background: #FFBD2E; } .window .bar i:nth-child(3) { background: #28C941; }
.stage .window { width: 82%; margin-inline: auto; }
.shot { width: 100%; height: auto; background: var(--soft); }
.window .shot { aspect-ratio: 1800 / 1125; }
.phone .shot { aspect-ratio: 780 / 1688; border-radius: 30px; }
/* platform-neutral phone: white bezel, no notch, no status bar */
.phone { margin: 0; padding: 7px; border-radius: 38px; background: var(--bezel); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.stage .phone { position: absolute; bottom: 0; }
.p-left { left: 0; width: 21%; transform: translate3d(calc(var(--t, 0) * 30%), calc(var(--t, 0) * -6%), 0) rotate(calc(var(--t, 0) * 3deg - 4deg)); }
.p-right { right: 0; width: 24%; transform: translate3d(calc(var(--t, 0) * -30%), calc(var(--t, 0) * -6%), 0) rotate(calc(4deg - var(--t, 0) * 3deg)); }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 18px; text-align: left; box-shadow: var(--shadow-sm), inset 0 1px 0 var(--rim);
  /* Opaque, with a light sheen at the top: the screenshot text under a chip
     must not show through (even 94% let the title ghost through in dark). */
  background: linear-gradient(180deg, color-mix(in srgb, var(--solid) 93%, #fff), var(--solid)); animation: bob 6s ease-in-out infinite; }
.float-chip small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.25; }
.float-chip b { display: block; font-size: 15px; line-height: 1.25; }
.fc-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.fc-ico .i { width: 19px; height: 19px; }
.float-chip .av { width: 34px; height: 34px; }
.c-free { right: 18%; top: 56%; }
/* 19%: below the sidebar's logo and "New" button of the desktop shot, even
   at the top of the bob (15% still cut the button at 900–1440 px) */
.c-status { left: 2%; top: 19%; animation-delay: -2s; }
.c-dday { right: 20%; top: -3%; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; animation-delay: -4s; }
.c-dday b { font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- find a time ---------- */
.ft { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 36px; padding: 32px; align-items: start; }
.ft .demo-note { grid-column: 1 / -1; margin-top: 0; }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--solid); font-weight: 800; font-size: 15px; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.person .av { width: 28px; height: 28px; transition: transform .35s var(--ease); }
.person .tick { width: 16px; height: 16px; fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--ease); margin-left: -4px; }
.person[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.person[aria-pressed="true"] .tick { opacity: 1; transform: none; }
.person:active { transform: scale(.96); }
.person[aria-pressed="false"] .av { filter: saturate(.25); opacity: .75; }
.results { margin-bottom: 0; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; }
.slot { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 14px; border-radius: 16px; border: 1.5px solid transparent; background: var(--soft); color: var(--accent-text); cursor: pointer; text-align: left; transition: background .25s, color .25s, transform .3s var(--ease); animation: pop .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); -webkit-tap-highlight-color: transparent; }
.slot b { font-size: 15.5px; line-height: 1.25; }
.slot small { font-size: 12.5px; font-weight: 700; opacity: .85; }
.slot:hover { border-color: var(--soft-2); }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.94); } }
.ft-empty { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--busy-b); color: var(--muted); font-weight: 700; font-size: 15px; }
.plan { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: var(--solid); border: 1px solid var(--line); box-shadow: var(--shadow-sm); animation: pop .45s var(--ease) both; }
.plan-ico { width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center; color: var(--plan); background: color-mix(in srgb, var(--plan) 14%, transparent); }
.plan-ico .i { width: 21px; height: 21px; }
.plan-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.plan-t small { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.plan-t b { font-size: 16px; }
.plan-t span { font-size: 14px; color: var(--muted); font-weight: 600; }
.ft-hint { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

.board { min-width: 0; padding: 18px 18px 14px; border-radius: 22px; background: color-mix(in srgb, var(--solid) 70%, transparent); border: 1px solid var(--line); }
.board-title { margin: 0 0 14px; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.rows { --who: 98px; position: relative; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: var(--who) minmax(0, 1fr); align-items: center; gap: 10px; transition: opacity .35s ease; }
.row.off { opacity: .32; }
.who { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; min-width: 0; white-space: nowrap; }
.who .av { width: 26px; height: 26px; }
.all-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
.all-ico .i { width: 15px; height: 15px; }
.row.all { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.track { position: relative; height: 30px; border-radius: 10px; background: var(--free); overflow: hidden; }
.track .b, .track .fw { position: absolute; top: 0; bottom: 0; border-radius: 8px; }
.track .b { background: repeating-linear-gradient(135deg, var(--busy-a) 0 4px, var(--busy-b) 4px 8px); transition: opacity .3s; }
.row.all .track { background: repeating-linear-gradient(135deg, var(--busy-a) 0 4px, var(--busy-b) 4px 8px); }
/* opaque, so the busy stripes of the "Everyone" track don't show through */
.track .fw { background: linear-gradient(var(--free), var(--free)) var(--solid); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--personal) 45%, transparent); transform-origin: 0 50%; animation: grow .5s var(--ease-out) both; }
.track .fw.fit { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 16px -8px var(--accent); }
@keyframes grow { from { opacity: 0; transform: scaleX(.3); } }
.band-layer { position: absolute; top: -6px; bottom: -6px; left: calc(var(--who) + 10px); right: 0; pointer-events: none; }
.band { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 12px; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: transform .55s var(--ease), width .35s var(--ease-out), opacity .3s; }
.band.gone { opacity: 0; }
.axis { position: relative; height: 18px; margin: 10px 0 0 calc(98px + 10px); font-size: 11.5px; font-weight: 700; color: var(--faint); }
.axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 18px; height: 10px; border-radius: 4px; }
.lg.free { background: var(--free); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--personal) 45%, transparent); }
.lg.busy { background: repeating-linear-gradient(135deg, var(--busy-a) 0 3px, var(--busy-b) 3px 6px); }
.lg.fit { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- privacy ---------- */
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; font-weight: 600; color: var(--muted); }
.facts .i { margin-top: 3px; width: 18px; height: 18px; color: var(--accent-text); }
.pv { padding: 26px; }
.pv-seg { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 20px; }
.pv-seg button { justify-content: center; padding: 8px 8px; border-radius: 16px; font-size: 14.5px; text-align: center; line-height: 1.25; }
.pv-cap { position: relative; margin: 14px 0 16px; min-height: 3.2em; font-size: 15px; font-weight: 700; color: var(--text); }
.pv-cap .cap { display: none; }
.pv[data-view="me"] .cap[data-cap="me"], .pv[data-view="friend"] .cap[data-cap="friend"], .pv[data-view="hidden"] .cap[data-cap="hidden"] { display: block; animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.day { --hh: 38px; border-radius: 22px; padding: 14px 16px 16px; background: color-mix(in srgb, var(--solid) 70%, transparent); border: 1px solid var(--line); }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.viewer { position: relative; font-size: 13px; font-weight: 800; color: var(--accent-text); background: var(--soft); padding: 4px 11px; border-radius: 999px; }
.vw { display: none; }
.pv[data-view="me"] .vw[data-vw="me"], .pv[data-view="friend"] .vw[data-vw="friend"], .pv[data-view="hidden"] .vw[data-vw="hidden"] { display: inline; }
.day-grid { display: grid; grid-template-columns: 62px minmax(0, 1fr); height: calc(12 * var(--hh)); }
.hours { position: relative; }
.hours > span { position: absolute; left: 0; top: calc(var(--h) * var(--hh)); transform: translateY(-50%); font-size: 11.5px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.hours > span:first-child { transform: none; }
.lane { position: relative; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(var(--hh) * 2)); border-radius: 4px; }
.ev { --k: var(--course); position: absolute; left: 0; right: 0; top: calc(var(--s) * var(--hh) + 1px); height: calc((var(--e) - var(--s)) * var(--hh) - 3px);
  border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--k) 15%, var(--solid)); box-shadow: inset 4px 0 0 var(--k);
  transition: background-color .45s ease, box-shadow .45s ease, opacity .4s ease, transform .5s var(--ease); }
.ev.k-study { --k: var(--study); } .ev.k-plan { --k: var(--plan); }
.ev::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--busy-b) 0 5px, transparent 5px 10px); opacity: 0; transition: opacity .45s ease; }
.ev-own, .ev-busy { position: absolute; inset: 0; padding: 5px 12px 5px 14px; display: flex; flex-direction: column; justify-content: center; line-height: 1.22; transition: opacity .35s ease, transform .45s var(--ease); }
.ev b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev small { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-busy { opacity: 0; transform: translateY(6px); }
.tag { position: absolute; right: 8px; top: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--solid); color: var(--muted); box-shadow: 0 0 0 1px var(--line); transition: opacity .3s; }
.tag .i { width: 12px; height: 12px; }
.ev.public .tag { color: var(--accent-text); }
.empty-note { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; color: var(--muted); font-weight: 800; font-size: 15px; opacity: 0; transform: scale(.96); transition: opacity .4s ease, transform .5s var(--ease); pointer-events: none; }
.empty-note .i { width: 30px; height: 30px; color: var(--faint); }
/* what a friend sees: private events turn into busy blocks */
.pv[data-view="friend"] .ev:not(.public) { background-color: color-mix(in srgb, var(--muted) 10%, var(--solid)); box-shadow: inset 4px 0 0 var(--faint); }
.pv[data-view="friend"] .ev:not(.public)::before { opacity: 1; }
.pv[data-view="friend"] .ev:not(.public) .ev-own { opacity: 0; transform: translateY(-6px); }
.pv[data-view="friend"] .ev:not(.public) .ev-busy { opacity: 1; transform: none; }
.pv:not([data-view="me"]) .tag { opacity: 0; }
/* a friend you hide your busy times from: nothing at all */
.pv[data-view="hidden"] .ev { opacity: 0; transform: scale(.94); }
.pv[data-view="hidden"] .empty-note { opacity: 1; transform: none; }
.ev:nth-child(2) { transition-delay: 40ms; } .ev:nth-child(3) { transition-delay: 80ms; } .ev:nth-child(4) { transition-delay: 120ms; }

/* ---------- features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { padding: 28px 26px; transition: transform .45s var(--ease); }
.tile:hover { transform: translateY(-5px); }
.ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2F47D6, #0FA6D0); box-shadow: 0 10px 24px -8px color-mix(in srgb, #2F47D6 70%, transparent); }
.ico .i { width: 25px; height: 25px; }
.tile h3 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -.015em; line-height: 1.3; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- customize ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--solid); font-weight: 800; font-size: 14.5px; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.sw i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--sl1), var(--sl2)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .35s var(--ease); }
@media (prefers-color-scheme: dark) { .sw i { background: linear-gradient(135deg, var(--sd1), var(--sd2)); } }
.sw[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.sw[aria-pressed="true"] i { transform: scale(1.08); }
.sw:active { transform: scale(.96); }
.copy-col .chips { margin-top: 8px; }

@property --m-a  { syntax: "<color>"; inherits: true; initial-value: #2F47D6; }
@property --m-b  { syntax: "<color>"; inherits: true; initial-value: #0FA6D0; }
@property --m-a1 { syntax: "<color>"; inherits: true; initial-value: #C6CEFF; }
@property --m-a2 { syntax: "<color>"; inherits: true; initial-value: #B8EAF6; }
@property --m-a3 { syntax: "<color>"; inherits: true; initial-value: #D6DCFF; }
@property --m-bg { syntax: "<color>"; inherits: true; initial-value: #F3F4F8; }
.mock-wrap { display: flex; flex-direction: column; align-items: center; }
.mock {
  --m-a: #2F47D6; --m-b: #0FA6D0; --m-on: #FFFFFF; --m-t: #273DC5;
  --m-a1: #C6CEFF; --m-a2: #B8EAF6; --m-a3: #D6DCFF;
  --m-bg: #F3F4F8; --m-text: #16171D; --m-muted: #575C69;
  --m-g1: rgba(255,255,255,.74); --m-g2: rgba(255,255,255,.52); --m-rim: rgba(255,255,255,.95); --m-line: rgba(27,31,59,.08);
  font-size: 10px; width: 31em; padding: .8em; border-radius: 4.6em; background: var(--bezel); box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transition: --m-a .6s ease, --m-b .6s ease, --m-a1 .8s ease, --m-a2 .8s ease, --m-a3 .8s ease, --m-bg .6s ease;
}
.mock.dark { --m-text: #F3F4F7; --m-muted: #A7ACB9; --m-g1: rgba(255,255,255,.10); --m-g2: rgba(255,255,255,.05); --m-rim: rgba(255,255,255,.2); --m-line: rgba(255,255,255,.09); }
.m-screen { position: relative; overflow: hidden; border-radius: 3.8em; aspect-ratio: 780 / 1688; background: var(--m-bg); color: var(--m-text); padding: 2.6em 1.7em 0; transition: color .5s ease; isolation: isolate; }
/* The app's default backdrop since 1.1: one even tint, a hint of the
   palette's first light over the background (15% light, 12% dark), as
   ambient_background.dart's BackdropStyle.solid. */
.m-screen { background: color-mix(in srgb, var(--m-a1) 15%, var(--m-bg)); }
.mock.dark .m-screen { background: color-mix(in srgb, var(--m-a1) 12%, var(--m-bg)); }
.m-top { display: flex; justify-content: space-between; align-items: center; gap: .8em; }
.m-date { font-size: 1.15em; font-weight: 800; color: var(--m-t); letter-spacing: .02em; }
.m-dday { display: inline-flex; align-items: center; gap: .6em; font-size: 1.2em; font-weight: 800; padding: .3em .35em .3em .9em; border-radius: 99em; background: linear-gradient(180deg, var(--m-g1), var(--m-g2)); box-shadow: 0 0 0 1px var(--m-line), inset 0 1px 0 var(--m-rim); }
.m-dday b { font-size: .92em; padding: .15em .6em; border-radius: 99em; background: var(--m-a); color: var(--m-on); }
.m-hello { margin: .8em 0 .9em; font-size: 2.3em; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.m-card { border-radius: 2.2em; background: linear-gradient(180deg, var(--m-g1), var(--m-g2)); box-shadow: 0 0 0 1px var(--m-line), inset 0 1px 0 var(--m-rim), 0 1.4em 3em -2em rgba(20,24,60,.3); }
.m-next { padding: 1.5em 1.6em 1.6em; }
.m-row { display: flex; justify-content: space-between; align-items: center; }
.m-pill { font-size: 1.15em; font-weight: 800; padding: .3em .8em; border-radius: 99em; }
.m-pill.soft { background: color-mix(in srgb, var(--m-a) 14%, transparent); color: var(--m-t); }
.m-pill.solid { background: var(--m-a); color: var(--m-on); }
.m-title { display: block; margin: .55em 0 .2em; font-size: 2.1em; letter-spacing: -.02em; line-height: 1.2; }
.m-sub { display: block; font-size: 1.25em; font-weight: 700; color: var(--m-muted); }
.m-bar { display: block; height: .55em; margin-top: 1.2em; border-radius: 99em; background: color-mix(in srgb, var(--m-text) 12%, transparent); overflow: hidden; }
.m-bar i { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--m-a), var(--m-b)); }
.m-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; margin-top: 1.1em; }
.m-tile { padding: 1.1em .9em; border-radius: 1.8em; display: flex; flex-direction: column; gap: .15em; min-width: 0; }
.m-tile b { font-size: 1.3em; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; }
.m-tile small { font-size: 1.1em; font-weight: 700; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ic { width: 2.4em; height: 2.4em; border-radius: .8em; margin-bottom: .7em; }
.m-ic.c1 { background: color-mix(in srgb, var(--m-a) 22%, transparent); }
.m-ic.c2 { background: color-mix(in srgb, #E2A400 30%, transparent); }
.m-ic.c3 { background: color-mix(in srgb, var(--m-b) 26%, transparent); }
.m-h { margin: 1.2em 0 .6em; font-size: 1.45em; font-weight: 800; }
.m-list { padding: .5em 1.3em; }
.m-ev { display: grid; grid-template-columns: 4.1em .7em minmax(0, 1fr); align-items: center; gap: .9em; padding: .7em 0; }
.m-ev + .m-ev { border-top: 1px solid var(--m-line); }
.m-t { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.m-t b { font-size: 1.3em; white-space: nowrap; } .m-t small { font-size: 1em; font-weight: 700; color: var(--m-muted); }
.m-ev i { width: .7em; height: .7em; border-radius: 50%; }
.m-ev i.k1 { background: var(--m-a); } .m-ev i.k2 { background: #E2A400; }
.m-e { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.m-e b { font-size: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-e small { font-size: 1.1em; font-weight: 700; color: var(--m-muted); }
.m-tabs { position: absolute; left: 1.2em; right: 1.2em; bottom: 1.4em; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: .7em .4em; border-radius: 99em;
  background: linear-gradient(180deg, var(--m-g1), var(--m-g2)); box-shadow: 0 0 0 1px var(--m-line), inset 0 1px 0 var(--m-rim), 0 1.2em 2.6em -1.4em rgba(20,24,60,.4); }
.m-tabs > span { display: flex; flex-direction: column; align-items: center; gap: .25em; font-size: 1.02em; font-weight: 800; color: var(--m-muted); padding: .4em 0; border-radius: 99em; }
.m-tabs .i { width: 2em; height: 2em; }
.m-tabs .on { color: var(--m-t); background: color-mix(in srgb, var(--m-a) 14%, transparent); }
.m-tabs .plus { width: 4.6em; height: 4.6em; justify-self: center; justify-content: center; color: var(--m-on); background: linear-gradient(135deg, var(--m-a), var(--m-b)); box-shadow: 0 .8em 1.8em -.8em var(--m-a); }
.m-tabs .plus .i { width: 2.4em; height: 2.4em; stroke-width: 2.6; }
.mock-cap { margin: 18px 0 0; font-weight: 800; font-size: 15px; color: var(--muted); min-height: 1.6em; }

/* ---------- showcase ---------- */
.showcase .sec-head { margin-bottom: 26px; }
.seg.device { display: flex; width: max-content; margin: 0 auto 34px; }
.sh-panel { animation: fadein .45s ease both; }
.sh-panel[hidden] { display: none; }
.rail { --w: 250px; list-style: none; margin: 0; display: flex; gap: 26px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 12px calc(50% - var(--w) / 2) 26px; scroll-padding-inline: calc(50% - var(--w) / 2); }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -3px; border-radius: 28px; }
.slide { flex: none; width: var(--w); scroll-snap-align: center; text-align: center; }
.slide .phone { transform: scale(.88); opacity: .6; transition: transform .55s var(--ease), opacity .4s ease; }
.slide.on .phone { transform: none; opacity: 1; }
.slide .cap { margin: 14px 0 0; font-weight: 800; color: var(--muted); transition: color .3s; }
.slide.on .cap { color: var(--text); }
.rail-ctl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 4px; }
.round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: linear-gradient(180deg, var(--glass), var(--glass-2)); box-shadow: var(--shadow-sm), inset 0 1px 0 var(--rim); cursor: pointer; transition: transform .3s var(--ease), opacity .2s; }
.round:hover { transform: scale(1.06); }
.round[aria-disabled="true"] { opacity: .35; cursor: default; transform: none; }
.round .i { width: 20px; height: 20px; }
.dots { display: flex; gap: 2px; }
.dots button { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .35s var(--ease), background .3s; }
.dots button[aria-current="true"]::before { width: 20px; background: var(--accent); }
.seg.mini { display: flex; width: max-content; margin: 0 auto 22px; }
.seg.mini button { font-size: 14px; padding: 7px 14px; }
.window.wide { max-width: 1000px; margin: 0 auto; }
.desk-stack { display: grid; }
.desk-stack .shot { grid-area: 1 / 1; opacity: 0; transition: opacity .45s ease; }
.desk-stack .shot.on { opacity: 1; }

/* ---------- out now + footer ---------- */
.launch { text-align: center; padding: 60px 28px; max-width: 880px; margin: 0 auto; }
.launch .mark.big { width: 84px; height: 84px; margin-bottom: 14px; }
.launch p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 32em; }
.launch .age { margin-top: 10px; font-size: 14.5px; }
.launch .where { margin-top: 4px; font-size: 14px; color: var(--faint); max-width: 36em; }
.launch .cta { margin-top: 26px; }
/* News and promotions: the Instagram button, as in the footer, under a line. */
.launch-news { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.launch .news-q { font-size: 15.5px; font-weight: 700; }
.app-ico { width: 34px; height: 34px; border-radius: 28%; flex: none; display: block; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 10px -4px rgba(20,30,90,.35); }
.social { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); box-shadow: inset 0 1px 0 var(--rim); transition: transform .35s var(--ease); }
.social:hover { transform: translateY(-2px); }
.social .app-ico { width: 36px; height: 36px; }
.social-t { display: flex; flex-direction: column; line-height: 1.2; }
.social-t b { font-weight: 800; font-size: 15px; }
.social-t small { color: var(--muted); font-weight: 700; font-size: 13px; }
.foot { padding: 30px 0 50px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; border-top: 1px solid var(--line); padding-top: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 6px; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }
.copy { margin: 0 0 0 auto; color: var(--faint); font-size: 14px; }

/* ---------- entrances ---------- */
/* Hero: on load, from CSS alone (no wait for the script). */
.hero .reveal { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.99); } }
/* Everything else: when it scrolls into view (home.js adds .in). Hidden
   only when the script runs, so the page still reads without it. */
.js main > section:not(.hero) .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js main > section:not(.hero) .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .float-chip { animation: none !important; }
  /* the bar fades instead of sliding; the pill stays where it is */
  .nav.is-hidden, .nav.is-hidden .web-pill { transform: none; }
  .nav.is-hidden { background-color: transparent; border-bottom-color: transparent; pointer-events: none; }
  .nav.is-hidden .brand, .nav.is-hidden .links, .nav.is-hidden .langs { opacity: 0; }
  .nav, .nav .brand, .nav .links, .nav .langs, .nav .web-pill { transition: background-color .25s ease, border-color .25s ease, opacity .25s ease, box-shadow .25s ease, visibility 0s linear .25s !important; }
  /* phone pill: visible at once when the bar fades out, hidden only after its own fade */
  .nav.is-hidden .web-pill { transition-delay: 0s !important; }
  .stage { transform: none !important; }
  .p-left { transform: rotate(-4deg) !important; }
  .p-right { transform: rotate(4deg) !important; }
  .js main > section:not(.hero) .reveal { opacity: 1; transform: none; }
}

/* No backdrop filter (older browsers): the frost made opaque, so the
   buttons look the same over the plain page. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn.primary {
    background-color: var(--bg);
    background-image:
      linear-gradient(180deg, var(--a2-haze), transparent 30%),
      linear-gradient(180deg,
        color-mix(in srgb, var(--accent) var(--a2-t), transparent) 30%,
        color-mix(in srgb, var(--accent) var(--a2-b), transparent)),
      linear-gradient(var(--a2-frost), var(--a2-frost));
  }
  .store { background-color: var(--bg); }
}
/* No color-mix (older browsers, Safari before 16.2 among them): the tint
   would drop out and leave the label on bare frost, so the plain accent
   instead, with the same label (7:1 light, 6.3:1 dark). */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .btn.primary { background: var(--accent); border-color: transparent; }
}

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .links { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .st { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "mock" "ctl"; row-gap: 28px; }
  .ft { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ft .board { order: -1; }
  .ft-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
  .ft-side .results { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav-in { gap: 8px; }
  .brand { font-size: 20px; } .brand .mark { width: 28px; height: 28px; }
  /* no room for the pill in the bar on a phone: it only shows, in the
     language switch's place, while the bar is away. visibility (not just
     opacity) so screen readers don't read an invisible pill; it turns
     hidden only after the fade out, and visible at once for the fade in. */
  .web-pill { position: absolute; right: 0; top: 50%; translate: 0 -50%; opacity: 0; visibility: hidden;
    transition: transform .4s var(--ease-out), box-shadow .3s ease, scale .35s var(--ease), opacity .3s ease, visibility 0s linear .3s; }
  .nav.is-hidden .web-pill { opacity: 1; visibility: visible; transition-delay: 0s; }
  /* Keyboard focus keeps it on screen if the bar comes back meanwhile (it
     then covers the language switch until focus moves on). */
  .web-pill:focus-visible { opacity: 1; visibility: visible; }
  .langs button { padding: 5px 11px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 30px; }
  .eyebrow { font-size: 13px; margin-top: 10px; }
  h1 { font-size: clamp(36px, 10.6vw, 46px); }
  .cta { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
  .cta .btn { grid-column: 1 / -1; }
  .store { padding: 10px 12px; gap: 9px; border-radius: 16px; }
  .store .i { width: 22px; height: 22px; }
  .store small { font-size: 12px; }
  .stage-wrap { margin-top: 34px; }
  .stage { display: flex; justify-content: center; padding: 6px 0 18px; }
  .stage .window { display: none; }
  .stage .phone { position: relative; bottom: auto; left: auto; right: auto; width: 47%; }
  .p-left { transform: translate3d(calc(5% + var(--t, 0) * 6%), 0, 0) rotate(calc(-4deg + var(--t, 0) * 2deg)); z-index: 1; }
  .p-right { transform: translate3d(calc(-5% - var(--t, 0) * 6%), 22px, 0) rotate(calc(4deg - var(--t, 0) * 2deg)); }
  .window { border-radius: 14px; } .window .bar { padding: 8px 10px; gap: 5px; } .window .bar i { width: 8px; height: 8px; }
  .phone { padding: 4px; border-radius: 22px; } .phone .shot { border-radius: 18px; }
  .float-chip { padding: 6px 10px 6px 6px; gap: 7px; border-radius: 13px; }
  .float-chip b { font-size: 12.5px; } .float-chip small { font-size: 10.5px; }
  .fc-ico, .float-chip .av { width: 26px; height: 26px; border-radius: 9px; }
  .float-chip .av { border-radius: 50%; }
  .fc-ico .i { width: 15px; height: 15px; }
  .c-free { right: auto; left: 50%; top: auto; bottom: 0; translate: -50% 0; z-index: 2; }
  .c-status { left: -2px; top: 33%; z-index: 2; }
  .c-dday { display: none; }
  .sec-head p, .copy-col > p:not(.kicker), .launch p { font-size: 16px; }
  .ft { padding: 18px 16px; border-radius: 24px; }
  .ft-side { display: block; }
  .board { padding: 14px 12px 12px; border-radius: 18px; }
  .rows { --who: 78px; gap: 9px; }
  .row { gap: 8px; }
  .who { font-size: 12.5px; gap: 6px; }
  .who .av, .all-ico { width: 20px; height: 20px; }
  .row.all .all-ico { display: none; }
  .track { height: 26px; border-radius: 8px; }
  .band-layer { left: calc(var(--who) + 8px); }
  .axis { margin-left: calc(78px + 8px); font-size: 10.5px; }
  .axis span.odd { display: none; }
  .person { font-size: 14.5px; }
  .seg button { padding: 8px 13px; font-size: 14.5px; }
  .pv { padding: 16px; border-radius: 24px; }
  .pv-seg button { font-size: 13px; padding: 7px 4px; flex-direction: column; gap: 3px; }
  .pv-seg button .av { width: 20px; height: 20px; }
  .day { --hh: 34px; padding: 12px; }
  .day-grid { grid-template-columns: 52px minmax(0, 1fr); }
  .hours > span { font-size: 10.5px; }
  .ev b { font-size: 13.5px; } .ev small { font-size: 11px; }
  .ev-own, .ev-busy { padding: 4px 10px 4px 12px; }
  .tag { top: 3px; right: 6px; font-size: 10.5px; padding: 1px 6px; }
  /* room for the Private/Public tag, so it never covers a title */
  .pv[data-view="me"] .ev-own > b { padding-right: 72px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .tile .ico { width: 46px; height: 46px; border-radius: 15px; grid-row: span 2; }
  .tile h3 { margin: 2px 0 4px; font-size: 18px; }
  .tile p { font-size: 15px; }
  .chips li { font-size: 13px; padding: 7px 12px; }
  .mock { font-size: 8.4px; }
  .rail { --w: 62vw; gap: 16px; }
  .launch { padding: 40px 20px; }
  .copy { margin: 0; width: 100%; }
}
/* Narrow phones: the four phone labels of the find-a-time axis ran into
   each other ("오전 8시오후 12시…"), so only every third label shows, 8 AM,
   2 PM and 8 PM (the 1st, 4th and 7th that home.js axis() draws). Below
   360 px only, so 360 px and up look exactly as before. */
@media (max-width: 359.98px) {
  .axis span { display: none; }
  .axis span:nth-child(3n+1) { display: block; }
}
/* Narrow phones: the gallery's two arrows and eight dots need 330 px in a
   row, so below 360 px the arrows were squeezed into ovals (320 px) or cut
   off at the screen's edges (300 px and less). Here the arrows keep their
   round 46 px and the row stays 15 px from each side, as at 360 px: first
   the room beside the arrows gets smaller (16 px down to 6, to 340 px),
   then the room between the dots (2 px to none, to 326 px), then the dots'
   buttons (24 px down to 18, to 278 px), the current one's longer dot
   keeping 2 px inside its button as at 360 px. Below 360 px only: 360 px
   and up as before. The numbers count eight dots, one for each screenshot
   in index.html (a ninth would need them again). */
@media (max-width: 359.98px) {
  .rail-ctl { gap: clamp(6px, calc((100vw - 328px) / 2), 16px); }
  .round { flex: none; }
  .dots { gap: clamp(0px, calc((100vw - 326px) / 7), 2px); }
  .dots button { width: clamp(18px, calc((100vw - 134px) / 8), 24px); }
  .dots button[aria-current="true"]::before { width: min(20px, calc(100% - 4px)); }
}
/* The out-now card's padding leaves its two store buttons about 20 px less
   than in the hero, so below 400 px "Get it for Android" (and at 361 px
   "Google Play") broke onto a second line. There they stack, one per row. */
@media (max-width: 399.98px) {
  .launch .cta { grid-template-columns: minmax(0, 1fr); }
}
/* Below 300 px the card's 20 px sides left "웹에서 바로 시작하기" (and "Use it
   on the web") with its arrow 12 px too little room, so the button broke
   onto two lines and grew to 81 px. 12 px sides give it room down to 280. */
@media (max-width: 299.98px) {
  .launch { padding-inline: 12px; }
}
@media (max-width: 360px) {
  .langs button { padding: 5px 9px; font-size: 13px; }
  /* the tag shows only its icon here */
  .tag > span { display: none; }
  .tag { padding: 3px; }
  .pv[data-view="me"] .ev-own > b { padding-right: 28px; }
  .cta { grid-template-columns: 1fr; }
  .mock { font-size: 8px; }
}
