/* NixStein — site.css
   One stylesheet for every page. Scripts: assets/js/googly.js (all pages), home.js + leaves.js (homepage), register.js (registration page).
   CSP: default-src 'self'; img-src 'self' data:  → no inline styles, no external resources.

   Fonts: currently system font stacks only. When local fonts are chosen
   (spec: e.g. Fraunces/Cormorant for headings, Inter for body), put the
   woff2 files in /assets/fonts/ and add @font-face rules here, e.g.:
   @font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2");
                font-display: swap; font-weight: 300 700; }
   then prepend the family name to --font-head / --font-body below. */

:root {
  --bg: #F6F4EF;        /* Kalk */
  --text: #2A2B2E;      /* Schiefer */
  --muted: #55565A;
  --stone: #8A8780;     /* Granit — lines, the rock */
  --sand: #D9CBB0;
  --sand-text: #2A2B2E;
  --sand-muted: #4A4B4F;
  --paper: #EFE6D3;
  --moss: #5E7A4F;
  --on-moss: #FFFFFF;
  --card: #FFFFFF;
  --alert: #B3261E;
  --gold: #C9A227;
  --founder-bg: rgba(255, 255, 255, 0.18);
  --warn-bg: #F4E4A1;
  --warn-text: #2A2B2E;
  --warn-label: #5C4A08;
  --warn-border: #A88A1E;
  --line: rgba(42, 43, 46, 0.18);
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "DejaVu Serif", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --gutter: 1rem;
  --measure: 40rem;
  color-scheme: light dark;
}

/* Japanese: system fonts with CJK coverage */
html[lang="ja"] {
  --font-head: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Noto Serif JP", "Source Han Serif JP", serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Noto Sans CJK JP", "Noto Sans JP", "Source Han Sans JP", sans-serif;
}
html[lang="ja"] body { line-height: 1.8; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1D1F;      /* Basalt */
    --text: #E8E6E1;
    --muted: #B4B1AA;
    --sand: #5B5242;
    --sand-text: #E8E6E1;
    --sand-muted: #D6D2C8;
    --paper: #2B2823;
    --moss: #86A374;
    --on-moss: #1C1D1F;
    --card: #2A2B2E;
    --alert: #E46A60;
    --line: rgba(232, 230, 225, 0.2);
    --founder-bg: rgba(0, 0, 0, 0.15);
    --warn-bg: #3F3717;
    --warn-text: #F1E9CC;
    --warn-label: #E9C95A;
    --warn-border: #C9A227;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--moss); color: var(--on-moss); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header / footer ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.brand img { width: 1.6rem; }
.site-nav { order: 3; flex-basis: 100%; font-size: 0.92rem; }
.brand { margin-right: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; }
.site-nav a { text-decoration: none; padding: 0.25rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }
/* Language switcher: a <details> dropdown, works without JavaScript */
.langs { order: 2; position: relative; font-size: 0.9rem; }
.langs summary { list-style: none; cursor: pointer; padding: 0.4rem 0.6rem; min-height: 44px; display: flex; align-items: center;
                 border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 20; list-style: none; margin: 0; padding: 0.35rem 0;
            min-width: 11rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.langs li a { display: block; padding: 0.55rem 1rem; text-decoration: none; }
.langs li a:hover { text-decoration: underline; }
.langs li a[aria-current] { font-weight: 700; }

.site-foot { border-top: 1px solid var(--line); margin-top: 0; padding: 2rem 0 3rem; font-size: 0.9rem; color: var(--muted); }
.site-foot ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-foot p { font-style: italic; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }

/* ① Hero */
.hero { position: relative; overflow: hidden; min-height: 92vh; min-height: 92svh; display: flex; align-items: center; text-align: center; padding: 3rem 0; }
.hero .wrap { width: 100%; }
.hero h1 { font-size: clamp(2.1rem, 10vw, 3.6rem); font-weight: 500; margin-bottom: 0; }
.answer {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 13vw, 4.6rem);
  font-weight: 700;
  margin: 2.5rem 0 1.5rem;
  /* Appears after 1.5 s. No fade — it is simply there. */
  animation: appear 0s linear 1.5s both;
}
@keyframes appear { from { visibility: hidden; } to { visibility: visible; } }
.hero-stone { width: min(78%, 20rem); margin: 0 auto 2rem; }
.tagline { font-size: 1.15rem; max-width: 22rem; margin: 0 auto 2rem; }

.button {
  display: inline-block; background: var(--moss); color: var(--on-moss);
  padding: 0.85rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 600;
  min-height: 44px;
}
.button:hover { text-decoration: underline; }

/* ② Problem */
.notes { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 0.6rem; }
.note {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.8rem 1rem 0.8rem 2.4rem; position: relative; font-size: 0.98rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.note::before { content: ""; position: absolute; left: 1rem; top: 1.25rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--alert); }
.note:nth-child(2) { margin-left: 0.75rem; margin-right: -0.25rem; }
.note:nth-child(3) { margin-left: 1.5rem; margin-right: -0.5rem; }
.void { min-height: 30vh; display: flex; align-items: flex-end; justify-content: center; }
.void p { font-size: 0.95rem; color: var(--muted); font-style: italic; text-align: center; margin: 0; }
.calling { margin-top: 3rem; border-left: 3px solid var(--stone); padding-left: 1rem; }
.calling p { margin-bottom: 0.4rem; }
.calling .note-plain { font-weight: 600; }

/* ③ Solution — stats */
.stats { list-style: none; padding: 1.25rem; margin: 2rem 0; border: 2px solid var(--stone); border-radius: 10px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace; font-size: 0.95rem; }
.stats li { display: grid; grid-template-columns: 6.5rem 1fr 3.2rem; align-items: center; gap: 0.6rem; padding: 0.35rem 0; }
.bar { height: 0.9rem; border: 1px solid var(--stone); border-radius: 2px; background: transparent; overflow: hidden; }
.bar span { display: block; height: 100%; }
.bar .full { width: 100%; background: var(--moss); }
.bar .none { width: 0; }
.stats .pct { text-align: right; }

/* ④ Manifest */
.manifest { padding: 2rem 0; }
.manifest p {
  font-family: var(--font-head); font-size: clamp(1.6rem, 7.5vw, 2.6rem); line-height: 1.25;
  min-height: 70vh; min-height: 70svh; display: flex; align-items: center; margin: 0;
}
.manifest p.close { min-height: 0; }
.manifest p { min-height: 0; display: block; margin: 0 0 2rem; }

/* ⑤ How it works */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 3.25rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.2rem;
  font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--muted);
  width: 2.4rem; text-align: center;
}
.steps strong { font-family: var(--font-head); font-size: 1.3rem; display: block; }
.trade-note { margin-top: 2rem; }

