/* ============================================================
   NIMBLESITE — Concept C: "Coastal Editorial"
   The synthesis: Concept B's refinement (serif voice, hairlines,
   numbered sections, rate card) in Concept A's coastal palette
   (harbour blue · warm sand · sunset), with A's visual proof —
   the device mockup — and about half of B's word count.
   Lives in /c/ ; concepts A (/) and B (/alt/) stay intact.
   ============================================================ */

:root {
  --paper:     #f5f0e6;   /* warm sand */
  --paper-2:   #ece4d4;   /* deeper sand — the process band */
  --card:      #fdfbf6;   /* raised card surface on sand */
  --ink:       #0f2a3a;   /* harbour blue — text, rules, dark bands */
  --ink-2:     #163a50;   /* deep water — gradient partner */
  --mut:       #56707e;   /* muted text on sand */
  --accent:    #e9683c;   /* sunset — marks, italics on dark, hovers */
  --accent-deep: #c94e24; /* ember — accent text on sand */
  --tint:      #f8e9dd;   /* pale sunset — care card (warm, not blue) */
  --on-dark:   #edf4f6;
  --on-dark-mut: #92b2c4;
  --rule:      rgba(15, 42, 58, .16);
  --rule-strong: rgba(15, 42, 58, .5);
  --rule-dark: rgba(237, 244, 246, .18);

  --serif: "Zodiak", Georgia, "Times New Roman", serif;
  --sans:  "Supreme", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 5vw, 48px);

  /* tiled low-alpha grain for dark bands — a plain background layer */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- reset ---- */
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

.serif { font-family: var(--serif); }
.mut { color: var(--mut); max-width: 42ch; margin-top: 1rem; }
.dot { color: var(--accent); }

.page { max-width: 1080px; margin-inline: auto; padding-inline: var(--pad); }

/* ---- buttons ---- */
.btn {
  display: inline-block; font-weight: 700; font-size: .98rem; line-height: 1;
  padding: .95rem 1.6rem; border-radius: 3px;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: transparent; color: var(--accent-deep); border-color: var(--accent-deep); }
.btn-sm { padding: .6rem 1.05rem; font-size: .88rem; }

/* ---- masthead ---- */
.mast { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.mast-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; }
.mast-links { display: flex; align-items: center; gap: 1.7rem; font-size: .92rem; font-weight: 500; }
.mast-links a:not(.btn) { padding: .25rem 0; border-bottom: 1.5px solid transparent; transition: border-color .2s, color .2s; }
.mast-links a:not(.btn):hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }
@media (max-width: 640px) { .mast-links a:not(.btn):first-child { display: none; } }

