/* MeasureLab — the app's home page (measure-lab.app/).
   The App Store listing's look: coal ground, cream type, real product screens
   on white cards. One committed palette (not theme-switched), so the site and
   the listing read as the same product. */
:root {
  --coal: #1d221e;
  --coal-2: #252b26;
  --coal-line: rgba(227, 219, 196, 0.12);
  --cream: #e3dbc4;
  --cream-dim: rgba(227, 219, 196, 0.72);
  --paper: #f3efe4;
  --paper-2: #e9e3d2;
  --ink: #1d221e;
  --ink-soft: #4a4f45;
  --muted: #7a7563;
  --rule: #d8d0b9;
  --gold: #e5b35a;
  --gold-deep: #b97d17;
  --green: #1c7a59;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  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(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Shared type */
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.h2 { font: 700 clamp(32px, 4.4vw, 50px)/1.05 var(--sans); letter-spacing: -.025em; }
.lead { font-size: 19px; line-height: 1.55; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1d221e; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(227, 219, 196, 0.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cream); }
.btn-ink { background: var(--ink); color: var(--paper); }

/* Header */
.top { background: var(--coal); color: var(--cream); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--cream-dim); }
.nav a:hover { color: var(--cream); }
.nav .btn { padding: 10px 16px; font-size: 14px; color: #1d221e; }

/* Hero */
.hero { background: var(--coal); color: var(--cream); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-block: 56px 88px; }
.hero h1 { font: 700 clamp(48px, 7.4vw, 92px)/.98 var(--sans); letter-spacing: -.035em; margin-top: 18px; }
.hero .eyebrow { color: var(--cream-dim); }
.hero .lead { color: var(--cream-dim); margin-top: 24px; max-width: 30em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--cream-dim); }