/* ⑥ Eyes — the only section with colour */
.eyes-section { background: var(--sand); color: var(--sand-text); border-top: 0; }
.section + .eyes-section, .eyes-section + .section { border-top: 0; }
.eyes-section .muted, .eyes-section .small { color: var(--sand-muted); }
.eyes-section h2 { margin-bottom: 0; }
.eyes-section .sub { font-family: var(--font-head); font-size: clamp(1.75rem, 7vw, 2.5rem); margin-bottom: 2rem; }

.eyecycle { position: relative; width: min(85%, 18rem); margin: 0 auto 2.5rem; }
.eyecycle img { width: 100%; }
.eyecycle .eye { position: absolute; inset: 0; opacity: 0; transform-origin: 50% 46.5%;
                  animation: eyecycle 16s steps(1, end) infinite, blink 5.5s ease-in-out infinite; }
.eyecycle .e1 { animation-delay: 0s, 1.5s; }
.eyecycle .e2 { animation-delay: 4s, 2.5s; }
.eyecycle .e3 { animation-delay: 8s, 3.5s; }
/* Sleepy eyes do not blink. The match is declared void. */
.eyecycle .e4 { animation: eyecycle 16s steps(1, end) 12s infinite; }
@keyframes eyecycle { 0% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }

.founder-box { border: 2px solid var(--gold); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 2rem; background: var(--founder-bg); }
.founder-box h3 { margin-bottom: 0.4rem; }

.products { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.5rem; }
.product { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.25rem 1rem; align-items: start; }
.product .thumb { grid-row: span 3; position: relative; width: 5.5rem; }
.product .thumb .eye { position: absolute; inset: 0; }
.product h3 { margin: 0.2rem 0 0; font-size: 1.15rem; }
.product .price { font-weight: 600; margin: 0; }
.product .desc { margin: 0; }
.disclaimer { font-style: italic; margin: 0.15rem 0 0; font-size: 0.92rem; }
.eyes-section a { color: var(--sand-text); }

/* ⑦ Care guide leaflet */
.leaflet {
  background: var(--paper); border: 1px solid var(--line); padding: 1.5rem 1.25rem;
  font-size: 0.92rem; position: relative;
  background-image: linear-gradient(90deg, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) 50%, transparent 50%);
  background-size: 100% 100%;
}
@media (max-width: 40rem) { .leaflet { background-image: none; } }
.leaflet h3 { font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; margin-top: 1rem; }
.leaflet .leaflet-title { font-family: var(--font-head); font-size: 1.25rem; text-align: center; margin-bottom: 1rem; }
.more { margin-top: 1.5rem; }

/* ⑧ Voices */
.voices { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2.25rem; }
.voices figure { margin: 0; }
.voices blockquote { margin: 0; font-family: var(--font-head); font-size: 2rem; line-height: 1.2; }
.voices figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

/* ⑨ Stone Republic ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--text); border-bottom: 1px solid var(--text); margin: 2rem 0 1rem; padding: 0.6rem 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace; font-size: 0.95rem; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker-track span { white-space: nowrap; padding-right: 2rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ⑩ History */
.sepia { width: min(60%, 14rem); margin: 0 auto 1.5rem; filter: sepia(0.75) contrast(0.92); border: 6px solid #FBF8F1; box-shadow: 0 2px 10px rgba(0,0,0,0.12); background: #EDE6D8; padding: 0.5rem; }
.history blockquote { margin: 0 0 1.5rem; font-family: var(--font-head); font-size: clamp(1.35rem, 6vw, 1.9rem); line-height: 1.3; }

/* ⑪ FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 0.9rem 0; font-weight: 600; list-style-position: inside; min-height: 44px; }
.faq details p { margin: 0 0 1rem; }

/* ⑫ Download */
.download { text-align: center; }
.download .soon { font-family: var(--font-head); font-size: clamp(1.6rem, 7vw, 2.3rem); line-height: 1.25; }
.prices { text-align: left; border-collapse: collapse; width: 100%; margin: 2rem 0 1rem; font-size: 0.95rem; }
.prices th, .prices td { border-bottom: 1px solid var(--line); padding: 0.55rem 0.25rem; vertical-align: top; }
.prices th { font-weight: 500; }
.prices td { text-align: right; white-space: nowrap; font-weight: 600; }
.prices caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; }

