/* koishi.ahmetkamer.dev. Colours follow the app's titanium theme (ios/Sirdas/UI/Theme.swift). */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/HankenGrotesk.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f1f2f6;
  --paper-deep: #e8eaf1;
  --surface: #fcfcfd;
  --ink: #212633;
  --ink-2: #5c6373;
  --metal: #5e6990;
  --metal-ink: #4b5577;
  --line: rgba(94, 105, 140, .16);
  --shadow: 0 1px 2px rgba(33, 38, 51, .05), 0 12px 32px -12px rgba(33, 38, 51, .18);
  --shadow-lg: 0 2px 6px rgba(33, 38, 51, .05), 0 40px 80px -30px rgba(33, 38, 51, .35);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mood: var(--paper);
  --radius: 28px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111216;
    --paper-deep: #17181e;
    --surface: #1b1d24;
    --ink: #f2f5fa;
    --ink-2: #b2bacb;
    --metal: #b8bfde;
    --metal-ink: #cfd5ee;
    --line: rgba(184, 191, 222, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; color: var(--metal); }
:focus-visible { outline: 3px solid var(--metal); outline-offset: 3px; border-radius: 8px; }
.nowrap { white-space: nowrap; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* Store buttons: one pair is shown, chosen by <html data-store>. */
html[data-store="soon"] .store-live, html[data-store="live"] .store-soon { display: none !important; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 16px; border-radius: 16px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; line-height: 1.05; font-weight: 650; font-size: 21px; letter-spacing: -.01em;
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), box-shadow .25s;
}
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .01em; opacity: .75; margin-bottom: 3px; }
a.store:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-soon { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 34px; }
.cta.center { justify-content: center; }
.cta-note { color: var(--ink-2); font-size: 15px; font-weight: 500; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(20px, calc((100% - 1180px) / 2));
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 15px; font-weight: 550; color: var(--ink-2); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.nav-cta { font-size: 15px; font-weight: 650; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; white-space: nowrap; }
span.nav-cta { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px 0 90px; overflow: hidden; isolation: isolate; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--paper));
}
.hero-inner { width: min(1180px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; inset: -18% -12% -18% -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--paper) 55%, transparent);
}
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 22px; }
.eyebrow i { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
h1 { font-size: clamp(48px, 7.2vw, 104px); letter-spacing: -.045em; line-height: .96; font-weight: 720; }
h1 em { letter-spacing: -.035em; }
.lede { margin-top: 26px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 31em; line-height: 1.5; }

.hero-stage { position: relative; display: grid; justify-items: center; gap: 4px; }
.drift { position: absolute; z-index: 1; pointer-events: none; animation: drift 9s ease-in-out infinite; }
.drift-1 { width: 66px; left: 4%; top: 6%; rotate: -10deg; }
.drift-2 { width: 54px; right: 2%; top: 30%; rotate: 8deg; animation-duration: 11s; animation-delay: -3s; }
.drift-3 { width: 46px; left: 9%; top: 50%; rotate: -4deg; animation-duration: 10s; animation-delay: -6s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(6px, -12px); } 66% { transform: translate(-5px, -4px); } }
.bubble {
  position: relative; margin: 6px 0 0; min-height: 76px; width: min(390px, 100%);
  display: grid; place-items: center; padding: 18px 24px;
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow);
  text-align: center;
}
.bubble::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 20px; height: 20px; translate: -50% 0; rotate: 45deg;
  background: var(--surface); border-radius: 4px 0 0 0;
}
.bubble blockquote { margin: 0; font-size: 21px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.bubble blockquote .w { opacity: 0; filter: blur(4px); transition: opacity .35s, filter .35s; }
.bubble blockquote .w.on { opacity: 1; filter: none; }
.typing { display: none; gap: 5px; }
.bubble.is-typing .typing { display: inline-flex; }
.bubble.is-typing blockquote { display: none; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); opacity: .35; animation: typing 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; translate: 0 0; } 30% { opacity: .8; translate: 0 -4px; } }
.ai-note { margin-top: 10px; font-size: 13px; color: var(--ink-2); opacity: .85; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 40px; border: 1.5px solid var(--line); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; translate: -50% 0; border-radius: 2px; background: var(--ink-2); animation: hint 2s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* The companion: pieces from mascot.css inside a unit square. */
.mascot { position: relative; aspect-ratio: 1; isolation: isolate; }
.mascot-hero { width: min(430px, 82vw); margin-bottom: -40px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mascot-small { width: 150px; margin: -18px auto -24px; }
.mascot-final { width: 220px; margin: 0 auto -18px; }
.mascot-fallback { width: 100%; height: 100%; object-fit: contain; }
.mascot.is-built .mascot-fallback { display: none; }
.m-float, .m-react { position: absolute; inset: 0; }
.m-float { animation: float 6.5s ease-in-out infinite; }
.mascot::after {
  content: ""; position: absolute; left: 30%; right: 30%; bottom: 5%; height: 6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(33, 38, 51, .2), transparent); animation: shadow 6.5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.2%); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .7; } }
