/* DM Sans (SIL OFL 1.1, fonts/OFL.txt), served from this site: no request to Google. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/dm-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/dm-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Colours from Famlytic Theme.swift and AccentColor (light). The app sets big titles in the system serif (New York);
   the site uses it where the system has it (ui-serif, Apple devices) and DM Sans for reading text. */
:root {
  --paper: #FFFFFF;
  --desk: #F4F5FB;
  --ink: #0E1430;         /* P.ink */
  --ink-soft: #4A5070;    /* secondary text, 7:1 on desk */
  --accent: #3A47D5;      /* AccentColor (light): text and white-on-accent fills, >= 6:1 */
  --accent-dark: #2A3482; /* P.hero end, the pressed fill */
  --night: #111838;       /* P.hero start */
  --gold: #C9A24B;        /* P.gold: stars, piggy bank; large decoration or on night only */
  --gold-soft: #E8D3A0;   /* P.goldSoft */
  --gold-text: #8A6A1F;   /* gold for text on white, 5:1 */
  --done: #1E7D4F;        /* "Bitti", 5:1 on white */
  --tint: #E8EAFB;        /* accent at low strength */
  --line: rgb(14 20 48 / .1);
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;

  --m: clamp(16px, 2.2vw, 32px);
  --gap: 12px;
  --rad: clamp(20px, 2.4vw, 32px);
  --soft: 0 1px 2px rgb(14 20 48 / .05), 0 12px 32px rgb(14 20 48 / .08), 0 36px 80px rgb(58 71 213 / .08);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1.03rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-sub: clamp(1.5rem, 0.9rem + 1.8vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html[lang="tr"] [lang="en"], html[lang="en"] [lang="tr"] { display: none; }
body { background: var(--desk); color: var(--ink); font: 400 var(--step-body)/1.5 "DM Sans", system-ui, sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tile.main :focus-visible { outline-color: #fff; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h2 { font-size: var(--step-head); }
main, .foot { position: relative; z-index: 1; }

/* The sky: fixed behind the page, gradients only. Desk, then a faint indigo, then a faint champagne, then desk. */
.sky { --g: 0; --indigo: 0; --champ: 0; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(200deg, #FFFFFF 0%, #F4F5FB 55%, #EDEFF8 100%); }
.sky .tint { position: absolute; inset: 0; will-change: opacity; }
.sky .indigo { opacity: var(--indigo); background: linear-gradient(200deg, #F5F6FF 0%, #ECEEFD 55%, #E4E7FB 100%); }
.sky .champ { opacity: var(--champ); background: linear-gradient(200deg, #FFFCF5 0%, #FBF5E7 55%, #F6EDD8 100%); }
.blob { position: absolute; width: 110vmax; height: 110vmax; border-radius: 50%; will-change: transform; }
.blob.a { top: -46vmax; left: -34vmax; transform: translate3d(0, calc(var(--g) * -22vh), 0); background: radial-gradient(closest-side, rgb(58 71 213 / .12), rgb(58 71 213 / .05) 50%, rgb(58 71 213 / 0)); }
.blob.b { top: 6vh; right: -48vmax; transform: translate3d(0, calc(var(--g) * 16vh), 0); background: radial-gradient(closest-side, rgb(201 162 75 / .14), rgb(201 162 75 / .05) 50%, rgb(201 162 75 / 0)); }
.blob.c { bottom: -62vmax; left: 8vw; transform: translate3d(0, calc(var(--g) * -10vh), 0); background: radial-gradient(closest-side, rgb(14 20 48 / .08), rgb(14 20 48 / .03) 50%, rgb(14 20 48 / 0)); }
/* the app's sparkle, drifting */
.drift { position: absolute; top: 0; left: 0; width: 100%; height: 260vh; transform: translate3d(0, calc(var(--g) * -160vh), 0); will-change: transform; }
.drift i { position: absolute; width: var(--s, 14px); aspect-ratio: 1; background: var(--gold); opacity: .35;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.grain { position: absolute; inset: 0; opacity: .035; background-size: 160px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .2 0 0 0 0 .4 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* The app's primary button: accent fill, white semibold text, capsule */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 var(--step-body)/1.2 "DM Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.97); }
.soon { margin: 12px 0; font-weight: 600; } /* stands in for Apple's badge until the app is live */

.lang {
  position: absolute; z-index: 5; top: var(--m); right: var(--m);
  font: 700 var(--step-small)/1 "DM Sans", system-ui, sans-serif; min-width: 48px; min-height: 48px; border-radius: 999px;
  background: var(--paper); color: var(--ink); border: 0; cursor: pointer; box-shadow: var(--soft);
  transition: transform .15s var(--ease), background-color .15s;
}
.lang:hover { background: var(--tint); }
.lang:active { transform: scale(.94); }

/* ---------- Scenes ----------
   Without .scenes (no script, or reduced motion) each scene is an ordinary section at its last frame (--p: 1).
   With .scenes the section is --len svh tall, the stage sticks, and main.js writes --p from 0 to 1. */
.scene { --p: 1; position: relative; }
.stage { position: relative; min-height: 100svh; padding: clamp(72px, 8vw, 96px) var(--m) var(--m); }
.scenes .scene { --p: 0; --in: 0; --out: 0; height: calc(var(--len) * 1svh); }
.scenes .s-hero { --in: 1; }
.scenes .stage { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; }
.scenes :is(.hero-art, .say-line, .say-card) {
  --I: calc(var(--in) * var(--in) * (3 - 2 * var(--in)));
  --O: calc(var(--out) * var(--out) * (3 - 2 * var(--out)));
  opacity: calc(var(--I) * (1 - var(--O)));
  transform: translateY(calc((1 - var(--I)) * 32px - var(--O) * 32px)) scale(calc(.96 + .04 * var(--I) - .04 * var(--O)));
}

/* The wordmark, as the app draws it: "Fam" in ink, "lytic" in the accent, serif */
.logo { display: inline-block; font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.logo b { font-weight: inherit; color: var(--accent); }

/* Entrance: wordmark left, the app's greeting card right */
.s-hero .stage { display: grid; grid-template-columns: 1fr auto; gap: var(--m); align-items: center; padding: var(--m); }
.hero-copy h1 { font-size: clamp(4rem, 11vw, 10rem); letter-spacing: 0; }
.slogan { font-size: var(--step-sub); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 24px 0 36px; color: var(--ink-soft); max-width: 22ch; }
.hero-art { margin-right: clamp(24px, 6vw, 96px); }
/* BoardView's day card: P.hero gradient, small caps date, serif greeting, two counters, the day ring with the sparkle */
.daycard { --w: min(34vw, 460px); --o: clamp(0, var(--p) * 1.6, 1); width: var(--w); font-size: calc(var(--w) / 460 * 16px);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1em; padding: 1.75em 1.75em 1.75em 2em; border-radius: 1.75em; color: #fff;
  background: linear-gradient(135deg, var(--night), var(--accent-dark)); box-shadow: 0 10px 18px rgb(0 0 0 / .14), 0 30px 60px rgb(17 24 56 / .22); position: relative; overflow: hidden; }
.daycard::after { content: ""; position: absolute; width: 14em; height: 14em; right: -5em; top: -7em; border-radius: 50%; background: rgb(255 255 255 / .06); }
.dc-date { font-size: .8125em; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .72); }
.dc-hi { margin-top: .35em; font: 600 1.875em/1.1 var(--serif); }
.dc-chips { display: flex; gap: .5em; margin-top: 1em; }
.dc-chips span { display: inline-flex; align-items: center; gap: .35em; padding: .3em .7em; border-radius: 99px; background: rgb(255 255 255 / .12); font-weight: 600; font-variant-numeric: tabular-nums; }
.dc-chips svg { width: 1em; height: 1em; }
.ring { position: relative; width: 6em; height: 6em; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: rgb(255 255 255 / .14); }
.ring .fill { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 251.3; stroke-dashoffset: calc(251.3 * (1 - var(--o) * .75)); }
.ring .spark { position: absolute; inset: 0; margin: auto; width: 2em; height: 2em; fill: var(--gold-soft); }

/* Scene: say it, and the app reads person, day and time out of the sentence (LocalTaskParser) */
.s-say .stage { display: grid; grid-template-rows: 1fr auto; gap: 32px; }
.say-wrap { align-self: center; display: grid; gap: clamp(20px, 3svh, 36px); justify-items: start; }
.say-line { font: 600 min(8.4vw, 12svh)/1.4 var(--serif); letter-spacing: -0.02em; }
.say-line b { display: inline-block; padding: 0 .1em; border-radius: .2em; font-weight: inherit; position: relative; transition: background-color .25s, color .25s; }
.say-line b.hit { background: var(--tint); color: var(--accent); }
.say-line b[data-k]::after { content: attr(data-k); position: absolute; left: .1em; top: 100%; margin-top: .1em; font: 600 max(12px, .22em)/1 "DM Sans", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); opacity: 0; transition: opacity .25s; }
.say-line b.hit[data-k]::after { opacity: 1; }
.say-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--paper); box-shadow: var(--soft); font-size: var(--step-small);
  opacity: clamp(0, (var(--p) - .78) * 8, 1); }
.scenes .say-card { opacity: calc(clamp(0, (var(--p) - .78) * 8, 1) * (1 - var(--out))); transform: none; }
.say-card .av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.say-card b { display: block; font-size: var(--step-body); font-weight: 600; }
.say-card span { color: var(--ink-soft); }
.say-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(24px, 4vw, 64px); align-items: end; }
.say-copy h2 { max-width: 14ch; }
.say-copy .lead { max-width: 44ch; color: var(--ink-soft); }

/* ---------- Quiet sections ---------- */
.quiet { padding: clamp(120px, 14vw, 200px) var(--m); }

/* The live piece: the board's three columns. Each tap moves the first open card one column right, as the swipe does in the app */
.try { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(24px, 5vw, 80px); align-items: center; }
.try-copy h2 { max-width: 12ch; }
.try-copy p { margin-top: 28px; max-width: 40ch; color: var(--ink-soft); }
.board { position: relative; display: grid; gap: 20px; justify-items: center; }
.cols3 { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; border-radius: 28px; background: var(--paper); box-shadow: var(--soft); }
.col { display: grid; align-content: start; gap: 8px; min-height: 260px; padding: 10px; border-radius: 18px; background: var(--desk); }
.col h3 { font-size: var(--step-small); font-weight: 600; letter-spacing: 0; color: var(--ink-soft); display: flex; justify-content: space-between; padding: 2px 4px 6px; }
.col h3 span { font-variant-numeric: tabular-nums; }
.card { position: relative; padding: 10px 12px; border-radius: 14px; background: var(--paper); box-shadow: 0 1px 2px rgb(14 20 48 / .06), 0 4px 12px rgb(14 20 48 / .06); font-size: var(--step-small); line-height: 1.3; }
.card b { display: block; font-weight: 600; font-size: .9375rem; }
.card span { color: var(--ink-soft); }
.card.moved { animation: land .35s var(--ease); }
@keyframes land { from { transform: translateY(-8px) scale(.97); opacity: .4; } }
.col.done .card b { color: var(--done); }
.col.done .card b::before { content: "✓ "; }
.burst { position: absolute; right: 8px; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 10px; height: 10px; margin: -5px; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: burst .8s var(--ease) forwards; }
@keyframes burst { to { transform: rotate(var(--a)) translateX(34px) rotate(calc(-1 * var(--a))) scale(.4); opacity: 0; } }
.toast { position: absolute; left: 50%; top: -18px; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%;
  padding: 10px 16px 10px 10px; border-radius: 18px; background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--soft); font-size: var(--step-small);
  opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.board > .toast:not(.on), .js figure.reveal > .toast:not(.on) { opacity: 0; transform: translate(-50%, -100%); } /* beats the reveal rule that shows every child of the figure */
.board > .toast.on, .js figure.reveal > .toast.on { opacity: 1; transform: translate(-50%, calc(-100% - 6px)); }
.toast img { width: 28px; height: 28px; border-radius: 7px; }
.try-btn { display: none; }
.js .try-btn { display: inline-flex; min-width: 220px; }
.try-btn .t-again, .board.full .try-btn .t-next { display: none; }
.board.full .try-btn .t-again { display: inline; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Two drawn app parts side by side */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px var(--gap); }
.pair-title { grid-column: 1 / -1; }
.pair figure { min-height: clamp(360px, 34vw, 460px); display: grid; place-items: center; padding: clamp(20px, 3vw, 40px); border-radius: var(--rad); background: var(--paper); box-shadow: var(--soft); }
.pair h3 { font-size: var(--step-sub); margin-top: 24px; }
.pair p { margin-top: 16px; max-width: 40ch; color: var(--ink-soft); }
/* Shopping list sorted by aisle (Aisles.swift) */
.shop { width: min(100%, 360px); display: grid; gap: 6px; }
.shop h4 { margin-top: 12px; font-size: var(--step-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.shop h4:first-child { margin-top: 0; }
.shop p { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--desk); }
.shop p::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.shop p.got { color: var(--ink-soft); text-decoration: line-through; }
.shop p.got::before { border-color: var(--done); background: var(--done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
/* Piggy bank goal (PiggyBankView): gold stars, the goal bar */
.piggy { width: min(100%, 360px); display: grid; gap: 18px; padding: 24px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--night), var(--accent-dark)); }
.piggy .stars { color: #fff; display: flex; align-items: baseline; gap: 10px; font: 600 2.5rem/1 var(--serif); }
.piggy .stars svg { width: 30px; height: 30px; fill: var(--gold); align-self: center; }
.piggy .stars span { font: 500 1rem/1 "DM Sans", system-ui, sans-serif; color: rgb(255 255 255 / .75); }
.piggy .goal { display: grid; gap: 8px; font-weight: 600; }
.piggy .bar { height: 12px; border-radius: 99px; background: rgb(255 255 255 / .14); overflow: hidden; }
.piggy .bar i { display: block; height: 100%; width: 45%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.piggy .ok { font-size: var(--step-small); color: var(--gold-soft); }

/* All in one, as a slip */
.route { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(40px, 6vw, 80px) var(--m) 0; align-items: start; }
.route-text { grid-column: 1 / 6; }
.route-text p { margin-top: 32px; max-width: 30ch; color: var(--ink-soft); }
.slip {
  grid-column: 7 / 13; background: var(--paper); color: var(--ink); padding: 36px 32px 64px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 97.917% 100%, 95.833% calc(100% - 14px), 93.750% 100%, 91.667% calc(100% - 14px), 89.583% 100%, 87.500% calc(100% - 14px), 85.417% 100%, 83.333% calc(100% - 14px), 81.250% 100%, 79.167% calc(100% - 14px), 77.083% 100%, 75.000% calc(100% - 14px), 72.917% 100%, 70.833% calc(100% - 14px), 68.750% 100%, 66.667% calc(100% - 14px), 64.583% 100%, 62.500% calc(100% - 14px), 60.417% 100%, 58.333% calc(100% - 14px), 56.250% 100%, 54.167% calc(100% - 14px), 52.083% 100%, 50.000% calc(100% - 14px), 47.917% 100%, 45.833% calc(100% - 14px), 43.750% 100%, 41.667% calc(100% - 14px), 39.583% 100%, 37.500% calc(100% - 14px), 35.417% 100%, 33.333% calc(100% - 14px), 31.250% 100%, 29.167% calc(100% - 14px), 27.083% 100%, 25.000% calc(100% - 14px), 22.917% 100%, 20.833% calc(100% - 14px), 18.750% 100%, 16.667% calc(100% - 14px), 14.583% 100%, 12.500% calc(100% - 14px), 10.417% 100%, 8.333% calc(100% - 14px), 6.250% 100%, 4.167% calc(100% - 14px), 2.083% 100%, 0% calc(100% - 14px));
}
.slip h3 { font-size: var(--step-body); font-weight: 700; letter-spacing: 0; margin-top: 28px; color: var(--accent); }
.slip h3:first-child { margin-top: 0; }
.row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.row i { flex: 1; min-width: 24px; border-bottom: 4px dotted var(--line); transform: translateY(-4px); }
.row > span:last-child { text-align: right; white-space: nowrap; color: var(--ink-soft); }
.row.total { background: var(--tint); color: var(--ink); margin: 32px -32px 0; padding: 12px 32px; min-height: 44px; justify-content: space-between; font-weight: 500; gap: 16px; }

.cta { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(120px, 14vw, 220px) 0; overflow: hidden; }
.tile { min-height: 380px; border-radius: var(--rad); }
.tile.main { grid-column: 3 / 11; background: linear-gradient(135deg, var(--night), var(--accent-dark)); color: #fff; padding: 40px clamp(24px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-content: center; justify-items: start; }
.tile.main > :not(.appicon) { grid-column: 1; }
.tile.main h2 { font-size: var(--step-sub); }
.tile.main p { margin-top: 20px; max-width: 46ch; }
.tile.main .soon { margin-top: 32px; color: var(--gold-soft); }
.tile.main .appicon { grid-column: 2; grid-row: 1 / 4; align-self: center; width: clamp(160px, 16vw, 240px); height: auto; border-radius: 22.37%; box-shadow: 0 12px 32px rgb(0 0 0 / .3); }

.foot { min-height: 72svh; display: grid; grid-template-rows: auto 1fr auto auto; color: var(--ink); padding: 40px var(--m) 20px; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); font-size: var(--step-small); }
.cols p { color: var(--ink-soft); max-width: 32ch; }
.cols p:first-child { color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.cols a { display: inline-block; min-width: 44px; padding: 12px 0; margin: -12px 0; text-underline-offset: 4px; }  /* 44px tap height without moving the text */
.cols a:hover { color: var(--accent); }
.bigmark { grid-row: 3; font-size: calc((100vw - 2 * var(--m)) / 4.4); line-height: 1; margin-bottom: 28px; }
.legal { grid-row: 4; display: flex; align-items: center; gap: 16px; font-size: var(--step-small); color: var(--ink-soft); }
.gkr { height: 28px; width: auto; color: var(--ink); flex: none; }

/* Entrances for the quiet sections: visible without script; .js arms them */
.js .reveal > *, .js article.reveal, .js figure.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in > *, .js article.reveal.in, .js figure.reveal.in { opacity: 1; transform: none; }
.js .reveal.in > *:nth-child(2) { transition-delay: 80ms; }
.js .reveal.in > *:nth-child(n+3) { transition-delay: 160ms; }
.js h2.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js h2.reveal.in { opacity: 1; transform: none; }
.js figure.reveal > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .js .reveal > *, .js article.reveal, .js figure.reveal, .js h2.reveal { opacity: 1; transform: none; }
  .sky .tint, .blob, .drift { will-change: auto; }
}

@media (max-width: 1024px) {
  .route-text { grid-column: 1 / 7; }
  .slip { grid-column: 7 / 13; }
  .try { grid-template-columns: 1fr; }
}

/* Phone: each scene stacks text above its picture */
@media (max-width: 760px) {
  .drift i:nth-child(even) { display: none; }
  .s-hero .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; text-align: center; gap: 12px; padding: 72px 16px 24px; }
  .hero-copy h1 { font-size: clamp(3.5rem, 19vw, 6rem); }
  .slogan { margin: 12px auto 16px; font-size: 1.375rem; }
  .hero-art { margin-right: 0; align-self: center; }
  .daycard { --w: min(88vw, 400px); text-align: left; }
  .stage { padding: 72px 16px 16px; }
  .s-say .stage { gap: 16px; }
  .say-line { font-size: min(11vw, 9svh); }
  .say-copy { grid-template-columns: 1fr; }
  .say-copy h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .say-copy .lead { font-size: 1.0625rem; }

  .try-copy h2 { font-size: 2rem; }
  .try-copy p { margin-top: 16px; font-size: 1.0625rem; }
  .try { padding: 120px 16px 96px; gap: 72px; }
  .cols3 { padding: 8px; gap: 6px; border-radius: 22px; }
  .col { padding: 6px; min-height: 240px; }
  .card { padding: 8px; }
  .card b { font-size: .8125rem; }
  .card span { font-size: .75rem; }
  .js .try-btn { width: 100%; }

  .pair { grid-template-columns: 1fr; padding: 96px 16px; }
  .pair figure { min-height: 0; }

  .route { grid-template-columns: 1fr; gap: 40px; padding: 48px 16px 0; }
  .route-text, .slip { grid-column: 1; }
  .slip { padding: 28px 20px 56px; }
  .row.total { margin: 28px -20px 0; padding: 12px 20px; }

  .cta { grid-template-columns: 1fr 1fr; padding-left: 16px; padding-right: 16px; }
  .tile.main { grid-column: 1 / 3; padding: 32px 20px; grid-template-columns: 1fr; }
  .tile.main .appicon { display: none; }

  .cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .legal { flex-wrap: wrap; }
}

/* ---------- Legal pages (gizlilik.html, kosullar.html, destek.html): one readable column ---------- */
.legal-page { max-width: 46rem; margin: 0 auto; padding: clamp(24px, 4vw, 40px) var(--m) 80px; }
.home { display: inline-block; font-size: 2rem; text-decoration: none; padding: 8px 0; }
.doc { margin-top: 40px; }
.doc h1 { font-size: var(--step-sub); }
.doc .updated { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); }
.doc h2 { font-size: var(--step-lead); letter-spacing: -0.01em; margin-top: 48px; }
.doc h3 { font-size: var(--step-body); font-weight: 700; letter-spacing: 0; margin-top: 28px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 1.25em; }
.doc ol { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc a, .doc-foot a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ph { padding: 0 4px; border-radius: 4px; background: rgb(201 162 75 / .3); }
.doc-foot { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--step-small); color: var(--ink-soft); }
.doc-foot p + p { margin-top: 8px; }
.doc-foot a { display: inline-block; padding: 10px 0; margin: -10px 0; }

/* ---------- Invite page (join/): one card in the middle ---------- */
[hidden] { display: none !important; }
.join { min-height: 100svh; display: grid; place-items: center; padding: 88px 16px 32px; }
.join-card { width: min(100%, 420px); display: grid; justify-items: center; gap: 14px; padding: 32px 24px; border-radius: var(--rad); background: var(--paper); box-shadow: var(--soft); text-align: center; }
.join-icon { width: 84px; height: 84px; border-radius: 22.37%; }
.join-card h1 { font-size: 2.5rem; }
.join-card p { color: var(--ink-soft); max-width: 30ch; }
.join-code { width: 100%; padding: 16px; border-radius: 16px; background: var(--desk); color: var(--ink) !important; max-width: none !important; font: 700 2rem/1 ui-monospace, Menlo, monospace; letter-spacing: .2em; }
.join-card .btn { width: 100%; }
.join-store { background: var(--ink); }
.join-hint { font-size: var(--step-small); }
