/* Dental Profiles — site styles
   Colours and type follow the brand identity (Cocoa & Ember palette, Cormorant Garamond + Figtree). */

:root {
  --ink: #2E1C12;
  --cocoa: #4A2E1F;
  --ember: #E8692B;
  --ember-dark: #C2531C;
  --cream: #FAF6F0;
  --paper: #FFFEFB;
  --sand: #F1E4D4;
  --latte: #EADBC8;
  --line: #E2D6C6;
  --line-strong: #D6C8B5;
  --body: #5A4636;
  --muted: #6E5A4B;
  --dark-card: #3A2416;
  --dark-line: #4A3426;
  --dark-muted: #C4AE98;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --radius: 20px;
  --shadow: 0 30px 60px -30px rgba(74, 46, 31, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cocoa); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: 0; margin: 0; }
p { margin: 0; }
button { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--cocoa); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 16px 28px; font-size: 18px; }
.btn-light { border: 1.5px solid var(--cream); color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--ink); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: var(--cream); font-size: 14px; }
.topbar .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.topbar a { color: var(--cream); }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); display: inline-block; margin-right: 8px; vertical-align: 1px; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 70px; height: 46px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-family: var(--serif); font-weight: 700; font-size: 25px; }
.brand-name span { font-size: 13px; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 16px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"], .main-nav a.is-active { border-bottom-color: var(--ember); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--white); border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }
.breadcrumb { font-size: 15px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-tight { padding-top: 80px; padding-bottom: 80px; }
.bg-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--ink); color: var(--cream); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; }
.h2-sm { font-size: clamp(34px, 3.8vw, 49px); line-height: 1.05; }
.lede { font-size: 20px; color: var(--body); max-width: 36ch; text-wrap: pretty; }
.muted { color: var(--body); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--cocoa); letter-spacing: .06em; text-transform: uppercase; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-head p { max-width: 42ch; color: var(--body); }
.bg-dark .section-head p { color: var(--latte); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 48px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: start; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; background: var(--sand); color: var(--cocoa); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.hero h1 { font-size: clamp(45px, 6vw, 81px); line-height: 1.02; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; }
.hero-stats strong { font-family: var(--serif); font-size: 27px; line-height: 1.2; }
.hero-stats span { font-size: 14px; color: var(--muted); }

/* ---------- Booking card ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.booking { display: flex; flex-direction: column; gap: 22px; }
.booking-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.booking-head h2 { font-size: 29px; }
.booking-head span { font-size: 14px; color: var(--muted); }
.booking fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.booking legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 8px; }
.grid-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opt {
  font-size: 15px; padding: 10px 16px; min-height: 44px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer;
}
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.opt:hover { border-color: var(--ink); }
.opt-box { border-radius: 14px; text-align: left; display: flex; flex-direction: column; min-height: 52px; padding: 10px 14px; }
.opt-box strong { font-weight: 700; }
.opt-box span { font-size: 13px; }
.opt-day { border-radius: 14px; display: flex; flex-direction: column; align-items: center; min-height: 64px; padding: 10px 6px; }
.opt-day span { font-size: 13px; }
.opt-day strong { font-size: 18px; }
.opt-time { border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field input {
  font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; min-height: 48px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: 13px; font-weight: 600; min-height: 0; }
.submit { text-decoration: none; font-weight: 700; font-size: 18px; min-height: 56px; padding: 16px; border-radius: 999px; border: 0; background: var(--cocoa); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.submit:hover { background: var(--ink); color: var(--white); }
.fine { font-size: 13px; color: var(--muted); text-align: center; }
.done { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding: 24px 0; }
.done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.done h2 { font-size: 34px; }
[hidden] { display: none !important; }

/* ---------- Strip ---------- */
.strip .wrap { padding-top: 22px; padding-bottom: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 32px; font-size: 15px; color: var(--body); }

/* ---------- Treatment cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.tcard {
  text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 220px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tcard:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(46, 28, 18, .45); color: var(--ink); }
.tcard .tag { font-size: 13px; font-weight: 700; color: var(--cocoa); letter-spacing: .06em; text-transform: uppercase; }
.tcard h3 { font-size: 31px; line-height: 1.1; }
.tcard p { color: var(--body); }
.tcard .go { margin-top: auto; font-weight: 700; color: var(--cocoa); }
.tcard.dark { background: var(--ink); border-color: var(--ink); }
.tcard.dark .tag { color: var(--ember); }
.tcard.dark h3, .tcard.dark .go { color: var(--white); }
.tcard.dark p { color: var(--latte); }

/* ---------- Tables ---------- */
.table-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table-card table { width: 100%; border-collapse: collapse; min-width: 420px; }
.table-card th { text-align: left; color: var(--muted); font-size: 14px; font-weight: 700; padding: 18px 24px; }
.table-card td { padding: 16px 24px; border-top: 1px solid #EDE4D8; }
.table-card .num { text-align: right; font-weight: 700; white-space: nowrap; }
.table-card .soft { color: var(--muted); }
.table-card tr.hl { background: var(--sand); }
.table-card tr.hl td:first-child { font-weight: 700; }
.swipe-hint { display: none; font-size: 13px; color: var(--muted); margin: -20px 0 12px; }

/* ---------- Dentists ---------- */
.doctor { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 56px; align-items: center; }
.doctor + .doctor { margin-top: 72px; }
.portrait { display: flex; justify-content: center; padding: 20px; }
.portrait-frame { position: relative; width: min(440px, 100%); aspect-ratio: 1 / 1; }
.portrait-frame::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 2px solid var(--ember); }
.portrait-frame img, .portrait-frame .initials { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 24px 50px -24px rgba(46, 28, 18, .45); }
.initials { background: var(--latte); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 120px; color: var(--cocoa); }
.doctor h3 { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; }
.doctor .quote { font-size: 19px; max-width: 46ch; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px 32px; }
.facts div { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid #D9C6B0; padding-top: 12px; }
.facts dt { font-size: 14px; color: var(--body); }
.facts dd { margin: 0; font-weight: 700; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--ink); padding-top: 20px; }
.steps .n { font-family: var(--serif); font-weight: 700; font-size: 45px; color: var(--ember); line-height: 1; }
.steps strong { font-size: 20px; }
.steps span:last-child { color: var(--body); }
.bg-white .steps li, .steps.plain li { border-top-color: var(--ink); }

/* ---------- Reviews ---------- */
.reviews-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.rcard { background: var(--dark-card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--latte); text-decoration: none; min-height: 200px; }
.rcard:hover { color: var(--white); background: #452B1B; }
.rcard .stars { color: var(--ember); letter-spacing: 2px; }
.rcard strong { font-family: var(--serif); font-size: 28px; color: var(--white); line-height: 1.1; }
.rcard .go { margin-top: auto; font-weight: 700; color: var(--ember); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); padding: 20px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--cocoa); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--body); }

