/* TaleLight site (v1, English). Mirrors getfoomaster's public/styles.css (layout, nav pill, cards, form, RTL rules for
   later languages), re-coloured for TaleLight: warm paper page (the hero mp4 is flattened on #fbf7f1), the milky
   sage of the shell, a night-blue ink and the gold of the knob cap. */
:root {
  --bg: #fbf7f1;
  --card: #ffffff;
  --ink: #1d2433;          /* night blue */
  --muted: #5f6470;
  --sage: #dbe7dc;         /* shell glow */
  --sage-soft: #edf3ec;    /* icon discs */
  --sage-ink: #3f6650;     /* icon strokes, accents */
  --gold: #c9a248;         /* knob cap */
  --warm: #f6e3b4;
  --green: #2f8a57;
  /* names /pay/ (copied from getfoomaster) uses */
  --wood: var(--sage); --wood-dark: var(--sage-ink); --wood-ink: var(--sage-ink); --wood-soft: var(--sage-soft);
  --accent: var(--gold);
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
img, video { max-width: 100%; height: auto; display: block; }
.hero > * { min-width: 0; }
h1, h2 { font-family: Fraunces, Georgia, serif; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
a { color: inherit; }
em.tl { font-style: italic; white-space: nowrap; }   /* "TaleLight" inside running text (real italic via the ital axis) */
section { padding: 72px 24px; max-width: var(--max); margin: 0 auto; }
@media (max-width: 480px) { section { padding: 56px 16px; } }
h3 { margin: 0; }
/* icons: Lucide glyphs (ISC, /licenses.txt), decorative (aria-hidden; the text next to them is the label) */
.ico { flex: none; width: 24px; height: 24px; color: var(--sage-ink); stroke-width: 1.6; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; background: rgba(251, 247, 241, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece4d6; }
.brand { font-family: Fraunces, serif; font-weight: 800; font-size: 1.35rem; text-decoration: none; }
.nav nav { display: flex; gap: 22px; align-items: center; }

.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; font: 600 1rem Inter, sans-serif; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #0f1420; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 12px 24px; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-wide { width: 100%; padding: 16px; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: wait; }

/* HERO: text + the transparent 360 turntable (no box: it floats on the page colour) */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--sage-ink); margin: 0 0 12px; }
.hero-pun { font: 600 clamp(1.15rem, 2.2vw, 1.45rem)/1.3 Fraunces, Georgia, serif; color: var(--sage-ink); margin: -.1em 0 .7em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36ch; }
.lede-intro { margin-bottom: 0; }
.lede-intro + .lede { margin-top: .6em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.hero-text > :last-child { margin-bottom: 0; }
.hero-media { width: 100%; aspect-ratio: 1; position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 12% 10% 18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(219, 231, 220, .9), rgba(246, 227, 180, .35) 60%, rgba(251, 247, 241, 0)); }
.hero-video { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 12px; padding-top: 16px; }
  .hero-media { order: -1; max-width: 520px; margin: 0 auto; } }

/* image card (moment / how) */
.media-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: #e9e3d9; box-shadow: 0 18px 50px rgba(29, 36, 51, .12); }
.media-card img { width: 100%; height: auto; }

