/* Taraveen site: design-preview stylesheet for milestone M01 (spec: source-SPEC_1.md section 4). */

/* Layout: single column of full-width bands; content max 1160px; prose max 65ch */
:root {
  --paper:   #F6F7F8;  /* page */
  --sheet:   #FFFFFF;  /* cards */
  --ink:     #15191F;  /* text */
  --ink-2:   #4A5260;  /* secondary text */
  --rule:    #D8DDE3;  /* borders, dividers */
  --grid:    rgba(21, 25, 31, 0.045); /* hero grid lines */
  --pass:    #0E7C4A;  /* accent */
  --pass-ink:#FFFFFF;  /* text on accent */

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1216; --sheet: #161A20; --ink: #E7EAEE; --ink-2: #A3ACB9;
    --rule: #2A303A; --grid: rgba(231, 234, 238, 0.05);
    --pass: #3DBE80; --pass-ink: #07130D;
    color-scheme: dark;
  }
}

/* Fonts: self-hosted, Latin subset (Fontsource files, OFL 1.1). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; } /* a short page (the 404) keeps its footer at the bottom of the window */
h1, h2, h3, p, ul, ol, dl, dd, figure, hr { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; } /* author display rules (.btn) must not un-hide the JS-only Copy button */
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pass); outline-offset: 2px; }

h1, h2, h3, .wordmark {
  font-family: var(--font-display);
  font-stretch: 87.5%;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }

.small { font-size: .875rem; color: var(--ink-2); }
.name { font-weight: 700; }
.nowrap { white-space: nowrap; }
.prose { max-width: 65ch; }
p { text-wrap: pretty; } /* no lone last word in a paragraph (headings keep balance) */

/* Mono voice: labels, numbers, the report card */
.mono, .label, .tag, .chip, .eyebrow, .proof, .card-title, .report, .occ, .sys {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.label, .tag, .chip, .eyebrow {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.label, .tag, .eyebrow { color: var(--ink-2); }

/* ---------- layout ---------- */
.wrap {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band {
  padding-block: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--rule);
}
.stack { display: flex; flex-direction: column; gap: clamp(28px, 4.5vw, 52px); }
.head { display: flex; flex-direction: column; gap: 16px; }
.cols { display: grid; gap: clamp(28px, 4vw, 48px); }

.card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(16px, 2.5vw, 24px);
}
/* Title left, chip right, on the first line at every width: the title wraps inside its own column, so the chip never drops under it. */
.card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 12px; }
.card-head .chip { grid-column: 2; justify-self: end; }
.chip {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-2);
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--pass); color: var(--pass-ink); border-color: var(--pass); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.link { font-weight: 500; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- header ---------- */
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--pass);
  color: var(--pass-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--rule); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 14px; }
