/* ============================================================
   Zastron Labs site styles
   Design system translated from Figma "Zastron Labs Website"
   (file e6c7FyN5VtiOkMGHXGthSF). Desktop design is 1440 wide
   with a 1080 content column; this stylesheet adds the
   responsive layer so it works from phone to desktop.
   ============================================================ */

:root {
  /* palette (from the Figma) */
  --paper:        #f7f5f1;  /* page background */
  --paper-warm:   #fbf7f1;  /* warmer panel background */
  --ink:          #1a1714;  /* headings, primary text */
  --body:         #6b6660;  /* body copy */
  --muted:        #807a72;  /* captions, fine print */
  --amber:        #a85f22;  /* accent labels, links */
  --amber-deep:   #b5722a;  /* numerals, dots */
  --line:         #ebe5da;  /* hairlines, section tops */
  --line-strong:  #d8d2c7;  /* card + button borders */
  --pill:         #f0e2cf;  /* pill background */

  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
  --sy: clamp(54px, 8vw, 90px);   /* section vertical padding */

  --r-btn: 10px;
  --r-card: 16px;
  --r-pill: 20px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); font-weight: 500; margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }

/* keyboard focus + skip link */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--sy); }
.section--warm { background: var(--paper-warm); }
.section--top { border-top: 1px solid var(--line); }

/* ---------- type utilities ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.3; letter-spacing: 0.6px;
  color: var(--amber); margin: 0 0 16px;
}
.h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.08; max-width: 14ch; }
.h2 { font-size: clamp(29px, 4.6vw, 40px); line-height: 1.12; }
.lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.52; color: var(--body); max-width: 60ch; }
.fine { font-size: 13px; line-height: 1.45; color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 500; font-size: 15px; line-height: 1;
  padding: 14px 26px; border-radius: var(--r-btn); border: 1px solid transparent;
  cursor: pointer; transition: transform .04s ease, opacity .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #2a251f; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: #efe9df; }

/* ---------- pill ---------- */
.pill {
  display: inline-flex; align-items: center;
  background: var(--pill); color: var(--amber);
  font-weight: 500; font-size: 13px; line-height: 1;
  padding: 7px 14px; border-radius: var(--r-pill);
}