/* THE MOMENT: image + the three lines */
.problem { text-align: start; }
.prob-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.prob-row { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.prob-row li { display: flex; align-items: center; gap: 16px; font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.prob-row .ico { width: 30px; height: 30px; padding: 14px; box-sizing: content-box; background: var(--sage); border-radius: 50%; }
.prob-close { font: 600 clamp(1.1rem, 2vw, 1.3rem)/1.35 Fraunces, Georgia, serif; color: var(--sage-ink); margin: 28px 0 0; }
@media (max-width: 860px) { .prob-grid { grid-template-columns: 1fr; gap: 28px; } .prob-text { max-width: 30rem; margin: 0 auto; } }
@media (max-width: 480px) { .prob-row li { font-size: 1.05rem; } .prob-row .ico { width: 26px; height: 26px; padding: 12px; } }

/* cards (features 9: 2 per row on phones, 3 x 3 from 600px) + steps (how 4: 2 x 2, 4 in a row from 860px) */
.cards, .steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 599px) { .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); } }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; } }
@media (min-width: 860px) { .cards { gap: 16px; } .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: var(--card); border-radius: var(--radius); padding: 18px 12px 20px; box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
  overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.card > .ico { width: 34px; height: 34px; padding: 16px; box-sizing: content-box; background: var(--sage-soft); border-radius: 50%; margin-bottom: 6px; }
@media (max-width: 599px) { .card > .ico { width: 30px; height: 30px; padding: 13px; } }
.card strong { font-size: 1rem; line-height: 1.3; }
.card > span { font-size: .9rem; line-height: 1.45; color: var(--muted); }

.how, .design, .features, .app { text-align: center; }
.steps p { margin: 0; font-size: .98rem; line-height: 1.45; }
.steps p strong { display: block; margin-bottom: 2px; }
/* the film preview right under the heading (#film-watch: the 16:9 silent loop, opens #film-dialog); the box has the
   clip's aspect ratio before anything loads (inline style), so no layout shift */
.how-film { max-width: 960px; margin: 0 auto 28px; background: #10141f; }
.how-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* phones: the 4 steps are long sentences: one per row, icon at the start */
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; }
  .steps .card { flex-direction: row; align-items: flex-start; text-align: start; gap: 14px; padding: 16px; }
  .steps .card > .ico { margin: 0; width: 26px; height: 26px; padding: 11px; }
}
.how-note { color: var(--muted); max-width: 60ch; margin: 22px auto 0; }
/* preview -> film dialog: getfoomaster's hover mask (.zoom-hover) / touch badge (.zoom-tap) + .film-zoom / .film-dlg rules,
   in TaleLight's night-blue ink */
