/* ==========================================================
   Calder — styles
   Colour rule: gold is never used for text or buttons on white.
   Gold is kept for icons, checkmarks and the main button in
   dark sections only.
   ========================================================== */

:root {
  --pine: #14532d;
  --pine-dark: #0e3d21;
  --gold: #d4a23a;
  --white: #ffffff;
  --off-white: #f7f6f1;
  --ink: #1c2420;
  --ink-soft: #3d4641;
  --muted: #5d6661;
  --line: #e4e1d7;
  --on-pine-soft: #dbe7df;

  --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 64px;
  --radius: 14px;
  --gutter: 20px;
  --shadow-sm: 0 1px 2px rgba(28, 36, 32, 0.06), 0 4px 12px rgba(28, 36, 32, 0.06);
  --shadow-md: 0 2px 4px rgba(14, 61, 33, 0.08), 0 12px 32px rgba(14, 61, 33, 0.16);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--pine);
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 900;
  font-stretch: 92%;
  line-height: 1.03;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(1.75rem, 5.6vw, 2.75rem); font-stretch: 92%; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--pine); text-underline-offset: 3px; }

.nowrap { white-space: nowrap; }

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On pine backgrounds, a light ring stays visible */
.site-header :focus-visible,
.section--pine :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--pine);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Icons ---------- */

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Solid tile: used on the three problem cards only */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pine);
  color: var(--gold);
  flex-shrink: 0;
}

/* Plain line icon: "What it handles" and "Why Calder" */
.icon-plain {
  display: inline-flex;
  color: var(--pine);
  flex-shrink: 0;
  padding-top: 2px;
}
.icon-plain .icon { width: 28px; height: 28px; stroke-width: 1.75; }

/* ---------- Logo ---------- */

/* The logo's font-size sets both the wordmark and the icon. The icon's drawn
   area is ~89% of its box, so a 0.806em box draws the phone exactly as tall
   as the CALDER capitals (0.72em). Baseline alignment plus the small `top`
   nudge sits the bottom of the phone on the letters' baseline. */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  font-size: 1.65rem;
  text-decoration: none;
  color: var(--pine);
}
.logo img {
  width: auto;
  height: 0.806em;
  position: relative;
  top: 0.044em;
}
.logo-word {
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1em;
  line-height: 1;
}
.logo--reverse { color: var(--white); }
.logo--lg { font-size: 2.4rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.075rem; }
.btn-sm { min-height: 48px; padding: 10px 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--pine-dark); }

/* Gold buttons only ever sit on pine backgrounds */
.btn-gold { background: var(--gold); color: var(--pine); }
.btn-gold:hover { background: #e0b456; }

.btn-light { background: var(--white); color: var(--pine); }
.btn-light:hover { background: var(--off-white); }

.btn-outline { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-outline:hover { background: var(--off-white); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  font-weight: 600;
  color: var(--pine);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 64px;
  background: var(--white);
}
.hero-inner { display: grid; gap: 48px; }
.hero h1 { margin-bottom: 0.5em; }
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 28px;
}
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.cta-group .text-link { align-self: center; }
.fine-print {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}
.demo-call { margin-top: 20px; }
.demo-call .btn { width: 100%; }

/* Notification card stack. Everything inside is sized in em, so the
   font-size on .hero-visual scales the whole stack. */
.hero-visual {
  display: grid;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  font-size: 16px;
}
.notif {
  display: flex;
  align-items: center;
  gap: 0.75em;
  border-radius: 1em;
  padding: 0.875em 1em;
}
.notif p { margin: 0; }
.notif--missed {
  margin: 0 0.875em;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
}
.notif-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125em;
  height: 2.125em;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--muted);
}
.notif-icon .icon { width: 1.125em; height: 1.125em; }
.notif--missed .notif-title { font-size: 0.9em; font-weight: 600; }

.notif--answered {
  position: relative;
  margin-top: -0.375em;
  align-items: flex-start;
  background: var(--pine);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.notif-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375em;
  height: 2.375em;
  flex-shrink: 0;
  border-radius: 0.625em;
  background: var(--pine-dark);
}
.notif-app img { width: 1.375em; height: 1.375em; }
.notif--answered .notif-title { font-weight: 600; font-size: 1em; line-height: 1.3; }
.notif-detail {
  display: flex;
  align-items: center;
  gap: 0.375em;
  margin-top: 0.25em !important;
  font-size: 0.92em;
  color: var(--on-pine-soft);
}
.notif-detail .icon { width: 1em; height: 1em; color: var(--gold); }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section--alt { background: var(--off-white); }
.section--pine { background: var(--pine); color: var(--white); }
.section--pine h2,
.section--pine h3 { color: var(--white); }
.section--pine .section-intro { color: var(--on-pine-soft); }

