/* Lanterno Studio: home page */

/* Fonts are served from this site: faster first paint, and no visitor data sent to font providers.
   Archivo (SIL Open Font License) and General Sans (ITF Free Font License, Fontshare). */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 500 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --night: #0a0806;
  --night-2: #120f0b;
  --night-3: #1f1a15;
  --line: #2b241f;
  --ink: #f3eadf;
  --muted: #a89c8f;
  --flame: #f97316;
  --glow: #ffc48a;
  --paper: #efe9e0;
  --paper-ink: #0a0806;
  --paper-muted: #5a5148;
  --paper-line: #d8cfc3;
  --slip: #f7f2ea;

  --font-display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --font-body: "General Sans", "Helvetica Neue", system-ui, sans-serif;
  --display-width: 70%;

  --t-hero: min(15.6vw, 25svh);
  --t-head: clamp(3.25rem, 1.2rem + 6.6vw, 8.5rem);
  --t-sub: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
  --t-lead: clamp(1.125rem, 1.02rem + 0.4vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  --pad: clamp(20px, 3.3vw, 48px);
  --max: 1440px;
  --section: clamp(112px, 12vw, 176px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
strong { font-weight: 600; }
h1, h2, h3 { font-weight: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--flame); color: var(--night); }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }

.defs { position: absolute; overflow: hidden; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--flame); color: var(--night); padding: 12px 18px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

/* type roles */
.display {
  font-family: var(--font-display);
  font-stretch: var(--display-width);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.86;
}
.head { font-size: var(--t-head); }
.sub { font-size: var(--t-sub); line-height: 0.92; letter-spacing: -0.005em; }

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  font: 600 1rem/1 var(--font-body);
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out);
}
.btn svg { width: 15px; height: 15px; transition: transform 240ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-flame { background: var(--flame); color: var(--night); }
.btn-ink { background: var(--night); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-flame:hover { background: var(--ink); }
  .btn-ink:hover { background: var(--ink); color: var(--night); }
  .btn:hover svg { transform: translate(2px, -2px); }
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.32em;
  transition: text-underline-offset 200ms var(--ease-out), color 180ms ease;
}
.text-link svg { width: 14px; height: 14px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-underline-offset: 0.18em; }
  .text-link:hover svg { transform: translate(2px, -2px); }
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }

/* masked lines */
.line { display: block; overflow: hidden; padding-block: 0.07em; margin-block: -0.07em; }
[data-line] { display: block; }

/* ───────── Hero: dark meets flame ───────── */

.hero {
  --seam: 52%;
  position: relative; isolation: isolate;
  height: max(100svh, 680px);
  background: var(--night);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: var(--seam) 0 0 0; z-index: -1;
  background: var(--flame);
}

.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; gap: 40px;
  max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto;
  padding: 22px var(--pad);
}
.bar-links { display: flex; gap: 32px; margin-left: auto; font-size: 0.975rem; }
.bar-links a { display: inline-block; padding-block: 10px; color: var(--muted); transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .bar-links a:hover { color: var(--ink); } }
.bar-cta { min-height: 46px; padding: 0 20px; }

.waterline {
  position: absolute; inset-inline: 0; z-index: 1;
  top: calc(var(--seam) - 1.29em);
  font-size: var(--t-hero);
  line-height: 0.86;
  text-align: center;
}
.wl { display: block; }
.wl-top { color: var(--ink); clip-path: inset(-1em -1em calc(100% - 1.29em) -1em); }
.wl-under { position: absolute; inset: 0; color: var(--night); clip-path: inset(1.29em -1em -1em -1em); }
.wl-under [data-line]::before { content: attr(data-text); }

.hero-foot {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(28px, 4.5svh, 48px);
  max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto;
  padding-inline: var(--pad);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px;
  align-items: end;
  color: var(--night);
}
.hero-lede p:last-child { max-width: 36ch; font-weight: 500; }
.hero-big { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.375rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 14px; }
.hero-deal { display: flex; align-items: flex-end; gap: 18px; }
.hero-price {
  font-family: var(--font-display); font-stretch: var(--display-width); font-weight: 850;
  font-size: clamp(3.5rem, 2rem + 4vw, 6.5rem); line-height: 0.8; letter-spacing: -0.02em;
  display: flex; align-items: flex-start;
}
.hero-price .cur { font-size: 0.34em; margin: 0.06em 0.06em 0 0; }
.hero-terms { font-size: var(--t-small); line-height: 1.4; font-weight: 500; padding-bottom: 2px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }

/* ───────── The deal: price as a poster ───────── */

.deal { background: var(--paper); color: var(--paper-ink); padding-block: var(--section); }
.deal-line { font-size: var(--t-deal, min(10.4vw, 10.5rem)); line-height: 0.9; }
.chip { display: inline-block; background: var(--flame); padding: 0 0.12em; margin-right: 0.06em; }
.deal-sub { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-top: clamp(48px, 6vw, 80px); }
.deal-lead { font-family: var(--font-display); font-stretch: var(--display-width); font-weight: 850; text-transform: uppercase; font-size: var(--t-sub); line-height: 0.95; margin-bottom: 16px; }
.deal-copy p:last-child { font-size: var(--t-lead); line-height: 1.5; max-width: 50ch; color: var(--paper-muted); }
.deal-btn { justify-self: end; }
@media (hover: hover) and (pointer: fine) { .deal .btn-ink:hover { background: var(--flame); color: var(--night); } }

.deal-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); margin-top: clamp(80px, 9vw, 128px); align-items: start; }
.included-title { font-size: var(--t-sub); margin-bottom: 24px; }
.included-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 2px solid var(--paper-ink); }
.included-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--paper-line); font-weight: 500; line-height: 1.4; }
.included-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--flame); }
.included-note { margin-top: 24px; color: var(--paper-muted); max-width: 54ch; }
.included-note strong { color: var(--paper-ink); }

/* the fee calculator */
.tally { background: var(--night); color: var(--ink); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.tally-title { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 0.92; }
.tally-intro { color: var(--muted); font-size: var(--t-small); }
.tally-fee { font-size: clamp(3rem, 2.4rem + 2vw, 4.25rem); line-height: 0.9; color: var(--flame); font-variant-numeric: tabular-nums; margin-top: 8px; }
.tally-fee span { font-family: var(--font-body); font-size: 0.32em; font-weight: 500; color: var(--muted); text-transform: none; margin-left: 4px; letter-spacing: 0; }

input[type="range"] {
  --p: 30%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 36px; background: transparent; cursor: grab; touch-action: pan-y;
}
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--flame) var(--p), var(--night-3) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; background: var(--night-3); }
input[type="range"]::-moz-range-progress { height: 6px; background: var(--flame); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px;
  background: var(--ink); border: 4px solid var(--flame);
  transition: transform 140ms var(--ease-out);
}
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 0; background: var(--ink); border: 4px solid var(--flame); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--glow); outline-offset: 2px; }

.tally-rows { display: grid; gap: 10px; margin-top: 6px; }
.tally-rows li { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr) 6rem; align-items: center; gap: 14px; font-size: var(--t-small); }
.t-label { color: var(--muted); }
.t-track { height: 14px; background: var(--night-3); }
.t-track i { display: block; height: 100%; background: var(--ink); transform-origin: left center; transform: scaleX(var(--w, 0)); transition: transform 450ms var(--ease-out); }
.t-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.t-us .t-label, .t-us .t-val { color: var(--flame); }
.t-us .t-track i { background: var(--flame); }
.tally-sum { font-size: var(--t-lead); line-height: 1.4; color: var(--muted); margin-top: 6px; }
.tally-sum strong { color: var(--ink); }

/* ───────── How it works ───────── */

