/* ============================================================
   SundrySoft — "Ink & Brass"
   Dark green-black ground, brass rules, bone type.
   Product colours are used only inside a product's own block.
   ============================================================ */

:root {
  --ink:        #0e1211;
  --ink-deep:   #0a0e0d;
  --surface:    #131917;
  --surface-2:  #16201b;
  --surface-3:  #0d1211;

  --rule:       #263029;
  --rule-strong:#2c3a31;
  --rule-soft:  #1c2421;

  --bone:       #ece9dd;
  --text:       #d5d3c8;
  --muted:      #a3a79d;
  --dim:        #8c9089;
  --faint:      #6c7069;

  --brass:      #c9a55f;
  --brass-lit:  #e0c188;
  --green:      #5aa07f;
  --green-deep: #2d5f4f;
  --signal:     #b4574c;

  /* Product colours */
  --cc:         #ffb000;   /* ClearCast   */
  --mb:         #4a7ba8;   /* MileBook    */
  --mg:         #b07536;   /* MongoBongo  */

  --display: 'Young Serif', 'Iowan Old Style', Georgia, serif;
  --body:    'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    'Spline Sans Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(20px, 5vw, 84px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 90% 46% at 20% -8%, rgba(90,160,127,0.09), transparent 62%),
    radial-gradient(ellipse 70% 40% at 92% 8%, rgba(201,165,95,0.055), transparent 60%),
    linear-gradient(172deg, #121816 0%, var(--ink) 46%, var(--ink-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--brass-lit); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brass); color: #0b110e;
  padding: 10px 16px; font-weight: 700; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- rules ---------- */

.rule       { border-top: 1px solid var(--rule); }
.rule-double{ border-top: 1px solid var(--rule); }
.rule-double::after {
  content: ''; display: block; border-top: 1px solid var(--rule); margin-top: 3px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 30px 0 18px; flex-wrap: wrap;
}

.wordmark { display: inline-flex; align-items: center; gap: 13px; color: var(--bone); }
.wordmark:hover { color: var(--bone); }

.seal {
  width: 32px; height: 32px; flex: 0 0 32px;
  border: 1px solid var(--brass); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 14px; line-height: 1;
  color: var(--brass); padding-top: 1px;
}

.wordmark-text { font-family: var(--display); font-size: 20px; letter-spacing: 0.004em; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); font-size: 14px; font-weight: 500; }
.nav a { color: var(--dim); }
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--bone); border-bottom: 1px solid var(--brass); padding-bottom: 3px; }
.nav .nav-cta { color: var(--bone); border-bottom: 1px solid var(--brass); padding-bottom: 3px; }

/* ---------- section heads ---------- */

.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--green); margin: 0 0 24px;
}

.section-head {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 26px; flex-wrap: wrap;
}
.section-head .label,
.section-head .aside {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint); white-space: nowrap;
}
.section-head .label { color: var(--faint); }
.section-head .aside { letter-spacing: 0.14em; }
.section-head .fill { flex: 1 1 60px; border-top: 1px solid var(--rule); }

/* ---------- type ---------- */

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--bone); margin: 0; }

.display {
  font-size: clamp(38px, 6.2vw, 70px);
  line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance;
}
.display-sm { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.06; letter-spacing: -0.012em; text-wrap: balance; }

.lede { font-size: clamp(17px, 1.5vw, 18.5px); line-height: 1.62; color: var(--muted); text-wrap: pretty; }
.stat-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--faint); }

/* ---------- hero ---------- */

.hero { display: flex; gap: clamp(28px, 5vw, 72px); padding: clamp(58px, 9vw, 96px) 0 clamp(52px, 8vw, 88px); flex-wrap: wrap; }
.hero-main { flex: 1 1 460px; max-width: 700px; }
.hero-main .lede { margin: 28px 0 0; max-width: 570px; }

.hero-aside {
  flex: 0 1 260px; border-left: 1px solid var(--rule); padding-left: 26px;
  display: flex; flex-direction: column; gap: 16px; margin-top: 8px;
}
.hero-aside dt {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 14px;
}
.hero-aside dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

@media (max-width: 720px) {
  .hero-aside { border-left: 0; border-top: 1px solid var(--rule); padding: 22px 0 0; }
}

