/* Freehold Software — landing page
   Design tokens live in :root. Change a colour or the screenshot aspect ratio here, once. */

:root {
  --bg: #FBFAF7;
  --panel: #F6F4EE;
  --white: #FFFFFF;
  --ink: #1A1A17;
  --navy: #131F35;
  --navy-dark: #0A1223;
  --deep: #0B1526;
  --gold: #EDB200;
  --gold-hi: #FFC61F;
  --muted: #4A4D46;
  --muted-2: #5F6259;
  --faint: #7C7F76;
  --line: #E3E0D8;
  --on-deep: #C3CBDA;
  --success: #2E6B4F;

  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  --wrap: 1120px;
  --gutter: 24px;
  --radius: 5px;

  /* Every screenshot frame on the page. Set to the WIDEST screenshot (1.695) on purpose:
     narrower ones lose a little bottom whitespace, which is harmless, whereas lowering
     this would crop the SIDES and cut off table columns. `npm run images` checks this. */
  --shot-ratio: 1.695;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-dark); text-decoration: underline; }
::selection { background: #D4DAE6; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--sans); text-wrap: balance; }
p { text-wrap: pretty; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--bg); padding: 12px 18px;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 900px; }
.section { padding-block: clamp(56px, 9vw, 96px) 0; }
.section-pb { padding-bottom: clamp(56px, 9vw, 96px); }
.section h2, .how h2, .problems h2 {
  margin: 0 0 40px;
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 38px);
  letter-spacing: -0.03em;
}
.section-lede { margin: -24px 0 32px; color: var(--muted); max-width: 62ch; }