.process { background: var(--night-2); padding-block: var(--section); overflow-x: clip; }
.process-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.steps { margin-top: clamp(56px, 6vw, 88px); border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; padding: clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.step-name { font-size: clamp(2.75rem, 1.6rem + 3.6vw, 5.5rem); display: flex; align-items: flex-start; gap: 0.18em; }
.step-n { font-family: var(--font-body); font-stretch: 100%; font-size: var(--t-small); font-weight: 600; color: var(--flame); letter-spacing: 0; padding-top: 0.2em; }
.step p { color: var(--muted); padding-top: 6px; }
.step em { color: var(--ink); }

.slip-wrap { position: sticky; top: 48px; padding-top: 12px; }
.slip {
  max-width: 440px; margin-left: auto;
  background: var(--slip); color: var(--paper-ink);
  padding: 30px 30px 54px;
  font-variant-numeric: tabular-nums;
  transform: rotate(1.4deg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 96.429% calc(100% - 10px), 92.857% 100%, 89.286% calc(100% - 10px), 85.714% 100%, 82.143% calc(100% - 10px), 78.571% 100%, 75% calc(100% - 10px), 71.429% 100%, 67.857% calc(100% - 10px), 64.286% 100%, 60.714% calc(100% - 10px), 57.143% 100%, 53.571% calc(100% - 10px), 50% 100%, 46.429% calc(100% - 10px), 42.857% 100%, 39.286% calc(100% - 10px), 35.714% 100%, 32.143% calc(100% - 10px), 28.571% 100%, 25% calc(100% - 10px), 21.429% 100%, 17.857% calc(100% - 10px), 14.286% 100%, 10.714% calc(100% - 10px), 7.143% 100%, 3.571% calc(100% - 10px), 0 100%);
}
.slip-top { display: flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 18px; border-bottom: 2px solid var(--paper-ink); }
.slip-top svg { width: 22px; height: 22px; }
.slip-no { margin-left: auto; font-weight: 500; color: var(--paper-muted); font-size: var(--t-small); }
.slip-group { padding: 18px 0 4px; }
.slip-group dt { font-weight: 600; margin-bottom: 6px; }
.slip-group dd { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; font-size: var(--t-small); }
.slip-group dd span:first-child { display: flex; flex: 1; gap: 8px; align-items: baseline; color: var(--paper-muted); }
.slip-group dd span:first-child::after { content: ""; flex: 1; min-width: 20px; border-bottom: 3px dotted #b8ad9f; transform: translateY(-4px); }
.slip-group dd span:last-child { font-weight: 600; }
.slip-total { display: flex; justify-content: space-between; align-items: center; margin: 22px -30px 0; padding: 14px 30px; background: var(--paper-ink); color: var(--ink); font-weight: 600; }
.slip-total span:last-child { font-family: var(--font-display); font-stretch: var(--display-width); font-weight: 850; font-size: 1.75rem; line-height: 1; color: var(--flame); }
.slip-thanks { text-align: center; margin-top: 18px; font-size: var(--t-small); color: var(--paper-muted); }

/* ───────── About ───────── */

.about { padding-block: var(--section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-grid .head { position: sticky; top: 48px; font-size: min(var(--t-head), 5.6vw); }
@media (max-width: 1080px) { .about-grid .head { font-size: var(--t-head); } }
.about-body { display: grid; gap: 40px; }
.statement { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.375rem); font-weight: 500; line-height: 1.22; letter-spacing: -0.02em; }
.nos { border-top: 1px solid var(--line); }
.nos li { font-size: var(--t-sub); line-height: 0.95; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); transition: color 200ms ease; }
.nos li span { color: var(--flame); }
@media (hover: hover) and (pointer: fine) { .nos li:hover { color: var(--ink); } }
.about-just { font-size: var(--t-lead); line-height: 1.5; max-width: 44ch; }
.signoff { display: flex; align-items: center; gap: 16px; }
.signoff svg { width: 44px; height: 44px; flex: none; }
.signoff p { font-size: var(--t-small); color: var(--muted); }
.signoff strong { display: block; color: var(--ink); }

/* ───────── FAQ ───────── */

.faq { padding-block: var(--section); background: var(--night-2); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-grid .head { position: sticky; top: 48px; font-size: min(var(--t-head), 5.6vw); }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; transition: color 180ms ease; }
.qa-icon { position: relative; flex: none; width: 36px; height: 36px; background: var(--night-3); transition: background-color 180ms ease, transform 240ms var(--ease-out); }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 240ms var(--ease-out), background-color 180ms ease; }
.qa-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa-icon { background: var(--flame); }
.qa[open] .qa-icon::before, .qa[open] .qa-icon::after { background: var(--night); }
.qa[open] .qa-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa summary:active .qa-icon { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover h3 { color: var(--flame); } }
.qa summary:focus-visible { outline-offset: 4px; }
.qa-a { padding: 0 64px 28px 0; display: grid; gap: 12px; color: var(--muted); max-width: 62ch; }
.qa-a strong { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa-a { animation: qa-in 320ms var(--ease-out); }
}
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 1080px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .head { position: static; font-size: var(--t-head); }
}
@media (max-width: 640px) {
  .qa-a { padding-right: 0; }
  .qa summary { padding: 20px 0; }
}

.contact-privacy { font-size: var(--t-micro); color: var(--paper-muted); margin-top: -2px; }
.contact-privacy a { color: var(--paper-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* ───────── Call to action ───────── */

.cta {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 70svh;
  padding-top: clamp(28px, 4vw, 48px);
  background: var(--flame); color: var(--night);
  overflow: hidden;
  transition: background-color 200ms ease, color 200ms ease;
}
.cta-top { display: flex; justify-content: space-between; gap: 24px; }
.cta-copy { max-width: 46ch; }
.cta-title { display: block; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.375rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 14px; }
.cta-text { display: block; font-weight: 500; }
.cta-arrow { width: 56px; height: 56px; flex: none; transition: transform 260ms var(--ease-out); }
.cta-word {
  display: block; overflow: hidden; white-space: nowrap; text-align: center;
  font-size: var(--t-cta, 24vw);
  line-height: 0.8;
  padding-top: 0.08em;
  margin-top: 40px;
  margin-bottom: -0.035em;
  padding-inline: var(--pad);
}
.cta-word span { display: block; }
@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: var(--night); color: var(--flame); }
  .cta:hover .cta-arrow { transform: translate(6px, -6px); }
}
.cta:focus-visible { outline-offset: -8px; outline-color: var(--night); }

/* ───────── Footer ───────── */

.footer { padding-block: clamp(72px, 9vw, 128px) 32px; }
.footer-email {
  display: block; white-space: nowrap;
  font-size: var(--t-email, 8.4vw);
  line-height: 0.9;
  transition: color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .footer-email:hover { color: var(--flame); } }
.footer-note { margin-top: 24px; font-size: var(--t-lead); color: var(--muted); max-width: 46ch; }
.footer-meta {
  display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 20px 32px; align-items: center;
  margin-top: clamp(72px, 9vw, 120px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: var(--t-small); color: var(--muted);
}
.footer-meta .brand { color: var(--ink); font-size: 1rem; }
.motto { font-weight: 500; color: var(--flame); margin-left: 8px; }
.footer-meta .text-link { color: var(--ink); font-weight: 500; text-decoration-thickness: 1px; }

/* ───────── Motion ───────── */

@media (prefers-reduced-motion: no-preference) {
  .js .waterline [data-line] { transform: translateY(110%); animation: line-up 1000ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 250ms); }
  .js .hero::after { transform: scaleY(0); transform-origin: bottom; animation: field-up 900ms var(--ease-in-out) 60ms forwards; }
  .js .hero [data-rise] { opacity: 0; transform: translateY(16px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 750ms); }
  .js .bar { opacity: 0; animation: fade 700ms ease 600ms forwards; }

  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .slip[data-reveal] { transform: rotate(5deg) translateY(60px); }
  .js .slip[data-reveal].is-in { transform: rotate(1.4deg); transition-duration: 800ms, 1200ms; }


  .js .included-list li { opacity: 0; transform: translateY(10px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .included.is-in .included-list li { opacity: 1; transform: none; }

  .js .deal-line [data-line] { transform: translateY(110%); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--i) * 120ms); }
  .js .deal-line.is-in [data-line] { transform: none; }

  .js .cta-word span { transform: translateY(100%); transition: transform 1100ms var(--ease-out); }
  .js .cta.is-in .cta-word span { transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes field-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

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

/* ───────── Tablet ───────── */

@media (max-width: 1080px) {
  .bar-links { display: none; }
  .bar-cta { margin-left: auto; }
  .hero-foot { grid-template-columns: 1fr auto; }
  .hero-lede { grid-column: 1 / -1; }
  .hero-actions { flex-direction: row; align-items: center; }
  .deal-sub, .deal-body, .process-grid, .about-grid { grid-template-columns: 1fr; }
  .deal-btn { justify-self: start; }
  .slip-wrap { position: static; }
  .slip { margin-inline: auto; }
  .about-grid .head { position: static; }
}

/* ───────── Phone ───────── */

@media (max-width: 640px) {
  :root { --t-hero: calc((100vw - 2 * var(--pad)) / 4.85); }
  .hero { --seam: 43%; height: max(100svh, 720px); }
  .bar { padding-block: 14px; }
  .brand span { font-size: 1rem; }
  .bar-cta { min-height: 42px; padding: 0 14px; font-size: 0.9375rem; }
  .hero-foot { grid-template-columns: 1fr; gap: 20px; bottom: 24px; }
  .hero-lede p:last-child { font-size: var(--t-small); }
  .hero-big { margin-bottom: 8px; }
  .hero-actions { gap: 20px; }
  .hero-actions .btn { flex: 1; }


  .deal-btn { justify-self: stretch; white-space: normal; text-align: center; }
  .included-list { grid-template-columns: 1fr; }
  .tally-rows li { grid-template-columns: 4.25rem minmax(0, 1fr) 5.5rem; gap: 10px; }

  .step { grid-template-columns: 1fr; gap: 10px; }
  .slip { padding: 24px 20px 48px; transform: rotate(0.8deg); }
  .slip-total { margin-inline: -20px; padding-inline: 20px; }
  .slip-no { display: none; }

  .cta { min-height: 56svh; }
  .cta-arrow { width: 36px; height: 36px; }

  .footer-meta { grid-template-columns: 1fr; gap: 12px; }
  .motto { display: block; margin: 0; }
  .footer-meta .brand { flex-wrap: wrap; }
}

/* ───────── Contact popup ───────── */

html.has-dialog { overflow: hidden; }

.contact {
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: clamp(16px, 4vw, 48px);
  border: 0; background: transparent; color: var(--paper-ink);
  display: none; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
}
.contact[open] { display: flex; }
.contact::backdrop { background: rgba(10, 8, 6, 0); transition: background-color 240ms ease; }
.contact[data-state="open"]::backdrop { background: rgba(10, 8, 6, 0.78); }

.contact-panel {
  position: relative;
  flex: none;
  margin: auto;
  width: min(640px, 100%);
  background: var(--paper);
  border-top: 6px solid var(--flame);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.contact[data-state="open"] .contact-panel {
  opacity: 1; transform: none;
  transition: opacity 240ms ease, transform 320ms var(--ease-out);
}

.contact-close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--paper-ink); cursor: pointer;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.contact-close svg { width: 20px; height: 20px; }
.contact-close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .contact-close:hover { background: var(--paper-line); } }

.contact-title { font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3.25rem); line-height: 0.9; padding-right: 40px; }
.contact-intro { margin-top: 14px; color: var(--paper-muted); max-width: 46ch; }
.contact-intro strong { color: var(--paper-ink); word-break: break-word; }

.contact-form { margin-top: 24px; display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: var(--t-small); font-weight: 600; }
.optional { font-weight: 500; color: var(--paper-muted); margin-left: 4px; }
.field input, .field textarea {
  width: 100%;
  font: 500 1rem/1.45 var(--font-body);
  color: var(--paper-ink);
  background: #fbf8f3;
  border: 1px solid var(--paper-line);
  border-radius: 0;
  padding: 13px 14px;
  min-height: 50px;
  -webkit-appearance: none; appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #9b9083; }
@media (hover: hover) and (pointer: fine) {
  .field input:hover, .field textarea:hover { border-color: #b9ad9e; }
}
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--paper-ink);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}
.field [aria-invalid="true"] { border-color: #c2410c; background: #fff7f2; }
.field-error { min-height: 0; font-size: var(--t-micro); font-weight: 600; color: #b23a0a; }
.field-error:empty { display: none; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) { .contact .btn-flame:hover { background: var(--night); color: var(--flame); } }
.contact-submit { min-width: 190px; }
.contact-submit[aria-busy="true"] { pointer-events: none; }
.contact-submit[aria-busy="true"] svg { animation: nudge 700ms var(--ease-in-out) infinite alternate; }
@keyframes nudge { to { transform: translate(4px, -4px); } }
.contact-alt { font-size: var(--t-small); color: var(--paper-muted); }
.contact-alt a { color: var(--paper-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }
.form-status:empty { display: none; }
.form-status { font-size: var(--t-small); font-weight: 600; color: #b23a0a; }

.contact-done { display: grid; justify-items: start; gap: 4px; padding-block: 8px; }
.contact-done[hidden] { display: none; }
.done-mark { width: 56px; height: 56px; margin-bottom: 20px; }
.contact-done .contact-title:focus { outline: none; }
.contact-done .btn { margin-top: 28px; }
.contact-done .btn-ink:hover { background: var(--flame); color: var(--night); }

/* phones: a bottom sheet that slides up */
@media (max-width: 640px) {
  .contact { padding: 6svh 0 0; }
  .contact-panel {
    width: 100%;
    margin: auto 0 0;
    padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
    opacity: 1;
    transform: translateY(100%);
    transition: transform 220ms var(--ease-out);
  }
  .contact[data-state="open"] .contact-panel { transform: none; transition: transform 420ms var(--ease-drawer); }
  .contact-close { top: 10px; right: 8px; }
  .field-row { grid-template-columns: 1fr; gap: 18px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-submit { width: 100%; }
  .contact-alt { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel, .contact[data-state="open"] .contact-panel { transform: none; }
}

/* ───────── Legal pages ───────── */

.legal-bar { border-bottom: 1px solid var(--line); }
.legal-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.legal { padding-block: clamp(56px, 7vw, 104px) var(--section); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.legal-head { position: sticky; top: 32px; }
.legal-head h1 { font-size: clamp(3rem, 1.6rem + 4.6vw, 6rem); line-height: 0.88; }
.legal-meta { margin-top: 18px; color: var(--muted); font-size: var(--t-small); }
.legal-toc { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.legal-toc > p { font-size: var(--t-small); font-weight: 600; margin-bottom: 10px; }
.legal-toc ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 6px; font-size: var(--t-small); color: var(--muted); }
.legal-toc a { color: var(--muted); transition: color 160ms ease; }
.legal-toc a:hover { color: var(--flame); }

.legal-body { max-width: 72ch; }
.legal-body section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { font-family: var(--font-display); font-stretch: var(--display-width); font-weight: 850; text-transform: uppercase; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem); line-height: 0.95; margin-bottom: 20px; }
.legal-body h3 { font-size: 1.125rem; font-weight: 600; margin: 28px 0 10px; }
.legal-body p, .legal-body li { color: #d9cfc3; }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { list-style: disc; padding-left: 1.3em; margin: 12px 0; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--flame); }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--flame); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.legal-body a:hover { color: var(--flame); }
.legal-body strong { color: var(--ink); }
.legal-points li { color: var(--ink); }
.legal-table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: var(--t-small); min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--night-3); font-weight: 600; color: var(--ink); }
.legal-table td { color: #d9cfc3; }
.legal-table td:first-child { color: var(--ink); width: 46%; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-contact { margin-top: 24px; padding: 24px; background: var(--night-2); border-left: 4px solid var(--flame); }

.legal-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: var(--t-small); color: var(--muted); }
.legal-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.legal-footer .brand { color: var(--ink); font-size: 1rem; }

@media (max-width: 1080px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-head { position: static; }
}

/* ───────── Cookie consent ───────── */

.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  width: min(440px, calc(100vw - 40px));
  padding: 20px 22px;
  background: var(--night); color: var(--ink);
  border: 1px solid var(--line); border-top: 3px solid var(--flame);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  font-size: var(--t-small); line-height: 1.5;
  opacity: 0; transform: translateY(16px);
  transition: opacity 160ms ease, transform 200ms var(--ease-out);
}
.consent[hidden] { display: none; }
.consent[data-state="open"] { opacity: 1; transform: none; transition: opacity 280ms ease, transform 360ms var(--ease-out); }
.consent-text { color: #d9cfc3; }
.consent-text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--flame); text-underline-offset: 0.2em; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent-btn {
  min-height: 44px; padding: 0 16px; border: 0; cursor: pointer;
  font: 600 0.9375rem/1 var(--font-body);
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.consent-btn:active { transform: scale(0.97); }
.consent-accept { background: var(--flame); color: var(--night); }
.consent-reject { background: var(--ink); color: var(--night); }
@media (hover: hover) and (pointer: fine) {
  .consent-accept:hover { background: #ff8a3a; }
  .consent-reject:hover { background: #ffffff; }
}
@media (max-width: 640px) {
  .consent { left: 0; right: 0; bottom: 0; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
}

/* footer "Cookie settings" is a button styled as a link */
.link-button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.legal-table-cookies table { min-width: 0; }
.legal-table-cookies td:first-child { width: 26%; color: var(--ink); overflow-wrap: anywhere; }
.legal-table-cookies td:last-child, .legal-table-cookies th:last-child { width: 1%; white-space: nowrap; }
@media (max-width: 640px) {
  .legal-table-cookies th, .legal-table-cookies td { padding: 12px 10px; font-size: 0.875rem; }
}