/* ---------- amber dot ---------- */
.dot { width: 7px; height: 7px; border-radius: 2px; background: var(--amber-deep); flex: 0 0 auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 73px; gap: 10px 16px; flex-wrap: wrap; }
.nav__brand { display: inline-flex; align-items: center; color: var(--ink); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.nav__brand:hover { text-decoration: none; }
.nav__brand img, .nav__brand svg { height: 28px; width: auto; display: block; }
@media (max-width: 560px) { .nav__brand img, .nav__brand svg { height: 22px; } }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { color: var(--body); font-size: 15px; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__links a.is-active { color: var(--amber); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 30px; flex-wrap: wrap; }
.footer__copy { font-size: 13px; color: var(--muted); }
.footer__links { display: flex; gap: 22px; }
.footer__links a { font-size: 13px; color: var(--body); }
.footer__links a:hover { color: var(--ink); text-decoration: none; }

/* ============================================================
   HERO  (Home + page intros)
   ============================================================ */
.hero { padding-top: clamp(56px, 9vw, 98px); padding-bottom: clamp(56px, 9vw, 92px); }
.hero .h1 { margin-top: 0; }
.hero__sub { margin-top: 22px; }
.hero__cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.intro { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 70px); }
.intro .h1 { font-size: clamp(34px, 5vw, 52px); max-width: 18ch; }

/* ============================================================
   METHOD / value band (Home)
   ============================================================ */
.band__head { max-width: 720px; }
.band__head .h2 { margin-bottom: 14px; }
.method {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 42px; border-top: 1px solid var(--line);
}
.method__col { padding: 30px 40px 0 0; }
.method__col + .method__col { border-left: 1px solid var(--line); padding-left: 40px; }
.method__num { font-family: var(--font-mono); font-size: 12px; color: var(--amber-deep); margin-bottom: 9px; }
.method__name { color: var(--ink); font-weight: 500; font-size: 18px; margin-bottom: 9px; }
.method__txt { font-size: 14.5px; line-height: 1.52; max-width: 250px; }

/* ============================================================
   CARIO feature (Home)
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 544px; gap: 60px; align-items: start; }
.feature__title { margin: 8px 0 0; max-width: 12ch; font-size: clamp(30px, 4vw, 40px); }
.feature__txt { margin-top: 16px; max-width: 44ch; }
.triad { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.triad__row { display: flex; gap: 12px; }
.triad__row .dot { margin-top: 6px; }
.triad__k { color: var(--ink); font-weight: 500; font-size: 15px; }
.triad__v { font-size: 14px; line-height: 1.48; }
.feature .pill { margin-top: 22px; }

.bpcard { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; }
.bpcard__photo { aspect-ratio: 544 / 252; background: #e9e3d8; }
.bpcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.expect { border-top: 1px solid var(--line); padding: 18px 22px; display: flex; flex-direction: column; gap: 13px; }
.expect .eyebrow { margin: 0; font-size: 12px; }
.mblk__h { display: flex; align-items: center; gap: 9px; }
.mblk__h .dot { width: 7px; height: 7px; }
.mblk__km { color: var(--ink); font-weight: 500; font-size: 14px; }
.mblk__items { font-size: 13px; line-height: 1.48; color: var(--muted); margin-top: 3px; }

/* ============================================================
   ABOUT: origin + founder
   ============================================================ */
.origin { display: grid; grid-template-columns: 560px 1fr; gap: 64px; align-items: center; }
.origin__photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 560 / 360; background: #e9e3d8; }
.origin__photo img { width: 100%; height: 100%; object-fit: cover; }
.origin__text .h2 { margin-bottom: 18px; }
.origin__text p { max-width: 46ch; }

.founder { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.founder__photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 300 / 380; background: #e9e3d8; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__name { font-size: clamp(28px, 3.4vw, 34px); margin-bottom: 8px; }
.founder__role { font-family: var(--font-mono); font-size: 14px; color: var(--amber); margin-bottom: 22px; }
.founder__bio { max-width: 60ch; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip {
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 7px 14px; font-size: 13px; color: var(--body); background: var(--paper);
}

/* ============================================================
   SERVICES list
   ============================================================ */
.svc { display: grid; grid-template-columns: 330px 1fr; gap: 48px; padding-block: 44px; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc__num { font-family: var(--font-mono); font-size: 14px; color: var(--amber); margin-bottom: 12px; }
.svc__name { font-size: clamp(22px, 2.6vw, 26px); }
.svc__body { max-width: 60ch; }
.svc__meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ============================================================
   HOW WE WORK: principles grid (Home)
   ============================================================ */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 60px; margin-top: 40px; max-width: 1040px; }
.principle__k { color: var(--ink); font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.principle__v { font-size: 15px; line-height: 1.5; }

/* ============================================================
   CARIO product page
   ============================================================ */
.chero { display: grid; grid-template-columns: 1fr 560px; gap: 60px; align-items: center; }
.chero__title { font-size: clamp(38px, 5.2vw, 56px); line-height: 1.06; margin: 12px 0 0; max-width: 12ch; }
.chero__txt { margin-top: 20px; max-width: 42ch; }
.chero .pill { margin-top: 28px; }
.chero__photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 560 / 392; background: #e9e3d8; border: 1px solid var(--line-strong); }
.chero__photo img { width: 100%; height: 100%; object-fit: cover; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 46px; }
.promise__k { color: var(--ink); font-weight: 500; font-size: 20px; margin-bottom: 12px; }
.promise__v { font-size: 15px; line-height: 1.55; }

/* timeline */
.timeline { margin-top: 40px; }
.timeline__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mcard { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 22px 24px; }
.mcard__km { color: var(--ink); font-weight: 500; font-size: 22px; margin-bottom: 16px; }
.mcard__rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 16px; }
.mcard__items { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.mcard__item { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 15px; }
.mcard__spend-l { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .4px; }
.mcard__spend-v { color: var(--ink); font-weight: 500; font-size: 16px; margin-top: 4px; }
.timeline__note { margin-top: 24px; }

.data .h2 { margin: 10px 0 18px; max-width: 18ch; }
.data__txt { max-width: 64ch; margin-bottom: 24px; }
.data__src { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ============================================================
   HERO credibility line + audience / beliefs duos + contact form
   ============================================================ */
.hero__cred { font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 20px; max-width: 60ch; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 60px; margin-top: 40px; max-width: 1040px; }
.duo__k { color: var(--ink); font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.duo__v { font-size: 15px; line-height: 1.5; }

.aim { font-size: clamp(17px, 2.1vw, 19px); line-height: 1.55; color: var(--body); max-width: 62ch; margin: 8px 0 0; }

.chero__avail { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 14px; max-width: 40ch; }

.cform { max-width: 520px; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.cform__row { display: flex; flex-direction: column; gap: 6px; }
.cform__row span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .4px; color: var(--muted); }
.cform input, .cform textarea {
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  background: var(--paper-warm); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; width: 100%;
}
.cform textarea { resize: vertical; min-height: 120px; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(181,120,60,.15); }
.cform button { align-self: flex-start; margin-top: 4px; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform--inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.cform--inline input[type="email"] { flex: 1 1 240px; max-width: 340px; }
.cform--inline input[type="email"], .cform--inline button.btn { height: 48px; box-sizing: border-box; }
.cform--inline button.btn { align-self: center; margin-top: 0; }
.contact__or { margin-top: 16px; }

/* ============================================================
   CONTACT band (every page)
   ============================================================ */
.contact .h2 { font-size: clamp(26px, 3.4vw, 34px); max-width: 22ch; margin-bottom: 14px; }
.contact__line { color: var(--body); margin-bottom: 6px; }
.contact__email { font-size: 18px; color: var(--ink); font-weight: 500; }
.contact__email a { color: var(--ink); }
.contact .btn { margin-top: 22px; }

/* ============================================================
   simple legal pages
   ============================================================ */
.legal { padding-block: clamp(40px, 7vw, 80px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--body); font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 22px; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature__media-first { order: -1; }
  .origin { grid-template-columns: 1fr; gap: 32px; }
  .founder { grid-template-columns: 1fr; gap: 28px; }
  .founder__photo { max-width: 280px; }
  .chero { grid-template-columns: 1fr; gap: 34px; }
  .chero__photo { order: -1; }
  .promises { grid-template-columns: 1fr; gap: 28px; }
  .timeline__cards { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 14px; padding-block: 34px; }
  .method { grid-template-columns: 1fr; border-top: 0; }
  .method__col { padding: 26px 0; border-top: 1px solid var(--line); }
  .method__col + .method__col { border-left: 0; padding-left: 0; }
  .method__txt { max-width: none; }
  .principles { grid-template-columns: 1fr; gap: 22px; }
  .duo { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .nav__inner { justify-content: center; }
  .nav__links { width: 100%; justify-content: center; gap: 16px; }
  .nav__links a { font-size: 14px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
