/* ==========================================================================
   Private Dental Studio — prototype
   Ivory, white and antique gold. Soft corners, calm motion.
   ========================================================================== */

:root {
  --ivory: #FBF9F5;
  --paper: #F5F0E7;
  --white: #FFFFFF;
  --ink: #1E1B17;
  --ink-2: #4A443C;
  --muted: #847A6D;
  --line: rgba(30, 27, 23, 0.09);
  --line-2: rgba(30, 27, 23, 0.16);

  --gold: #B8945F;
  --gold-ink: #8A6A38;
  --gold-soft: #EADFCB;
  --gold-tint: #F7F1E6;
  --gold-metal: linear-gradient(120deg, #E9D7AE 0%, #C3A06A 30%, #F3E6C8 52%, #B48E57 78%, #DCC394 100%);
  --rose: #E7A7A0;
  --error: #B4493A;

  --r-xs: 10px;
  --r-sm: 16px;
  --r: 22px;
  --r-lg: 30px;
  --r-xl: 44px;

  --shadow-sm: 0 1px 2px rgba(60, 45, 25, 0.05), 0 10px 30px -16px rgba(60, 45, 25, 0.22);
  --shadow: 0 2px 6px rgba(60, 45, 25, 0.04), 0 40px 80px -40px rgba(60, 45, 25, 0.32);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --serif: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Paper grain, barely there */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 360;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
h1 { font-size: clamp(3rem, 7.2vw, 6.4rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 330; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.06; }
h3 { font-size: 1.45rem; line-height: 1.2; font-weight: 420; }
h1 em, h2 em { font-style: italic; color: var(--gold-ink); font-weight: inherit; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--ivory);
}
.skip:focus { top: 16px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow span {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--gold); opacity: 0.6; }
.eyebrow-sm { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }

.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head.wide { max-width: 980px; }
.sec-head h2 { margin-top: 22px; }
.sec-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.sec-note { color: var(--muted); font-size: 1.02rem; max-width: 420px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease), background-position 0.8s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--ivory); box-shadow: 0 14px 30px -16px rgba(30, 27, 23, 0.7); }
.btn-ink:hover { background: #2C2822; box-shadow: 0 0 0 1px var(--gold), 0 18px 34px -16px rgba(30, 27, 23, 0.6); }
.btn-gold {
  color: #2A2015;
  background: var(--gold-metal);
  background-size: 220% 100%;
  background-position: 0% 50%;
  box-shadow: 0 14px 30px -14px rgba(150, 110, 50, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-gold:hover { background-position: 100% 50%; }
.btn-line { background: var(--white); color: var(--ink); border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--gold); }
.btn-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-text:hover { color: var(--ink); border-color: var(--gold); }
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 3px;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat;
  transition: gap 0.4s var(--ease), background-size 0.4s var(--ease);
}
.link-line:hover { gap: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(251, 249, 245, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--gold); }
.brand-word { font-family: var(--serif); font-size: 1.12rem; font-weight: 420; letter-spacing: -0.01em; font-variation-settings: "SOFT" 100; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--ink); }
.nav-toggle { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.menu {
  margin: 0 var(--gutter) 12px;
  padding: 14px;
  display: grid;
  gap: 2px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; }
.menu[hidden] { display: none; }
.menu a:not(.btn) { padding: 14px 12px; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); border-radius: var(--r-sm); }
.menu a:not(.btn):hover { background: var(--gold-tint); }
.menu .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(56px, 7vw, 96px); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(232, 214, 178, 0.45), transparent 65%),
    radial-gradient(700px 400px at 10% 0%, rgba(255, 255, 255, 0.9), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 { margin-top: 28px; }
.lead { margin-top: 26px; max-width: 30em; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 38px; }
.reassure { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

.hero-visual { margin: 0; }
.stage {
  position: relative;
  aspect-ratio: 1 / 1.04;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #FFFFFF 0%, #FBF7EF 42%, #F1E7D5 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 1.2s var(--ease); }
.stage canvas:active { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 0.8s var(--ease); }
.stage-fallback svg { width: 38%; color: var(--gold); opacity: 0.8; }
.is-3d .stage canvas { opacity: 1; }
.is-3d .stage-fallback { opacity: 0; }
figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; padding-inline: 6px; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
figcaption .hint { color: var(--gold-ink); }

.promises {
  list-style: none;
  margin-top: clamp(56px, 7vw, 88px);
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.promises li { padding: 26px 26px 4px 0; border-top: 1px solid var(--line-2); }
.promises li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.promises strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 420; color: var(--ink); font-variation-settings: "SOFT" 100; }
.promises span { display: block; margin-top: 4px; font-size: 0.9rem; color: var(--muted); }

/* ---------- 01 Approach ---------- */
.approach { background: var(--white); border-block: 1px solid var(--line); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.principles li { padding-top: 26px; border-top: 1px solid var(--gold); }
.numeral { display: block; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-ink); }
.principles h3 { margin-top: 16px; font-size: 1.9rem; }
.principles p { margin-top: 14px; color: var(--muted); }

/* ---------- 02 Care list ---------- */
.tx-list { border-top: 1px solid var(--line-2); }
.tx { border-bottom: 1px solid var(--line-2); }
.tx-row {
  width: 100%;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 16px;
  padding: 26px 8px;
  text-align: left;
  border-radius: var(--r-sm);
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.tx-row:hover { background: var(--gold-tint); padding-inline: 20px; }
.tx-num { font-family: var(--serif); font-style: italic; color: var(--gold-ink); }
.tx-name { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 360; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100; }
.tx-meta { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.tx-plus { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease); }
.tx-plus::before, .tx-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.tx-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.5s var(--ease); }
.tx.is-open .tx-plus { background: var(--ink); border-color: var(--ink); }
.tx.is-open .tx-plus::before, .tx.is-open .tx-plus::after { background: var(--ivory); }
.tx.is-open .tx-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.tx-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.tx.is-open .tx-panel { grid-template-rows: 1fr; }
.tx-panel > div { overflow: hidden; }
.tx-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
  padding: 4px 8px 34px 94px;
}
.tx-body p { color: var(--ink-2); }
.tx-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tx-body li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--muted); }
.tx-body li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--gold); }