.m-piece {
  position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none;
  translate: var(--px, 0) var(--py, 0); rotate: var(--pr, 0deg);
}
.m-eye { transform-origin: 50% 50%; scale: 1 var(--open, 1); transition: scale .07s ease-in; }
.mascot.is-gathering .m-piece { transition: translate .95s cubic-bezier(.2, 1.25, .35, 1), rotate .95s cubic-bezier(.2, 1.25, .35, 1), opacity .5s ease-out; transition-delay: var(--delay, 0s); }
.mascot.is-scattered .m-piece { opacity: 0; }
.mascot.is-poked .m-piece:not(.m-eye) { animation: poke .7s cubic-bezier(.3, 1.6, .4, 1); }
@keyframes poke { 0%, 100% { transform: none; } 35% { transform: translate(var(--ox), var(--oy)) rotate(var(--or)); } }

/* Reactions to stones, after the app's expression clips. */
.mascot[data-react="joy"] .m-react { animation: hop .9s cubic-bezier(.3, 1.5, .5, 1) 2; }
.mascot[data-react="lean"] .m-react { animation: lean 1.6s ease-in-out; }
.mascot[data-react="breathe"] .m-react { animation: breathe 2.6s ease-in-out; }
.mascot[data-react="tilt"] .m-react { animation: tilt 1.8s ease-in-out; }
.mascot[data-react="sink"] .m-react { animation: sink 2.4s ease-in-out; }
.mascot[data-react="shiver"] .m-react { animation: shiver .5s linear 3; }
@keyframes hop { 0%, 100% { transform: none; } 20% { transform: translateY(2%) scale(1.04, .95); } 50% { transform: translateY(-9%) scale(.97, 1.04); } 80% { transform: translateY(1%) scale(1.03, .97); } }
@keyframes lean { 0%, 100% { transform: none; } 40%, 70% { transform: rotate(-5deg) scale(1.06); } }
@keyframes breathe { 0%, 100% { transform: none; } 45% { transform: scale(1.06); } }
@keyframes tilt { 0%, 100% { transform: none; } 25%, 70% { transform: rotate(9deg); } }
@keyframes sink { 0%, 100% { transform: none; } 30%, 75% { transform: translateY(5%) scale(1.02, .95); } }
@keyframes shiver { 0%, 100% { transform: none; } 20% { transform: translateX(-1.4%) rotate(-1deg); } 40% { transform: translateX(1.4%) rotate(1deg); } 60% { transform: translateX(-1%); } 80% { transform: translateX(1%); } }

/* Sections */
section { position: relative; }
.stones, .how, .features, .privacy, .honest, .plans, .faq, .final { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.section-head h2 { font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -.04em; line-height: 1; }
.section-head > p:not(.kicker) { margin-top: 20px; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--metal); margin-bottom: 18px; }
.text-link { display: inline-block; margin-top: 22px; font-weight: 650; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: var(--line); }
.text-link:hover { text-decoration-color: currentColor; }