/* Hero stage: the photo, with the live calculator over it */
.stage { position: relative; min-height: 600px; }
.stage .photo { position: absolute; right: 0; top: 0; width: 72%; height: 100%; border-radius: 28px; object-fit: cover; object-position: center 20%; }
.demo { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: min(420px, 78%); background: #fff; color: #111; border-radius: 22px; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); font-family: var(--sans); }
.demo h3 { font: 700 22px/1.2 var(--sans); letter-spacing: -.01em; margin-bottom: 4px; }
.demo .tag { position: absolute; top: -13px; right: 18px; background: var(--gold); color: #1d221e; font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
.field { display: block; margin-top: 16px; }
.field > span:first-child { display: block; font: 600 13.5px/1.2 var(--sans); margin-bottom: 7px; }
.input { display: flex; width: 100%; align-items: center; background: #f4f4f2; border-bottom: 1.5px solid #c9c9c4; }
.input input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 16px/1 var(--sans); padding: 12px; outline: none; color: #111; }
.input em { font-style: normal; color: #777; padding-right: 12px; font-size: 14px; }
.input:focus-within { border-bottom-color: #111; }
.radios { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.radios label, .check { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; cursor: pointer; }
.radios input, .check input { width: 17px; height: 17px; accent-color: #111; margin: 0; }
.err { color: #a32a17; font-size: 13px; margin-top: 6px; min-height: 0; }
.err:empty { display: none; }
.sum { margin-top: 18px; border: 1px solid #dcdcd8; border-radius: 4px; padding: 14px 16px; }
.sum .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; font-size: 15px; }
.sum .row + .row { border-top: 1px solid #e6e6e2; margin-top: 10px; padding-top: 10px; font-size: 21px; font-weight: 700; }
.sum .note { font-size: 13px; color: #666; margin-top: 6px; }
.sum .row b { font-variant-numeric: tabular-nums; }

/* Sections */
section.band { padding-block: 104px; }
.band-coal { background: var(--coal); color: var(--cream); }
.band-paper2 { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.section-head .eyebrow { color: var(--muted); }
.band-coal .section-head .eyebrow, .band-coal .muted { color: var(--cream-dim); }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 18px; }
.band-coal .section-head p { color: var(--cream-dim); }

/* How it works */
.steps { display: grid; gap: 64px; margin-top: 64px; }
.step { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.step:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.step:nth-child(even) .step-text { order: 2; }
/* A wide screen (the builder) gets more of the row. */
.step.wide { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); }
.step-num { font: 500 14px/1 var(--mono); color: var(--gold-deep); }
.step h3 { font: 700 clamp(26px, 3vw, 34px)/1.1 var(--sans); letter-spacing: -.02em; margin-top: 12px; }
.step p { color: var(--ink-soft); margin: 14px 0 0; }
.shot { background: var(--coal); border-radius: 26px; padding: clamp(14px, 2.4vw, 28px); }
.shot img { border-radius: 14px; margin: 0 auto; width: 100%; }
/* Tall screens (a product page, a checkout) stay a readable size. */
.shot.portrait { max-width: 500px; width: 100%; justify-self: center; }

/* Pricing models */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.model { border: 1px solid var(--coal-line); border-radius: 18px; padding: 22px; background: var(--coal-2); }
.model .formula { font: 500 13.5px/1.5 var(--mono); color: var(--gold); }
.model h3 { font: 700 20px/1.2 var(--sans); margin-top: 10px; }
.model p { margin: 8px 0 0; color: var(--cream-dim); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.feature { background: #fff; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.feature .txt { padding: 26px 26px 20px; }
.feature h3 { font: 700 22px/1.2 var(--sans); letter-spacing: -.01em; }
.feature p { margin: 8px 0 0; color: var(--ink-soft); font-size: 16px; }
.feature .pic { margin-top: auto; background: var(--coal); padding: 20px 20px 0; height: 300px; overflow: hidden; }
.feature .pic img { border-radius: 12px 12px 0 0; width: 100%; height: auto; }
.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.mini { border: 1px solid var(--rule); border-radius: 18px; padding: 22px; background: #fff; }
.mini h3 { font: 700 17px/1.25 var(--sans); }
.mini p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }
.mini .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--coal); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; }

/* Industries */
.trades { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.trades a, .trades span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.trades a { border-color: var(--ink); }
.trades a:hover { background: var(--ink); color: var(--paper); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.plan { background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.plan.pro { background: var(--coal); color: var(--cream); border-color: var(--coal); }
.plan .name { font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.plan.pro .name { color: var(--gold); }
.plan .price { font: 700 44px/1 var(--sans); letter-spacing: -.03em; margin-top: 18px; }
.plan .price small { font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.plan.pro .price small { color: var(--cream-dim); }
.plan .sub { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.plan.pro .sub { color: var(--cream-dim); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231d221e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.plan .btn { margin-top: auto; justify-content: center; }
.plans-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Guides teaser */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.guides a { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--rule); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.guides a:hover { border-color: var(--ink); transform: translateY(-2px); }
.guides .t { font: 400 26px/1.1 var(--serif); }
.guides .d { font-size: 15px; color: var(--ink-soft); }
.guides .k { font: 500 12px/1 var(--mono); color: var(--green); letter-spacing: .04em; }

/* FAQ */
.faq { max-width: 820px; margin-top: 40px; }
.faq details { border-top: 1px solid var(--rule); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* Closing call */
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing h2 { font: 700 clamp(34px, 5vw, 60px)/1.02 var(--sans); letter-spacing: -.03em; max-width: 14em; }

/* Footer */
.foot { background: var(--coal); color: var(--cream-dim); border-top: 1px solid var(--coal-line); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-block: 28px 40px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (max-width: 980px) {
  .hero .wrap, .section-head, .step, .step:nth-child(even), .step.wide { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(even) .step-text { order: 0; }
  .stage { min-height: 0; display: grid; }
  .stage .photo { position: relative; width: 100%; height: 300px; border-radius: 22px; }
  .demo { position: relative; transform: none; top: auto; width: 100%; margin-top: -60px; }
  .features, .plans, .guides { grid-template-columns: minmax(0, 1fr); }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a:not(.btn) { display: none; }
  section.band { padding-block: 72px; }
}
@media (max-width: 560px) {
  .minis, .models { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 32px 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .guides a { transition: none; } }