/* ---------- Cards / panels ---------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.panel {
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
}

/* ---------- 03 Comfort ---------- */
.comfort-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; }
.breathe { padding: clamp(28px, 4vw, 48px); display: grid; place-items: center; gap: 30px; }
.breathe-orb { position: relative; width: min(100%, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.breathe-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.breathe-ring circle { fill: none; stroke-width: 1.2; }
.breathe-ring .track { stroke: var(--line-2); }
.breathe-ring .prog { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 603.2; stroke-dashoffset: 603.2; }
.orb-fill {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFFFFF 0%, #FBF5EA 45%, #EADBC0 100%);
  box-shadow: 0 30px 60px -30px rgba(150, 110, 50, 0.45), inset 0 -10px 30px rgba(184, 148, 95, 0.18);
  transform: scale(0.62);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
}
.orb-text { position: relative; display: grid; justify-items: center; text-align: center; padding: 0 16%; }
.orb-phase { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); font-variation-settings: "SOFT" 100; line-height: 1.2; }
.orb-count { margin-top: 6px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); min-height: 1.2em; }
.breathe-foot { display: grid; justify-items: center; gap: 12px; text-align: center; }
.breathe-foot p { font-size: 0.85rem; color: var(--muted); }

.plan { padding: clamp(28px, 4vw, 44px); }
.plan-intro { margin-top: 10px; color: var(--muted); }
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--ivory);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  color: var(--ink-2);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.opt .lucide { width: 18px; height: 18px; stroke-width: 1.5; color: var(--gold-ink); flex-shrink: 0; }
.opt:hover { border-color: var(--gold); }
.opt:active { transform: scale(0.98); }
.opt[aria-pressed="true"] { background: var(--gold-tint); border-color: var(--gold); color: var(--ink); }
.opt[aria-pressed="true"]::after {
  content: "";
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan-summary { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; }
.plan-count { font-size: 0.85rem; color: var(--muted); }
.plan-count b { font-family: var(--serif); font-size: 1.3rem; font-weight: 420; color: var(--ink); }
.plan-summary ul, .sum-comfort ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plan-summary li, .sum-comfort li { padding: 6px 12px; border-radius: 999px; background: var(--gold-tint); font-size: 0.8rem; color: var(--ink-2); animation: pop 0.4s var(--ease); }
.plan-summary li.empty, .sum-comfort li.empty { background: none; padding: 0; color: var(--muted); animation: none; }
.sum-comfort li.empty a { color: var(--gold-ink); border-bottom: 1px solid var(--gold-soft); }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } }

/* ---------- 04 Try it ---------- */
.polish { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); overflow: hidden; }
.polish-stage { position: relative; padding: 14px; background: var(--paper); border-right: 1px solid var(--line); }
.polish-stage canvas { width: 100%; border-radius: calc(var(--r-lg) - 12px); cursor: none; touch-action: none; }
.brush-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 84px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  will-change: transform;
}
.brush-cursor.is-on { opacity: 1; }
.brush-cursor svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 10px rgba(60, 40, 20, 0.25)); }
.polish-start {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.polish-start.is-hidden { opacity: 0; transform: translate(-50%, 8px); }
.polish-done {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: min(calc(100% - 52px), 460px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px 12px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.polish-done.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.done-title { font-family: var(--serif); font-size: 2rem; color: var(--ink); font-variation-settings: "SOFT" 100; font-style: italic; }
.polish-done .done-title { font-size: 1.35rem; line-height: 1.1; }
.polish-done p:not(.done-title) { margin-top: 2px; color: var(--muted); font-size: 0.82rem; }
.polish-done .btn { flex-shrink: 0; }

.polish-side { padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.tools { display: grid; gap: 8px; }
.tool input { position: absolute; opacity: 0; pointer-events: none; }
.tool span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.tool b { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.tool small { color: var(--muted); font-size: 0.8rem; }
.tool span:hover { border-color: var(--gold); }
.tool input:checked + span { background: var(--gold-tint); border-color: var(--gold); }
.tool input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.polish-progress { display: flex; align-items: center; gap: 16px; }
.mini-ring { width: 64px; height: 64px; flex-shrink: 0; transform: rotate(-90deg); }
.mini-ring circle { fill: none; stroke-width: 3; }
.mini-ring .track { stroke: var(--line); }
.mini-ring .prog { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 175.9; stroke-dashoffset: 175.9; transition: stroke-dashoffset 0.4s var(--ease); }
.pct { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1.1; font-variation-settings: "SOFT" 100; }
.msg { margin-top: 4px; font-size: 0.88rem; color: var(--muted); }
.polish-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; }

.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.timer, .shade { padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; }
.timer-head p { margin-top: 8px; color: var(--muted); font-size: 0.93rem; }
.timer-map { position: relative; width: min(100%, 320px); margin: 24px auto 0; aspect-ratio: 1; }
.arch { width: 100%; height: 100%; }
.arch .t { fill: var(--white); stroke: var(--line-2); stroke-width: 1; transition: fill 0.4s var(--ease), stroke 0.4s var(--ease); }
.arch .q-active .t { stroke: var(--gold); fill: var(--gold-tint); }
.arch .t.is-done { fill: var(--gold-soft); stroke: var(--gold); }
.arch .t.is-now { fill: var(--gold); stroke: var(--gold-ink); }
.timer-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.timer-time { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; font-variation-settings: "SOFT" 100; font-weight: 340; }
.timer-q { margin-top: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.timer-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 22px; }
.timer-bar span { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.timer-bar span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--f, 0)); transform-origin: left; }
.timer-tip { margin-top: 16px; min-height: 3.2em; color: var(--ink-2); font-size: 0.93rem; }
.timer-actions { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 16px; }

.shade-stage { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 40px); margin-top: 24px; padding: 22px; border-radius: var(--r); background: var(--paper); }
.shade-tooth { width: 108px; height: auto; filter: drop-shadow(0 16px 20px rgba(120, 90, 50, 0.22)); }
.shade-tooth .tooth-base { transition: fill 0.4s var(--ease); }
.shade-readout { display: flex; align-items: center; gap: 16px; }
.shade-readout div:not(.arrow) { display: grid; text-align: center; }
.shade-readout span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.shade-readout b { font-family: var(--serif); font-size: 2rem; font-weight: 400; color: var(--ink); line-height: 1.2; }
.shade-readout .arrow { color: var(--gold); font-size: 1.3rem; }
.mix { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.mix input { flex: 1; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 18px; }
.sw { display: grid; justify-items: center; gap: 4px; padding: 6px 0; border-radius: 12px; font-size: 0.68rem; font-weight: 600; color: var(--muted); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.sw i {
  display: block;
  width: 24px;
  height: 30px;
  border-radius: 46% 46% 42% 42% / 34% 34% 62% 62%;
  background: var(--c);
  box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(30, 27, 23, 0.1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sw:hover i { transform: translateY(-2px); }
.sw[aria-checked="true"] { background: var(--gold-tint); color: var(--ink); }
.sw[aria-checked="true"] i { box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.06), 0 0 0 2px var(--gold); }
.sw.is-goal i { box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.06), 0 0 0 2px var(--white), 0 0 0 3px var(--gold); }
.shade-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-2); }
.shade-note small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.78rem; }

