/* Tare marketing site */
:root {
  --plum: #6d3b4f;
  --plum-dark: #57293c;
  --plum-soft: #f3e8ec;
  --deep: #241c20;
  --paper: #f6f3f0;
  --ink: #24201f;
  --muted: #7a716c;
  --line: #e4ddd7;
  --white: #fff;
  --brass: #d9a86c;
  --brass-deep: #b8844a;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--plum); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
.join :focus-visible, .site-footer :focus-visible, .hero-visual :focus-visible { outline-color: var(--brass); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfc5bd; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 17px; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 240, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav ul a:hover { color: var(--plum); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.link-quiet { color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; }
.link-quiet:hover { color: var(--plum); text-decoration: underline; }
.nav-actions .btn { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.nav-toggle, .header-cta { display: none; }

@media (max-width: 960px) {
  .header-cta { display: inline-flex; margin-left: auto; min-height: 42px; padding: 9px 16px; font-size: 15px; }
  .header-inner { gap: 10px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font: 600 15px var(--sans); color: var(--ink); cursor: pointer; }
  .nav-toggle-bars { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s var(--ease); }
  .nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(36, 28, 32, .35); }
  .js .site-nav.is-open { display: flex; }
  .no-js .site-nav { display: flex; position: static; width: 100%; padding: 0 0 16px; box-shadow: none; border: 0; }
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-top: 14px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-actions { justify-content: space-between; padding-top: 18px; }
  .link-quiet { font-size: 17px; padding: 10px 0; }
}

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 500; color: var(--ink); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass-deep); flex: none; }
h1 { font: 400 clamp(46px, 7.2vw, 88px)/1.0 var(--serif); letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; color: var(--plum); }
h2 { font: 400 clamp(36px, 4.8vw, 58px)/1.05 var(--serif); letter-spacing: -.01em; }
h3 { font: 600 19px/1.3 var(--sans); letter-spacing: -.005em; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); margin-bottom: 14px; }
.kicker-light { color: #f1d3ac; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: #4a4340; max-width: 34em; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin: 26px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-visual { margin: 0; background: var(--deep); color: #efe7e3; border-radius: 28px; padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; inset: auto -20% -45% -20%; height: 70%; background: radial-gradient(closest-side, rgba(109, 59, 79, .55), transparent); pointer-events: none; }
.tare-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 18px 0 30px; }
.tare-anim { width: clamp(150px, 18vw, 220px); height: auto; border-radius: 22%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.readout { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 22px; border-radius: 14px; background: #1a1417; border: 1px solid #3a2e33; font-variant-numeric: tabular-nums; }
.readout-num { font: 500 34px/1 var(--sans); letter-spacing: .02em; color: #fff; }
.readout-unit { font-size: 16px; color: #bfb2ad; }
.definition { position: relative; border-top: 1px solid #3a2e33; padding-top: 20px; font-size: 15px; line-height: 1.5; color: #cfc4bf; }
.def-word { font: italic 400 26px/1 var(--serif); color: #fff; }
.def-pron { color: #a99d98; margin: 0 4px; }
.def-pos { font-style: italic; color: var(--brass); }
.def-text { display: block; margin-top: 8px; }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p:not(.kicker) { margin-top: 18px; color: #4a4340; font-size: 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--plum-soft); color: var(--plum); font: 400 24px/1 var(--serif); margin-bottom: 22px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -21px; width: 22px; height: 1px; background: var(--brass-deep); }

/* Mock */
.mock-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mock-copy h2 { margin-bottom: 20px; }
.mock-copy > p { color: #4a4340; font-size: 18px; }
.ticks { margin-top: 26px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 16px; height: 3px; border-radius: 2px; background: var(--brass-deep); }
.mock { margin: 0; }
.device { background: #2b2226; border-radius: 30px; padding: 14px; box-shadow: 0 40px 80px -40px rgba(36, 28, 32, .55); }
.device-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--plum); color: #fff; border-radius: 18px 18px 0 0; font-size: 14px; }
.device-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; opacity: .92; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #9fe0bf; box-shadow: 0 0 0 3px rgba(159, 224, 191, .25); }
.device-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; padding: 16px; background: var(--paper); border-radius: 0 0 18px 18px; }
.shades-title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.shade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shade-btn { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; font-weight: 600; font-size: 16px; }
.shade-btn i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.shade-btn.is-on { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum) inset; background: var(--plum-soft); }
.bowl { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.bowl-live { display: flex; justify-content: space-between; align-items: baseline; padding: 14px; background: var(--deep); color: #fff; border-radius: 12px; }
.bowl-shade { font-weight: 600; font-size: 15px; color: #d8cdc8; }
.bowl-weight { font: 500 34px/1 var(--sans); font-variant-numeric: tabular-nums; }
.bowl-weight small { font-size: 15px; margin-left: 4px; color: #bfb2ad; }
.bowl-lines { margin: 12px 0; font-size: 15px; }
.bowl-lines li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pouring { color: var(--plum); font-weight: 500; }
.allowance { margin-top: auto; }
.allowance-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.allowance-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.allowance-bar span { display: block; height: 100%; background: var(--brass-deep); border-radius: 6px; }
.done-btn { display: block; margin-top: 14px; text-align: center; padding: 11px; border-radius: 12px; background: var(--plum); color: #fff; font-weight: 600; font-size: 15px; }
.mock-cap { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* Features */
.feature-lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: 24px; margin-bottom: 20px; }
.feature-lead h3 { font: 400 clamp(28px, 3vw, 38px)/1.1 var(--serif); margin-bottom: 16px; }
.feature-lead p { color: #4a4340; font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-grid .feature { padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.feature-grid .feature h3 { margin: 26px 0 10px; }
.feature-grid .feature > p { color: var(--muted); font-size: 16px; }
.mini { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; font-size: 14px; }
.mini-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mini-row { display: grid; grid-template-columns: 1fr .8fr 1.3fr; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; align-items: center; }
.mini-row span:last-child { text-align: right; }
.mini-head { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.mini-foot { margin-top: 12px; font-size: 13px; color: var(--muted); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.desk-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.desk-amt { font-weight: 600; color: var(--plum); background: var(--plum-soft); padding: 4px 10px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.desk-actions, .chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: 13px; }
.chip-on { background: var(--plum); color: #fff; border-color: var(--plum); }
.muted-sm { font-size: 13px; color: var(--muted); }
.inv { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; margin-bottom: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.tag { font-size: 12px; font-weight: 600; color: #6b4a22; background: #f6ead9; padding: 2px 8px; border-radius: 999px; }
.mini-xero .muted-sm { margin-top: 8px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; height: var(--h); background: var(--plum); border-radius: 4px 4px 0 0; opacity: .85; }
.bars span:nth-child(4) { background: var(--brass-deep); opacity: 1; }
.hist { display: flex; justify-content: space-between; padding: 10px 12px; margin-bottom: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-variant-numeric: tabular-nums; }
.extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.extras > div { padding: 24px 28px; border: 1px dashed #cfc5bd; border-radius: 20px; }
.extras h3 { margin-bottom: 6px; }
.extras p { color: var(--muted); font-size: 16px; }

/* Needs */
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.need { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.need svg { width: 44px; height: 44px; fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.need svg .fill { fill: var(--plum); stroke: none; }
.need h3 { margin-bottom: 6px; }
.need p { color: var(--muted); font-size: 16px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pricing-grid .section-head { margin-bottom: 0; }
.price-card { padding: clamp(28px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 60px -45px rgba(36, 28, 32, .4); }
.price-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--plum-soft); color: var(--plum); font-size: 13px; font-weight: 600; }
.price-big { margin-top: 20px; font: 400 clamp(52px, 6vw, 72px)/1 var(--serif); }
.price-big span { font-size: .42em; font-style: italic; color: var(--plum); }
.price-sub { margin-top: 8px; font-size: 18px; font-weight: 500; }
.price-card .ticks { margin: 26px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.price-after { margin-bottom: 24px; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 22px 48px 22px 0; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--plum); border-radius: 2px; transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--plum); }
.faq details p { padding: 0 48px 24px 0; color: #4a4340; }

/* Join */
.join { background: var(--plum); color: #fff; }
.join-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.join h2 { color: #fff; margin-bottom: 20px; }
.join-copy p { color: #f0e2e7; font-size: 18px; }
.join-copy .join-signin { margin-top: 28px; font-size: 16px; }
.join-copy a { color: #fff; font-weight: 600; }
.form-card { background: var(--white); color: var(--ink); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(20, 10, 15, .6); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d3c9c1; border-radius: 12px; background: var(--white); font: 400 17px/1.4 var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d3b4f' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(109, 59, 79, .22); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b3261e; }
.field-error { margin-top: 6px; font-size: 14px; color: #b3261e; font-weight: 500; }
.form-error { margin: 4px 0 16px; padding: 12px 14px; border-radius: 12px; background: #fbeceb; color: #8c1d17; font-weight: 500; font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#beta-submit[disabled] { opacity: .85; cursor: progress; }
#beta-submit .tare-loader { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.form-success { text-align: center; padding: 24px 8px; }
.form-success:focus { outline: none; }
.form-success img { margin: 0 auto 18px; border-radius: 12px; }
.form-success h3 { font: 400 32px/1.1 var(--serif); margin-bottom: 10px; }
.form-success p { color: var(--muted); }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--deep); color: #cfc4bf; padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-footer img { height: 36px; width: auto; }
.footer-by { margin-top: 12px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: #efe7e3; text-decoration: none; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; }

/* Reveal (only when JS opts in and motion is allowed) */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .steps, .needs { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .mock-grid { grid-template-columns: 1fr; }
  .mock-copy { max-width: 640px; }
}
@media (max-width: 900px) {
  .hero-grid, .feature-lead, .pricing-grid, .faq-wrap, .join-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .feature-grid, .extras { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps, .needs { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tare-stage { flex-direction: row; justify-content: center; gap: 20px; padding: 4px 0 24px; }
  .tare-anim { width: 112px; }
  .readout-num { font-size: 28px; }
  .eyebrow { font-size: 13px; }
  .device { padding: 8px; border-radius: 22px; }
  .device-bar { flex-direction: column; align-items: flex-start; gap: 4px; border-radius: 14px 14px 0 0; }
  .device-body { grid-template-columns: 1fr; padding: 12px; }
  .shade-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-row { grid-template-columns: 1fr .9fr 1.2fr; font-size: 13px; }
  .faq summary { font-size: 17px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .brand img { height: 30px; }
  .header-cta { padding: 8px 14px; font-size: 14px; }
  .nav-toggle { padding: 8px 12px; }
  .nav-toggle-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 404 */
.nf-body { min-height: 100vh; display: flex; flex-direction: column; }
.nf { flex: 1; display: flex; align-items: center; padding: 64px 0; }
.nf-inner { display: flex; flex-direction: column; align-items: flex-start; }
.nf-mark { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 28px; }
.nf h1 { font-size: clamp(44px, 7vw, 76px); margin-bottom: 18px; }
.nf .hero-actions { margin-top: 28px; }
.site-footer .footer-by:only-child { margin: 0; }

.site-footer img.klyk-mark, .klyk-mark { display: inline-block; height: 13px; width: auto; vertical-align: -1px; margin: 0 1px 0 3px; }

/* Comparison pages */
.page-hero .lede { max-width: 40em; }
.page-hero h1 { margin: 26px 0 24px; max-width: 16em; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 400 24px/1.1 var(--serif); }
.compare tbody th { width: 22%; font-weight: 600; color: var(--muted); font-size: 15px; }
.compare td:nth-child(2), .compare thead th:nth-child(2) { background: var(--plum-soft); width: 39%; }
.compare-source { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 60em; }
.fit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fit { padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.fit h3 { margin-bottom: 18px; }
.fit .ticks { margin-top: 0; }
.fit .ticks li { color: #4a4340; }
.page-cta .lede { margin-top: 18px; }
.footer-compare { margin-top: 10px; font-size: 14px; }
@media (max-width: 760px) {
  .fit-grid { grid-template-columns: 1fr; }
  /* On a phone each row becomes a block: the question, then Tare's answer and theirs, each labelled. */
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody th { width: auto; padding: 16px 16px 8px; border-bottom: 0; }
  .compare td { padding: 10px 16px; border-bottom: 0; }
  .compare td:nth-child(2) { width: auto; }
  .compare td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .compare td:nth-child(2)::before { color: var(--plum); }
  .compare tr { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .compare tbody tr:last-child { border-bottom: 0; }
}

/* Colour calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.calc-form h2 { margin-bottom: 24px; }
.calc-field { margin-bottom: 22px; }
.calc-field label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 8px; }
.calc-field output { font-variant-numeric: tabular-nums; color: var(--plum); }
.calc-field input[type="number"], .calc-field select { width: 100%; min-height: 50px; padding: 10px 14px; font: 500 18px/1.2 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid #cfc5bd; border-radius: 12px; font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] { width: 100%; height: 44px; accent-color: var(--plum); }
.calc-hint { margin-top: 6px; font-size: 14px; color: var(--muted); }
.calc-result { position: sticky; top: 100px; background: var(--deep); color: #efe7e3; border-radius: 28px; padding: clamp(28px, 4vw, 44px); }
.calc-big { font: 400 clamp(56px, 8vw, 92px)/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.calc-big-label { margin-top: 8px; font-size: 18px; color: #d8cdc7; }
.calc-lines { margin: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.calc-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.calc-lines dt { color: #d8cdc7; }
.calc-lines dd { margin: 0; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-verdict { margin-top: 22px; font-size: 18px; color: #fff; }
.calc-cta { margin-top: 24px; background: var(--brass); color: var(--deep); }
.calc-cta:hover { background: #e6b97f; }
.calc-note { margin-top: 12px; font-size: 14px; color: #b9aca5; text-align: center; }
.calc-section .compare-source { margin-top: 32px; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* Guides */
.guide { max-width: calc(46em + 2 * var(--gutter)); margin-left: max(0px, calc((100% - var(--wrap) - 2 * var(--gutter)) / 2)); }
.guide h2 { margin: 56px 0 16px; }
.guide > p, .guide li { color: #3d3633; font-size: 18px; }
.guide > p { margin-bottom: 16px; }
.guide .answer { padding: clamp(24px, 3vw, 36px); background: var(--plum-soft); border-radius: 24px; }
.guide .answer h2 { margin: 0 0 12px; }
.guide .answer p { font-size: 19px; color: var(--ink); }
.guide-list, .guide-steps { margin: 0 0 16px; padding-left: 24px; }
.guide-list { list-style: disc; }
.guide-steps { list-style: decimal; }
.guide-list li, .guide-steps li { margin-bottom: 10px; padding-left: 4px; }
.guide-cards { margin: 8px 0 0; }
.guide-cards .fit p { color: #4a4340; margin-bottom: 10px; }
.guide-cards .fit p:last-child { margin-bottom: 0; }
.guide-cta { margin: 28px 0 8px; }
.guide .compare-source { margin-top: 28px; }

/* Advert cookie question (ads.js) */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; max-width: 880px; margin: 0 auto; padding: 18px 22px; background: var(--deep); color: #efe7e3; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(36, 28, 32, .28); }
.cookie-bar p { flex: 1 1 320px; font-size: 15px; line-height: 1.5; }
.cookie-bar a { color: #f1d3ac; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-bar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cookie-bar .btn-ghost:hover { border-color: #fff; }