/* ---- hero ---- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); }
.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.015em;
  margin-top: 1.1rem; max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.26rem); color: var(--mut); max-width: 42ch; margin-top: 1.3rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero-meta { margin-top: 1.8rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); line-height: 2; }
.hero-meta span { white-space: nowrap; }
.hero-meta span:not(:last-child)::after { content: "·"; color: var(--accent); margin: 0 .9rem; }

/* hero visual — the proof we build websites */
.hero-vis { position: relative; }
/* the top bit — before & after: the story, not a decoration */
.plates { position: relative; }
.device { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid rgba(15, 42, 58, .09); }
.device.before { width: 72%; box-shadow: 0 8px 20px -14px rgba(15, 42, 58, .22); }
.device.before .dv-bar { background: #efedea; }
.bf-body { padding: .95rem 1rem 1.15rem; font-family: "Times New Roman", Georgia, serif; }
.bf-title { font-size: .8rem; font-weight: 700; text-align: center; color: #43413c; letter-spacing: .02em; }
.bf-line { height: 7px; background: #e7e4dd; margin-top: .6rem; }
.bf-line.short { width: 62%; }
.bf-link { margin-top: .65rem; font-size: .74rem; color: #1a53c0; text-decoration: underline; }
.device.after { width: 94%; margin-left: 6%; margin-top: -2.6rem; position: relative; z-index: 2; box-shadow: 0 18px 40px -22px rgba(15, 42, 58, .4), 0 2px 6px rgba(15, 42, 58, .08); }
.plate-cap { margin-top: 2rem; font-style: italic; font-weight: 400; font-size: 1.02rem; color: var(--mut); }
.dv-bar { display: flex; align-items: center; gap: .35rem; padding: .65rem .8rem; background: var(--paper); border-bottom: 1px solid var(--rule); }
.dv-bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, var(--paper)); }
.dv-url { margin-left: .5rem; font-size: .7rem; color: var(--mut); background: #fff; border-radius: 999px; padding: .16rem .65rem; border: 1px solid var(--rule); }
.dv-hero { padding: 1.4rem 1.3rem 1.5rem; background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: var(--on-dark); background-image: var(--grain), linear-gradient(135deg, var(--ink), var(--ink-2)); }
.dv-hero .k { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.dv-hero .t { font-weight: 700; font-size: 1.28rem; line-height: 1.18; margin-top: .45rem; letter-spacing: -.02em; }
.dv-hero .cta { display: inline-block; margin-top: .9rem; background: var(--accent); color: var(--ink); font-weight: 700; font-size: .7rem; padding: .42rem .85rem; border-radius: 999px; }
.dv-body { padding: 1rem 1.3rem 1.4rem; }
.dv-line { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 9%, #fff); }
.dv-line.s { width: 55%; margin-top: .5rem; }
.dv-row { display: flex; gap: .6rem; margin-top: .9rem; }
.dv-tile { flex: 1; height: 50px; border-radius: 7px; background: color-mix(in srgb, var(--paper) 65%, #fff); border: 1px solid rgba(15, 42, 58, .07); }
.dv-tile:nth-child(1) { background: color-mix(in srgb, var(--accent) 9%, #fff); }
.dv-tile:nth-child(3) { background: color-mix(in srgb, var(--ink) 6%, #fff); }
/* contents index */
.index { display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; border-block: 1px solid var(--rule); padding: 1rem 0; margin-top: clamp(2.5rem, 5vw, 4rem); font-size: .92rem; font-weight: 500; }
.index a { padding: .15rem 0; border-bottom: 1.5px solid transparent; transition: border-color .2s, color .2s; }
.index a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }
.index b { color: var(--accent-deep); font-weight: 700; margin-right: .45rem; }

/* ---- the honest middle — dark interlude ---- */
.honest { margin-top: clamp(3rem, 7vw, 5.5rem); background: var(--ink); background-image: var(--grain); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem); }
.honest .pull { font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.35rem); font-weight: 400; line-height: 1.3; letter-spacing: -.01em; max-width: 36ch; }
.honest .pull em { font-style: italic; color: var(--accent); }
.nots { display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; margin-top: 1.8rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mut); }
.nots span { position: relative; padding-left: 1.3rem; }
.nots span::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---- sections ---- */
.sec { padding-top: clamp(3.2rem, 7vw, 5.5rem); }
.sec-head { display: flex; align-items: center; gap: 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--mut); }
.sec-head .no { color: var(--accent-deep); }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* included — B's manifest: numbered hairline rows, clean and tidy */
.manifest { list-style: none; padding: 0; margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); counter-reset: m; }
@media (max-width: 720px) { .manifest { grid-template-columns: 1fr; } }
.manifest li { border-bottom: 1px solid var(--rule); padding: 1.5rem 0 1.4rem; }
.manifest li::before { counter-increment: m; content: counter(m, decimal-leading-zero); font: 700 .75rem/1 var(--sans); letter-spacing: .1em; color: var(--accent-deep); display: block; margin-bottom: .65rem; }
.manifest h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.manifest p { color: var(--mut); margin-top: .35rem; max-width: 44ch; }

/* full-bleed band (process) */
.band { margin-top: clamp(3.2rem, 7vw, 5.5rem); background: var(--paper-2); padding-block: clamp(3rem, 6vw, 4.5rem); }

/* how it works — A's sticky counter, in C's language: the number counts
   01. → 03. as the steps pass; a taste of motion done politely */
.how-grid { display: grid; grid-template-columns: .5fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.how-sticky { position: sticky; top: 26vh; }
.how-count { font-size: clamp(4.5rem, 9vw, 7.5rem); font-style: italic; font-weight: 400; color: var(--accent-deep); line-height: 1; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
/* every step stays fully readable; the active one is *marked*, not the
   others dimmed (dimming read as disabled, not as waiting) */
.step { border-top: 2px solid var(--ink); padding: 2rem 0 2.8rem; transition: border-color .3s; }
.step[data-active="true"] { border-top-color: var(--accent-deep); }
.steps .n { display: block; font-size: 1.9rem; font-style: italic; color: var(--accent-deep); line-height: 1; transition: color .3s; }
.js .step[data-active="false"] .n { color: var(--mut); }
.steps h3 { font-size: 1.35rem; font-weight: 700; margin-top: .65rem; letter-spacing: -.01em; }
.steps p { color: var(--mut); margin-top: .45rem; max-width: 44ch; }
@media (max-width: 780px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-sticky { display: none; }
  /* no counter on mobile, but the steps still light up as you pass them:
     active numeral + rule in ember, the rest muted — motion as a whisper */
  .step { padding: 1.2rem 0 1.5rem; }
}

/* rates */
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); margin-top: clamp(1.8rem, 4vw, 2.6rem); }
@media (max-width: 780px) { .rates { grid-template-columns: 1fr; } }
.rate { border-top: 2px solid var(--ink); padding-top: 1.3rem; }
.rate.care { background: var(--tint); border-top-color: var(--accent-deep); padding: 1.3rem 1.6rem 1.8rem; border-radius: 0 0 4px 4px; }
.rate-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.rate-top h3 { font-size: 1.45rem; font-weight: 700; }
.amt { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
.amt span { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--mut); letter-spacing: 0; }
.rate ul { list-style: none; padding: 0; margin-top: 1rem; }
.rate li { padding: .55rem 0; border-bottom: 1px solid var(--rule); color: var(--mut); font-size: .96rem; }
.rate li:last-child { border-bottom: 0; }
.found { font-style: italic; font-size: .98rem; color: var(--accent-deep); margin-top: 1rem; max-width: 34ch; }
.found b { font-weight: 700; }
.rate .btn { margin-top: 1.2rem; }
.fine { font-size: .88rem; color: var(--mut); margin-top: 1.7rem; max-width: 60ch; }

/* faq */
.faq { margin-top: .6rem; max-width: 780px; }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; font-size: 1.28rem; font-weight: 700; letter-spacing: -.01em; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--accent-deep); flex: none; }
.qa[open] summary::after { content: "–"; }
.qa p { color: var(--mut); padding: 0 0 1.3rem; max-width: 60ch; }

/* contact */
.contact-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); margin-top: clamp(1.5rem, 3vw, 2.2rem); }
@media (max-width: 800px) { .contact-row { grid-template-columns: 1fr; } }
.pull-light { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; max-width: 16ch; }
form { display: grid; gap: 1.35rem; align-content: start; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
@media (max-width: 520px) { .f-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: .3rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--rule-strong); border-radius: 0;
  padding: .55rem 0; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent-deep); }
