/* onlyteeth.app — the brand's own colours and type (brand/onlyteeth-logo-kit). */
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url('fonts/Fraunces_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url('fonts/InterTight_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url('fonts/InterTight_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url('fonts/InterTight_600SemiBold.ttf') format('truetype'); }

:root {
  --clay: #B4593C;
  --clay-dark: #9C4A30;
  --clay-light: #E08A69;   /* clay that reads on ink */
  --ink: #1F1A17;
  --paper: #FBF7F0;
  --paper-2: #F3EBDF;
  --gold: #C9A46A;
  --muted: #6B6259;
  --muted-on-ink: #CFC6BA;
  --line: #E7DDCE;
  --surface: #FFFFFF;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grain: 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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
/* Two-tone so it shows on paper and on ink: gold alone was 2.2:1 on paper (needs 3:1). */
:focus-visible { outline: 3px solid var(--clay-dark); outline-offset: 2px; border-radius: 6px;
                 box-shadow: 0 0 0 5px #fff; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(40px, 6vw, 84px); }
h3 { font-size: 28px; letter-spacing: -0.01em; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay-dark); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 44ch; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251, 247, 240, 0.9); backdrop-filter: blur(12px);
       border-bottom: 1px solid var(--line); transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: block; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--clay-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px;
       font: 600 16px/1 var(--body); text-decoration: none; transition: transform 0.2s var(--ease), background 0.2s; }
.btn:active { transform: scale(0.97); }
.nav .btn-clay, .btn-clay { background: var(--clay); color: #fff; }
.nav .btn-clay:hover, .btn-clay:hover { background: var(--clay-dark); color: #fff; }
.nav .btn-ink, .btn-ink { background: var(--ink); color: var(--paper); }
.logo-light { display: none; }
/* On the home page the header floats over the dark hero until you scroll past it. */
.home .top { position: fixed; inset: 0 0 auto; }
.home .top:not(.solid) { background: transparent; border-color: transparent; backdrop-filter: none; }
.home .top:not(.solid) .logo-light { display: block; }
.home .top:not(.solid) .logo-dark { display: none; }
.home .top:not(.solid) .nav a:not(.btn) { color: var(--paper); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .brand img { height: 28px; } }

/* Hero */
.hero { position: relative; min-height: 100svh; background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate;
        display: flex; align-items: flex-end; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2;
                background: radial-gradient(60% 70% at 72% 42%, rgba(180, 89, 60, 0.32), rgba(31, 26, 23, 0) 70%),
                            radial-gradient(40% 40% at 20% 90%, rgba(201, 164, 106, 0.12), rgba(31, 26, 23, 0) 70%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: var(--grain); opacity: 0.6; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-fallback { display: none; }
.no3d .hero-fallback { display: block; position: absolute; right: 8%; top: 18%; width: min(34vw, 380px); z-index: -1; opacity: 0.95; }
.hero-copy { position: relative; z-index: 3; padding: 140px 0 72px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(52px, 7.6vw, 128px); margin: 22px 0 40px; letter-spacing: -0.035em; line-height: 0.95; }
.hero h1 em { font-style: normal; color: var(--clay-light); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero .lead { color: var(--muted-on-ink); }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; color: var(--paper); text-decoration: none; font-weight: 500; }
.scroll-cue i { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(251, 247, 240, 0.4); position: relative; }
.scroll-cue i::after { content: ''; position: absolute; left: 50%; top: 16px; width: 10px; height: 10px; margin-left: -5px;
                       border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(45deg); }
.has3d .scroll-cue i::after { animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(6px) rotate(45deg); } }
.scroll-cue:hover { color: var(--clay-light); }
@media (max-width: 760px) { .hero-copy { padding-top: 50vh; } .hero h1 { margin-bottom: 26px; } }

/* Marquee */
.marquee { background: var(--clay); color: #fff; overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font: 600 clamp(28px, 3.4vw, 44px)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.marquee span::after { content: '·'; margin-left: 56px; opacity: 0.55; }
@keyframes marquee { to { transform: translateX(-50%); } }
.no3d .marquee-track { animation: none; flex-wrap: wrap; width: auto; padding-inline: 24px; gap: 18px 36px; }

/* Story: the pinned 3D phone */
.story { position: relative; background: var(--paper); }
.story-stage { min-height: 100vh; }
.has3d .story-stage { height: 100vh; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; height: 100%; }
.chapters { position: relative; }
.has3d .chapters { height: 100%; display: flex; align-items: center; }
.has3d .chapter { position: absolute; left: 56px; right: 0; top: 50%; transform: translateY(-40%); opacity: 0; visibility: hidden;
                  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0.5s; }
.has3d .chapter.on { opacity: 1; visibility: visible; transform: translateY(-50%); }
.chapter .num { font: 600 14px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-dark); }
.chapter h2 { font-size: clamp(38px, 5vw, 72px); margin: 20px 0 22px; }
.chapter p:not(.num) { color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); max-width: 38ch; }
.chapter-shot { display: none; }
.rail { position: absolute; left: 0; top: 50%; transform: translateY(-50%); list-style: none; display: grid; gap: 14px; }
.rail li { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--clay); transition: background 0.3s, transform 0.3s; }
.rail li.on { background: var(--clay); transform: scale(1.3); }
.phone-stage { position: relative; height: 100vh; }
.phone-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-stage::before { content: ''; position: absolute; inset: 14% 8%; border-radius: 50%;
                       background: radial-gradient(circle, rgba(180, 89, 60, 0.20), rgba(201, 164, 106, 0.08) 45%, transparent 70%); }
/* Without 3D: every chapter in turn, with its screen. */
.no3d .rail, .no3d .phone-stage { display: none; }
.no3d .story-grid { grid-template-columns: 1fr; padding: 96px 0; gap: 0; }
.no3d .chapter { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0 48px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.no3d .chapter > :not(.chapter-shot) { grid-column: 1; }
.no3d .chapter-shot { display: block; grid-column: 2; grid-row: 1 / span 3; width: min(280px, 100%); justify-self: center;
                      border-radius: 36px; border: 9px solid #17191D; box-shadow: 0 30px 60px rgba(42, 33, 27, 0.2); }
@media (max-width: 900px) {
  .has3d .story-grid { grid-template-columns: 1fr; grid-template-rows: 58vh 42vh; gap: 0; }
  .has3d .phone-stage { height: 58vh; grid-row: 1; }
  .has3d .chapters { grid-row: 2; align-items: flex-start; }
  .has3d .chapter { left: 0; top: 0; transform: translateY(16px); }
  .has3d .chapter.on { transform: translateY(0); }
  .chapter h2 { font-size: clamp(30px, 8vw, 44px); margin: 12px 0 12px; }
  .chapter p:not(.num) { font-size: 17px; }
  .rail { display: none; }
  .no3d .chapter { grid-template-columns: 1fr; gap: 24px; }
  .no3d .chapter-shot { grid-column: 1; grid-row: auto; }
}

/* Papers: a 3D fan of real documents */
.papers { background: var(--paper-2); padding: 120px 0 140px; overflow: hidden; }
.papers-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.papers-head .eyebrow { grid-column: 1 / -1; }
.papers-head h2 { margin-top: -12px; }
.fan { position: relative; height: 640px; margin-top: 64px; perspective: 1800px; }
.card { position: absolute; left: 50%; top: 50%; width: 300px; margin: 0; background: #fff; border-radius: 14px; overflow: hidden;
        box-shadow: 0 40px 80px rgba(42, 33, 27, 0.22), 0 0 0 1px rgba(31, 26, 23, 0.06); transform-style: preserve-3d;
        cursor: pointer; outline-offset: 6px; }
.card.c2 { width: 440px; }
.card.tall { width: 220px; border-radius: 26px; border: 7px solid #17191D; }
.card figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(31, 26, 23, 0.82); color: var(--paper);
                   font: 600 13px/1 var(--body); padding: 8px 12px; border-radius: 999px; }
.no3d .fan { height: auto; perspective: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding-inline: 24px; }
.no3d .card { position: relative; left: auto; top: auto; }
@media (max-width: 900px) {
  .papers-head { grid-template-columns: 1fr; gap: 20px; }
  .papers-head h2 { margin-top: 0; }
  .fan { height: 520px; }
  .card { width: 210px; } .card.c2 { width: 300px; } .card.tall { width: 150px; border-width: 5px; border-radius: 20px; }
}

/* Trust */
.trust { background: var(--ink); color: var(--paper); padding: 130px 0; position: relative; isolation: isolate; }
.trust::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.6; }
.trust .eyebrow { color: var(--gold); }
.trust h2 { margin: 18px 0 64px; max-width: 12ch; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(251, 247, 240, 0.16); }
.trust-grid > div { padding: 32px 28px 0 0; }
.trust-grid > div + div { padding-left: 28px; border-left: 1px solid rgba(251, 247, 240, 0.16); }
.trust .big { display: block; font: 600 clamp(40px, 4.4vw, 64px)/1 var(--display); color: var(--clay-light); letter-spacing: -0.03em; margin-bottom: 20px; }
.trust p { color: var(--muted-on-ink); font-size: 16px; }
.trust p b { color: var(--paper); font-weight: 600; }
.trust-link { margin-top: 48px; }
.trust-link a { color: var(--gold); }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust-grid > div { padding-bottom: 28px; }
}
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } .trust-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(251, 247, 240, 0.16); } }