/* ---------- Visit ---------- */
.addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.addresses address { font-style: normal; font-size: 18px; line-height: 1.5; border-top: 3px solid var(--ember); padding-top: 14px; }
.addresses strong { font-family: var(--serif); font-size: 26px; display: block; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; font-size: 17px; }
.kv span:nth-child(odd) { color: var(--muted); }
.kv span:nth-child(even) { font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.map { border: 0; width: 100%; min-height: 380px; height: 100%; border-radius: 24px; background: var(--sand); }
.maps { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 520px; }
.maps figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.maps figcaption { font-size: 14px; color: var(--muted); font-weight: 600; }
.maps .map { min-height: 240px; flex: 1; }

/* ---------- Treatment page ---------- */
.t-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: start; padding-top: 72px; padding-bottom: 72px; }
.t-hero h1 { font-size: clamp(45px, 5.6vw, 72px); line-height: 1.03; text-wrap: balance; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.stat-cards div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat-cards span { display: block; font-size: 14px; color: var(--muted); }
.stat-cards strong { font-size: 20px; }
.checker { display: flex; flex-direction: column; gap: 20px; }
.checker h2 { font-size: 29px; }
.checker-list { display: flex; flex-direction: column; gap: 8px; }
.check {
  text-align: left; display: flex; gap: 14px; align-items: center; padding: 14px 16px; min-height: 52px;
  border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer;
}
.check .box { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 14px; font-weight: 700; }
.check[aria-pressed="true"] { background: var(--sand); border-color: var(--cocoa); }
.check[aria-pressed="true"] .box { background: var(--cocoa); border-color: var(--cocoa); }
.check[aria-pressed="true"] .box::after { content: "✓"; }
.verdict { border-radius: 16px; padding: 18px 20px; background: var(--cream); display: flex; flex-direction: column; gap: 6px; transition: background-color .2s ease; }
.verdict strong { font-size: 18px; }
.verdict span { color: var(--body); }
.verdict.mid { background: var(--sand); }
.verdict.high { background: #FCEBD0; }
.aftercare { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.aftercare li { display: flex; gap: 14px; border-bottom: 1px solid var(--dark-line); padding-bottom: 14px; }
.aftercare li:last-child { border-bottom: 0; }
.aftercare li::before { content: "—"; color: var(--ember); font-weight: 700; }
.callout { background: var(--sand); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.callout h2 { font-size: 38px; }
.callout p { color: var(--body); max-width: 46ch; margin-top: 8px; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 18px; text-decoration: none; color: var(--ink); background: var(--white); }
.related a:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--latte); font-size: 15px; }
.site-footer .cols { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.site-footer a { color: var(--latte); }
.site-footer a:hover { color: var(--white); }
.site-footer nav, .site-footer .col { display: flex; flex-direction: column; gap: 8px; }
.site-footer .col-title { color: var(--white); font-weight: 700; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 58px; height: 38px; }
.foot-brand span { font-family: var(--serif); font-weight: 700; font-size: 25px; color: var(--white); }
.legal { padding-top: 18px; padding-bottom: 32px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--dark-muted); }
.legal a { color: var(--dark-muted); }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- Simple pages ---------- */
.page-head { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-size: clamp(45px, 5.6vw, 72px); line-height: 1.03; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 16px; color: var(--body); padding-bottom: 96px; }
.prose h2 { font-size: 30px; color: var(--ink); margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .header-book { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 92px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .topbar-links { display: none; }
  .brand img { width: 52px; height: 34px; }
  .brand-name strong { font-size: 22px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-tight { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 32px; gap: 40px; }
  .hero h1 { font-size: 43px; }
  .lede { font-size: 17px; }
  .card { padding: 22px; border-radius: 20px; }
  .tcard { min-height: 0; padding: 22px; }
  .tcard h3 { font-size: 27px; }
  .callout { padding: 28px; }
  .table-card table.fit { min-width: 0; }
  .table-card th, .table-card td { padding-left: 16px; padding-right: 16px; }
  .hide-sm { display: none; }
  .stat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-cards div { padding: 12px; }
  .stat-cards span { font-size: 12px; }
  .stat-cards strong { font-size: 16px; }
  .swipe-hint { display: block; }
  .doctor { gap: 24px; }
  .initials { font-size: 90px; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 30px -18px rgba(46, 28, 18, .4);
  }
  .action-bar a { border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; border-radius: 14px; min-height: 52px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
  .action-bar a.primary { background: var(--cocoa); border-color: var(--cocoa); color: var(--white); }
}
@media print {
  .topbar, .site-header, .action-bar, .booking, .maps { display: none !important; }
}

/* ---------- Motion ----------
   Subtle and quick. Everything is visible without JavaScript; main.js adds .js-motion to <html>
   and .reveal to elements, which then fade up as they scroll into view. */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes softPop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

main { animation: fadeIn .45s ease-out both; }
.hero-copy > *, .t-hero > .stack > *, .page-head > * { animation: fadeUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2), .t-hero > .stack > *:nth-child(2), .page-head > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3), .t-hero > .stack > *:nth-child(3), .page-head > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4), .t-hero > .stack > *:nth-child(4), .page-head > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5), .t-hero > .stack > *:nth-child(5) { animation-delay: .32s; }
.hero > .card, .t-hero > .card { animation: softPop .8s cubic-bezier(.2, .7, .2, 1) .2s both; }

.js-motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js-motion .reveal.in { opacity: 1; transform: none; }

.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(46, 28, 18, .5); background: rgba(250, 246, 240, .94); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.main-nav a { transition: border-color .2s ease, color .2s ease; }

.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover, .submit:hover { box-shadow: 0 10px 22px -12px rgba(46, 28, 18, .6); }
.btn:active, .submit:active, .opt:active, .check:active { transform: scale(.98); }
.submit { transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.opt, .check { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease; }
.check .box { transition: background-color .2s ease, border-color .2s ease; }

.tcard { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tcard .go { display: inline-block; transition: transform .25s ease; }
.tcard:hover .go { transform: translateX(4px); }
.rcard { transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.rcard:hover { transform: translateY(-2px); }

.portrait-frame::before { transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .8s ease; }
.js-motion .portrait.reveal .portrait-frame::before { transform: scale(.94); opacity: 0; }
.js-motion .portrait.reveal.in .portrait-frame::before { transform: none; opacity: 1; }
.portrait-frame img { transition: transform .5s ease; }
.portrait-frame:hover img { transform: scale(1.02); }

.faq details[open] p { animation: fadeUp .35s ease-out both; }
.verdict strong, .verdict span { transition: opacity .2s ease; }
.done:not([hidden]) { animation: softPop .5s cubic-bezier(.2, .7, .2, 1) both; }
.main-nav.open { animation: fadeIn .2s ease-out both; }
.steps .n { transition: transform .3s ease; }
.steps li:hover .n { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}