/* Er lebt */
.plain-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
.plain-list li { padding-left: 1.5rem; position: relative; }
.plain-list li::before { content: "·"; position: absolute; left: 0.4rem; top: -0.1rem; font-weight: 700; color: var(--muted); }
.alive-close { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.35; }

/* Diary */
.diary-card { margin: 2rem 0; padding: 1.1rem 1.25rem; background: var(--paper); border-left: 3px solid var(--stone); }
.diary-card figcaption { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.diary-card p { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; margin: 0; }

/* Stoneradar — the blips never move, the beam does */
.radar { position: relative; width: min(80%, 17rem); margin: 2rem auto; }
.radar img { width: 100%; }
.radar-beam { position: absolute; inset: 0; animation: sweep 6s linear infinite; }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.radar-city { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.3; }

/* The pile — the rocks lie still, a few eyes blink */
.pile { position: relative; width: min(100%, 24rem); margin: 2rem auto; }
.pile img { width: 100%; }
.pile .lids { position: absolute; inset: 0; opacity: 0; animation: lids 4.7s steps(1, end) infinite; }
.pile .lids-b { animation-duration: 6.3s; animation-delay: 1.9s; }
@keyframes lids { 0% { opacity: 0; } 94% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 0; } }
.dialog-card { margin: 2rem 0; padding: 1.1rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.dialog-card figcaption { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.dialog-card p { margin: 0; }

/* Warning boxes (owner's manual) */
.warn { background: var(--warn-bg); color: var(--warn-text); border: 2px solid var(--warn-border); border-radius: 6px; padding: 0.85rem 1rem; margin: 0 0 1rem; }
.warn p { margin: 0 0 0.35rem; }
.warn p:last-child { margin: 0; }
.warn-label { color: var(--warn-label); font-weight: 800; letter-spacing: 0.08em; font-size: 0.85rem; }
.warn-head { font-weight: 700; }

/* Troubleshooting table */
.trouble { width: 100%; border-collapse: collapse; margin: 1.5rem 0 0.5rem; font-size: 0.92rem; }
.trouble th, .trouble td { text-align: left; vertical-align: top; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); }
.trouble thead th { border-bottom: 2px solid var(--text); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.trouble tbody th { font-weight: 600; }
@media (max-width: 34rem) {
  .trouble thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .trouble, .trouble tbody, .trouble tr, .trouble th, .trouble td { display: block; width: 100%; }
  .trouble tr { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
  .trouble th, .trouble td { border: 0; padding: 0.1rem 0; }
  .trouble [data-label]::before { content: attr(data-label) ": "; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
  .trouble tbody th[data-label]::before { content: ""; }
}

/* Owner's manual page */
.manual { max-width: 38rem; }
.manual .intro { font-family: var(--font-head); font-size: 1.2rem; }
.toc ol { padding-left: 1.4rem; margin: 1.5rem 0 2rem; columns: 2 12rem; column-gap: 1.5rem; font-size: 0.95rem; }
.toc li { margin-bottom: 0.25rem; break-inside: avoid; }
.msec { padding-top: 1rem; }
.msec h2 { font-size: 1.3rem; border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; margin-top: 1.5rem; }
.msec .num { color: var(--muted); }
.pairs dt { font-weight: 700; margin-top: 0.75rem; }
.pairs dd { margin: 0.1rem 0 0; }
.boxlist { padding-left: 1.2rem; }
.boxlist li { margin-bottom: 0.3rem; }
.specs { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.specs th, .specs td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 0.5rem 0.25rem; }
.specs th { font-weight: 600; width: 42%; hyphens: auto; overflow-wrap: anywhere; }

/* ---------- Subpages ---------- */
.page { padding: 3rem 0 1rem; }
.page h1 { font-size: clamp(2rem, 9vw, 3rem); }
.lead { font-size: 1.15rem; }
.catalog { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 2rem; }
@media (min-width: 34rem) { .catalog { grid-template-columns: 1fr 1fr; } }
.catalog li { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: var(--card); }
.catalog .pic { position: relative; margin-bottom: 0.75rem; }
.catalog .pic .eye { position: absolute; inset: 0; }
.catalog h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.catalog .price { font-weight: 600; margin-bottom: 0.25rem; }
.catalog .founder { border-color: var(--gold); border-width: 2px; }

.guide { max-width: 36rem; }
.guide h2 { font-size: 1.3rem; margin-top: 2rem; }
.guide .intro { font-family: var(--font-head); font-size: 1.25rem; }
.guide-stone { width: 8rem; margin: 0 auto 1rem; }
.printhint { border: 1px dashed var(--stone); padding: 0.75rem 1rem; font-size: 0.9rem; }

.placeholder { border: 2px dashed var(--alert); padding: 1rem 1.1rem; border-radius: 8px; font-weight: 600; }

/* Root language choice */
.choice { min-height: 80vh; min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.5rem; padding: 2rem var(--gutter); }
.choice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; width: min(100%, 24rem); text-align: left; }
.choice-list a { display: block; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--card); }
.choice-list a:hover .choice-name { text-decoration: underline; }
.choice-name { display: block; font-weight: 700; }
.choice-line { display: block; font-size: 0.9rem; color: var(--muted); }
.choice .stone { width: 10rem; }

/* ---------- Homepage (redesign 2026-10-15): hero, contrast, cards, prices, voices, CTA ---------- */
.wrap.wide { max-width: 72rem; }
.section p, .page p, .plain-list li { max-width: 60ch; }
.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { text-align: center; font-size: clamp(1.7rem, 6.5vw, 2.4rem); margin: 0 auto 2.25rem; max-width: 34ch; }
.site-head .wrap, .site-foot .wrap { max-width: 72rem; }
[id] { scroll-margin-top: 1rem; }

/* Hero: anchor, rock with eyes, CTA (+ QR on wide screens) */
.hero { min-height: 0; display: block; text-align: center; padding: 2rem 0 4rem; }
.hero-grid { display: grid; grid-template-areas: "head" "art" "body"; align-items: center; }
.hero-head { grid-area: head; }
.hero-art { grid-area: art; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.hero-body { grid-area: body; }
.hero .answer { margin: 0.75rem 0 1rem; }
.rock { position: relative; width: min(64%, 18rem); margin: 0 auto; }
.rock img { width: 100%; }
.rock .eye { position: absolute; inset: 0; transform-origin: 50% 46.7%; }
.hero .tagline { margin: 1.25rem auto 1.5rem; max-width: 24rem; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.button-lg { font-size: 1.12rem; padding: 0.95rem 2.25rem; box-shadow: 0 6px 18px rgba(46, 62, 38, 0.22); }
.cta-meta { font-size: 0.88rem; color: var(--muted); margin: 0.85rem 0 0; }
.cta-ios { font-size: 0.8rem; color: var(--muted); margin: 0; }
.qr { display: none; margin: 0; text-align: center; }
.qr img { width: 148px; height: 148px; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.qr figcaption { font-size: 0.8rem; color: var(--muted); margin: 0.5rem auto 0; max-width: 13rem; }

/* Feature cards */
.cards { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.card { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; padding: 1.1rem 1rem 1.2rem; border: 1px solid var(--line);
        border-radius: 16px; background: var(--card); color: inherit; text-decoration: none;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.04); }
.card:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.09); }
.card:hover h3 { text-decoration: underline; }
.card h3 { font-size: 1.08rem; margin: 0.5rem 0 0; }
.card p { font-size: 0.88rem; line-height: 1.45; color: var(--muted); margin: 0; }
.card-icon { width: 3rem; height: 3rem; }
.card-icon-wide { width: 4rem; height: 3rem; object-fit: contain; object-position: left center; }
.card-icon-stone { position: relative; width: 4rem; height: 3rem; }
.card-icon-stone img { width: 100%; }
.card-icon-stone .eye { position: absolute; inset: 0; }

/* Voices (homepage) */
.section .voices { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; text-align: center; margin-top: 1.5rem; }
.section .voices blockquote { font-size: 1.6rem; }

/* Closing call to action */
.end-cta { background: var(--paper); }
.end-grid { display: grid; gap: 2rem; justify-items: center; text-align: center; }
.end-cta h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
.end-cta p { margin-left: auto; margin-right: auto; }
.end-answer { display: block; font-weight: 700; margin-top: 0.3rem; }

/* Features & FAQ pages */
.page-head { padding-bottom: 0; }
.faq-cta { margin: 3rem 0 1rem; }
.page { padding-bottom: 3rem; }
.page.page-head { padding-bottom: 0; }
.page-head + .section { border-top: 0; padding-top: 2.5rem; }

@media (min-width: 900px) {
  .section { padding: 6rem 0; }
  .hero { padding: 5rem 0 6rem; text-align: left; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; grid-template-areas: "head art" "body art"; column-gap: 4rem; }
  .hero-head { align-self: end; }
  .hero-body { align-self: start; }
  .hero h1 { font-size: 3.6rem; }
  .hero .tagline { margin-left: 0; }
  .hero .cta { align-items: flex-start; }
  .rock { width: 100%; max-width: 22rem; }
  .qr { display: block; }
  .cards { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .section .voices { grid-template-columns: repeat(4, 1fr); }
  .end-grid { grid-template-columns: 1fr auto; justify-items: start; text-align: left; align-items: center; column-gap: 4rem; }
  .end-cta p { margin-left: 0; }
  .end-cta .cta { align-items: flex-start; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 48rem) {
  .site-nav { order: 2; flex-basis: auto; margin-left: auto; }
  .brand { margin-right: 0; }
  .langs { order: 3; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding-left: 0; padding-top: 2.75rem; }
  .steps li::before { top: 0; text-align: left; }
  .products { grid-template-columns: 1fr 1fr; }
  .voices { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion: everything settles ---------- */
@media (prefers-reduced-motion: reduce) {
  .answer { animation: none; visibility: visible; }
  .eyecycle .eye { animation: none; opacity: 0; }
  .eyecycle .e1 { opacity: 1; }
  .radar-beam { animation: none; }
  .pile .lids { animation: none; opacity: 0; }
  .ticker-track { animation: none; width: auto; display: block; }
  .ticker-track span { white-space: normal; display: block; padding: 0 var(--gutter); }
  .ticker-track span[aria-hidden="true"] { display: none; }
}

/* ---------- Print (care guide as gift insert, A5) ---------- */
@media print {
  @page { size: A5; margin: 14mm 12mm; }
  :root { --bg: #fff; --text: #000; --muted: #333; --line: #999; --paper: #fff; --card: #fff; }
  body { background: #fff; color: #000; font-size: 10pt; line-height: 1.45; }
  .site-head, .site-foot, .skip, .noprint, .printhint, .langs { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .page { padding: 0; }
  a { text-decoration: none; }
  h1 { font-size: 18pt; }
  .guide h2 { font-size: 11.5pt; margin-top: 10pt; break-after: avoid; }
  .guide section { break-inside: avoid; }
  .guide-stone { width: 30mm; filter: grayscale(1); }
  .leaf-zone, .toc, .cta, .qr { display: none !important; }
  .manual .intro { font-size: 11pt; }
  .msec { break-inside: auto; }
  .msec h2 { font-size: 11.5pt; margin-top: 10pt; break-after: avoid; }
  .warn { background: #fff; color: #000; border: 1.5pt solid #000; break-inside: avoid; }
  .warn-label { color: #000; }
  .trouble tr, .specs tr, .pairs dd { break-inside: avoid; }
  .trouble, .specs { font-size: 9pt; }
  .guide .intro { font-size: 11pt; }
}

/* ---------- Call to action in the navigation ---------- */
.site-nav a.nav-cta { font-weight: 600; color: var(--moss); text-decoration: underline; text-decoration-thickness: 2px; }
.cta-direct { font-size: 0.85rem; margin: 0.6rem 0 0; }
.cta-direct a { color: var(--muted); }

/* ---------- Registration page (assets/js/register.js) ---------- */
.register [hidden] { display: none !important; }
.register .lead { margin-bottom: 2rem; }
.reg-form { max-width: 30rem; }
.field { margin: 0 0 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field input[type="text"], .field input[type="email"], .field input[type="date"] {
  display: block; width: 100%; min-height: 48px; padding: 0.6rem 0.8rem;
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--stone); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
.field input[type="date"] { -webkit-appearance: auto; appearance: auto; }
.field input:focus-visible { outline: 3px solid var(--moss); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--alert); border-width: 2px; }
.field .hint { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 0; }
.field-error { font-size: 0.9rem; color: var(--alert); font-weight: 600; margin: 0.35rem 0 0; }
.field-error a { color: inherit; }
.field-check { display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start; }
.field-check input { width: 24px; height: 24px; margin: 0.15rem 0 0; accent-color: var(--moss); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .hint, .field-check .field-error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--alert); font-weight: 600; margin: 0 0 1rem; }
.form-error:empty { display: none; }
.reg-form .cta, .reg-done .cta { align-items: flex-start; margin-top: 0.5rem; }
.reg-form button { border: 0; cursor: pointer; font-family: inherit; }
.reg-form button:disabled { opacity: 0.6; cursor: progress; }
.reg-nojs { border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; background: var(--card); }
.reg-done h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.reg-done h2:focus { outline: none; }
.reg-done-grid { display: grid; gap: 2rem; margin: 1.5rem 0; align-items: center; }
.reg-login { margin-top: 1.25rem; }
@media (min-width: 900px) {
  .reg-done-grid { grid-template-columns: 1fr auto; column-gap: 3rem; }
}

/* ---------- Homepage: two lock screens (notifications pile up via assets/js/home.js) ---------- */
.phones { display: grid; gap: 2.75rem; justify-items: center; }
.phone { margin: 0; width: min(100%, 19rem); display: flex; flex-direction: column; }
.phone-label { text-align: center; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.phone-frame { flex: 1; position: relative; background: #111214; border-radius: 2.7rem; padding: 0.55rem;
               box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 22px 44px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0, 0, 0, 0.14); }
.phone-screen { position: relative; height: 100%; min-height: 32rem; border-radius: 2.2rem; overflow: hidden;
                padding: 2.4rem 0.65rem 0.9rem; display: flex; flex-direction: column; }
.phone-screen::before { content: ""; position: absolute; top: 0.6rem; left: 50%; width: 5.4rem; height: 1.45rem; transform: translateX(-50%);
                        background: #111214; border-radius: 999px; }
.phone-clock { font-family: var(--font-body); font-weight: 300; font-size: 3.7rem; line-height: 1; letter-spacing: -0.02em; text-align: center;
               margin: 0.6rem auto 1.4rem; font-variant-numeric: tabular-nums; }
.phone-busy .phone-screen { color: #FFFFFF;
  background: radial-gradient(circle at 15% 8%, #FF8A5B 0, rgba(255, 138, 91, 0) 45%),
              radial-gradient(circle at 90% 35%, #E0457B 0, rgba(224, 69, 123, 0) 50%),
              linear-gradient(165deg, #5B2A86 0%, #2B1F5C 58%, #141833 100%); }
.phone-calm .phone-screen { color: #2A2B2E; background: linear-gradient(180deg, #F4F0E7 0%, #E6DFD0 100%); }
.lock-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.ln { display: grid; grid-template-columns: 2.1rem 1fr; gap: 0.6rem; align-items: start; padding: 0.6rem 0.7rem; border-radius: 1.05rem;
      background: rgba(255, 255, 255, 0.9); color: #1D1D1F; font-size: 0.8rem; line-height: 1.3; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.ln-icon { width: 2.1rem; height: 2.1rem; border-radius: 0.6rem; display: grid; place-items: center; color: #FFFFFF; font-weight: 800; font-size: 1rem; line-height: 1; }
.ln-sale { background: #D93036; }
.ln-chat { background: #1F8A55; }
.ln-heart { background: #D6336C; }
.ln-parcel { background: #B45309; }
.ln-social { background: #3E63DD; }
.ln-bell { background: #8E4EC6; }
.ln-body { min-width: 0; }
.ln-head { display: flex; justify-content: space-between; gap: 0.5rem; }
.ln-app { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-time { color: #55565A; font-size: 0.72rem; white-space: nowrap; }
.ln-text { display: block; }
.phone-calm .lock-notes { margin-top: auto; }
.phone-screen .rock { width: 62%; max-width: none; margin: auto; }
.ln-quiet { background: rgba(42, 43, 46, 0.07); color: #4A4B4F; box-shadow: none; }
.ln-quiet .ln-time { color: #55565A; }
.ln-stone { background: rgba(42, 43, 46, 0.1); }
.ln-stone img { width: 1.3rem; height: auto; }
.phone-count { text-align: center; margin: 1rem auto 0; font-weight: 700; font-size: 1.05rem; }
.phone-busy .phone-count { color: var(--alert); }
.phone-calm .phone-count { color: var(--moss); }
@media (prefers-color-scheme: dark) {
  .phone-frame { background: #050506; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 22px 44px rgba(0, 0, 0, 0.5); }
  .phone-screen::before { background: #050506; }
  .phone-calm .phone-screen { color: #E8E6E1; background: linear-gradient(180deg, #2B2925 0%, #201F1C 100%); }
  .ln-quiet { background: rgba(255, 255, 255, 0.08); color: #D6D2C8; }
  .ln-quiet .ln-time { color: #B4B1AA; }
  .ln-stone { background: rgba(255, 255, 255, 0.1); }
}
@media (prefers-reduced-motion: no-preference) {
  .phone-busy.is-armed .ln { opacity: 0; transform: translateY(0.9rem) scale(0.94);
                             transition: opacity 0.3s ease-out, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
  .phone-busy.is-live .ln { opacity: 1; transform: none; }
  .phone-busy.is-live .ln:nth-child(6) { transition-delay: 0.2s; }
  .phone-busy.is-live .ln:nth-child(5) { transition-delay: 0.75s; }
  .phone-busy.is-live .ln:nth-child(4) { transition-delay: 1.3s; }
  .phone-busy.is-live .ln:nth-child(3) { transition-delay: 1.85s; }
  .phone-busy.is-live .ln:nth-child(2) { transition-delay: 2.4s; }
  .phone-busy.is-live .ln:nth-child(1) { transition-delay: 2.95s; }
  .phone-busy.is-armed .phone-count { opacity: 0; transition: opacity 0.4s ease-out 3.5s; }
  .phone-busy.is-live .phone-count { opacity: 1; }
  .phone-busy.is-live .phone-frame { animation: buzz 0.55s linear 0.2s 6; }
  @keyframes buzz { 0%, 30%, 100% { transform: none; } 8% { transform: translateX(-3px) rotate(-0.6deg); }
                    16% { transform: translateX(3px) rotate(0.6deg); } 24% { transform: translateX(-2px); } }
}

/* ---------- Homepage: benefits + stats card ---------- */
.benefits-grid { display: grid; gap: 1.75rem; max-width: 62rem; margin: 0 auto; }
.stats-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.25rem 1rem;
              box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05); }
.stats-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.stats-card .stats { margin: 0.6rem 0 0.75rem; padding: 0; border: 0; }
.stats-note { font-size: 0.85rem; font-style: italic; color: var(--muted); margin: 0; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.benefits li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.9rem; align-items: start; }
.benefit-icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--moss); color: var(--on-moss);
                font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.benefits h3 { font-size: 1.12rem; line-height: 1.25; margin: 0.15rem 0 0.25rem; }
.benefits p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.cta-mid { margin-top: 2.5rem; }

/* ---------- Homepage: price comparison ---------- */
.compare { list-style: none; padding: 0; margin: 0 auto 2rem; display: grid; gap: 0.75rem; max-width: 56rem; }
.cmp { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "note note"; column-gap: 1rem; align-items: baseline;
       padding: 0.95rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.section .cmp p { margin: 0; max-width: none; }
.cmp-name { grid-area: name; font-weight: 700; }
.cmp-price { grid-area: price; font-family: var(--font-head); font-size: 1.35rem; white-space: nowrap; color: var(--muted); }
.section .cmp-note { grid-area: note; margin-top: 0.15rem; font-size: 0.92rem; color: var(--muted); }
.cmp-best { grid-template-columns: 4.5rem 1fr auto; grid-template-areas: "badge badge badge" "stone name price" "stone note note";
            border: 2px solid var(--moss); background: var(--paper); box-shadow: 0 10px 28px rgba(46, 62, 38, 0.16); }
.section .cmp-badge { grid-area: badge; justify-self: start; margin-bottom: 0.65rem; padding: 0.2rem 0.7rem; border-radius: 999px;
                      background: var(--moss); color: var(--on-moss); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cmp-stone { grid-area: stone; position: relative; width: 4.5rem; align-self: center; }
.cmp-stone img { width: 100%; }
.cmp-stone .eye { position: absolute; inset: 0; }
.cmp-best .cmp-price { font-size: 1.9rem; font-weight: 700; color: var(--text); }
.cmp-best .cmp-note { color: var(--text); }
.section .offer-trial { text-align: center; font-family: var(--font-head); font-size: clamp(1.2rem, 4.6vw, 1.5rem); line-height: 1.35;
                        max-width: 42ch; margin: 0 auto 1.5rem; }
.section .offer-founder { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; max-width: none;
                                                padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.95rem; background: var(--card); }
.offer-founder { border: 2px solid var(--gold); }
.offer-glyph { font-size: 1.1rem; line-height: 1.3; color: var(--gold); }
.section .offer-foot { margin-top: 1.25rem; }

@media (min-width: 700px) {
  .phones { grid-template-columns: 1fr 1fr; align-items: stretch; max-width: 44rem; margin: 0 auto; column-gap: 2.5rem; }
  .phone { width: 100%; max-width: 19.5rem; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
}
@media (min-width: 900px) {
  .benefits-grid { grid-template-columns: 19rem 1fr; column-gap: 3.5rem; align-items: center; }
  .compare { grid-template-columns: 1fr 1fr 1.3fr; align-items: end; gap: 1.25rem; }
  .cmp { grid-template-columns: 1fr; grid-template-areas: "name" "price" "note"; justify-items: center; text-align: center; padding: 1.5rem 1.25rem; }
  .cmp-price { font-size: 1.8rem; margin: 0.25rem 0; }
  .cmp-best { grid-template-columns: 1fr; grid-template-areas: "badge" "stone" "name" "price" "note"; padding: 1.75rem 1.5rem; }
  .section .cmp-badge { justify-self: center; }
  .cmp-stone { width: 6.5rem; margin-bottom: 0.5rem; }
  .cmp-best .cmp-price { font-size: 2.6rem; }
}

/* Homepage on phones: a little tighter, so the page stays short */
.cta-mid, .pricing .cta { text-align: center; }
@media (max-width: 699px) {
  main > .section { padding: 3.25rem 0; }
  .phone-calm .phone-screen { min-height: 25rem; }
  .phones { gap: 2.25rem; }
}
.section-title, .section .offer-trial { text-wrap: balance; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .offer-trial { word-break: auto-phrase; }
.benefits h3 a { text-decoration-line: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; }
.benefits h3 a:hover { text-decoration-color: currentColor; }
.section .benefits-more { margin: 1.5rem 0 0; text-align: center; max-width: none; }
@media (min-width: 900px) { .section .benefits-more { text-align: left; padding-left: 3.65rem; } }

/* Googly eyes as inline SVG, moved by assets/js/googly.js (pupils, blinking). The rock never moves. */
svg.googly { width: 100%; height: 100%; overflow: visible; }
.eyecycle svg.e2 { animation: eyecycle 16s steps(1, end) 4s infinite; }

/* ---------- Homepage: giving a rock (mail preview + steps) ---------- */
.giftbox-grid { display: grid; gap: 2rem; max-width: 60rem; margin: 0 auto; align-items: center; }
.mail { margin: 0 auto; width: 100%; max-width: 25rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 14px 34px rgba(0, 0, 0, 0.09); }
.section .mail p { margin: 0; max-width: none; }
.section .mail-bar { padding: 0.55rem 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
                     border-bottom: 1px solid var(--line); }
.mail-row { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; padding: 0.85rem 1rem; align-items: start;
            border-left: 3px solid var(--moss); }
.mail-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.mail-avatar img { width: 1.5rem; }
.section .mail-from { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.92rem; }
.mail-from span { color: var(--muted); font-size: 0.8rem; }
.section .mail-subject { font-weight: 700; font-size: 0.95rem; line-height: 1.3; margin-top: 0.1rem; }
.section .mail-excerpt { color: var(--muted); font-size: 0.88rem; }
.mail-gift { position: relative; height: 9.5rem; background: var(--paper); border-top: 1px solid var(--line); overflow: hidden; }
.ribbon { position: absolute; background: rgba(201, 162, 39, 0.5); }
.ribbon-v { top: 0; bottom: 0; left: calc(50% - 0.45rem); width: 0.9rem; }
.ribbon-h { left: 0; right: 0; top: calc(58% - 0.45rem); height: 0.9rem; }
.gift-stone { position: absolute; left: 50%; top: 58%; width: 8rem; transform: translate(-50%, -50%); }
.gift-stone img { width: 100%; }
.gift-stone .eye { position: absolute; inset: 0; }
.bow { position: absolute; left: 50%; top: 0.55rem; width: 3.4rem; height: auto; transform: translateX(-50%); }
.gift-steps { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 1rem; counter-reset: gstep; }
.gift-steps li { counter-increment: gstep; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 0.85rem; color: var(--muted); font-size: 0.95rem; }
.gift-steps li::before { content: counter(gstep); grid-row: span 2; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
                         background: var(--moss); color: var(--on-moss); font-family: var(--font-head); font-weight: 700; }
.gift-steps strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 1.1rem; line-height: 1.3; }
.section .gift-occasions { font-family: var(--font-head); font-style: italic; font-size: 1.05rem; margin: 0 0 1.5rem; }
.gift-cta { align-items: center; text-align: center; }
.section .offer-founder { max-width: 34rem; margin: 2rem auto 0; }
@media (min-width: 900px) {
  .giftbox-grid { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .gift-cta { align-items: flex-start; text-align: left; }
}
.bow { top: calc(58% - 3.1rem); width: 3.8rem; z-index: 1; }
@media (max-width: 699px) {
  main > .section { padding: 2.75rem 0; }
  .section-title { margin-bottom: 1.5rem; }
  .phone-calm .phone-screen { min-height: 22rem; }
  .phone-clock { font-size: 3.1rem; margin: 0.4rem auto 1rem; }
  .cards { gap: 0.6rem; }
  .card { padding: 0.9rem 0.85rem 1rem; }
  .mail-gift { height: 8.75rem; }
}
@media (max-width: 699px) {
  .section .voices { gap: 1.1rem 0.75rem; margin-top: 1rem; }
  .section .voices blockquote { font-size: 1.4rem; }
  .gift-steps { gap: 0.8rem; }
}
@media (max-width: 899px) { .section .gift-occasions { text-align: center; margin-left: auto; margin-right: auto; } }

/* Leaves (assets/js/leaves.js): a layer behind the rock, wider than the rock, clipped by the hero / phone screen */
.hero, .phone-screen { isolation: isolate; }   /* leaves (z-index -1) stay behind all text and the rock, above the background */
.leaf-zone { position: absolute; z-index: -1; top: -12%; bottom: -8%; left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none; overflow: hidden; }
.leaf-fly { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.phone-screen .leaf-zone { left: -25%; right: -25%; top: -30%; bottom: -20%; }
@media (min-width: 900px) { .hero .leaf-zone { left: -18%; right: -40%; } }
.register .reg-have { font-size: 0.92rem; color: var(--muted); margin: -1rem 0 2rem; }
.cta-left { align-items: flex-start; margin-top: 1.5rem; }
.faq-gift { margin: 0 0 1.25rem; }

/* ---------- Stone Republic: ticker + the ten kinds (rocks from assets/stones/, eyes via googly.js) ---------- */
.section .republic-sub { margin-bottom: 0; }
.republic-home .ticker { margin: 1.25rem 0 1.5rem; }
.kinds { list-style: none; padding: 0; margin: 0 auto 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; max-width: 64rem; }
.kinds li { display: grid; grid-template-columns: 3.75rem 1fr; gap: 0.55rem; align-items: center; padding: 0.45rem 0.6rem;
            border: 1px solid var(--line); border-radius: 12px; background: var(--card); min-width: 0; }
.kind-art { position: relative; }
.kind-art img { width: 100%; }
.kind-art .eye { position: absolute; inset: 0; }
.section .kind-name { margin: 0; font-weight: 700; font-size: 0.88rem; line-height: 1.2; overflow-wrap: anywhere; }
.section .kind-quote { margin: 0.1rem 0 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
                       font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
.kind-quote span { color: var(--text); font-weight: 700; }
.section .kinds-note { font-family: var(--font-head); font-size: 1.1rem; margin: 0 auto; }
.kinds-detail { list-style: none; padding: 0; margin: 2rem 0 1.5rem; display: grid; gap: 1.4rem; }
.kinds-detail li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: start; }
.kinds-detail h3 { font-size: 1.12rem; margin: 0.2rem 0 0.1rem; }
.kind-ticker, .kind-price { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace; font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.section .kind-price { margin: 0 0 0.25rem; }
.kinds-detail p { margin: 0; }
@media (min-width: 900px) {
  .kinds { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .kinds li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0.9rem 0.75rem 1rem; }
  .kind-art { width: 7rem; }
  .section .kind-name { font-size: 0.98rem; margin-top: 0.25rem; }
}
@media (max-width: 699px) {
  /* feature cards: icon beside the title, so the grid stays short */
  .card { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 0.55rem; row-gap: 0.3rem; align-items: center; align-content: start; padding: 0.75rem 0.75rem 0.85rem; }
  .card .card-icon { width: 2.4rem; height: 2rem; }
  .card .card-icon-wide, .card .card-icon-stone { width: 2.4rem; height: 2rem; }
  .card h3 { margin: 0; font-size: 1rem; }
  .card p { grid-column: 1 / -1; }
  .republic-home .ticker { margin: 1rem 0 1.1rem; }
}
@media (max-width: 699px) {
  .lock-notes { gap: 0.35rem; }
  .ln { padding: 0.5rem 0.6rem; }
  .benefits { gap: 1rem; }
  .cmp { padding: 0.75rem 1rem; }
  .section .offer-founder { margin-top: 1.5rem; }
  .cta-mid { margin-top: 1.75rem; }
  .end-grid { gap: 1.25rem; }
}
.kinds li { grid-template-columns: 3.2rem 1fr; }
.section .kind-name { overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; }
@media (min-width: 900px) { .kinds li { grid-template-columns: 1fr; } }

/* ---------- Legal pages (imprint, privacy, terms) ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.5rem; max-width: 70ch; }
.legal a { overflow-wrap: anywhere; }
.legal .addr { line-height: 1.5; }
.legal-note { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.92rem; background: var(--card); }
.legal-close { font-family: var(--font-head); font-style: italic; color: var(--muted); margin-top: 2.5rem; }
.legal-stand { margin-top: 2.5rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); }
.legal-table thead th { border-bottom: 2px solid var(--text); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.legal-table tbody th { font-weight: 600; width: 45%; }
.foot-meta { margin-top: 0.75rem !important; font-style: normal !important; }
.legal-box { border: 1px dashed var(--stone); border-radius: 10px; padding: 0.9rem 1.1rem; margin: 0 0 1rem; background: var(--card); }
.legal-box p { margin: 0 0 0.6rem; }
.legal-box p:last-child { margin: 0; }

/* "Sign in with Google" (Google branding: light theme, official G, plain link – no Google script) */
.reg-google { max-width: 30rem; margin: 0 0 1.5rem; }
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
              background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; border-radius: 22px; text-decoration: none;
              font-family: Roboto, var(--font-body); font-weight: 500; font-size: 0.95rem; }
.google-btn:hover { background: #F7F8F8; text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.google-btn img { width: 18px; height: 18px; flex: 0 0 auto; }
.reg-or { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 0.88rem; max-width: none; }
.reg-or::before, .reg-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.withdraw-cta { margin: 1.25rem 0 1.75rem; }
.site-foot a.foot-withdraw { font-weight: 700; color: var(--text); }
