/* =====================================================================
   dafola.com — the company website.
   White, classic and modern: straight lines with small rounded corners
   (no curves or blobs). Headlines in a clean grotesk; the important words
   switch to an italic Didone in gold, echoing the Dafola "D".
   ===================================================================== */
:root {
  --ink: #0f0f10;
  --ink-2: #47474b;
  --ink-3: #85858a;
  --paper: #ffffff;
  --mist: #f6f5f2;
  --mist-2: #efede8;
  --line: #e6e3dc;
  --gold: #a07a24;
  --gold-2: #c9a24a;
  --gold-soft: #f4eddc;
  --night: #0d0d0f;
  --r: 6px;
  --r-lg: 10px;
  --display: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --label: 'Marcellus', 'Optima', 'Candara', serif;
  --body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* the house style for important words */
em, .hl { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold); letter-spacing: -0.01em; }
h1 em, h2 em { font-size: 1.06em; }
.ink { font-weight: 700; color: var(--ink); }
.mark { background: linear-gradient(transparent 62%, var(--gold-soft) 62%); padding: 0 2px; }
.label { font: 400 13px/1.2 var(--label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); }
.label b { color: var(--gold); font-weight: 400; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section.tight { padding-block: clamp(48px, 7vw, 80px); }
.mist { background: var(--mist); }
.night { background: var(--night); color: #f4f2ee; }
.night .muted, .night .lede { color: #b9b6b0; }
.night .label { color: #8d8a85; }
.stack { display: grid; gap: 20px; }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* buttons: straight, small radius */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: var(--r); border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font: 600 15px/1 var(--body); text-decoration: none; letter-spacing: 0.01em; transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { background: #2a2a2d; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.gold:hover { background: #8a6819; }
.night .btn { background: #fff; color: var(--ink); border-color: #fff; }
.night .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow::after { content: '→'; font-family: var(--body); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 88px; }
.logo { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.logo svg { height: 62px; width: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08)); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a.btn, .nav a.btn:hover { color: #fff; background: var(--ink); margin-left: 10px; }
.nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.top .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; height: 42px; width: 46px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-size: 20px; }
@media (max-width: 900px) {
  .nav, .top .btn { display: none; }
  .menu-btn { display: block; }
  .top.open .nav { display: grid; position: absolute; top: 88px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 2px; }
  .top.open .nav a { padding: 14px 6px; font-size: 17px; border-bottom: 1px solid var(--mist-2); }
  .top.open .nav .btn { display: flex; margin-top: 12px; color: #fff; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) 0; }
.hero .wrap { display: grid; gap: 28px; position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero-d { position: absolute; z-index: 0; right: -6vw; top: -4vw; width: min(52vw, 720px); color: var(--mist-2); pointer-events: none; }
.hero-d svg { width: 100%; height: auto; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts span::before { content: ''; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* device frames */
.devices { position: relative; margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr; justify-items: center; padding-bottom: clamp(30px, 5vw, 60px); }
.laptop { width: min(100%, 980px); }
.laptop .screen { background: #111; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 1.4% 1.4% 0; box-shadow: 0 40px 80px -40px rgba(15, 15, 16, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.laptop .screen img { border-radius: 3px 3px 0 0; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.laptop .base { height: 16px; background: linear-gradient(#d9d8d4, #bdbbb6); border-radius: 0 0 var(--r-lg) var(--r-lg); width: 108%; margin-left: -4%; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.4); }
.ipad { position: absolute; left: max(0px, calc(50% - 600px)); bottom: 0; width: min(36%, 380px); background: #141416; padding: 1.6%; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(15, 15, 16, 0.55); }
.ipad img { border-radius: 8px; aspect-ratio: 1180 / 820; object-fit: cover; object-position: top; width: 100%; }
.iphone { position: absolute; right: max(0px, calc(50% - 560px)); bottom: -10px; width: min(17%, 190px); background: #141416; padding: 1.4%; border-radius: 28px; box-shadow: 0 30px 60px -24px rgba(15, 15, 16, 0.6); }
.iphone img { border-radius: 20px; aspect-ratio: 393 / 852; object-fit: cover; object-position: top; width: 100%; }
@media (max-width: 720px) {
  .ipad { width: 44%; left: 0; }
  .iphone { width: 26%; right: 0; border-radius: 18px; }
  .iphone img { border-radius: 12px; }
}

/* feature grid: squared cards, hairline borders */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.cell { background: var(--paper); padding: clamp(26px, 3vw, 38px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.cell .num { font: 400 13px var(--label); letter-spacing: 0.2em; color: var(--gold); }
.cell p { color: var(--ink-2); font-size: 16px; }
.cell .tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); padding: 5px 9px; border-radius: 4px; }
.mist .cell { background: var(--mist); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }

/* split rows: text beside an image */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split > * { min-width: 0; }
.shot { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(15, 15, 16, 0.35); background: var(--mist); }
.shot img { width: 100%; }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); }
.ticks li::before { content: ''; width: 9px; height: 9px; margin-top: 9px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.ticks b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* address bar mock: your-academy.dafola.com */
.url { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: 500 16px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink-2); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.3); }
.url b { color: var(--ink); font-weight: 600; }
.url i { color: var(--gold); font-style: normal; font-weight: 700; }
.url::before { content: ''; width: 10px; height: 12px; border: 1.5px solid var(--ink-3); border-radius: 2px; }

/* skins mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mosaic figure { margin: 0; display: grid; gap: 10px; }
.mosaic img { border-radius: var(--r); border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.mosaic figcaption { font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.mosaic figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .mosaic { grid-template-columns: 1fr 1fr; } }

/* gallery tabs (designs page) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tabs button { height: 42px; padding: 0 16px; border: 1px solid var(--line); background: #fff; border-radius: var(--r); font: 500 14px var(--body); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.skin-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 0.62fr); gap: 18px; align-items: end; }
.skin-row .phones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skin-row .phones img { border-radius: 14px; border: 6px solid #141416; }
.skin-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 26px 0 12px; }
.skin-meta h3 { font-size: 1.6rem; }
.swatch { display: inline-flex; gap: 6px; }
.swatch i { width: 22px; height: 22px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.08); }
@media (max-width: 720px) { .skin-row { grid-template-columns: 1fr; } .skin-row .phones { grid-template-columns: 1fr 1fr; max-width: 360px; } }

/* pricing */
.billing-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); padding: 4px; background: #fff; }
.billing-switch button { height: 38px; padding: 0 16px; border: 0; background: transparent; border-radius: 4px; font: 600 14px var(--body); color: var(--ink-2); cursor: pointer; }
.billing-switch button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; display: grid; gap: 18px; align-content: start; background: #fff; position: relative; }
.plan.pick { border-color: var(--ink); box-shadow: 0 30px 60px -40px rgba(15, 15, 16, 0.5); }
.plan.pick::before { content: 'Most academies'; position: absolute; top: -12px; left: 28px; background: var(--ink); color: #fff; font: 700 11px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; }
.plan h3 { font-family: var(--label); font-weight: 400; font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font: 600 3.4rem/1 var(--display); letter-spacing: -0.04em; }
.price b sup { font-size: 0.42em; vertical-align: 1.05em; margin-right: 2px; letter-spacing: 0; }
.price span { color: var(--ink-3); font-size: 15px; }
.plan .fit { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold); }
.plan ul { list-style: none; padding: 18px 0 0; margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.plan li.soon { color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.plan li.soon::after { content: 'Soon'; grid-column: 2; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); padding: 3px 6px; border-radius: 3px; }
.plan .btn { width: 100%; }
.annual-note { min-height: 1.4em; font-size: 14px; color: var(--gold); font-weight: 600; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

.founding { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; border: 1px solid var(--gold-2); border-radius: var(--r-lg); background: linear-gradient(90deg, var(--gold-soft), #fff 70%); }
.founding .big { font: 600 3rem/1 var(--display); letter-spacing: -0.04em; color: var(--gold); }
@media (max-width: 760px) { .founding { grid-template-columns: 1fr; } }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
thead th { background: var(--mist); font: 400 12px var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
tbody th { font-weight: 500; color: var(--ink-2); }
td { text-align: center; }
td.y::before { content: '✓'; color: var(--gold); font-weight: 700; }
td.s { color: var(--ink-3); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
tbody tr:last-child > * { border-bottom: 0; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--body); font-weight: 400; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* call to action band */
.cta { position: relative; overflow: hidden; }
.cta .wrap { position: relative; z-index: 1; display: grid; gap: 24px; justify-items: start; }
.cta-d { position: absolute; right: -4vw; top: 50%; translate: 0 -50%; width: min(38vw, 460px); color: rgba(255, 255, 255, 0.06); }
.cta-d svg { width: 100%; height: auto; }

/* contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 14px; align-content: start; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-row code { font: 600 18px ui-monospace, Menlo, monospace; padding: 10px 14px; background: var(--mist); border-radius: var(--r); user-select: all; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.foot .logo svg { height: 96px; }
.foot h4 { font: 400 12px var(--label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot a:hover { color: var(--ink); }
.foot .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* gentle reveal on scroll (content stays visible without script) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
.mosaic.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .mosaic.three { grid-template-columns: 1fr; } }

/* legal pages (privacy policy) */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 112px; display: grid; gap: 12px; font-size: 14px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-3); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--gold); }
.legal-doc { max-width: 72ch; }
.legal-doc h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 10px; }
.legal-doc h2 { font-size: 1.55rem; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.legal-doc h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul { margin: 10px 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.legal-doc li::marker { color: var(--gold); }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-doc a { color: var(--ink); text-decoration-color: var(--gold-2); text-underline-offset: 3px; }
.legal-doc .updated { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.legal-doc mark.tbc { background: var(--gold-soft); color: var(--gold); padding: 0 3px; border-radius: 3px; font-size: 0.92em; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; } }
