/*
 * nailfrontdesk.com. NoteMem's site structure (tokens, dark via <html class="dark">, clamp() spacing, one moment
 * of motion) dressed for a nail salon: porcelain pink instead of paper white, aubergine instead of black, a berry
 * rose accent, and polish colours for the tints. The nail-tip shape (round top, square foot) is the page's one
 * motif: the swatch fan in the hero, the step tiles, the list bullets and the closing panel are all that shape.
 * Type: Fraunces (soft, a little wonky) for headings, Atkinson Hyperlegible for reading.
 */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
    --mist: #fbf3f1;
    --surface: #ffffff;
    --ink: #2a1a23;
    --ink-soft: #6b5863;
    --ink-faint: #a08f98;
    --line: #f0e0de;
    --btn: #2a1a23;
    --btn-ink: #ffffff;
    --btn-press: #170c12;
    --night: #2a1a23;
    --night-2: #3b2733;
    --night-ink: #f6ecee;
    --brand: #b0445f;
    --brand-deep: #9a3852;
    --brand-wash: #fbe6ec;
    --danger: #b42318;
    --tint-ballet: #fbe1e6;
    --tint-nude: #f8e7dc;
    --tint-lilac: #ede5f7;
    --tint-butter: #fbf1d0;
    --tint-sage: #e3efe1;
    --dot-ballet: #f2b3bf;
    --dot-nude: #e3b99f;
    --dot-lilac: #bfa9e3;
    --dot-butter: #e9cb62;
    --dot-sage: #a9c9a4;
    --shadow: 0 1px 2px rgb(42 26 35 / 0.05), 0 18px 40px -14px rgb(42 26 35 / 0.22);
    --zh: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --zh-display: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', var(--zh);
    --display: 'Fraunces', var(--zh-display);
    --body: 'Atkinson Hyperlegible', var(--zh);
    --page: min(1120px, 100% - 2rem);
    --top: 4.25rem;
}
.dark {
    --danger: #f08a80;
    --mist: #181115;
    --surface: #221820;
    --ink: #f6ecee;
    --ink-soft: #bcaab3;
    --ink-faint: #85747d;
    --line: #34262e;
    --btn: #f6ecee;
    --btn-ink: #181115;
    --btn-press: #ffffff;
    --night: #221820;
    --night-2: #30222b;
    --brand-deep: #f2a3b7;
    --brand-wash: #3a1f28;
    --tint-ballet: #3a2229;
    --tint-nude: #3a2a22;
    --tint-lilac: #2c2640;
    --tint-butter: #36301c;
    --tint-sage: #1f3024;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -12px rgb(0 0 0 / 0.65);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 1rem); }
body { margin: 0; overflow-x: clip; overflow-wrap: break-word; background: var(--mist); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
:lang(zh) body, body:lang(zh) { line-height: 1.75; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.wrap { width: var(--page); margin-inline: auto; }

/* Headings: Fraunces at its softest. Chinese falls to a Song face, set a little lighter and looser. */
h1, h2, .amount, .brand span { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 0; font-optical-sizing: auto; }
h1 { font-weight: 560; font-size: clamp(2.6rem, 8.6vw, 4.9rem); line-height: 1; letter-spacing: -0.022em; }
h2 { font-weight: 540; font-size: clamp(1.9rem, 4.8vw, 2.9rem); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font: 700 1.2rem/1.3 var(--body); }
:lang(zh) h1 { font-weight: 700; font-size: clamp(2.2rem, 7.2vw, 4rem); line-height: 1.18; letter-spacing: 0; }
:lang(zh) h2 { font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.lead { margin-top: 1rem; max-width: 34em; color: var(--ink-soft); font-size: 1.15rem; }

/*
 * The progressive blur below follows MengTo/Skills (agent-skills/web-design/progressive-blur).
 * MIT License — Copyright (c) 2026 Meng To
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
 * associated documentation files (the "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
 * following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial
 * portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
 * EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
 * USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
/* ── Progressive blur ────────────────────────────────────────────────── */
.pblur { pointer-events: none; }
.pblur > div, .pblur::before, .pblur::after { position: absolute; inset: 0; }
.pblur::before, .pblur::after { content: ''; }
.pblur::before { z-index: 1; -webkit-backdrop-filter: blur(0.5px); backdrop-filter: blur(0.5px); --m: linear-gradient(var(--dir), #0000 0%, #000 12.5%, #000 25%, #0000 37.5%); }
.pblur > div:nth-of-type(1) { z-index: 2; -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); --m: linear-gradient(var(--dir), #0000 12.5%, #000 25%, #000 37.5%, #0000 50%); }
.pblur > div:nth-of-type(2) { z-index: 3; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); --m: linear-gradient(var(--dir), #0000 25%, #000 37.5%, #000 50%, #0000 62.5%); }
.pblur > div:nth-of-type(3) { z-index: 4; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); --m: linear-gradient(var(--dir), #0000 37.5%, #000 50%, #000 62.5%, #0000 75%); }
.pblur > div:nth-of-type(4) { z-index: 5; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); --m: linear-gradient(var(--dir), #0000 50%, #000 62.5%, #000 75%, #0000 87.5%); }
.pblur > div:nth-of-type(5) { z-index: 6; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); --m: linear-gradient(var(--dir), #0000 62.5%, #000 75%, #000 87.5%, #0000 100%); }
.pblur > div:nth-of-type(6) { z-index: 7; -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); --m: linear-gradient(var(--dir), #0000 75%, #000 87.5%, #000 100%); }
.pblur::after { z-index: 8; -webkit-backdrop-filter: blur(64px); backdrop-filter: blur(64px); --m: linear-gradient(var(--dir), #0000 87.5%, #000 100%); }
.pblur > div, .pblur::before, .pblur::after { -webkit-mask: var(--m); mask: var(--m); }
/* Strongest at the top edge, behind the header. */
.pblur-top { position: fixed; z-index: 40; inset: 0 0 auto; height: calc(var(--top) + 2.5rem); --dir: to top; }
/* Strongest at the bottom edge, behind the phone's button. */
.pblur-bottom { position: absolute; inset: 0; --dir: to bottom; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pblur-top { background: linear-gradient(to bottom, var(--mist) 55%, transparent); }
    .pblur-bottom { background: linear-gradient(to top, var(--mist) 55%, transparent); }
}

/* Strongest at the top edge, behind the header. */
.pblur-top { position: fixed; z-index: 40; inset: 0 0 auto; height: calc(var(--top) + 2.5rem); --dir: to top; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pblur-top { background: linear-gradient(to bottom, var(--mist) 55%, transparent); }
}

/* ── Header ──────────────────────────────────────────────────────────── */
.top { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--top); background: linear-gradient(to bottom, color-mix(in srgb, var(--mist) 72%, transparent), transparent); }
.top-row { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; }
.brand span { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; white-space: nowrap; }
.mark { width: 2.1rem; height: 2.1rem; flex: none; }
.top-nav { display: flex; gap: 0.25rem; margin-left: 1.5rem; }
.top-nav a, .lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; white-space: nowrap; border-radius: 999px; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.top-nav a:hover, .lang:hover { color: var(--ink); background: rgb(127 100 110 / 0.12); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
@media (max-width: 900px) { .top-nav { display: none; } }
@media (max-width: 520px) { .top .btn-sm { display: none; } .brand span { font-size: 1.15rem; } }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem; white-space: nowrap; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font: 700 1.05rem/1 var(--body); text-decoration: none; box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 10px 20px -10px rgb(42 26 35 / 0.6); transition: background-color 0.15s, transform 0.15s; }
.btn:hover { background: var(--btn-press); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.95rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: var(--night-ink); color: var(--night); box-shadow: none; }
.btn-light:hover { background: #ffffff; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { display: grid; gap: clamp(2rem, 6vw, 3.5rem); align-items: center; padding-top: calc(var(--top) + clamp(1.5rem, 6vw, 4rem)); padding-bottom: clamp(2rem, 6vw, 4rem); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
.hero .lead { font-size: clamp(1.15rem, 2.4vw, 1.3rem); }
.hero-acts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.note { margin-top: 0.9rem; color: var(--ink-faint); font-size: 0.9rem; }
@media (max-width: 520px) { .hero-acts .btn { flex: 1 1 100%; } }

/* The drawing is sized in em so the whole scene scales with one font-size. */
.stage { position: relative; width: min(100%, 27em); aspect-ratio: 1 / 1.12; margin-inline: auto; font-size: clamp(0.72rem, 3.5vw, 1rem); }
.fan { position: absolute; left: 50%; bottom: 45%; }
.tip { position: absolute; left: -2.1em; bottom: 0; width: 4.2em; height: 15em; border-radius: 50% 50% 0.9em 0.9em / 30% 30% 0.6em 0.6em; background: var(--c); transform-origin: 50% 118%; transform: rotate(calc(var(--i) * 13.5deg)); box-shadow: inset -0.5em 0 0.9em rgb(42 26 35 / 0.14), 0 0.5em 1em -0.6em rgb(42 26 35 / 0.5); }
/* The gloss every polished nail has. */
.tip::after { content: ''; position: absolute; left: 20%; top: 8%; width: 15%; height: 44%; border-radius: 999px; background: linear-gradient(rgb(255 255 255 / 0.7), rgb(255 255 255 / 0)); }
.phone { position: absolute; z-index: 2; left: 9%; bottom: 0; width: 14em; padding: 1em; border-radius: 1.9em; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1em; }
.phone p, .ticket p { margin: 0; }
.phone-name { font: 600 1.25em/1.1 var(--display); font-variation-settings: 'SOFT' 100; margin-bottom: 0.7em !important; }
.bub { max-width: 86%; margin-top: 0.45em !important; padding: 0.5em 0.75em; border-radius: 1em; font-size: 0.78em; line-height: 1.35; }
.bub.me { margin-left: auto !important; background: var(--brand); color: #ffffff; border-bottom-right-radius: 0.3em; }
.bub.bot { margin-right: auto !important; background: var(--mist); border: 1px solid var(--line); border-bottom-left-radius: 0.3em; }
.phone-input { display: flex; align-items: center; gap: 0.5em; margin-top: 0.8em; padding: 0.35em 0.35em 0.35em 0.8em; border-radius: 999px; border: 1px solid var(--line); background: var(--mist); font-size: 0.72em; color: var(--ink-faint); }
.phone-input span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-mic { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--brand) center / 1.1em no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E"); }
.ticket { position: absolute; z-index: 3; right: 0; bottom: 9%; width: 12.5em; padding: 0.95em 1em 1em; border-radius: 1.2em; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(3deg); }
.ticket-title { color: var(--brand-deep); font-weight: 700; font-size: 0.78em; }
.ticket-who { font-weight: 700; font-size: 1.05em; line-height: 1.3; }
.ticket-what { color: var(--ink-soft); font-size: 0.8em; }
.ticket-yes { display: inline-block; margin-top: 0.7em; padding: 0.55em 1.1em; border-radius: 999px; background: var(--brand); color: #ffffff; font-weight: 700; font-size: 0.8em; }

/* The page's one moment of motion: the swatch ring fans open, then the request lands. */
@media (prefers-reduced-motion: no-preference) {
    .js .tip { animation: fan 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.12s + max(var(--i), -1 * var(--i)) * 0.05s); }
    .js .ticket { animation: land 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1.05s both; }
    @keyframes fan { from { transform: rotate(0deg); } }
    @keyframes land { from { opacity: 0; transform: translateY(1em) rotate(0deg) scale(0.96); } }
}

/* ── Sections ────────────────────────────────────────────────────────── */
.band { padding-block: clamp(3rem, 8vw, 5.5rem); }
.narrow { max-width: 46rem; }

/* Tints for the tiles, deeper dots for the bullets. */
.tint-ballet { background: var(--tint-ballet); }
.tint-nude { background: var(--tint-nude); }
.tint-lilac { background: var(--tint-lilac); }
.tint-butter { background: var(--tint-butter); }
.tint-sage { background: var(--tint-sage); }
.dot-ballet { --dot: var(--dot-ballet); }
.dot-nude { --dot: var(--dot-nude); }
.dot-lilac { --dot: var(--dot-lilac); }
.dot-butter { --dot: var(--dot-butter); }
.dot-sage { --dot: var(--dot-sage); }

/* How it works: a real sequence, so it is numbered. */
.steps { counter-reset: step; display: grid; gap: clamp(2rem, 5vw, 3rem); margin-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.1rem; align-content: start; }
.step-art { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 4.4rem; height: 5.6rem; padding-top: 0.7rem; border-radius: 999px 999px 1rem 1rem; color: var(--ink); }
.step-art svg { width: 1.9rem; height: 1.9rem; }
.steps h3::before { content: counter(step) '. '; color: var(--brand-deep); }
.steps p { margin-top: 0.35rem; color: var(--ink-soft); }
@media (min-width: 820px) { .steps li { grid-template-columns: minmax(0, 1fr); row-gap: 0.2rem; } .step-art { grid-row: auto; margin-bottom: 1rem; } }

/* The owner's screen next to what it does. */
.split { display: grid; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.desk-mock { padding: 1.1rem; border-radius: 1.75rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 26rem; width: 100%; margin-inline: auto; }
.desk-label { margin: 0.9rem 0.3rem 0.45rem; color: var(--ink-soft); font-weight: 700; font-size: 0.85rem; }
.desk-label:first-child { margin-top: 0.1rem; }
.deskrow { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: center; gap: 0.2rem 0.75rem; padding: 0.7rem 0.85rem; margin-top: 0.4rem; border-radius: 1rem; border: 1px solid var(--line); }
.deskrow.new { border-color: transparent; background: var(--tint-butter); }
.desk-time { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.desk-who { font-weight: 700; min-width: 0; }
.desk-who small { display: block; color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }
.desk-acts { grid-column: 1 / -1; display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.desk-acts i { padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--surface); font-style: normal; font-weight: 700; font-size: 0.82rem; }
.desk-acts .yes { background: var(--brand); color: #ffffff; }

/* Bullets and list marks are small nail tips. */
.points { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.points li, .gets > div { position: relative; padding-left: 1.6rem; }
.points li::before, .gets > div::before { content: ''; position: absolute; left: 0; top: 0.3em; width: 0.7rem; height: 1.15rem; border-radius: 999px 999px 3px 3px; background: var(--dot, var(--brand)); }

.gets { display: grid; gap: 1.5rem 2.5rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
@media (min-width: 720px) { .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .gets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gets dt { font-weight: 700; font-size: 1.1rem; }
.gets dd { margin-top: 0.2rem; color: var(--ink-soft); }
.soon { margin-top: clamp(1.75rem, 4vw, 2.5rem); padding: 1rem 1.25rem; border-radius: 1.25rem; background: var(--brand-wash); max-width: 46rem; }
.soon b { color: var(--brand-deep); margin-right: 0.4rem; }

/* Price: the one dark panel on the page. Its colours are fixed, the same in both themes. */
.price { display: grid; gap: clamp(1.5rem, 5vw, 3rem); padding: clamp(1.5rem, 5vw, 3.25rem); border-radius: 2rem; background: var(--night); color: var(--night-ink); }
@media (min-width: 820px) { .price { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; } }
.amount { margin: 0.6rem 0 1.5rem; font-weight: 560; font-size: clamp(4rem, 13vw, 6.5rem); line-height: 0.95; letter-spacing: -0.03em; }
.amount span { font: 400 1.1rem/1 var(--body); letter-spacing: 0; color: rgb(246 236 238 / 0.7); }
.checks { display: grid; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
@media (min-width: 520px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks li { position: relative; padding-left: 1.9rem; font-weight: 700; }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.12em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.6'/%3E%3C/svg%3E") center / 80% no-repeat; }
.price-side p { color: rgb(246 236 238 / 0.86); }
.price-side .quiet { margin-top: 0.75rem; color: rgb(246 236 238 / 0.6); font-size: 0.92rem; }

/* Questions open on a tap; the plus turns to a cross. */
.faq { margin-top: clamp(1.5rem, 4vw, 2.25rem); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding: 0.6rem 0; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--brand-deep); transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 2.4rem 1.2rem 0; color: var(--ink-soft); }

/* The close: one large nail. */
.last { display: grid; justify-items: center; gap: 0.25rem; max-width: 34rem; margin-inline: auto; padding: clamp(6rem, 22vw, 9rem) clamp(1.5rem, 6vw, 3rem) clamp(2.5rem, 7vw, 3.5rem); border-radius: 17rem 17rem 2rem 2rem; background: var(--tint-ballet); text-align: center; }
.last .lead { margin-bottom: 1.5rem; }
.reach { margin-top: 1.25rem; color: var(--ink-soft); }
.reach a { color: var(--brand-deep); font-weight: 700; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 2rem calc(2.5rem + env(safe-area-inset-bottom)); color: var(--ink-soft); font-size: 0.92rem; }
.foot a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.foot-links { display: inline-flex; gap: 1.25rem; }

/* The privacy policy: one reading column, the same type, nothing decorative. */
.legal { max-width: 44rem; padding-top: calc(var(--top) + clamp(1.5rem, 6vw, 3.5rem)); padding-bottom: clamp(2rem, 6vw, 4rem); }
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.legal h2 { margin-bottom: 0.6rem; font-size: clamp(1.35rem, 3.6vw, 1.7rem); }
.legal section { margin-top: clamp(1.75rem, 5vw, 2.5rem); }
.legal section p + p { margin-top: 0.8rem; }
.legal .points { margin-top: 0.9rem; gap: 0.6rem; }
.legal-updated { margin-top: 0.75rem; color: var(--ink-faint); font-size: 0.92rem; }
.legal-back { margin-top: clamp(2rem, 6vw, 3rem); }
.legal-back a { color: var(--brand-deep); font-weight: 700; text-underline-offset: 3px; }

/* The phone's bottom button, shown once the hero's own buttons have scrolled away. */
.dock { display: none; }
@media (max-width: 720px) {
    .dock { display: block; position: fixed; z-index: 45; inset: auto 0 0; padding: 1.75rem 0 calc(0.9rem + env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; transform: translateY(0.75rem); transition: opacity 0.2s, transform 0.2s; }
    .dock.on { opacity: 1; pointer-events: auto; transform: none; }
    .dock::after { content: ''; position: absolute; z-index: 8; inset: 0; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--mist) 85%, transparent) 55%, transparent); }
    .dock-in { position: relative; z-index: 9; }
    .dock .btn { width: 100%; }
    .foot { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dock, .btn, .faq summary svg { transition: none; } }

/* ── Free trial: the text beside a plain form, on the ballet tint ─────────────────────────────── */
.trial { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; padding: clamp(1.5rem, 5vw, 3rem); border-radius: 2rem; background: var(--tint-ballet); }
.trial-form { display: grid; gap: 0.9rem; padding: clamp(1.1rem, 4vw, 1.75rem); border-radius: 1.4rem; background: var(--surface); box-shadow: var(--shadow); }
.field { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.95rem; }
.field small { font-weight: 400; color: var(--ink-faint); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--mist); color: var(--ink); font: 400 1rem/1.4 var(--body); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field-hint { margin: -0.3rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.trial-form .btn { width: 100%; margin-top: 0.3rem; }
.trial-form .btn:disabled { opacity: 0.6; }
.trial-status { margin: 0; min-height: 1.2em; font-weight: 700; }
.trial-status.is-ok { color: var(--brand-deep); }
.trial-status.is-bad { color: var(--danger); }
.trap { position: absolute; left: -200vw; }
@media (max-width: 760px) { .trial { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .field-pair { grid-template-columns: 1fr; } }

/* The other way in: the same request by chat, on its own page. */
.trial-chat { margin-top: 1.1rem; }
.trial-chat a { color: var(--brand-deep); font-weight: 700; text-underline-offset: 3px; }

/* Guides: the legal page's measure and type, with a list of guides and a closing way to try the product. */
.guide-list { display: grid; gap: 0.9rem; margin-top: clamp(1.5rem, 5vw, 2.25rem); list-style: none; padding: 0; }
.guide-list a { display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color 0.15s; }
.guide-list a:hover { border-color: var(--brand); }
.guide-list h3 { margin: 0; font-size: clamp(1.1rem, 3vw, 1.3rem); }
.guide-group { margin-top: clamp(1.75rem, 5vw, 2.5rem); font-size: clamp(1.3rem, 3.6vw, 1.6rem); }
.guide-list p { margin-top: 0.4rem; color: var(--ink-soft); }
.guide-read { display: inline-block; margin-top: 0.6rem; color: var(--brand-deep); font-weight: 700; }
.guide-crumb { margin-bottom: 0.75rem; font-size: 0.92rem; }
.guide-crumb a { color: var(--ink-soft); text-underline-offset: 3px; }
.guide-faq h3 { margin-top: 1rem; font-size: 1.05rem; }
.guide-faq h3 + p { margin-top: 0.35rem; }
.guide-cta { margin-top: clamp(2rem, 6vw, 3rem); padding: clamp(1.25rem, 4vw, 1.75rem); border-radius: 22px; background: var(--brand-wash); }
.guide-cta h2 { margin: 0 0 0.4rem; font-size: clamp(1.25rem, 3.4vw, 1.5rem); }
.guide-cta .btn { margin-top: 1rem; }

/* The language menu in the header: the current language, opening a list of all four. */
.lang-menu { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.75rem; border-radius: 999px; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; white-space: nowrap; cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ''; width: 0.4rem; height: 0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang-menu[open] summary { color: var(--ink); background: var(--surface); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; min-width: 10rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.lang-list a { padding: 0.65rem 0.8rem; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.lang-list a:hover { background: var(--mist); }
.lang-list a[aria-current] { color: var(--brand-deep); }
.foot-langs { flex-wrap: wrap; }
/* Neither Atkinson Hyperlegible nor Fraunces stacks Vietnamese tone marks: Vietnamese pages use the device's font. */
html[lang='vi'] {
    --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --display: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* Korean wraps between words, not inside them. */
html[lang='ko'] { word-break: keep-all; }

/* The website add-on under the price: a lighter card, the same two columns. */
.addon { display: grid; gap: 1.25rem 2.5rem; margin-top: 1rem; padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); }
@media (min-width: 820px) { .addon { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.addon h3 { font: 600 clamp(1.4rem, 3.6vw, 1.8rem)/1.2 var(--display); }
.addon-amount { margin: 0.4rem 0 0.75rem; font: 560 2.4rem/1 var(--display); }
.addon-amount span { font: 400 1rem/1 var(--body); color: var(--ink-soft); }
.addon > div > p:last-child { color: var(--ink-soft); }
.addon .checks { grid-template-columns: minmax(0, 1fr); margin-bottom: 1.25rem; }

/* What the AI does and doesn't: two lists side by side, a check for each "does", a plain dash for each "doesn't". */
.ai-cols {
    display: grid;
    gap: 2rem 3rem;
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 820px) {
    .ai-cols {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }
}
.ai-cols h3 {
    margin-bottom: 1rem;
    font: 600 clamp(1.25rem, 3vw, 1.5rem)/1.2 var(--display);
}
.ai-cols .checks {
    grid-template-columns: none;
    gap: 0.85rem;
}
.ai-cols .checks li {
    font-weight: 400;
}
.nots {
    display: grid;
    gap: 0.85rem;
}
.nots li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--ink-soft);
}
.nots li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.72em;
    width: 0.9rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ink-soft);
}

/* Guide pages are wider than the privacy policy: the index lays its guides out in two columns, and an article gets a
   somewhat longer measure in one centred column. */
.legal.guides {
    max-width: 68rem;
}
.legal.guide {
    max-width: 54rem;
}
@media (min-width: 820px) {
    .guide-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* The "not legal advice" line on guides about licences and rules. */
.guide-note { margin-top: 1rem; padding: 0.75rem 1rem; border-left: 3px solid var(--line); color: var(--ink-soft); font-size: 0.92rem; }