.section h2 { max-width: 22em; }
.section-intro {
  font-size: 1.1rem;
  max-width: 42em;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

/* ---------- Lists ---------- */

.cards,
.features,
.why-list,
.checklist,
.steps,
.final-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Problem cards ---------- */

.cards { display: grid; gap: 16px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card .icon-tile { margin-bottom: 16px; }
.card h3 { margin-bottom: 0.35em; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- Calculator ---------- */

.calc {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin: 8px 0 20px;
}
.calc-inputs { display: grid; gap: 20px; margin-bottom: 24px; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.stepper-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.step-btn {
  width: 56px;
  min-height: 56px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pine);
  border-radius: 10px;
  background: var(--white);
  color: var(--pine);
  cursor: pointer;
  touch-action: manipulation;
}
.step-btn:hover { background: var(--pine); color: var(--white); }
.step-btn:active { background: var(--pine-dark); color: var(--white); }

.stepper input,
.money-input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.stepper input {
  width: 100%;
  padding: 0 12px;
  font: 600 1.35rem/1 var(--font-body);
  color: var(--ink);
  text-align: center;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.money-input {
  display: flex;
  align-items: center;
  padding-left: 14px;
}
.money-input span { font: 600 1.35rem/1 var(--font-body); color: var(--ink-soft); }
.money-input input { border: 0; min-height: 52px; padding-left: 4px; }
.money-input:focus-within { border-color: var(--pine); }
.money-input input:focus-visible { outline: none; }
.stepper-row > input:focus-visible { border-color: var(--pine); }

.calc-result {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}
.calc-result [data-out="calls"],
.calc-result [data-out="job"] { font-weight: 600; }
.calc-total {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: 85%;
  font-size: clamp(3rem, 14vw, 5.5rem);
  line-height: 1;
  color: var(--pine);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.calc-note { color: var(--ink-soft); margin-bottom: 24px; }
#calculator .btn { width: 100%; }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 16px; }
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
}
.step h3 { margin-bottom: 0.35em; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Features ---------- */

.features {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature h3 { margin-bottom: 0.25em; }
.feature p { margin: 0; color: var(--ink-soft); }

/* ---------- Audit ---------- */

.audit { display: grid; gap: 8px; }
.audit-box {
  background: var(--pine-dark);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.audit-box h3 { font-size: 1.3rem; }
.checklist { margin-bottom: 20px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.checklist .icon { color: var(--gold); margin-top: 1px; }
.pricing-line { color: var(--on-pine-soft); }
.audit-box .btn { width: 100%; }

/* ---------- Why Calder ---------- */

.why { display: grid; gap: 40px; }
.why-list { display: grid; gap: 24px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-list p { margin: 0; }
.why-list strong { color: var(--pine); }

.founder {
  margin: 0;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
}
.founder img {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 20px;
}
.founder blockquote { margin: 0; }
.founder blockquote p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
}
.founder-sign { margin: 0; color: var(--ink-soft); }
.founder-sign strong { color: var(--pine); }

.testimonial-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- FAQ ---------- */

/* Left-aligned with the other sections, capped at a readable line length */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 48px 16px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.075rem;
  color: var(--pine);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2.5px solid var(--pine);
  border-bottom: 2.5px solid var(--pine);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { margin: 0 0 20px; padding-right: 12px; color: var(--ink-soft); }
.faq details a { font-weight: 600; }

/* ---------- Final CTA + form ---------- */

.final-inner { display: grid; gap: 40px; }
.final-cta .btn { width: 100%; }

.final-contact {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}
.final-contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 600;
  color: var(--pine);
}
.final-contact .icon { width: 22px; height: 22px; }

.form-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 20px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.form-card h3 { color: var(--pine); font-size: 1.35rem; margin-bottom: 20px; }

.field-row { display: grid; gap: 0 16px; }
.callback-form .field { margin-bottom: 18px; }
.callback-form input,
.callback-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid #b9b6aa;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.4 var(--font-body);
}
.callback-form textarea { min-height: 112px; resize: vertical; }
.callback-form input:focus,
.callback-form textarea:focus { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.25); }
.callback-form [aria-invalid="true"] { border-color: #b3261e; }
.req,
.opt { font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b3261e; font-weight: 600; }
.form-thanks {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pine);
}
.form-thanks p { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine-dark);
  color: var(--white);
  padding: 48px 0 40px;
}
.footer-inner { display: grid; gap: 28px; }
.tagline {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--on-pine-soft);
}
.footer-info p { margin: 0 0 8px; color: var(--on-pine-soft); }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.footer-contact span { display: none; }
@media (min-width: 480px) { .footer-contact span { display: inline; } }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--white);
  font-weight: 600;
}
.copyright { font-size: 0.9rem; }

/* ==========================================================
   Larger screens
   ========================================================== */

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .cta-group { flex-direction: row; align-items: center; gap: 20px; }
  .fine-print { text-align: left; }
  .demo-call .btn,
  #calculator .btn,
  .final-cta .btn,
  .audit-box .btn { width: auto; }
  .calc { padding: 32px; }
  .calc-inputs { grid-template-columns: 1fr 1fr; gap: 28px; }
  .features { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .founder { display: flex; gap: 24px; align-items: flex-start; }
  .founder img { margin-bottom: 0; flex-shrink: 0; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 32px; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  body { font-size: 18px; }
  .site-header .logo { font-size: 1.9rem; }

  .hero { padding: 104px 0 120px; }

  .section { padding: 120px 0; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { flex-direction: column; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .audit { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .why { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
  .founder { flex-direction: column; padding: 32px; }
  .founder img { width: 200px; height: 200px; }
  .founder blockquote p { font-size: 1.3rem; }
  .final-inner { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .footer-inner { grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
  .footer-info { text-align: right; }
  .footer-contact { justify-content: flex-end; }
}

/* Side-by-side hero. The headline column is roughly 100vw - 550px wide
   (up to 570px), and the headline is sized at ~9.8% of that column so it
   wraps to four lines. */
@media (min-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 56px;
    align-items: center;
  }
  .hero h1 { font-size: clamp(3rem, 9.8vw - 56px, 3.5rem); }
  /* 20% larger cards on desktop */
  .hero-visual { max-width: none; margin: 0; font-size: 19.2px; }
  .notif-detail { white-space: nowrap; }
}