/* ---------- plates (product blocks) ---------- */

.plate {
  border: 1px solid var(--rule); background: var(--surface);
  display: flex; overflow: hidden;
}
.plate-spine { width: 4px; flex: 0 0 4px; background: var(--brass); }
.plate-body { flex: 1 1 auto; padding: clamp(24px, 3.2vw, 34px); min-width: 0; }

.plate-flag {
  border-color: var(--rule-strong);
  background: linear-gradient(180deg, var(--surface-2) 0%, #121a17 100%);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.plate-flag .plate-spine { width: 5px; flex-basis: 5px; background: linear-gradient(180deg, var(--brass), #8a6d33); }
.plate-flag .plate-body { padding: clamp(28px, 3.6vw, 46px); }

.plate-title { font-size: clamp(26px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.01em; }
.plate-claim { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.44; color: var(--text); margin: 16px 0 0; text-wrap: pretty; }
.plate-copy  { font-size: 16px; line-height: 1.66; color: var(--dim); margin: 16px 0 0; text-wrap: pretty; }

.plate-grid { display: flex; gap: clamp(24px, 3.4vw, 46px); align-items: flex-start; flex-wrap: wrap; }
.plate-grid > .col-main { flex: 1 1 420px; max-width: 540px; min-width: 0; }
.plate-grid > .col-side { flex: 1 1 300px; min-width: 0; }

.product-colour {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim);
}
.product-colour .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--pc, var(--brass)); box-shadow: 0 0 10px var(--pc, var(--brass));
}

.plate-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.plate-head .where { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* ---------- spec list ---------- */

.spec { margin: 30px 0 0; border-top: 1px solid var(--rule); }
.spec div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-size: 14.5px; flex-wrap: wrap;
}
.spec dt { color: var(--dim); margin: 0; }
.spec dd { font-family: var(--mono); font-size: 12.5px; color: var(--text); margin: 0; text-align: right; }

/* ---------- buttons ---------- */

.actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 26px;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-primary { background: var(--green); color: #0b110e; font-weight: 700; }
.btn-primary:hover { background: #6cb492; color: #0b110e; }
.btn-ghost { border-color: var(--rule-strong); color: var(--bone); }
.btn-ghost:hover { border-color: var(--brass); color: var(--bone); }

.note-inline { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* ---------- meter (ClearCast) ---------- */

.meter {
  border: 1px solid var(--rule); background: var(--surface-3);
  padding: 20px; display: flex; flex-direction: column; gap: 18px;
}
.meter-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
.meter-head .rec { color: var(--signal); }
.track { display: flex; flex-direction: column; gap: 7px; }
.track-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
}
.wave { display: flex; align-items: center; gap: 2px; height: 34px; }
.wave i { flex: 1 1 0; min-width: 1px; background: currentColor; display: block; }
.meter-foot {
  border-top: 1px solid var(--rule); padding-top: 14px;
  font-size: 12.5px; line-height: 1.5; color: var(--faint); text-wrap: pretty;
}

/* ---------- product cards ---------- */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.card-title { font-size: clamp(23px, 2.4vw, 28px); }
.card-version { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--faint); white-space: nowrap; }
.card-copy { font-size: 15px; line-height: 1.62; color: var(--dim); margin: 13px 0 0; text-wrap: pretty; }
.card-tags { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); margin: 14px 0 0; }
.card-link { display: inline-block; margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--bone); }
.card-link:hover { color: var(--brass); }

/* Whole-card click target: the real link is .card-link; its ::after
   stretches over the plate so the card is clickable without nesting
   headings inside an <a>. */