/* Stones */
.stones { background: var(--mood); transition: background-color 1.2s ease; }
.stones-play { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.chat-card {
  position: relative; background: var(--paper); border-radius: 34px; padding: 28px 22px 18px;
  box-shadow: var(--shadow-lg); height: 500px; display: flex; flex-direction: column; overflow: hidden;
  background-image: radial-gradient(var(--line) 1.1px, transparent 1.3px); background-size: 14px 14px;
}
.chat-top { position: relative; }
.emoji-pop { position: absolute; left: 62%; top: 4px; font-size: 34px; opacity: 0; pointer-events: none; }
.emoji-pop.on { animation: pop 1.8s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { 0% { opacity: 0; transform: translateY(16px) scale(.4); } 18% { opacity: 1; transform: translateY(0) scale(1.15); } 30% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
.chat-log { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; flex: 1; min-height: 0; overflow: hidden; padding-top: 16px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 20px; font-size: 16px; line-height: 1.4; animation: msg .45s cubic-bezier(.2, 1.2, .4, 1) both; }
.msg-ai { align-self: flex-start; background: var(--surface); box-shadow: 0 1px 2px rgba(33, 38, 51, .06); border-bottom-left-radius: 6px; }
.msg-me { align-self: flex-end; background: none; padding: 0; }
.msg-me img { width: 64px; height: 64px; }
.msg-typing { align-self: flex-start; background: var(--surface); padding: 14px 16px; border-radius: 20px; display: inline-flex; gap: 5px; }
@keyframes msg { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.chat-foot { margin-top: 16px; font-size: 12px; color: var(--ink-2); text-align: center; opacity: .8; }
.stone-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stone-grid button {
  display: grid; justify-items: center; gap: 4px; padding: 14px 4px 12px; border: 0; border-radius: 22px; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 70%, transparent); font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background .25s, transform .3s cubic-bezier(.2, 1.4, .4, 1), color .25s;
}
.stone-grid button img { width: 72px; height: 72px; transition: transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.stone-grid button:hover img { transform: translateY(-5px) rotate(-6deg) scale(1.06); }
.stone-grid button:active { transform: scale(.94); }
.stone-grid button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@media (min-width: 961px) {
  .stone-grid { gap: 14px; }
  .stone-grid button { padding: 22px 6px 16px; border-radius: 26px; font-size: 15px; }
  .stone-grid button img { width: 88px; height: 88px; }
}

/* How it works */
.how-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.device {
  width: min(330px, 78vw); aspect-ratio: 554 / 1200; padding: 10px; border-radius: 52px; background: #0d0e12;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3a3d48; position: relative;
}
.device video { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; background: #f1f2f6; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps button {
  position: relative; display: grid; gap: 6px; width: 100%; text-align: left; cursor: pointer;
  padding: 20px 22px 22px; border: 0; border-radius: 22px; background: transparent; overflow: hidden;
  transition: background .3s;
}
.steps b { font-size: 22px; letter-spacing: -.02em; color: var(--ink-2); transition: color .3s; }
.steps span { font-size: 17px; color: var(--ink-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s; }
.steps .bar { position: absolute; left: 22px; right: 22px; bottom: 10px; height: 2px; border-radius: 2px; background: var(--line); opacity: 0; }
.steps .bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--metal); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.steps li.is-active button { background: var(--surface); box-shadow: var(--shadow); }
.steps li.is-active b { color: var(--ink); }
.steps li.is-active span { max-height: 120px; opacity: 1; }
.steps li.is-active .bar { opacity: 1; }

/* Feature cards */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); overflow: hidden; }
.card h3 { font-size: 28px; letter-spacing: -.03em; }
.card p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.card-memory, .card-moods { grid-column: span 3; display: grid; grid-template-rows: auto 1fr; min-height: 560px; padding-bottom: 0; }
.card-memory { background: linear-gradient(160deg, #ece7fa, var(--surface) 70%); }
.card-moods { background: linear-gradient(160deg, #fbe5ea, var(--surface) 70%); }
.shot { position: relative; margin-top: 30px; height: 360px; }
.shot img { position: absolute; left: 50%; top: 0; width: 300px; translate: -50% 0; border-radius: 34px 34px 0 0; box-shadow: var(--shadow-lg); border: 7px solid #0d0e12; border-bottom: 0; }
.card-follow, .card-widget, .card-lang { grid-column: span 2; display: flex; flex-direction: column; }
.card-follow { background: linear-gradient(160deg, #e1f1e7, var(--surface) 75%); }
.card-widget { background: linear-gradient(160deg, #fff1d6, var(--surface) 75%); }
.card-lang { background: linear-gradient(160deg, #e2e9f8, var(--surface) 75%); }
.note-chip { margin-top: auto; padding: 16px 18px; border-radius: 18px; background: var(--paper); display: grid; gap: 4px; font-size: 15px; translate: 0 18px; box-shadow: var(--shadow); }
.note-chip span { color: var(--ink-2); font-size: 13px; }
.note-chip span::before { content: "◷ "; }
.card-follow, .card-widget { padding-bottom: 46px; }
.widget-tile { margin: 26px auto 0; width: 150px; aspect-ratio: 1; border-radius: 34px; display: grid; justify-items: center; align-content: center; gap: 4px; background: linear-gradient(150deg, #fff4d8, #f2dba6); box-shadow: var(--shadow-lg); color: #5a4a26; font-weight: 700; font-size: 14px; }
.widget-tile img { width: 86px; height: 86px; }
.langs { list-style: none; padding: 0; margin: auto 0 0; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.langs li { padding: 7px 13px; border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 600; }

@media (prefers-color-scheme: dark) {
  .card-memory, .card-moods, .card-follow, .card-widget, .card-lang { background: var(--surface); }
  .widget-tile { color: #5a4a26; }
}

/* Privacy */
.privacy { background: var(--paper-deep); }
.privacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.privacy .section-head { position: sticky; top: 110px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { background: var(--surface); border-radius: 22px; padding: 24px 26px; color: var(--ink-2); font-size: 17px; box-shadow: var(--shadow); }
.facts b { display: block; color: var(--ink); font-size: 20px; letter-spacing: -.02em; margin-bottom: 4px; }

/* Honest */
.is-isnt { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.is-isnt > div { border-radius: var(--radius); padding: 34px; background: var(--surface); box-shadow: var(--shadow); }
.is-isnt h3 { font-size: 26px; margin-bottom: 18px; }
.is-isnt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.is-isnt li { position: relative; padding-left: 34px; color: var(--ink-2); }
.is-isnt li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: #dff1e6 center / 12px no-repeat; }
.is li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%23357a55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.isnt li::before { background-color: #f6e1e1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3 3 9' fill='none' stroke='%23a04848' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.crisis { margin-top: 18px; padding: 22px 26px; border-radius: 22px; background: color-mix(in srgb, var(--metal) 10%, var(--surface)); color: var(--ink-2); font-size: 16px; }
.crisis b { color: var(--ink); }
.crisis a { font-weight: 600; }

/* Plans */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin: 0 auto; }
.plan { border-radius: var(--radius); padding: 38px; background: var(--surface); box-shadow: var(--shadow); }
.plan h3 { font-size: 18px; letter-spacing: .02em; color: var(--ink-2); font-weight: 650; }
.plan-big { margin: 14px 0 12px !important; font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; color: var(--ink); }
.plan p { color: var(--ink-2); }
.plan-plus { background: var(--ink); color: var(--paper); }
.plan-plus h3, .plan-plus p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.plan-plus .plan-big { color: var(--paper); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-size: 21px; font-weight: 650; letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); translate: 0 -75%; rotate: 45deg; transition: rotate .3s, translate .3s; }
.faq details[open] summary::after { rotate: 225deg; translate: 0 -25%; }
.faq details p { padding: 0 0 26px; color: var(--ink-2); max-width: 44em; }

/* Final */
.final { text-align: center; overflow: hidden; background: radial-gradient(60% 70% at 50% 100%, var(--paper-deep), var(--paper)); }
.final h2 { font-size: clamp(44px, 6.4vw, 88px); letter-spacing: -.045em; }
.final p { margin-top: 18px; font-size: 20px; color: var(--ink-2); }

.footer { padding: 46px 0 calc(46px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 14px 30px; align-items: center; }
.footer nav { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: 15px; }
.footer nav a:hover { color: var(--ink); }
.footer p { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { padding-top: 90px; align-items: start; }
  .hero-inner { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .hero-stage { order: -1; }
  .mascot-hero { width: min(300px, 70vw); margin-bottom: -30px; }
  .drift-1 { width: 48px; left: 2%; }
  .drift-2 { width: 40px; right: 0; top: 22%; }
  .drift-3 { width: 36px; left: 6%; top: 44%; }
  .hero-copy::before { inset: -10% -10%; }
  .hero-copy { margin-top: 22px; }
  .lede { margin-inline: auto; }
  .cta { justify-content: center; }
  .bubble blockquote { font-size: 18px; }
  .stones-play { grid-template-columns: 1fr; }
  .chat-card { height: 470px; max-width: 440px; margin: 0 auto; width: 100%; }
  .how-grid { grid-template-columns: 1fr; justify-items: center; }
  .how-grid > div:last-child { width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .card-memory, .card-moods, .card-follow, .card-widget, .card-lang { grid-column: auto; }
  .privacy-grid, .is-isnt, .plan-grid { grid-template-columns: 1fr; }
  .privacy .section-head { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .hero-inner { width: calc(100% - 32px); }
  .stone-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .stone-grid button { padding: 10px 0 8px; border-radius: 16px; font-size: 11px; }
  .stone-grid button img { width: 48px; height: 48px; }
  .card { padding: 26px; }
  .card-memory, .card-moods { min-height: 520px; }
  .shot img { width: 260px; }
  .steps b { font-size: 19px; }
  .store { font-size: 19px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