.field textarea { min-height: 105px; resize: vertical; }
form .btn { justify-self: start; }
form .btn[disabled] { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--mut); }
.form-note.sent { color: var(--accent-deep); font-weight: 600; }
.form-note a { color: var(--accent-deep); border-bottom: 1px solid currentColor; }

/* ---- the wave — B's signature, back on quiet paper where it worked ---- */
.wave-divider { margin-top: clamp(3.2rem, 7vw, 5rem); }
.wave { width: 96px; margin-inline: auto; stroke: var(--accent-deep); opacity: .85; }

/* ---- colophon — dark bookend, kept simple ---- */
.colophon { margin-top: clamp(2rem, 4vw, 2.8rem); background: var(--ink); background-image: var(--grain); color: var(--on-dark-mut); padding: 2.6rem 0 2.8rem; }
.colo-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .8rem 2rem; font-size: .9rem; }
.colo-row .wm { color: var(--on-dark); font-weight: 700; font-size: 1.05rem; }
.colo-row a { color: var(--accent); }
.colo-row a:hover { border-bottom: 1px solid currentColor; }
.colo-fine { text-align: center; font-size: .8rem; margin-top: 1.8rem; opacity: .75; }

/* ---- mobile diet: fewer elements per screen below 640px (desktop untouched) ---- */
@media (max-width: 640px) {
  /* first screen = type and CTAs only, with B's scale and air;
     the before/after story is desktop-only — the phone gets one clean card */
  .hero { padding-top: 3rem; }
  .hero h1 { font-size: 2.7rem; }
  .hero-cta .btn.ghost { border: 0; padding: .95rem .2rem; color: var(--accent-deep); text-decoration: underline; text-underline-offset: 4px; }
  .hero-meta { display: none; }
  .index { display: none; }
  /* ground the mockup: full width, anchored into the dark band */
  .hero-vis { z-index: 2; margin-bottom: -3rem; }
  .device.before { display: none; }
  .device.after { width: 100%; margin-left: 0; margin-top: 0; }
  .plate-cap { display: none; }
  .dv-row { display: none; }
  .dv-body { padding-bottom: 1.15rem; }
  .honest { margin-top: 0; padding-top: 5rem; padding-bottom: 2.6rem; }
  .nots { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .95rem; gap: .35rem 1.6rem; }
  .sec { padding-top: 2.6rem; }
  /* manifest compact */
  .manifest li::before { display: none; }
  .manifest li { padding: 1.05rem 0 1rem; }
  .manifest h3 { font-size: 1.12rem; }
  .manifest p { font-size: .92rem; }
  .band { margin-top: 2.6rem; padding-block: 2.4rem; }
  .wave-divider { margin-top: 2.6rem; }
  .colophon { margin-top: 1.4rem; }
}

/* ---- gentle fade-in (JS adds .seen; page fine without JS) ---- */
.js [data-fade] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js [data-fade].seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .js [data-fade] { opacity: 1 !important; transform: none !important; }
}