.plate-card { position: relative; transition: border-color 200ms ease, background 200ms ease; }
.plate-card:hover { border-color: var(--rule-strong); background: #151d1a; }
.plate-card:hover .card-link { color: var(--brass); }
.plate-card:focus-within { border-color: var(--brass); }
.card-link::after { content: ''; position: absolute; inset: 0; }

/* ---------- steps (signal path) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.step { border: 1px solid var(--rule); background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.step-n {
  width: 30px; height: 22px; border: 1px solid var(--brass);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; color: var(--brass);
}
.step-label { font-size: 16px; font-weight: 600; color: var(--bone); }
.step-copy { font-size: 14px; line-height: 1.55; color: var(--dim); text-wrap: pretty; flex-grow: 1; }
.step-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ---------- screenshot gallery ---------- */

.shots {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}
.shot { display: flex; flex-direction: column; gap: 14px; }
.shot-frame {
  padding: 22px 0 0;
  display: flex; justify-content: center;
  background: radial-gradient(ellipse 62% 52% at 50% 60%, var(--glow, rgba(201,165,95,0.14)), transparent 70%);
}
.shots-5 { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
@media (min-width: 1000px) { .shots-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.shot-frame img {
  width: 100%; max-width: 240px;
  border: 1px solid #26302b; border-radius: 18px;
  box-shadow: 0 34px 58px rgba(0,0,0,0.6);
}
.shot-cap { font-size: 13.5px; line-height: 1.5; color: var(--dim); text-wrap: pretty; }
.shot-cap b { color: var(--bone); font-weight: 600; display: block; margin-bottom: 3px; }

/* ---------- feature list ---------- */

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 700px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 9px; }
.feature h3 { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--bone); }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }
.feature h3 + p { flex-grow: 1; }

/* ---------- prose (legal pages) ---------- */

.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin-bottom: 10px; }
.prose h2 { font-family: var(--body); font-size: 20px; font-weight: 600; color: var(--bone); margin: 44px 0 12px; }
.prose h3 { font-family: var(--body); font-size: 16.5px; font-weight: 600; color: var(--bone); margin: 30px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.72; color: var(--muted); text-wrap: pretty; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--surface); border: 1px solid var(--rule); padding: 1px 5px; color: var(--text); }
.prose blockquote {
  margin: 0 0 20px; padding: 18px 22px;
  border: 1px solid var(--rule-strong); background: var(--surface);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote p { font-size: 14.5px; }
.doc-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--faint); margin: 0 0 34px; }

.toc {
  border: 1px solid var(--rule); background: var(--surface);
  padding: 22px 24px; margin: 0 0 40px;
}
.toc h2 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 14.5px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--brass); }

/* ---------- back link ---------- */

.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
.backlink:hover { color: var(--brass); }

/* ---------- footer ---------- */

footer { margin-top: clamp(56px, 8vw, 84px); }
.foot-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 26px; padding: 24px 0 48px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--faint);
}
.foot-inner nav { display: flex; gap: clamp(14px, 2vw, 26px); flex-wrap: wrap; }
.foot-inner a { color: var(--faint); }
.foot-inner a:hover { color: var(--brass); }
.foot-legal { max-width: 42ch; line-height: 1.6; }

/* ---------- spacing helpers ---------- */

.section { padding: clamp(44px, 6.5vw, 66px) 0 0; }
.section-tight { padding: clamp(28px, 4vw, 40px) 0 0; }
.stack-24 > * + * { margin-top: 24px; }

/* ---------- entrance ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 620ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.rise-1 { animation-delay: 60ms; }
.rise-2 { animation-delay: 140ms; }
.rise-3 { animation-delay: 220ms; }

/* ---------- plans ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.plan { border: 1px solid var(--rule); background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan-featured { border-color: var(--rule-strong); background: linear-gradient(180deg, var(--surface-2), #121a17); }
.plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-name h3 { font-family: var(--display); font-size: 24px; color: var(--bone); }
.plan-badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.plan-price { font-family: var(--display); font-size: 34px; color: var(--bone); line-height: 1; }
.plan-price span { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.06em; }
.plan-note { font-family: var(--mono); font-size: 11px; color: var(--faint); margin: -6px 0 0; }
.plan ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.plan li { font-size: 14.5px; line-height: 1.5; color: var(--dim); padding-left: 18px; position: relative; }
.plan li::before { content: '·'; position: absolute; left: 4px; color: var(--brass); }

/* ---------- honest limits ---------- */

.limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 800px) { .limits { grid-template-columns: minmax(0, 1fr); } }
.limit { background: var(--surface); padding: 22px 24px; }
.limit h3 { font-family: var(--body); font-size: 15.5px; font-weight: 600; color: var(--bone); margin-bottom: 7px; }
.limit p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }
