/* Altiform by FRMD - draft v1 (2026-10-23).
   Layout follows the "Area" Figma template Adam picked (nav, giant serif line, device-over-block hero,
   logo row, 4-up benefits, text + carousel, compare table, image + statement, 3-up, big image, CTA).
   Deliberate departures (FRMD rules): no 01/02/03 numerals, no small grey kickers above headings,
   no hairlines between sections, no invented testimonial or client logos, oak instead of the template's green. */

:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #6e6c68;
  --line: #e7e4de;
  --line-strong: #cfcbc3;
  --oak: #d8c39e;
  --oak-pale: #f1e9da;
  --oak-deep: #8a6a3a;
  --device: #121212;
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --hand: "Caveat", cursive;
  --gutter: 40px;
  --max: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* The page is a size container so the same CSS drives the live site and the fixed-width Figma artboards */
.page { container-type: inline-size; container-name: page; background: var(--bg); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .01em; }
.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--serif); font-size: 152px; line-height: .95; letter-spacing: -.035em; text-align: center; }
.h2 { font-family: var(--serif); font-size: 56px; line-height: 1.05; letter-spacing: -.025em; }
.h3 { font-family: var(--serif); font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.h3-lg { font-family: var(--serif); font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
.lead { font-size: 16px; line-height: 1.55; max-width: 520px; }

/* Buttons - pill, 48 tall, like the template */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); border: 0; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-soft { background: var(--oak-pale); color: var(--ink); }
.btn-soft:hover { background: #e8dcc5; }
.btn-wide { width: 100%; }
.arr { font-size: 12px; transform: translateY(-1px); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter); }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--oak-deep); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 12px 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }
.mobile-menu { display: flex; flex-direction: column; gap: 18px; padding: 8px 16px 24px; font-size: 20px; font-family: var(--serif); }