.zoom-hint { position: absolute; pointer-events: none; color: #fff; font-weight: 600; text-align: center; }
.zoom-hover { inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px;
  background: rgba(29, 36, 51, .55); font-size: .78rem; line-height: 1.25; opacity: 0; transition: opacity .15s; }
.zoom-tap { display: none; background: rgba(29, 36, 51, .72); }
@media (hover: none) { .zoom-hover { display: none; } }
html.zoom-lock, html.zoom-lock body { overflow: hidden; }
.zoom-dlg { padding: 0; border: 0; color: var(--ink); max-width: 96vw; max-height: 96vh; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.zoom-dlg::backdrop { background: rgba(10, 13, 20, .78); }
.zoom-x { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; width: 40px; height: 40px; border: 0;
  border-radius: 50%; font: 400 26px/1 system-ui, sans-serif; cursor: pointer; }
.zoom-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.film-zoom { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.film-zoom:focus { outline: none; }
.film-zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.film-zoom .zoom-hover { flex-direction: column; gap: 10px; padding: 16px; background: rgba(29, 36, 51, .45);
  font-size: clamp(1rem, 1.7vw, 1.3rem); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.film-zoom:hover .zoom-hover, .film-zoom:focus-visible .zoom-hover { opacity: 1; }
.film-zoom .zoom-hint .ico { color: #fff; }
.film-zoom .watch-ico .ico { width: 64px; height: 64px; stroke-width: 1.5; }
.film-zoom .zoom-tap { display: none; inset-inline: auto 10px; bottom: 10px; align-items: center; gap: 6px; padding: 6px 12px 6px 9px;
  border-radius: 999px; font-size: .85rem; line-height: 1.2; }
.film-zoom .zoom-tap .ico { width: 18px; height: 18px; stroke-width: 2; }
@media (hover: none) { .film-zoom .zoom-tap { display: inline-flex; } }
[dir="rtl"] .film-zoom .zoom-hint .ico { transform: scaleX(-1); }
[dir="rtl"] .film-zoom .zoom-tap { padding: 6px 9px 6px 12px; }
[dir="rtl"] .zoom-hint { font-weight: 700; }
.film-dlg { background: #000; border-radius: 14px; overflow: hidden; }
.film-box { position: relative; line-height: 0; }
/* the full film: 16:9 on wide screens, the 9:16 cut on phones (<= 720 px; film.js picks the file), as large as fits */
.film-box video { display: block; width: min(90vw, 90vh * 16 / 9); width: min(90vw, 90dvh * 16 / 9); height: auto; max-width: none;
  aspect-ratio: 16 / 9; background: #000; }
@media (max-width: 720px) {
  .film-box video { width: min(92vw, 88vh * 9 / 16); width: min(92vw, 88dvh * 9 / 16); aspect-ratio: 9 / 16; }
}
.film-dlg .zoom-x { background: rgba(255, 255, 255, .2); color: #fff; }
.film-dlg .zoom-x:hover { background: rgba(255, 255, 255, .35); }
.sub { color: var(--muted); max-width: 62ch; margin: 0 auto 32px; }

/* THE APP: 4 phones (scroll sideways on narrow screens) + laptop + the 5 points */
.phone-strip { list-style: none; padding: 4px 4px 18px; margin: 0 auto 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px; max-width: 1040px; }
.phone-strip figure { margin: 0; }
.phone { position: relative; border-radius: 13% / 6%; padding: 3.2%; background: #12161f;
  box-shadow: 0 0 0 1.5px #3a4150 inset, 0 22px 50px rgba(29, 36, 51, .22); }
.phone::before { content: ""; position: absolute; top: 2.3%; left: 50%; width: 30%; height: 2.6%; transform: translateX(-50%);
  background: #12161f; border-radius: 999px; z-index: 1; }
.phone img { width: 100%; height: auto; border-radius: 10% / 4.6%; }
.phone-strip figcaption { margin-top: 14px; font-weight: 600; font-size: .98rem; line-height: 1.3; display: flex; gap: 8px;
  align-items: center; justify-content: center; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: .8rem; font-weight: 700; flex: none; }
@media (max-width: 860px) {
  .phone-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin-inline: -24px; padding-inline: 24px;
    scrollbar-width: none; overscroll-behavior-x: contain; }
  .phone-strip::-webkit-scrollbar { display: none; }
  .phone-strip li { flex: 0 0 min(62vw, 250px); scroll-snap-align: center; }
}
@media (max-width: 480px) { .phone-strip { margin-inline: -16px; padding-inline: 16px; } }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; text-align: start; }
.laptop-fig { margin: 0; }
.laptop { position: relative; padding: 0 6% 4.2%; }
.laptop-screen { background: #12161f; border-radius: 14px 14px 0 0; padding: 2.4% 2.4% 3%; box-shadow: 0 0 0 1.5px #3a4150 inset; }
.laptop-screen img { width: 100%; height: auto; border-radius: 3px; }
.laptop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.2%; min-height: 10px;
  background: linear-gradient(#d9dce2, #b7bcc6); border-radius: 0 0 14px 14px / 0 0 60% 60%; box-shadow: 0 14px 30px rgba(29, 36, 51, .18); }
.laptop-fig figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; text-align: center; }
.app-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.app-list li { display: flex; gap: 14px; align-items: flex-start; }
.app-list .ico { width: 24px; height: 24px; padding: 11px; box-sizing: content-box; background: var(--sage-soft); border-radius: 50%; }
.app-list strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.app-list span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.app-note { max-width: 62ch; margin: 36px auto 0; color: var(--ink); font-size: .98rem; }
.app-note.app-priv { margin-top: 10px; }
.app-demo { margin: 8px auto 0; color: var(--muted); font-size: .82rem; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; gap: 32px; } }

/* DESIGN: one front render (white studio background) in a rounded card */
.design-front { margin: 0 auto; max-width: 560px; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.design-front img { display: block; width: 100%; height: auto; }

/* ORDER */
.reserve { max-width: 640px; }
.reserve-card { background: var(--card); border-radius: 24px; padding: 40px; box-shadow: 0 24px 60px rgba(29, 36, 51, .12);
  border-top: 8px solid var(--sage); }
@media (max-width: 480px) { .reserve-card { padding: 28px 20px; } }
.reserve-card .sub { margin: 0 0 16px; text-align: start; }
.price-row { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.price-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; background: #fff; border: 1.5px solid #e6e0d4; flex: none; }
.price { font-family: Fraunces, serif; font-size: 1.5rem; margin: 0; line-height: 1.3; }
.price:empty { display: none; }
.price s { color: var(--muted); font-size: 1rem; margin-left: 8px; }
.price .save { font: 500 .85rem Inter, sans-serif; color: var(--muted); }
form label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 14px; }
form input:not([type=checkbox]), form select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1.5px solid #ddd6c8; border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
form input:focus, form select:focus { outline: none; border-color: var(--sage-ink); }
form .row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
form .field { margin-bottom: 14px; }
form .field .lbl { display: block; font-weight: 500; font-size: .95rem; }
form .phone-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px; }
form .phone-row select { text-overflow: ellipsis; }
form .phone-row input { direction: ltr; }
[dir="rtl"] form .phone-row input { text-align: right; }
form .field-err { color: #b3261e; font-size: .85rem; margin: 4px 0 0; }
form input.bad { border-color: #b3261e; }
@media (max-width: 480px) { form .phone-row { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); } }
form .check { display: flex; gap: 10px; align-items: center; font-weight: 400; color: var(--muted); }
form input.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; opacity: 0; overflow: hidden; pointer-events: none; clip-path: inset(50%); inset-inline-start: 0; }
html, body { overflow-x: clip; }
.form-msg { min-height: 1.5em; margin: 14px 0 0; font-weight: 500; }
.order-sum { background: var(--bg); border-radius: 12px; padding: 12px 16px; margin: 12px 0 10px; }
.sum-row { display: flex; justify-content: space-between; padding: 3px 0; }
.sum-pending span:last-child { color: var(--muted); }
.sum-total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid #e6dccb; margin-top: 6px; padding-top: 8px; }
.ship-note { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.test-banner { background: #fff3cd; border: 1px solid #f2d06b; color: #6b4e00; border-radius: 10px; padding: 8px 12px;
  font-size: .85rem; font-weight: 600; margin: 0 0 14px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #b3261e; }

.faq { max-width: 760px; }
.faq details { background: var(--card); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.foot { text-align: center; padding: 40px 24px 56px; color: var(--muted); border-top: 1px solid #ece4d6; }
.foot .small { font-size: .85rem; }

/* language bar (rendered only once there are 2+ languages) */
.langbar { display: flex; justify-content: center; gap: 2px; padding: 6px 8px 4px; background: #f1ece2; border-bottom: 1px solid #ece4d6;
  overflow-x: auto; scrollbar-width: none; }
.langbar::-webkit-scrollbar { display: none; }
.lang-link { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 38px; padding: 3px 6px; border-radius: 8px;
  text-decoration: none; color: var(--muted); font: 600 .72rem/1 Inter, sans-serif; letter-spacing: .03em; flex: 0 0 auto; }
.lang-link img { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: block; }
.lang-link:hover, .lang-link.on { background: #fff; color: var(--ink); }

/* Hebrew (RTL, /he/ since t_0ed09443), getfoomaster's rules: Poppins renders Latin letters + digits, Heebo the Hebrew
   (Poppins ships no Hebrew glyphs: per-glyph fallback). Bold, compact headings; running text stays 400/500. Every rule
   that names Fraunces/Inter is overridden here. dir="rtl" mirrors the grids/flex rows by itself (hero text on the
   right, icons at the start of each row, nav links from the right, the brand at the left end); only the few
   physical left/right rules and the direction-carrying glyphs (arrow, play) are flipped below. */
[dir="rtl"] { --he-font: "Poppins", "Heebo", system-ui, sans-serif; }
[dir="rtl"] body { font-family: var(--he-font); font-weight: 400; letter-spacing: -0.005em; }
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] button, [dir="rtl"] .btn, [dir="rtl"] .brand,
[dir="rtl"] .price, [dir="rtl"] .price .save, [dir="rtl"] .lang-link, [dir="rtl"] h1, [dir="rtl"] h2,
[dir="rtl"] .hero-pun, [dir="rtl"] .prob-close, [dir="rtl"] .g-steps > li::before { font-family: var(--he-font); }
[dir="rtl"] h1 { font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
[dir="rtl"] h1 .l { display: block; white-space: nowrap; }
[dir="rtl"] h2 { font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
[dir="rtl"] .hero-pun, [dir="rtl"] .prob-close { font-weight: 700; }
[dir="rtl"] .brand, [dir="rtl"] .price, [dir="rtl"] .num, [dir="rtl"] .sum-total { font-weight: 800; }
[dir="rtl"] .price s { font-weight: 500; }
[dir="rtl"] .eyebrow { font-weight: 700; letter-spacing: .04em; }
[dir="rtl"] .btn, [dir="rtl"] .faq summary { font-weight: 700; }
[dir="rtl"] form label, [dir="rtl"] form .field .lbl, [dir="rtl"] .nav .nav-page { font-weight: 600; }
[dir="rtl"] form .check { font-weight: 400; }
[dir="rtl"] .lede, [dir="rtl"] .sub { font-weight: 500; }
[dir="rtl"] .langbar { direction: ltr; }               /* same order of languages on every page */
[dir="rtl"] .lang-link { letter-spacing: 0; }
[dir="rtl"] .price s { margin-left: 0; margin-right: 8px; }
[dir="rtl"] form input[type=email] { direction: ltr; text-align: right; }
/* arrows point the reading way: the guide's "home" arrow points right; the play glyph points left (as getfoomaster's
   film button). The knob's rotate-cw is a physical clockwise turn: not mirrored. */
[dir="rtl"] .ico-arrow-left, [dir="rtl"] .ico-play { transform: scaleX(-1); }
/* the outlined page link: the narrower padding sits on the icon side */
[dir="rtl"] .nav .nav-page { padding: 7px 11px 7px 14px; }
@media (max-width: 720px) { [dir="rtl"] .nav .nav-page { padding: 5px 9px 5px 12px; } }
/* quoted screen labels (<q>Save</q>, <q>Activated!</q>): straight quotes, and each one is its own bidi island that
   takes its direction from its text, so English labels keep their trailing "..." / "!" on the right (a long label
   that wraps continues at the start of the next line, read left to right as usual in mixed Hebrew/English text) */
[dir="rtl"] q { quotes: "\0022" "\0022"; unicode-bidi: plaintext; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .hero-pun { text-wrap: balance; }

/* Nav active-section pill (getfoomaster public/nav.js + its CSS, unchanged). The HTML ships the first-paint state. */
.nav nav.spy { position: relative; gap: 4px; }
.nav nav.spy a { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center;
  padding: 9px 16px; border-radius: 999px; line-height: 17px; text-decoration: none; color: var(--muted); font-weight: 500;
  white-space: nowrap; transition: color .22s; }
.nav nav.spy a::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 600;
  pointer-events: none; user-select: none; }
.nav nav.spy a.on { color: #fff; font-weight: 600; }
.nav nav.spy:not(.js-pill) a.on { background: var(--ink); }
.nav nav.spy:not(.js-pill) a.on:hover { background: #0f1420; }
.nav nav.spy a:not(.on):hover { color: var(--ink); }
.nav nav.spy a:focus-visible { outline: 2px solid var(--sage-ink); outline-offset: 2px; }
.nav-pill { position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; border-radius: 999px; background: var(--ink);
  opacity: 0; pointer-events: none;
  transition: transform .22s cubic-bezier(.3, .7, .3, 1), width .22s cubic-bezier(.3, .7, .3, 1), background .15s; }
.nav-pill.no-anim, .nav nav.no-anim a { transition: none; }
.nav nav.spy a.on:hover ~ .nav-pill { background: #0f1420; }
@media (prefers-reduced-motion: reduce) { .nav-pill, .nav nav.spy a { transition: none; } }
@media (max-width: 900px) { .nav nav.spy a { padding: 9px 11px; } }
/* phones: links in a second header row (scrolls sideways if needed; nav.js keeps the active link in view) */
@media (max-width: 720px) { .nav:has(nav.spy) { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
  .nav:has(nav.spy) .brand { order: -1; margin-inline-start: auto; }
  .nav nav.spy { flex: 1 0 100%; justify-content: space-between; gap: 0; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; margin: 0 -8px; }
  .nav nav.spy::-webkit-scrollbar { display: none; }
  .nav nav.spy a { line-height: normal; flex: none; padding: 7px 10px; font-size: .88rem; font-weight: 600; }
  .nav nav.spy a::after { font-weight: 600; } }
@media (max-width: 480px) { .nav { padding: 12px 14px 8px; } .brand { font-size: 1.1rem; } .nav nav.spy a { padding: 7px 7px; font-size: .8rem; } }
@media (max-width: 400px) { .nav nav.spy { margin: 0 -6px; } .nav nav.spy a { padding: 6px 5px; font-size: .76rem; } }
@media (max-width: 360px) { .nav nav.spy { margin: 0 -10px; } .nav nav.spy a { padding: 6px 4px; font-size: .72rem; } }

/* Page link in the header (landing: "Guide" -> /guide; guide: "Home" -> /): another page, not a section, so it sits
   outside nav.spy (nav.js never sees it), as an outlined pill right after the section links. Phones: on the first header
   row, left of the brand, so the six section links keep the second row to themselves. */
.nav .nav-page { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-inline: 14px auto;
  padding: 7px 14px 7px 11px; border: 1px solid #d9cfbd; border-radius: 999px; color: var(--ink); font-weight: 600;
  font-size: .92rem; line-height: 17px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.nav .nav-page .ico { width: 17px; height: 17px; stroke-width: 2; color: var(--sage-ink); }
.nav .nav-page:hover { background: #f1eadd; border-color: #cbbfa9; }
.nav .nav-page:focus-visible { outline: 2px solid var(--sage-ink); outline-offset: 2px; }
@media (max-width: 720px) { .nav .nav-page { order: -2; margin-inline: 0; padding: 5px 12px 5px 9px; font-size: .85rem; }
  .nav .nav-page .ico { width: 15px; height: 15px; } }

/* ---------- /guide (i18n/guide.html): same look as the landing page; numbered steps next to renders and app screens ---------- */
.guide { display: block; }
.g-intro { max-width: var(--max); margin: 0 auto; padding: 48px 24px 8px; text-align: center; }
.g-intro .lede { margin: 0 auto 36px; max-width: 46ch; }
.g-glance-h { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 18px; }
.g-glance { max-width: 960px; margin: 0 auto; }
@media (min-width: 860px) { .g-glance { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; } }
.g-sec { text-align: start; scroll-margin-top: 72px; }
.g-sec > h2, .g-sec > .sub { text-align: center; }
.g-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.g-grid + .g-grid { margin-top: 48px; }
@media (max-width: 860px) { .g-grid { grid-template-columns: 1fr; gap: 28px; } }
/* numbered steps: a dark disc with the number, like the app section's captions */
.g-steps { list-style: none; counter-reset: g; padding: 0; margin: 0; display: grid; gap: 14px; }
.g-steps > li { counter-increment: g; position: relative; background: var(--card); border-radius: var(--radius);
  padding: 16px 18px 16px 62px; box-shadow: 0 4px 18px rgba(0, 0, 0, .04); line-height: 1.55; }
.g-steps > li::before { content: counter(g); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 .9rem/1 Inter, sans-serif; }
.g-steps p { margin: 10px 0 0; color: var(--muted); }
.g-steps strong, .g-list strong { color: var(--ink); }
q { quotes: "\201C" "\201D"; font-weight: 600; }
/* media column */
.g-media { display: grid; gap: 22px; }
.g-media figure { margin: 0; }
.g-media figcaption { margin-top: 10px; font-size: .92rem; color: var(--muted); display: flex; gap: 8px; align-items: center;
  justify-content: center; text-align: center; line-height: 1.35; }
.g-media .media-card figcaption { margin: 0; padding: 10px 12px 12px; background: var(--card); }
.g-shot img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1.5px #3a4150 inset, 0 16px 40px rgba(29, 36, 51, .18); background: #12161f; }
/* TaleLight's own screen, inside a step (firmware OLED render harness output, 4x pixels) */
.g-oled { margin: 12px 0 0; max-width: 264px; }
.g-oled img { display: block; width: 100%; border-radius: 6px; background: #000; box-shadow: 0 6px 18px rgba(29, 36, 51, .16); }
.g-oled figcaption { margin-top: 6px; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.g-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.g-phones .phone { max-width: 240px; margin: 0 auto; }
@media (min-width: 861px) { .g-media { position: sticky; top: 90px; } }
@media (max-width: 860px) { .g-media { max-width: 520px; margin: 0 auto; width: 100%; } }
/* text blocks with an icon disc (family, settings, touch pad, knob, battery ...) */
.g-blocks { display: grid; gap: 16px; }
.g-block { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .04); }
.g-block > .ico { width: 24px; height: 24px; padding: 11px; box-sizing: content-box; background: var(--sage-soft); border-radius: 50%; }
.g-block > div { min-width: 0; }
.g-block h3 { font-size: 1.1rem; margin: 6px 0 6px; }
.g-block p { margin: 0 0 8px; color: var(--muted); }
.g-block p:last-child { margin-bottom: 0; }
.g-list { margin: 4px 0 0; padding-inline-start: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.g-list li::marker { color: var(--gold); }
@media (max-width: 480px) { .g-block { padding: 16px; gap: 12px; } .g-block > .ico { padding: 9px; width: 22px; height: 22px; }
  .g-steps > li { padding: 14px 14px 14px 54px; } .g-steps > li::before { left: 14px; top: 14px; width: 28px; height: 28px; } }
/* light colours legend */
.g-colours { margin: 40px auto 0; max-width: 820px; background: var(--card); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .04); }
.g-colours h3 { font-size: 1.1rem; margin-bottom: 12px; }
.g-colours ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-colours li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); line-height: 1.45; }
.sw { flex: none; width: 34px; height: 18px; border-radius: 999px; margin-top: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08) inset; }
.sw-warm { background: #ffe066; }
.sw-rainbow { background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #b06bff); }
.sw-purple { background: radial-gradient(circle, #8000ff 30%, #cfa8ff); }
.sw-sync { background: linear-gradient(90deg, #0000ff 0 20%, #00c000 20% 40%, #ff00ff 40% 60%, #8000ff 60% 80%, #ff8000 80%); }
.sw-blue { background: radial-gradient(circle, #0000ff 30%, #a8b8ff); }
.sw-red { background: #e02424; }
/* troubleshooting reuses .faq */
.g-sec.faq { max-width: 760px; }
.g-back { text-align: center; margin: 32px 0 0; }
.guide-page .foot a { color: var(--muted); }
[dir="rtl"] .g-steps > li { padding: 16px 62px 16px 18px; }
[dir="rtl"] .g-steps > li::before { left: auto; right: 18px; }
@media (max-width: 480px) { [dir="rtl"] .g-steps > li { padding: 14px 54px 14px 14px; } [dir="rtl"] .g-steps > li::before { right: 14px; } }
/* RTL nav pill (getfoomaster): Heebo's line box is taller, so the pill keeps Inter's height with line-height 21px */
[dir="rtl"] .nav nav.spy a { font-weight: 600; line-height: 21px; }
[dir="rtl"] .nav nav.spy a::after, [dir="rtl"] .nav nav.spy a.on { font-weight: 700; }
@media (max-width: 720px) { [dir="rtl"] .nav nav.spy a { line-height: normal; } }
