/* Tellurin — liquid glass over warm paper.
   Hand-written port of the Kimi K3 design (React + Tailwind) to plain CSS. */

/* ---------- fonts (self-hosted, SIL Open Font License — see /fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --paper: #f6f1e6;
  --paper-deep: #efe7d7;
  --ink: #1d2a45;
  --ink-soft: #3d4a66;
  --ink-mute: #5c6580;      /* 5.0:1 on paper */
  --gold: #9b7943;          /* large italic display only (3.4:1) */
  --gold-deep: #7d6030;     /* small gold text (5.2:1) */
  --gold-line: #a8854c;     /* rules and ornaments */
  --ok: #4d7345;
  --cream: #f3eee1;
  --hairline: rgba(29, 42, 69, 0.14);

  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
  --glass-brd: rgba(255, 255, 255, 0.65);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(29, 42, 69, 0.05),
    0 24px 60px -24px rgba(29, 42, 69, 0.25);
  --glass-blur: blur(22px) saturate(1.5);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 20px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100dvh;
}
h1, h2, h3, h4, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(168, 133, 76, 0.28); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- layout ---------- */
.wrap { margin-inline: auto; padding-inline: var(--gutter); width: 100%; }
.wrap-3 { max-width: calc(48rem + 2 * var(--gutter)); }
.wrap-4 { max-width: calc(56rem + 2 * var(--gutter)); }
.wrap-5 { max-width: calc(64rem + 2 * var(--gutter)); }
.wrap-6 { max-width: calc(72rem + 2 * var(--gutter)); }
.center { text-align: center; }
.section { position: relative; padding-block: 112px; }
.section-tight { padding-block: 64px 32px; }
.section-craft, .section-price { padding-top: 40px; }
.section-faq { padding-top: 24px; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
.gold-italic { font-style: italic; font-weight: 500; color: var(--gold); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.body { color: var(--ink-soft); line-height: 1.7; }
.h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-top: 20px; }
.h3 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 20px; }
.measure { max-width: 36rem; margin-top: 24px; }
.measure-h { max-width: 42rem; }
.smallcaps { font-variant: small-caps; font-variant-caps: small-caps; letter-spacing: 0.06em; }
.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.1em;
  line-height: 0.8;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--gold-deep);
}
.folio { font-family: var(--serif); color: var(--ink-mute); letter-spacing: 0.3em; font-size: 14px; }

/* ornament: fleuron between two fading rules */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold-line); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 56px; background: linear-gradient(to right, transparent, currentColor); }
.ornament::after { background: linear-gradient(to left, transparent, currentColor); }

/* ---------- glass ---------- */
.glass, .btn-glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow);
}
.glass::before, .btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% -10%, rgba(255, 255, 255, 0.55), transparent 46%),
    radial-gradient(90% 70% at 88% 112%, rgba(255, 255, 255, 0.22), transparent 52%);
  mix-blend-mode: screen;
}
.glass-deep, .btn-deep {
  position: relative;
  background: linear-gradient(150deg, rgba(29, 42, 69, 0.95), rgba(29, 42, 69, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 44px -16px rgba(29, 42, 69, 0.5);
  color: var(--cream);
}
.glass-deep::before, .btn-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(110% 80% at 15% -8%, rgba(255, 255, 255, 0.18), transparent 50%);
}

/* ---------- aurora field ---------- */
.field { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* let the auroras bleed softly into the next section instead of ending on a hard edge */
@supports (overflow: clip) { .field { overflow: visible; overflow-x: clip; } }
.aurora { position: absolute; border-radius: 9999px; }
.aurora-gold { background: radial-gradient(circle, rgba(232, 197, 132, 0.55), transparent 65%); }
.aurora-blush { background: radial-gradient(circle, rgba(238, 190, 178, 0.5), transparent 65%); }
.aurora-peri { background: radial-gradient(circle, rgba(178, 194, 236, 0.55), transparent 65%); }
.aurora-sage { background: radial-gradient(circle, rgba(196, 210, 188, 0.45), transparent 65%); }
@keyframes drift-a { 50% { transform: translate3d(4vw, -3vh, 0) scale(1.08); } }
@keyframes drift-b { 0%, 100% { transform: scale(1.05); } 50% { transform: translate3d(-3vw, 4vh, 0) scale(0.96); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
a.btn:hover { transform: scale(1.04); }
a.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-lg { padding: 0 28px; min-height: 50px; }
.btn-xl { padding: 0 36px; min-height: 54px; }
.btn-glass { color: var(--ink); }
.is-soon { cursor: default; }
.is-soon::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-radius: 50%;
  background: #e2c47e;
  box-shadow: 0 0 0 4px rgba(226, 196, 126, 0.22);
}

/* ---------- nav ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 16px 16px 0;
  transition: transform 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95), opacity 0.3s;
}
.navbar.is-hidden { transform: translateY(-140%); opacity: 0; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 62rem;
  border-radius: 999px;
  padding: 7px 7px 7px 18px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; }
.brand-mark { width: 28px; height: 27px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: 0.01em; color: var(--ink); transform: translateY(-1px); }
.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color 0.3s;
  padding: 10px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 1px;
  width: 0;
  background: var(--gold-line);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-end { display: flex; align-items: center; gap: 6px; }
.nav-cta { display: none; }
.burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); transition: background 0.2s; }
.burger:hover { background: rgba(255, 255, 255, 0.45); }
.burger-close { display: none; }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="true"] .burger-close { display: inline; }

.menu { position: fixed; inset: 0; z-index: 45; display: flex; justify-content: center; align-items: flex-start; padding: 92px 16px 0; }
.menu-scrim { position: absolute; inset: 0; background: rgba(29, 42, 69, 0.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.menu-panel { width: 100%; max-width: 24rem; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 2px; animation: menu-in 0.28s var(--ease-out); }
.menu-panel a:not(.btn) { font-family: var(--serif); font-size: 21px; font-weight: 500; padding: 12px 16px; border-radius: 14px; transition: background 0.2s; }
.menu-panel a:not(.btn):hover { background: rgba(255, 255, 255, 0.45); }
.menu-cta { margin-top: 10px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 128px 0 56px; isolation: isolate; }
.hero-title { font-size: clamp(2.9rem, 9vw, 7.2rem); margin-top: 26px; }
.mask-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.mask-line > span { display: inline-block; }
.hero .ornament { margin-top: 28px; }
.lead { max-width: 36rem; margin: 28px auto 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-meta { margin-top: 20px; font-size: 13.5px; color: var(--ink-mute); letter-spacing: 0.02em; }

.wrap-hero { max-width: calc(64rem + 2 * var(--gutter)); margin-top: 64px; padding-inline: 12px; }
.shot-wrap > div { position: relative; }
.shot { border-radius: 22px; padding: 7px; z-index: 1; }
.shot img { width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; background: #eef0f4; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }

.chip {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.chip svg { color: var(--gold-deep); }
.chip-ag { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1; }
.chip-1 { left: -32px; top: 18%; }
.chip-2 { right: -24px; top: 42%; }
.chip-3 { left: -16px; bottom: 8%; }
@keyframes float { 50% { transform: translateY(var(--fy, -9px)); } }

/* ---------- how it works ---------- */
.split-head { display: grid; gap: 28px; align-items: end; }
.split-head .h2 { margin-top: 0; }
.split-copy { max-width: 28rem; }
.split-note { margin-top: 16px; }

.transform { display: grid; gap: 36px; align-items: center; margin-top: 72px; }
.tilt { border-radius: 24px; padding: 12px; transition: transform 0.5s var(--ease-out); }
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }
.tilt:hover { transform: rotate(0); }
.caption { margin-top: 20px; text-align: center; }
.doc { overflow: hidden; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.72); }
.doc-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--hairline); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-mute); }
.doc-dots { display: flex; gap: 6px; }
.doc-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d8d2c2; }
.doc-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.doc-h { font-size: 13px; font-weight: 600; color: var(--ink); }
.doc-body span { display: block; height: 7px; border-radius: 99px; background: #ddd6c4; }
.arrow-cell { display: flex; justify-content: center; }
.arrow { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; transform: rotate(90deg); }

/* drawn book page (kept from the Kimi design) */
.bookpage-frame { height: 300px; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.5); font-size: 22px; }
.bookpage {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 9% 12%;
  background: #fdfaf2;
  box-shadow: inset 0 0 40px rgba(168, 133, 76, 0.06);
  font-family: var(--serif);
  color: var(--ink);
}
.bp-label { text-align: center; font-family: var(--sans); font-size: 0.5em; font-weight: 600; letter-spacing: 0.42em; color: var(--gold-deep); }
.bp-num { margin-top: 0.3em; text-align: center; font-size: 2.1em; font-style: italic; line-height: 1; }
.bp-orn { margin: 0.6em auto 0; width: 70%; }
.bp-orn::before, .bp-orn::after { width: 40px; }
.bp-text {
  margin-top: 1.2em;
  text-align: justify;
  hyphens: auto;
  font-size: 0.66em;
  line-height: 1.7;
  color: #2c3a58;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-folio { margin-top: auto; padding-top: 0.8em; text-align: center; font-size: 0.55em; color: var(--ink-mute); }

.steps-block { margin-top: 112px; }
.steps { position: relative; display: grid; gap: 48px; margin-top: 56px; }
.steps li { text-align: center; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.steps h4 { margin-top: 22px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.25; }
.steps .body { margin: 10px auto 0; max-width: 24rem; font-size: 15.5px; }

/* ---------- inside (real screens) ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 36px auto 0;
}
.tabs [role="tab"] {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 18px -12px rgba(29, 42, 69, 0.35);
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease-out);
}
.tabs [role="tab"]:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.panels { margin-top: 28px; }
.panel { text-align: center; border-radius: 24px; }
.panel:focus-visible { outline-offset: 6px; }
.panel .shot { padding: 7px; }
.anim .panel.is-entering .shot { animation: panel-in 0.5s var(--ease-out); }
@keyframes panel-in { from { opacity: 0.2; transform: translateY(10px) scale(0.99); } }
.panel-title { margin-top: 28px; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; line-height: 1.15; }
.panel-copy { max-width: 40rem; margin: 10px auto 0; }

/* ---------- plates (bento) ---------- */
.bento { display: grid; gap: 20px; margin-top: 56px; }
.card { display: flex; flex-direction: column; border-radius: 26px; padding: 26px; transition: transform 0.5s var(--ease-out); }
.card:hover { transform: translateY(-6px); }
.card-title { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.25; }
.card-copy { margin-top: 8px; font-size: 15.5px; }

.devices { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 20px; width: 100%; max-width: 28rem; margin: 0 auto 20px; padding-top: 28px; }
.tablet { width: 46%; border: 6px solid #232f4b; border-radius: 16px; background: #fdfaf2; padding: 20px 16px; box-shadow: 0 20px 38px -16px rgba(29, 42, 69, 0.4); }
.tablet-label { text-align: center; font-size: 8px; letter-spacing: 0.3em; color: var(--gold-deep); }
.tablet-num { text-align: center; font-family: var(--serif); font-size: 21px; font-style: italic; line-height: 1.3; }
.lines { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; align-items: center; }
.lines span { display: block; height: 4px; border-radius: 99px; background: #e3dcc8; }
.phone { width: 22%; border: 4px solid #232f4b; border-radius: 12px; background: #2a2c33; padding: 16px 10px; box-shadow: 0 20px 38px -16px rgba(29, 42, 69, 0.45); }
.phone .lines { margin-top: 0; }
.phone .lines span { height: 3px; background: #565b6b; }
.swatches { position: absolute; right: 0; top: 0; display: flex; gap: 6px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.1); }

.checks { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.check { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: var(--gold-deep); }
.check .ok { color: var(--ok); }

.excerpt { flex: 1; margin-bottom: 24px; font-family: var(--serif); font-size: 16px; line-height: 1.75; text-align: justify; hyphens: auto; color: #2c3a58; }
.hellos { flex: 1; margin-bottom: 24px; font-family: var(--serif); font-size: 20px; line-height: 2; color: var(--ink-soft); }

.mini-cover-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding-bottom: 24px; }
.mini-cover { display: flex; width: 100%; max-width: 240px; height: 112px; overflow: hidden; border-radius: 6px; border: 1px solid var(--hairline); box-shadow: 0 14px 30px -14px rgba(29, 42, 69, 0.35); }
.mc-back { flex: 1; background: #e8ddc6; padding: 8px; }
.mc-back span { display: block; height: 100%; border-radius: 2px; border: 1px dashed #b6a67f; }
.mc-spine { width: 7px; background: #c9b98f; }
.mc-front { flex: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; text-align: center; background: #f3ead6; }
.mc-title { font-family: var(--serif); font-style: italic; font-size: 12px; line-height: 1.2; }
.mc-author { font-size: 7px; letter-spacing: 0.2em; color: var(--ink-mute); }

.card-wide { gap: 24px; }
.wide-copy { max-width: 36rem; }
.lock { display: inline-flex; align-self: flex-start; align-items: center; gap: 12px; border-radius: 16px; padding: 16px 20px; font-size: 13.5px; font-weight: 500; }

/* ---------- the craft ---------- */
.ornament-rule { margin-top: 24px; }
.chapters { margin-top: 56px; }
.chapter { display: grid; gap: 14px; padding-block: 44px; border-top: 1px solid var(--hairline); }
.numeral { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; color: var(--gold); }
.h-chapter { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.chapter-copy { margin-top: 16px; max-width: 36rem; }
.shelf { margin-top: 40px; padding-top: 56px; border-top: 1px solid var(--hairline); }
.shelf-list { max-width: 48rem; margin: 26px auto 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 2; color: var(--ink-soft); }
.shelf-list span { color: var(--gold-line); }

/* ---------- compare ---------- */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center-block { margin-inline: auto; }
.section-compare { padding-top: 40px; }
.cmp { margin-top: 48px; border-radius: 28px; padding: 6px; }
.cmp-scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 22px; scrollbar-width: thin; scrollbar-color: rgba(29, 42, 69, 0.25) transparent; }
.cmp-inner { position: relative; min-width: 640px; padding: 4px; }
.cmp-table { position: relative; z-index: 1; width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14.5px; line-height: 1.45; }
.cmp-table th, .cmp-table td { padding: 15px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(29, 42, 69, 0.08); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th { padding-top: 20px; padding-bottom: 16px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); border-bottom-color: rgba(29, 42, 69, 0.14); }
.cmp-table thead th:first-child { width: 27%; }
.cmp-table tbody th { font-weight: 600; font-size: 14px; color: var(--ink); }
.cmp-table td { color: var(--ink-soft); }
.cmp-brand { display: inline-flex; align-items: center; gap: 8px; }
.cmp-brand svg { flex: none; }
/* the Tellurin column: denser glass with a fine gold edge */
.cmp-table .is-t {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 1px 0 0 rgba(168, 133, 76, 0.45), inset -1px 0 0 rgba(168, 133, 76, 0.45);
  color: var(--ink);
  font-weight: 500;
}
.cmp-table thead .is-t { border-radius: 16px 16px 0 0; box-shadow: inset 1px 0 0 rgba(168, 133, 76, 0.45), inset -1px 0 0 rgba(168, 133, 76, 0.45), inset 0 1px 0 rgba(168, 133, 76, 0.45); }
.cmp-table tbody tr:last-child .is-t { border-radius: 0 0 16px 16px; box-shadow: inset 1px 0 0 rgba(168, 133, 76, 0.45), inset -1px 0 0 rgba(168, 133, 76, 0.45), inset 0 -1px 0 rgba(168, 133, 76, 0.45); }
.cmp-table .yes { color: var(--ok); width: 15px; height: 15px; }
.cmp-table .is-t .yes { color: var(--gold-deep); }
.cmp-table .no { color: var(--ink-mute); font-size: 16px; }
.cmp-table .is-price td, .cmp-table .is-price th { font-weight: 600; color: var(--ink); }
.cmp-table .is-price .is-t { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.cmp-table tbody tr { outline: none; cursor: default; }

/* the glass lens that glides from row to row */
.lens {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(29, 42, 69, 0.06),
    0 0 0 1px rgba(168, 133, 76, 0.16),
    0 14px 34px -14px rgba(29, 42, 69, 0.38);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    box-shadow 0.2s;
  will-change: transform, height;
}
.lens::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 140% at 8% -30%, rgba(255, 255, 255, 0.9), transparent 55%);
}
.lens.is-on { opacity: 1; }
.lens.is-kbd { box-shadow: inset 0 1px 0 #fff, 0 0 0 2px var(--gold-deep), 0 14px 34px -14px rgba(29, 42, 69, 0.38); }
.cmp-hint { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-mute); }
.cmp-source { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--ink-mute); }

@media (max-width: 767px) {
  /* criteria stay put while the comparison scrolls sideways inside the card */
  .cmp-table tbody th, .cmp-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: linear-gradient(90deg, #f8f4ec 88%, rgba(248, 244, 236, 0));
  }
  .cmp-table tr.is-active th { background: linear-gradient(90deg, #fdfcf9 88%, rgba(253, 252, 249, 0)); }
  .cmp-table thead th:first-child { width: 128px; }
  .cmp-table th, .cmp-table td { padding: 13px 12px; }
  .cmp-table thead th { font-size: 20px; }
  .cmp-inner { min-width: 620px; }
}
@media (min-width: 768px) {
  .section-compare { padding-top: 56px; }
  .cmp { padding: 8px; }
  .cmp-inner { min-width: 0; padding: 6px; }
  .cmp-hint { display: none; }
  .cmp-table th, .cmp-table td { padding: 16px 22px; }
  .cmp-table { font-size: 15px; }
}

/* ---------- price ---------- */
.price-card { margin-top: 52px; border-radius: 32px; padding: 40px 22px; }
.price { margin-top: 20px; font-size: clamp(4.5rem, 14vw, 7.5rem); line-height: 1; }
.price-note { margin-top: 14px; font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-mute); }
.included { display: grid; gap: 12px 32px; max-width: 28rem; margin: 34px auto 0; text-align: left; }
.included li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.included svg { flex: none; margin-top: 6px; color: var(--gold-deep); }
.price-card .btn { margin-top: 40px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--ink-mute); }
.fine + .fine { margin-top: 4px; }

/* ---------- questions ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 44px; }
.faq details { border-radius: 20px; }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 18px 56px 18px 22px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  border-radius: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 14px 1.6px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 1.6px 14px no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 56px 20px 22px; color: var(--ink-soft); line-height: 1.7; }
.anim .faq details[open] p { animation: faq-in 0.35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- footer ---------- */
.footer { position: relative; padding: 24px 0 56px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 48px; border-top: 1px solid var(--hairline); text-align: center; }
.footer-copy { max-width: 28rem; font-size: 14.5px; }

/* ==================================================================
   Motion (only with html.anim — i.e. not prefers-reduced-motion)
================================================================== */
@keyframes rise { from { transform: translateY(110%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes lift { from { transform: translateY(48px); } }
.anim [data-hero-line] { animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: var(--d, 0.15s); }
.anim [data-hero] { animation: fade-up 0.95s var(--ease-out) both; animation-delay: var(--d, 0s); }
.anim [data-hero-up] { animation: lift 1.2s var(--ease-out) 0.5s both; }
.anim [data-float] { animation: float 3.4s ease-in-out infinite; }
.anim .chip-2 { --fy: 9px; animation-duration: 3.9s; }
.anim .chip-3 { animation-duration: 4.4s; }

/* scroll reveals: hidden only once main.js has armed them */
.reveal-armed [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out), filter 0.95s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-armed [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-parallax] { will-change: transform; }

/* ==================================================================
   Breakpoints
================================================================== */
@media (max-width: 767px) {
  /* lighter glass and still auroras on phones: smooth scrolling first */
  :root { --glass-blur: blur(12px) saturate(1.35); }
  .aurora { opacity: 0.9; }
  .hero .aurora-gold { width: 90vw !important; height: 90vw !important; }
  .hero .aurora-peri { width: 80vw !important; height: 80vw !important; }
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero { padding-top: 160px; }
  .wrap-hero { padding-inline: 24px; margin-top: 80px; }
  .shot { border-radius: 28px; padding: 11px; }
  .shot img { border-radius: 20px; }
  .section { padding-block: 144px; }
  .section-tight { padding-block: 72px 40px; }
  .section-craft, .section-price { padding-top: 56px; }
  .section-faq { padding-top: 24px; }
  .chapter { grid-template-columns: 80px 1fr; gap: 40px; padding-block: 56px; }
  .price-card { padding: 56px; }
  .included { grid-template-columns: 1fr 1fr; }
  .card { padding: 32px; }
  .bookpage-frame { height: 330px; }
  .card-wide { flex-direction: row; align-items: center; justify-content: space-between; }
  .lock { align-self: center; flex: none; }
  .nav-cta { display: inline-flex; }
}
@media (min-width: 768px) {
  .split-head { grid-template-columns: 1fr 1fr; }
  .split-head > div { justify-self: end; text-align: right; }
  .split-copy { margin-left: auto; }
  .transform { grid-template-columns: 1fr auto 1fr; gap: 40px; margin-top: 80px; }
  .arrow { transform: none; }
  .steps-block { margin-top: 128px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
  .steps::before { content: ""; position: absolute; left: 24px; right: 16%; top: 24px; height: 1px; background: var(--hairline); }
  .steps li { text-align: left; }
  .steps .body { margin-left: 0; }
  .step-n { position: relative; }
  .bento { grid-template-columns: repeat(12, 1fr); margin-top: 64px; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-7 { grid-column: span 7; }
  .span-12 { grid-column: span 12; }
  .reveal-armed [data-reveal] { filter: blur(6px); }
  .anim .drift-a { animation: drift-a 26s ease-in-out infinite; }
  .anim .drift-b { animation: drift-b 32s ease-in-out infinite; }
  .aurora { filter: blur(60px); will-change: transform; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .bento .span-4:nth-of-type(3) { grid-column: span 6; }
  .bento .span-4:nth-of-type(4) { grid-column: span 6; }
  .bento .span-4:nth-of-type(5) { grid-column: span 12; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .chip { display: inline-flex; }
}
@media (min-width: 1280px) {
  .chip-1 { left: -56px; }
  .chip-2 { right: -48px; }
  .chip-3 { left: -40px; }
}

/* touch devices: no hover lifts that stick after a tap */
@media (hover: none) {
  .card:hover { transform: none; }
  .tilt-l:hover { transform: rotate(-1.5deg); }
  .tilt-r:hover { transform: rotate(1.5deg); }
  a.btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* Cifre drepte peste tot: cifrele în stil vechi ale lui Cormorant fac „1” să semene cu „I” la pași și la prețuri. */
body { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