/* Pricing */
.pricing { padding: 130px 0; }
.pricing h2 { margin: 18px 0 20px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; perspective: 1400px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px;
        transform-style: preserve-3d; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); will-change: transform; }
.plan::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
               background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 164, 106, 0.18), transparent 60%);
               transition: opacity 0.3s; }
.plan:hover::after { opacity: 1; }
.plan:hover { box-shadow: 0 40px 80px rgba(42, 33, 27, 0.14); }
.plan.premium { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan h3 { font-size: 40px; }
.plan .price { font: 600 19px/1.3 var(--body); margin: 10px 0 26px; }
.plan .price small { display: block; font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 4px; }
.plan.premium .price small { color: var(--muted-on-ink); }
.plan ul { list-style: none; display: grid; gap: 12px; font-size: 16px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--clay);
                   border-bottom: 2px solid var(--clay); transform: rotate(-45deg); }
.plan.premium li::before { border-color: var(--clay-light); }
.badge { position: absolute; top: 28px; right: 28px; background: var(--clay); color: #fff; font: 600 13px/1 var(--body); padding: 9px 14px; border-radius: 999px; }
.yours { margin-top: 24px; padding: 20px 24px; border-radius: 18px; background: var(--paper-2); font-size: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: 32px 24px; } .plan h3 { font-size: 34px; } }

/* FAQ */
.faq-section { padding: 0 0 130px; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.faq-grid h2 { margin-top: 18px; }
.faq details { border-top: 1px solid var(--line); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font: 600 20px/1.35 var(--body); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 28px; line-height: 0.9; color: var(--clay); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 12px; max-width: 60ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Get the app */
.get { background: var(--clay-dark); color: #fff; padding: 130px 0; text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.get::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.5; }
.get h2 { font-size: clamp(48px, 8vw, 120px); }
.get .lead { color: #FBE9DF; margin: 24px auto 0; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 16px;
         background: var(--ink); color: var(--paper); min-width: 210px; text-align: left; }
.store svg { width: 26px; height: 26px; flex: none; fill: var(--paper); }
.store small { display: block; font-size: 11px; letter-spacing: 0.04em; color: var(--muted-on-ink); }
.store b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.store .soon { display: block; font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.early { margin-top: 20px; font-size: 16px; }
.get .early, .get .early a { color: #fff; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot img { height: 28px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { color: var(--clay-dark); }
.foot .credit { flex-basis: 100%; font-size: 13px; }
.foot.dark { background: var(--ink); border-color: var(--ink); color: var(--muted-on-ink); }
.foot.dark nav a { color: var(--paper); }
.foot.dark a { color: var(--gold); }

/* Legal and help pages */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin: 14px 0 12px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 28px; margin: 44px 0 14px; }
.doc h3 { font-size: 20px; margin: 26px 0 10px; font-family: var(--body); letter-spacing: 0; }
.doc p, .doc li { color: #3A332D; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 24px; margin: 12px 0; display: grid; gap: 8px; }
.doc .note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: 12px; padding: 18px 22px; margin: 22px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; width: 34%; }

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

.foot .totop { color: inherit; opacity: 0.8; font-size: 14px; }

/* Printing a policy page: the words, in black, without the site around them. */
@media print {
  .top, .foot nav, .foot .totop, .skip, .marquee, canvas { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .doc { padding: 0; }
  .doc .wrap { max-width: none; }
  a { color: #000; text-decoration: underline; }
  .doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 90%; }
  h1, h2, h3 { break-after: avoid; }
  table, .note, li { break-inside: avoid; }
}