.brand { flex: 1 1 auto; display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.wordmark { font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 8px 24px; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .875rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: .25em; }
/* 720-999px: brand, tag, six links and the button cannot share one row; the links and the button take a second row. */
@media (min-width: 720px) and (max-width: 999.98px) {
  .nav { flex: 1 1 100%; justify-content: space-between; }
}
@media (max-width: 719.98px) {
  .tag, .nav a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; border-top: 0; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, #000 35%, transparent 100%);
}
.hero-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.lead { font-size: clamp(1.125rem, 2.2vw, 1.3125rem); line-height: 1.5; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
/* Separators sit in the gap before each item; overflow:hidden clips the one that lands at the start of a wrapped row. */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  overflow: hidden;
  list-style: none;
  font-size: .875rem;
  color: var(--ink-2);
}
.proof li { position: relative; }
.proof li::before { content: "\00B7"; position: absolute; left: -18px; }

/* report card */
.report-card { display: flex; flex-direction: column; gap: 16px; width: min(100%, 480px); }
.report { display: flex; flex-direction: column; font-size: .875rem; }
.report .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding-block: 11px;
  border-top: 1px solid var(--rule);
}
.report dt { color: var(--ink-2); }
.report dd { flex: 1 1 auto; text-align: right; } /* the value stays on the right, also when a narrow card wraps it under its label */
.report dd.sub { flex: 1 0 100%; color: var(--ink-2); } /* the breakdown takes its own line under the value, at every width */
.ok { color: var(--pass); }
@keyframes row-in { from { opacity: 0; } to { opacity: 1; } }
.report .row { animation: row-in 360ms ease-out backwards; }
.report .row:nth-child(1) { animation-delay: 0ms; }
.report .row:nth-child(2) { animation-delay: 120ms; }
.report .row:nth-child(3) { animation-delay: 240ms; }
.report .row:nth-child(4) { animation-delay: 360ms; }
.report .row:nth-child(5) { animation-delay: 480ms; }
@media (prefers-reduced-motion: reduce) {
  .report .row { animation: none; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .report-card { justify-self: end; }
}

/* ---------- what we do ---------- */
.tiles { display: grid; gap: 28px 32px; list-style: none; }
.tiles li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ink); }
.tiles .name { font-size: 1.2rem; line-height: 1.25; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- who we help ---------- */
.sectors { display: grid; gap: 24px 48px; list-style: none; }
.sectors li { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sectors .name { font-size: 1.2rem; line-height: 1.25; }
@media (min-width: 960px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mocks { display: grid; gap: 36px; }
.mock { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; } /* cards and captions sit on the text's left edge */
.mock .card { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.phone { max-width: 260px; aspect-ratio: 5 / 8; justify-content: space-between; } /* a narrow, portrait card: the chip at the top, the chat at the foot */
.hotel { max-width: 480px; }
@media (min-width: 960px) { .mocks { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 10px 12px; border-radius: 4px; font-size: .875rem; line-height: 1.45; }
.bubble.in { align-self: flex-start; background: var(--paper); border: 1px solid var(--rule); }
.bubble.out { align-self: flex-end; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.sys { align-self: center; padding-top: 6px; font-size: .875rem; color: var(--ink-2); }

.card-title { font-size: .875rem; font-weight: 500; color: var(--ink); }
.occ { display: flex; flex-direction: column; gap: 14px; list-style: none; font-size: .875rem; }
.occ li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.occ .bar-track { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 2px; background: var(--rule); }
.occ .bar-track::after { content: ""; position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--ink); }
.occ li:nth-child(1) .bar-track::after { width: 92%; }
.occ li:nth-child(2) .bar-track::after { width: 81%; }
.occ li:nth-child(3) .bar-track::after { width: 67%; }
.occ li:nth-child(4) .bar-track::after { width: 74%; }
.hotel .foot { padding-top: 12px; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: .875rem; color: var(--ink-2); }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 32px; list-style: none; }
.steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 6px 16px; align-content: start; }
.steps .num {
  grid-row: 1 / span 2;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
}
.steps li::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: -28px; border-left: 1px solid var(--rule); }
.steps li:last-child::before { display: none; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li { grid-template-columns: 1fr; gap: 12px; }
  .steps .num { grid-row: auto; }
  .steps li::before { left: 40px; right: -32px; top: 16px; bottom: auto; border-left: 0; border-top: 1px solid var(--rule); }
}
.promises { display: grid; gap: 24px 32px; list-style: none; }
.promises li { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--rule); }
@media (min-width: 960px) { .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- pricing ---------- */
.rate { display: flex; flex-direction: column; gap: 16px; }
.rate-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.fig {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(3.25rem, 9vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--pass);
}
.per { font-family: var(--font-mono); font-size: 1.2rem; color: var(--ink-2); }
.rate hr { border: 0; border-top: 1px solid var(--rule); }
.billing { display: flex; flex-direction: column; gap: 16px; }
.bullets { display: flex; flex-direction: column; gap: 12px; padding-left: 1.25em; }
@media (min-width: 960px) { .cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* ---------- work ---------- */
.work { display: grid; gap: 24px; }
.work-text { display: flex; flex-direction: column; gap: 12px; align-content: start; }
.work-shots { display: flex; flex-direction: column; gap: 16px; }
.work-shots img { border: 1px solid var(--rule); border-radius: 4px; }
@media (min-width: 960px) { .work { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; } }

/* ---------- faq ---------- */
.faq, .options { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq details, .options details { border-bottom: 1px solid var(--rule); }
.faq summary, .options summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker, .options summary::-webkit-details-marker { display: none; }
.faq summary::after, .options summary::after { content: "+"; font-family: var(--font-mono); font-weight: 400; color: var(--ink-2); }
.faq details[open] summary::after, .options details[open] summary::after { content: "\2212"; }
.faq details > p { padding-bottom: 18px; max-width: 65ch; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.email { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.25rem, 5vw, 2rem); letter-spacing: -.01em; overflow-wrap: anywhere; }
.person { display: flex; align-items: center; gap: 16px; }
.person p { max-width: 52ch; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; }
.avatar { object-fit: cover; object-position: 50% 20%; background: var(--sheet); border: 1px solid var(--rule); }
/* The four options share the FAQ's look and, like its answers, open and close each on its own: none closes another, so nothing above a tapped option moves. */
.options { align-self: stretch; max-width: 720px; }
.options .form, .options .panel { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.field label { font-size: .875rem; font-weight: 500; }
/* An empty field shows nothing but its outline, so the outline is --ink-2 (7:1 or more), not the cards' --rule: WCAG 1.4.11 asks 3:1. */
.field input, .field textarea {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ink-2);
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; }
/* A date or time field takes focus in its parts and its picker button, which :focus-visible on the field does not reach
   (Chromium misses the picker, WebKit all of them): :focus-within does, in both, so the ring shows at every stop. */
.field input:focus-within, .field textarea:focus-within { outline: 2px solid var(--pass); outline-offset: 2px; }
.note { font-size: .875rem; color: var(--ink-2); max-width: 52ch; }

/* ---------- 404 and the thank-you page ---------- */
.band.first { border-top: 0; }
.notfound, .thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 32px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; color: var(--ink-2); }