/* Range inputs: thin line, gold knob */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(var(--gold), var(--gold)) 0 / var(--fill, 0%) 100% no-repeat, var(--line-2); }
input[type="range"]::-moz-range-track { height: 2px; border-radius: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--white); border: 1px solid var(--gold); box-shadow: 0 4px 10px rgba(120, 90, 50, 0.25); transition: transform 0.3s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 1px solid var(--gold); box-shadow: 0 4px 10px rgba(120, 90, 50, 0.25); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

/* ---------- 05 Inside a tooth ---------- */
.inside { background: var(--white); border-block: 1px solid var(--line); }
.inside-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.inside-copy h2 { margin-top: 22px; }
.inside-copy .sec-note { margin-top: 20px; }
.layers { list-style: none; margin: 32px 0 0; padding: 0; }
.layers li { display: grid; gap: 4px; padding: 16px 0 16px 22px; border-top: 1px solid var(--line); position: relative; transition: opacity 0.5s var(--ease); opacity: 0.45; }
.layers li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold); transition: background-color 0.4s var(--ease); }
.layers li.is-on { opacity: 1; }
.layers li.is-on::before { background: var(--gold); }
.layers b { font-family: var(--serif); font-size: 1.25rem; font-weight: 420; color: var(--ink); }
.layers span { font-size: 0.92rem; color: var(--muted); }
.reveal-slider { display: grid; gap: 6px; margin-top: 26px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.inside-visual { margin: 0; }
.inside-visual .stage { aspect-ratio: 1 / 0.92; background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #FAF5EC 50%, #EFE4D0 100%); }
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  white-space: nowrap;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.tag.is-on { opacity: 1; }

/* ---------- 06 First visit ---------- */
.timeline { --p: 0; list-style: none; margin: 0; padding: 34px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-2); }
.timeline::after { background: var(--gold); transform: scaleX(var(--p)); transform-origin: left; height: 2px; top: -0.5px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; top: -40px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold); }
.timeline .t { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-ink); }
.timeline h3 { margin-top: 10px; font-size: 1.6rem; }
.timeline p { margin-top: 10px; font-size: 0.93rem; color: var(--muted); }

/* ---------- 07 Book ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.book-form { padding: clamp(24px, 4vw, 48px); display: grid; gap: 36px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); font-variation-settings: "SOFT" 100; }
.step legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--sans); font-size: 0.78rem; font-weight: 700; color: var(--gold-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Hidden radios stay inside their (positioned) label so they can't leak out of the scrolling day row */
.chip, .day, .slot, .tool { position: relative; }
.chip input, .day input, .slot input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip span:hover { border-color: var(--gold); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chip input:focus-visible + span, .day input:focus-visible + span, .slot input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.day { scroll-snap-align: start; }
.day span {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 74px;
  padding: 12px 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.day small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.day b { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--ink); line-height: 1.1; }
.day em { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.day span:hover { border-color: var(--gold); }
.day input:checked + span { background: var(--gold-tint); border-color: var(--gold); }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.slot span {
  display: block;
  padding: 11px 0;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.slot span:hover { border-color: var(--gold); }
.slot input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.slot input:disabled + span { color: rgba(30, 27, 23, 0.25); text-decoration: line-through; border-style: dashed; cursor: not-allowed; }
.slots-empty { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--ivory);
  outline: none;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px var(--gold-tint); }
.field input::placeholder, .field textarea::placeholder { color: #B0A697; }
.err { display: none; margin-top: 8px; font-size: 0.8rem; font-weight: 600; font-style: normal; color: var(--error); }
.has-error .err, .err.is-on { display: block; }
.has-error input { border-color: var(--error); }

.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.summary-card { padding: clamp(24px, 3.4vw, 36px); overflow: hidden; }
.summary-card dl { margin: 16px 0 0; }
.summary-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.summary-card dt { color: var(--muted); font-size: 0.9rem; }
.summary-card dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.sum-comfort { margin: 22px 0 26px; }
.fine { margin-top: 12px; text-align: center; font-size: 0.76rem; color: var(--muted); }
.spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(42, 32, 21, 0.25); border-top-color: #2A2015; animation: rot 0.8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.is-loading .spin { display: inline-block; }
.summary-done { display: none; text-align: center; }
.summary.is-done .summary-default { display: none; }
.summary.is-done .summary-done { display: grid; justify-items: center; gap: 10px; animation: pop 0.6s var(--ease); }
.seal { width: 84px; height: 84px; margin-bottom: 8px; }
.seal circle { fill: var(--gold-tint); stroke: var(--gold); stroke-width: 1.2; }
.seal path { fill: none; stroke: var(--gold-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.summary.is-done .seal path { animation: draw 0.8s 0.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-text { color: var(--muted); max-width: 300px; margin-bottom: 14px; }

/* ---------- 08 Visit ---------- */
.visit-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.visit h2 { margin-top: 22px; }
.details { margin: 36px 0 0; }
.details div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.details dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); padding-top: 3px; }
.details dd { margin: 0; color: var(--ink); }
.map { margin: 0; overflow: hidden; padding: 10px; }
.map > svg { width: 100%; height: auto; border-radius: calc(var(--r-lg) - 10px); }
.pin { position: absolute; left: 41.6%; top: 47.6%; width: 18px; height: 18px; transform: translate(-50%, -50%); }
.pin span { position: absolute; inset: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9), 0 8px 16px rgba(120, 90, 50, 0.4); }
.pin::before, .pin::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--gold); animation: ping 2.8s var(--ease) infinite; }
.pin::after { animation-delay: 1.4s; }
.map-card {
  position: absolute;
  left: 50%;
  top: 59%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  letter-spacing: 0;
}
.map-card .brand-mark { width: 30px; height: 30px; }
.map-card b { display: block; color: var(--ink); font-weight: 600; }
.map-card span { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding-block: 64px 48px; border-top: 1px solid var(--line); background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-note { margin-top: 14px; max-width: 280px; color: var(--muted); font-size: 0.92rem; }
.footer nav { display: grid; gap: 10px; }
.footer nav a { color: var(--ink-2); transition: color 0.3s var(--ease); }
.footer nav a:hover { color: var(--gold-ink); }
.footer-legal { font-size: 0.82rem; color: var(--muted); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="soft"] { transform: scale(0.97); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (min-width: 1081px) {
  .menu { display: none !important; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .promises { grid-template-columns: 1fr 1fr; }
  .promises li:nth-child(3) { padding-left: 0; border-left: 0; }
  .tx-body { grid-template-columns: 1fr 1fr; padding-left: 94px; }
  .tx-body .link-line { grid-column: 1 / -1; justify-self: start; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .timeline::before, .timeline::after { display: none; }
  .timeline li { padding-top: 22px; border-top: 1px solid var(--gold); }
  .timeline li::before { top: -6px; }
}

@media (max-width: 900px) {
  .hero-grid, .sec-head.split, .comfort-grid, .polish, .try-grid, .inside-grid, .book-grid, .visit-grid { grid-template-columns: 1fr; }
  .sec-head.split { gap: 20px; }
  .hero-visual { max-width: 560px; width: 100%; justify-self: center; }
  .principles { grid-template-columns: 1fr; }
  .polish-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary { position: static; }
  .inside-visual { order: -1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .brand-word { font-size: 1rem; }
  .promises { grid-template-columns: 1fr; }
  .promises li, .promises li + li { padding-left: 0; border-left: 0; }
  .tx-row { grid-template-columns: 40px minmax(0, 1fr) 40px; padding: 22px 4px; }
  .tx-row:hover { padding-inline: 10px; }
  .tx-meta { grid-column: 2; grid-row: 2; margin-top: -6px; }
  .tx-plus { grid-column: 3; grid-row: 1 / span 2; }
  .tx-body { grid-template-columns: 1fr; gap: 20px; padding-left: 4px; }
  .plan-options { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
  .timeline { grid-template-columns: 1fr; row-gap: 40px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .details div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .map-card { left: 8%; top: auto; bottom: 18px; }
  .hero-cta { gap: 20px; }
}