.grid { display: grid; gap: 40px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gap-lg { gap: 48px 40px; }
.gap-sm { gap: 24px; }
.align-start { align-items: start; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: 0; border-radius: 3px;
  font-family: var(--sans); font-weight: 600; font-size: 17px;
  padding: 15px 26px; cursor: pointer; text-align: center;
  transition: background-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-navy { background: var(--navy); color: var(--bg); }
.btn-navy:hover { background: var(--navy-dark); color: var(--bg); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hi); color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: 15px; font-weight: 500; }
.btn-block { width: 100%; }
.btn-ghost {
  justify-self: start;
  font-family: var(--mono); font-size: 13px; color: var(--muted-2);
  background: none; border: 1px solid var(--line); border-radius: 3px;
  padding: 9px 13px; cursor: pointer;
}
.linkish {
  font: inherit; color: var(--muted-2);
  background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { padding-block: 16px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand-slash { font-family: var(--mono); font-size: 24px; color: var(--gold); line-height: 1; }
.brand-word { font-weight: 500; font-size: 23px; letter-spacing: -0.045em; color: var(--navy); }
.brand-sm .brand-slash { font-size: 20px; }
.brand-sm .brand-word { font-size: 19px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 15px; }
.nav a { color: var(--muted-2); }
.nav .btn { color: var(--bg); }
@media (max-width: 560px) { .nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero {
  background-color: var(--deep);
  background-image:
    linear-gradient(180deg, rgba(11,21,38,.90) 0%, rgba(11,21,38,.72) 45%, rgba(11,21,38,.94) 100%),
    url('/assets/hero.webp');
  background-size: cover, cover;
  background-position: center, center 30%;
}
.hero-inner { padding-block: clamp(56px, 8vw, 96px) clamp(56px, 7vw, 80px); }
.hero-copy { max-width: 840px; display: grid; gap: 24px; }
.hero h1 {
  margin: 0; color: var(--bg);
  font-weight: 600;
  font-size: clamp(36px, 6.4vw, 60px);
  line-height: 1.06; letter-spacing: -0.035em;
}
.hero-lede {
  margin: 0; max-width: 640px;
  font-size: clamp(19px, 2.4vw, 22px); line-height: 1.45; color: var(--bg);
}
.hero-sub { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.5; color: var(--on-deep); }
.hero-cta { margin: 4px 0 0; }

.shot-frame {
  margin: clamp(40px, 6vw, 56px) 0 0;
  border: 1px solid rgba(251, 250, 247, .18);
  border-radius: 6px; overflow: hidden;
  background: #F4F2EC;
  box-shadow: 0 30px 70px rgba(4, 9, 18, .45);
}
.shot-chrome {
  height: 34px; display: flex; align-items: center; gap: 6px;
  padding-inline: 12px; background: #EDEAE2; border-bottom: 1px solid var(--line);
}
.shot-chrome span { width: 9px; height: 9px; border-radius: 50%; background: #CFCBC0; }
.shot-frame img, .feature-shot img {
  display: block; width: 100%; aspect-ratio: var(--shot-ratio); object-fit: cover; object-position: top;
}

/* ---------- problems / how ---------- */
.problems { padding-block: clamp(56px, 9vw, 96px) 0; }
.step-num { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--navy); }
.step-label { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--gold); }
.problems h3, .how h3, .feature h3 { margin: 10px 0 8px; font-size: 20px; font-weight: 600; }
.problems p:not(.step-num), .feature figcaption p { margin: 0; color: var(--muted); }

.how { margin-top: clamp(56px, 9vw, 96px); background: var(--navy); color: #F2F0E9; }
.how .wrap { padding-block: clamp(48px, 7vw, 72px); }
.how h2 { color: var(--bg); }
.how h3 { color: var(--bg); margin: 8px 0 6px; }
.how p:not(.step-label) { margin: 0; color: var(--on-deep); }

/* ---------- features ---------- */
/* "What you get" leads with one full-width screenshot, then three smaller ones below.
   Every frame shares --shot-ratio, so the tiles stay a consistent shape at both sizes. */
.feature { margin: 0; }
.feature-lead { margin-bottom: clamp(40px, 5vw, 56px); }
.feature-lead figcaption { max-width: 62ch; }
.feature-lead figcaption h3 { font-size: clamp(20px, 2.6vw, 24px); }
.feature-shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.feature figcaption { margin-top: 14px; }
.feature figcaption h3 { margin: 0 0 6px; font-size: 19px; }

/* ---------- pricing ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--white); }
.card-dashed { border-style: dashed; border-color: #D8D4C9; background: var(--panel); }
.eyebrow {
  margin: 0; font-family: var(--mono); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}
.price { font-weight: 500; font-size: clamp(34px, 4vw, 44px); margin: 8px 0 4px; line-height: 1.1; }
.price-unit { font-size: 22px; color: var(--muted-2); }
.price-note { margin: 0 0 20px; color: var(--muted-2); font-size: 15px; }
.price-note-tight { margin-bottom: 12px; }
.price-note-top { margin-top: 12px; color: var(--muted); }
.price-alt {
  margin: 0 0 20px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.price-alt strong { color: var(--navy); font-weight: 600; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; color: #33362F; }
.ticks-muted { color: var(--muted-2); }

/* ---------- testimonial ---------- */
.testimonial {
  margin-top: clamp(56px, 9vw, 96px);
  border-block: 1px solid var(--line);
  background: var(--panel);
}
.testimonial .wrap { padding-block: clamp(48px, 8vw, 80px); }
.testimonial blockquote {
  margin: 0; font-weight: 500;
  font-size: clamp(22px, 3.4vw, 30px); line-height: 1.35; letter-spacing: -0.03em;
}
.attrib { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; }
.attrib p { margin: 0; font-size: 16px; }
.attrib span { color: var(--muted-2); }
.metric { font-family: var(--mono); font-size: 15px; color: var(--navy); }

/* ---------- contact ---------- */
.meta-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 10px;
  font-family: var(--mono); font-size: 14px; color: var(--muted-2); max-width: 460px;
}
.meta-list a { color: var(--navy); text-decoration: underline; }

.form-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 28px; }
.form-panel form { display: grid; gap: 18px; }
.field label, .form-panel > form > .field-row label {
  display: block; margin-bottom: 7px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg); color: var(--ink);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18px; }
.form-note { margin: 0; font-size: 14px; color: var(--faint); }
.form-note.is-error { color: #A3341F; }
.form-note:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sent { display: grid; gap: 14px; padding-block: 28px; }
/* Focused programmatically to announce the confirmation, so no focus ring is wanted. */
.sent:focus { outline: none; }
/* Needs .sent .sent-icon, not .sent-icon: `.sent p` below sets colour at equal-or-higher
   specificity and would otherwise render the tick in body grey. */
.sent .sent-icon { margin: 0 0 -2px; line-height: 0; color: var(--success); }
.sent-title { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.thanks-title { margin: 12px 0 16px; font-size: clamp(28px, 5vw, 40px); }
.sent p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); }
.footer-inner { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 15px; }
.footer-nav a { color: var(--muted-2); }
.copyright { font-family: var(--mono); font-size: 13px; color: var(--faint); }

/* ---------- privacy dialog ---------- */
.privacy {
  max-width: 680px; width: calc(100% - 40px);
  border: 0; border-radius: 6px; padding: 36px;
  background: var(--bg); color: var(--ink);
  margin: 40px auto;
}
.privacy::backdrop { background: rgba(20, 23, 18, .4); }
.privacy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.privacy-head h2 { margin: 0; font-weight: 600; font-size: clamp(24px, 4vw, 30px); }
.privacy-date { margin: 20px 0 0; font-size: 15px; color: var(--muted-2); font-family: var(--mono); }
.privacy-body { margin-top: 20px; display: grid; gap: 18px; font-size: 16px; color: #33362F; }
.privacy-body p { margin: 0; }
.privacy-body strong { font-weight: 600; }