/* Hero */
.hero { padding-top: 64px; }
.hero-visual { position: relative; height: 504px; margin-top: 80px; }
.hero-block { position: absolute; left: 0; right: 0; bottom: 0; height: 362px; background: var(--oak); border-radius: 26px; }
.device { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); width: 906px; max-width: 76%; padding: 16px 16px 0; background: var(--device); border-radius: 26px 26px 0 0; box-shadow: 0 0 0 2px #2b2b2b inset, 0 -2px 18px rgba(0,0,0,.12); overflow: hidden; }
.screen { position: relative; border-radius: 12px 12px 0 0; overflow: hidden; }
.screen img { width: 100%; height: auto; }
.screen-ui { position: absolute; inset: 0; padding: 30px 34px; color: #fff; }
.crumb { font-size: 12px; opacity: .85; }
.crumb span { opacity: .6; margin: 0 4px; }
.stat { display: flex; align-items: baseline; gap: 18px; margin-top: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.35); }
.stat-big { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -.03em; }
.stat-label { font-family: var(--serif); font-size: 26px; }
.screen-pill { position: absolute; right: 34px; top: 66px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 12px; }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font: 500 11px/1 var(--mono); }
.pin::before { content: ""; order: 2; width: 1px; height: 46px; background: #fff; }
.pin i { order: 3; width: 7px; height: 7px; background: #fff; border-radius: 1px; }
.pin-low::before { height: 26px; }

/* Logo row (program names) */
.logos { padding-top: 56px; padding-bottom: 72px; }
.logo-row { display: flex; justify-content: space-between; align-items: center; list-style: none; margin: 36px 0 0; padding: 0 40px; color: #8f8c86; }
.lg { font-size: 23px; }
.lg-1 { font: 600 23px var(--sans); letter-spacing: -.02em; }
.lg-2 { font: 500 25px var(--sans); }
.lg-3 { font: 400 18px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.lg-4 { font: 500 26px var(--serif); font-style: italic; }
.lg-5 { font: 600 21px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.lg-6 { font: 500 22px var(--sans); }

/* Benefits */
.benefits { padding-top: 64px; }
.benefits .lead { margin-top: 56px; }
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 88px; }
.col { border-top: 1px solid var(--line); padding-top: 38px; }
.col .muted { font-size: 15px; line-height: 1.45; margin-top: 18px; max-width: 270px; }
.col .h3 { margin-top: 24px; }
.ico { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill { fill: var(--ink); stroke: none; }
.wide { margin: 100px 0 0; }
.wide img { width: 100%; height: 620px; object-fit: cover; border-radius: 26px; }

/* Feature: text + carousel */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 140px; align-items: start; }
.feature-text { border-top: 1px solid var(--line); padding-top: 60px; }
.feature-text .lead { margin-top: 44px; }
.ticks { list-style: none; margin: 38px 0 44px; padding: 0; }
.ticks li { position: relative; padding: 18px 0 18px 34px; border-top: 1px solid var(--line); font-size: 15px; max-width: 540px; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 11px; height: 6px; border-left: 1.8px solid var(--oak-deep); border-bottom: 1.8px solid var(--oak-deep); transform: rotate(-45deg); }
.carousel { position: relative; }
.slides { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: #e9eef3; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s; }
.slide.is-active { opacity: 1; }
.slide video, .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { display: none; }
.carousel-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.slide-caption { font-size: 14px; color: var(--muted); }
.arrows { display: flex; gap: 10px; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; display: grid; place-items: center; cursor: pointer; }
.arrow:hover { background: var(--oak-pale); border-color: var(--oak); }
.arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Specs: centred intro + compare table */
.specs { padding-top: 150px; }
.specs-intro { text-align: center; display: flex; flex-direction: column; align-items: center; }
.specs-intro .lead { margin-top: 40px; max-width: 680px; }
.specs-intro .btn { margin-top: 44px; }
.table { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; }
.tcol { display: flex; flex-direction: column; }
.tcol-us { border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04); background: #fff; }
.thead { height: 96px; display: grid; place-items: center; font: 500 22px var(--sans); color: #8f8c86; border-bottom: 1px solid var(--line-strong); letter-spacing: -.01em; }
.tcol-us .thead { color: var(--ink); }
.tcol:not(.tcol-us) .thead { margin-top: 0; }
.tcell { height: 81px; display: flex; align-items: center; gap: 12px; padding: 0 30px; border-bottom: 1px solid var(--line); font: 400 13px var(--mono); }
.tcol:last-child .tcell { border-left: 1px solid var(--line); }
.tcol-us .tcell:last-child { border-bottom: 0; }
.tcell::before { content: ""; flex: none; width: 10px; height: 10px; }
.tcell.yes::before { width: 9px; height: 5px; border-left: 1.6px solid var(--oak-deep); border-bottom: 1.6px solid var(--oak-deep); transform: rotate(-45deg) translate(1px, -1px); }
.tcell.no::before { background: linear-gradient(45deg, transparent 44%, #8f8c86 44%, #8f8c86 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #8f8c86 44%, #8f8c86 56%, transparent 56%); }
.tcell.no { color: #6e6c68; }

.inside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 120px; align-items: center; }
.inside-text { padding-right: 40px; }
.spec { margin: 34px 0 0; }
.spec div { display: grid; grid-template-columns: 130px 1fr; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-family: var(--mono); font-size: 13px; padding-top: 2px; }
.compare { position: relative; margin: 0; aspect-ratio: 1; border-radius: 26px; overflow: hidden; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-b-wrap { position: absolute; inset: 0 auto 0 0; width: var(--pos); overflow: hidden; }
.cmp-b-wrap img { width: auto; height: 100%; max-width: none; aspect-ratio: 1; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; }
.cmp-line i { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.cmp-line i::before, .cmp-line i::after { content: ""; position: absolute; top: 15px; width: 8px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.cmp-line i::before { left: 11px; transform: rotate(45deg); }
.cmp-line i::after { right: 11px; transform: rotate(-135deg); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-tag { position: absolute; bottom: 20px; padding: 7px 14px; border-radius: 999px; background: rgba(20,20,20,.55); color: #fff; font-size: 12px; }
.cmp-tag-b { left: 20px; }
.cmp-tag-a { right: 20px; }
.hand { position: absolute; top: 26px; right: 28px; font: 500 26px/1 var(--hand); color: #fff; text-align: right; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hand svg { display: block; width: 70px; height: 44px; margin: 4px 0 0 auto; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Statement (template testimonial slot) */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 140px; align-items: stretch; }
.st-img { margin: 0; }
.st-img img { width: 100%; height: 100%; min-height: 669px; object-fit: cover; border-radius: 26px; }
.st-text { border-top: 1px solid var(--line); padding: 120px 0 0 50px; display: flex; flex-direction: column; align-items: flex-start; }
.quote { margin: 0; font-family: var(--serif); font-size: 38px; line-height: 1.12; letter-spacing: -.02em; }
.st-who { margin-top: 36px; font-size: 16px; }
.st-role { margin-top: 6px; font: 400 13px var(--mono); color: var(--oak-deep); }
.st-body { margin-top: 36px; max-width: 470px; font-size: 15px; }
.st-text .btn { margin-top: 30px; }

/* How it works */
.how { padding-top: 140px; }
.how-head { display: flex; justify-content: space-between; align-items: center; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 80px; }
.big-word { font-family: var(--sans); font-size: 74px; line-height: 1; letter-spacing: -.05em; color: #9a978f; }
.cols3 .h3 { margin-top: 70px; }
.cols3 .muted { margin-top: 18px; font-size: 15px; max-width: 330px; }
.wide.big { margin-top: 110px; }
.wide.big img { height: 664px; }

/* FAQ */
.faq { padding-top: 130px; max-width: 920px; }
.faq .h2 { margin-bottom: 44px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-family: var(--serif); font-size: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font: 300 26px var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 60px 26px 0; color: var(--muted); font-size: 15px; max-width: 720px; }

/* CTA + form */
.cta { padding-top: 140px; padding-bottom: 110px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta .lead { margin-top: 30px; max-width: 560px; }
.order { width: 100%; max-width: 600px; margin-top: 46px; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.order fieldset { position: relative; min-width: 0; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.order legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; width: 100%; }
.order fieldset label input { position: absolute; opacity: 0; pointer-events: none; }
.order fieldset label span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; cursor: pointer; }
.order fieldset label input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.order fieldset label input:focus-visible + span { outline: 2px solid var(--oak-deep); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field textarea { font: 400 15px var(--sans); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 14px; padding: 13px 16px; background: #fff; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #aaa69e; }
.form-msg { font-size: 14px; color: var(--oak-deep); min-height: 1px; }
.order .btn-wide { margin-top: 6px; }

/* Lockup: ALTIFORM in the frmd.se corner frame (.fx-frame: two 90-degree corners, top right and bottom left), by, FRMD logo.
   DM Sans cap height = 0.70em (measured). FRMD letters = 264 of the logo's 405 units, baseline at y = 324:
   logo 0.70 x 405/264 = 1.0739em tall, 81/405 x 1.0739 = 0.2148em below the baseline, so letters and caps line up. */
.lockup, .foot-lockup { display: inline-block; white-space: nowrap; line-height: 1; color: var(--ink); padding-left: 0.2em; }
.lockup { font-size: 26px; }
.lockup-word { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.frame { position: relative; display: inline-block; }
.frame::before, .frame::after { content: ""; position: absolute; width: 0.34em; height: 0.34em; border: 0 solid currentColor; pointer-events: none; }
.frame::before { top: -0.06em; right: -0.2em; border-top-width: 0.045em; border-right-width: 0.045em; }
.frame::after { bottom: 0.02em; left: -0.2em; border-bottom-width: 0.045em; border-left-width: 0.045em; }
.lockup-by { font-family: var(--sans); font-size: 0.45em; font-weight: 400; margin-left: 1.6em; color: var(--muted); }
.lockup-logo { display: inline-block; height: 1.0739em; width: auto; margin-left: 0.35em; vertical-align: -0.2148em; }

/* Footer: dark, four columns, the lockup at full width */
.foot { --g: var(--gutter); display: grid; padding: 48px var(--g) 24px; background: var(--ink); color: #c9ccca; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; max-width: var(--max); width: 100%; margin-inline: auto; font-size: 14px; line-height: 1.6; }
.foot-cols > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.foot-cols .ink { color: #fff; font-weight: 500; margin-bottom: 6px; }
.foot a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25em; transition: text-decoration-color .18s ease; }
.foot a:hover { text-decoration-color: currentColor; }
.foot-lockup { max-width: var(--max); width: 100%; margin: clamp(96px, 14vw, 200px) auto 20px; color: #fff;
  font-size: calc(min(100cqw - 2 * var(--g), var(--max)) / var(--k, 9.56)); }   /* lockup = 9.40-9.51em wide (measured at 1440 and 390) */
.foot-lockup .lockup-by { color: #8f8c86; }
.legal { max-width: var(--max); width: 100%; margin-inline: auto; font-size: 13px; color: #c9ccca; }

/* ---------- Tablet ---------- */
@container page (max-width: 1100px) {
  .display { font-size: 112px; }
  .nav-links { gap: 20px; }
  .device { max-width: 86%; }
  .cols4 { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .logo-row { flex-wrap: wrap; justify-content: center; gap: 28px 48px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile ---------- */
@container page (max-width: 700px) {
  /* a container query cannot restyle its own container, so the gutter is set on the children, not via --gutter */
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .lockup { font-size: 21px; }
  .foot { --g: 16px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .foot-lockup { margin-top: 96px; }
  .hero { padding-top: 34px; }
  .display { font-size: 64px; letter-spacing: -.03em; }
  .display { font-size: 54px; white-space: nowrap; }
  .hero-visual { height: auto; margin-top: 36px; display: flex; justify-content: center; }
  .hero-block { height: 62%; border-radius: 18px; }
  .device { position: relative; left: auto; top: auto; bottom: auto; transform: none; width: 92%; max-width: none; padding: 8px 8px 0; border-radius: 16px 16px 0 0; }
  .screen-ui { padding: 12px 14px; }
  .crumb, .screen-pill, .pin { display: none; }
  .stat { margin-top: 0; gap: 8px; padding-bottom: 8px; }
  .stat-big { font-size: 30px; }
  .stat-label { font-size: 14px; }
  .logos { padding-top: 48px; padding-bottom: 40px; }
  .logo-row { padding: 0; gap: 20px 28px; justify-content: flex-start; }
  .lg { font-size: 18px !important; }
  .h2 { font-size: 40px; }
  .benefits .lead { margin-top: 26px; }
  .cols4, .cols3 { grid-template-columns: 1fr; margin-top: 44px; row-gap: 40px; }
  .wide { margin-top: 60px; }
  .wide img, .wide.big img { height: 360px; border-radius: 18px; }
  .feature, .inside, .statement { grid-template-columns: 1fr; }
  .feature { padding-top: 90px; gap: 40px; }
  .feature-text { padding-top: 40px; }
  .feature-text .lead { margin-top: 26px; }
  .slides { border-radius: 18px; }
  .specs { padding-top: 100px; }
  .table { grid-template-columns: 1fr; margin-top: 50px; }
  .tcol:not(.tcol-us) { display: none; }
  .inside { margin-top: 70px; gap: 30px; }
  .inside-text { padding-right: 0; }
  .compare { border-radius: 18px; }
  .hand { font-size: 21px; top: 16px; right: 16px; }
  .statement { padding-top: 100px; gap: 30px; }
  .st-img img { min-height: 0; aspect-ratio: 1; }
  .st-text { padding: 40px 0 0; }
  .quote { font-size: 30px; }
  .how { padding-top: 100px; }
  .how-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .big-word { font-size: 56px; }
  .cols3 .h3 { margin-top: 30px; }
  .faq { padding-top: 100px; }
  .faq summary { font-size: 19px; }
  .cta { padding-top: 100px; padding-bottom: 80px; }
  .row2 { grid-template-columns: 1fr; }
}
