/* ==========================================================================
   Otonic — design system
   Palette anchored to the logo: petrol #2C5364, ice #E1E8EB.
   Type: Fraunces (display) + Schibsted Grotesk (body) + system mono (labels).
   ========================================================================== */

:root {
  --paper: #F6F8F9;
  --ice: #E1E8EB;          /* logo gray */
  --ice-soft: #EDF1F3;
  --ink: #111F26;
  --petrol: #2C5364;       /* logo petrol */
  --petrol-soft: #7C97A3;
  --slate: #47656F;
  --hairline: #CBD6DB;
  --marigold: #E8A03C;
  --marigold-ink: #96610F; /* accent at text-contrast strength */
  --wa: #25D366;
  --wa-deep: #1EBD59;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sec-pad: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

::selection { background: var(--marigold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--marigold-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: 4.5rem; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- wordmark (logo PNG used as mask, recolored per surface) ---------- */

.wordmark {
  display: inline-block;
  aspect-ratio: 1734 / 355;
  height: 26px;
  -webkit-mask: url("assets/otonic-wordmark.png") center / contain no-repeat;
          mask: url("assets/otonic-wordmark.png") center / contain no-repeat;
}
/* split between "otonic." and "ai" sits at 78.03% of the cropped mark */
.wordmark-light {
  background: linear-gradient(90deg, var(--petrol-soft) 0 78.03%, var(--petrol) 78.03% 100%);
}
.wordmark-dark {
  background: linear-gradient(90deg, var(--ice) 0 78.03%, var(--marigold) 78.03% 100%);
}

/* ---------- shared atoms ---------- */

.eyebrow, .sec-num, .sec-label, .chip, .micro, .stamp, .chat-note,
.svc-num, .svc-tags, .step-num, .beat-label, .strip-label,
.case-facts dt, .contact-label, .contact-meta {
  font-family: var(--font-mono);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-wa { background: var(--wa); color: var(--ink); }
.btn-wa:hover { background: var(--wa-deep); transform: translateY(-1px); }
.btn-wa:active { transform: translateY(0); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.ic-wa { width: 1.1em; height: 1.1em; flex: none; }

.link-arrow {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--hairline);
  transition: text-decoration-color 0.2s ease;
}
.link-arrow:hover { text-decoration-color: var(--marigold); }
.link-arrow span { display: inline-block; transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translateY(2px); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}
.brand { display: inline-flex; text-decoration: none; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw + 0.9rem, 4.6rem);
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--petrol);
}

.lede {
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  color: var(--slate);
  max-width: 54ch;
  margin-top: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.micro {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 1.5rem;
  letter-spacing: 0.01em;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-demo { max-width: 440px; }
}

/* ---------- chat demo ---------- */

.chat-card {
  margin: 0;
  max-width: 420px;
  justify-self: end;
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  background: #E9E2D8;
  box-shadow: 0 1px 2px rgba(17, 31, 38, 0.05), 0 14px 36px rgba(17, 31, 38, 0.09);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--petrol);
  padding: 0.7rem 1rem;
}
.chat-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--marigold);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}
.chat-id { display: flex; flex-direction: column; line-height: 1.3; }
.chat-name { color: #fff; font-size: 0.92rem; font-weight: 600; }
.chat-status { color: rgba(255, 255, 255, 0.72); font-size: 0.75rem; }

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}
.chat-day {
  align-self: center;
  background: rgba(255, 255, 255, 0.85);
  color: #667781;
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.bubble {
  position: relative;
  max-width: 86%;
  padding: 0.5rem 0.65rem 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 1px 0.5px rgba(17, 31, 38, 0.13);
}
.bubble p { margin: 0; }
.bubble.in {
  align-self: flex-start;
  background: #fff;
  border-radius: 8px 8px 8px 2px;
}
.bubble.out {
  align-self: flex-end;
  background: #D9FDD3;
  border-radius: 8px 8px 2px 8px;
}
.stamp {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.66rem;
  color: #667781;
  margin-top: 0.15rem;
}
.stamp svg { width: 15px; height: 10px; color: #53BDEB; }

.chat-note {
  font-size: 0.72rem;
  color: var(--slate);
  padding: 0.8rem 1rem;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}

/* bubble entrance — staggered, plays when card scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .js .chat-card .bubble { opacity: 0; transform: translateY(10px); }
  .js .chat-card.play .bubble {
    animation: bubble-in 0.45s ease forwards;
  }
  .js .chat-card.play .bubble:nth-child(2) { animation-delay: 0.15s; }
  .js .chat-card.play .bubble:nth-child(3) { animation-delay: 0.75s; }
  .js .chat-card.play .bubble:nth-child(4) { animation-delay: 1.35s; }
  .js .chat-card.play .bubble:nth-child(5) { animation-delay: 1.95s; }
}
@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- production strip ---------- */

.strip {
  border-block: 1px solid var(--hairline);
  background: var(--ice-soft);
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2.5rem;
  padding-block: 1.1rem;
}
.strip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--marigold-ink);
  white-space: nowrap;
}
.strip-dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--marigold);
  border-radius: 1px;
}
.strip-text { font-size: 0.95rem; color: var(--ink); }
.strip-text a {
  color: var(--petrol);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.strip-text a:hover { color: var(--marigold-ink); }

/* ---------- section scaffolding ---------- */

.sec { padding-block: var(--sec-pad); }
.sec-tint { background: var(--ice-soft); }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--hairline);
  padding-top: 0.9rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sec-num {
  font-size: 0.78rem;
  color: var(--marigold-ink);
}
.sec-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.sec-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-intro h2 { font-size: clamp(1.9rem, 2.6vw + 0.9rem, 3rem); max-width: 18ch; }
.sec-intro p { color: var(--slate); max-width: 38ch; }

@media (max-width: 820px) {
  .sec-intro { grid-template-columns: 1fr; align-items: start; }
}

/* dark section variants */
.sec-dark { background: var(--ink); color: var(--ice); }
.sec-dark .sec-head { border-top-color: rgba(225, 232, 235, 0.18); }
.sec-dark .sec-label { color: rgba(225, 232, 235, 0.55); }
.sec-dark .sec-num { color: var(--marigold); }

/* ---------- services (numbered index rows) ---------- */

.svc-list { border-bottom: 1px solid var(--hairline); }

.svc {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(200px, 260px);
  gap: 1rem 2.5rem;
  align-items: start;
  border-top: 1px solid var(--hairline);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0.75rem;
  margin-inline: -0.75rem;
  transition: background-color 0.25s ease;
}
.svc:hover { background: var(--ice-soft); }

.svc-num {
  font-size: 0.78rem;
  color: var(--slate);
  padding-top: 0.55rem;
  transition: color 0.25s ease;
}
.svc:hover .svc-num { color: var(--marigold-ink); }

.svc h3 { font-size: clamp(1.35rem, 1.2vw + 0.9rem, 1.7rem); margin-bottom: 0.75rem; }
.svc p { color: var(--slate); max-width: 56ch; }

.svc-tags {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  align-content: start;
}
.svc-tags li {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.25rem 0.55rem;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .svc { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .svc-tags { grid-column: 2; justify-content: flex-start; padding-top: 0.25rem; }
}

/* ---------- verticals ---------- */

.vert-list { border-bottom: 1px solid var(--hairline); }

.vert {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 0.75rem 2.5rem;
  border-top: 1px solid var(--hairline);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0.75rem;
  margin-inline: -0.75rem;
  transition: background-color 0.25s ease;
}
.vert:hover { background: var(--paper); }

.vert-name {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.3rem;
}
.vert p { color: var(--slate); max-width: 62ch; align-self: center; }
.vert p a {
  color: var(--petrol);
  font-weight: 500;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.vert p a:hover { color: var(--marigold-ink); }

.ic {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .vert { grid-template-columns: 1fr; }
}

/* ---------- case study ---------- */

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(240px, 4fr);
  gap: 2.5rem clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.chip {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--marigold-ink);
  border: 1px solid var(--marigold);
  border-radius: 2px;
  padding: 0.35rem 0.7rem;
  margin-bottom: 1.5rem;
}

.case-main h2 {
  font-size: clamp(1.9rem, 2.6vw + 0.9rem, 3rem);
  max-width: 20ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.case-beat { margin-bottom: 2.25rem; }
.beat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
}
.case-beat p { max-width: 58ch; }

.case-note {
  border-left: 3px solid var(--marigold);
  background: var(--ice-soft);
  color: var(--slate);
  font-size: 0.95rem;
  padding: 1.1rem 1.35rem;
  max-width: 56ch;
  margin-top: 2.5rem;
}

.case-facts {
  position: sticky;
  top: 5.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}
.case-facts dl { margin: 0; }
.case-facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.3rem;
}
.case-facts dd {
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
  color: var(--ink);
}
.case-facts dd:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-facts { position: static; }
}

/* ---------- process steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}
.step {
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
}
.step-num {
  display: block;
  font-size: 0.78rem;
  color: var(--marigold-ink);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.step p { font-size: 0.95rem; color: var(--slate); }

@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- ROI calculator ---------- */

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: 3rem clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2.1rem;
}

.ctl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 0.7rem;
}
.ctl-head label { font-weight: 500; font-size: 0.98rem; }

.ctl-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--petrol);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  text-align: right;
  padding: 0.15rem 0;
  width: 8ch;
  flex: none;
  transition: border-color 0.2s ease;
}
.ctl-val-wide { width: 14ch; }
.ctl-val:focus { outline: none; border-bottom-color: var(--petrol); }
.ctl-val-static { border-bottom-color: transparent; }

/* range inputs — hairline track, petrol fill, round thumb */
.ctl-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.ctl-range::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--petrol) var(--fill, 50%), var(--hairline) var(--fill, 50%));
}
.ctl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--petrol);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--petrol);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.ctl-range::-webkit-slider-thumb:hover,
.ctl-range::-webkit-slider-thumb:active {
  background: var(--marigold);
  box-shadow: 0 0 0 1px var(--marigold-ink);
}
.ctl-range:focus-visible { outline: none; }
.ctl-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px var(--petrol), 0 0 0 4px rgba(232, 160, 60, 0.45);
}
.ctl-range::-moz-range-track {
  height: 2px;
  border-radius: 1px;
  background: var(--hairline);
}
.ctl-range::-moz-range-progress {
  height: 2px;
  border-radius: 1px;
  background: var(--petrol);
}
.ctl-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--petrol);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--petrol);
}
.ctl-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 1px var(--petrol), 0 0 0 4px rgba(232, 160, 60, 0.45);
}
.sec-tint .ctl-range::-webkit-slider-thumb { border-color: var(--ice-soft); }
.sec-tint .ctl-range::-moz-range-thumb { border-color: var(--ice-soft); }

/* results panel */
.calc-results {
  position: sticky;
  top: 5.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 0.4rem;
}

.res {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--hairline);
}
.res-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.45rem;
}
.res-line { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.res-num {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.55rem, 1.4vw + 1rem, 1.9rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.res-unit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate);
}

.res-hi {
  border-left: 3px solid var(--marigold);
  background: var(--ice-soft);
  padding: 1.15rem 1.3rem;
  margin-top: 1.6rem;
}
.res-hi .res-num { font-size: clamp(1.8rem, 1.6vw + 1.1rem, 2.2rem); }
.res-foot {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 0.7rem;
  max-width: 34ch;
}

.calc-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.6rem;
}
.calc-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate);
  margin-top: 1rem;
}

@media (max-width: 820px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(240px, 4fr);
  gap: 3rem clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-main h2 {
  font-size: clamp(2rem, 3vw + 0.9rem, 3.4rem);
  max-width: 18ch;
  color: var(--paper);
}
.contact-lede {
  color: rgba(225, 232, 235, 0.75);
  max-width: 46ch;
  margin-top: 1.5rem;
}
.contact-lede em { color: var(--marigold); font-style: italic; }
.contact-cta { margin-top: 2.25rem; }

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid rgba(225, 232, 235, 0.18);
  padding-top: 1.5rem;
}
.contact-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(225, 232, 235, 0.55);
  margin-bottom: 0.25rem;
}
.contact-links a {
  color: var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(225, 232, 235, 0.3);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.contact-links a:hover { color: var(--marigold); text-decoration-color: var(--marigold); }

.contact-meta {
  font-size: 0.78rem;
  line-height: 1.9;
  color: rgba(225, 232, 235, 0.55);
  margin-top: 2rem;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(225, 232, 235, 0.7);
  border-top: 1px solid rgba(225, 232, 235, 0.12);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-block: 3rem 2rem;
}
.footer-brand p {
  font-size: 0.9rem;
  max-width: 34ch;
  margin-top: 1rem;
}
.footer .wordmark { height: 22px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: start;
  max-width: 420px;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(225, 232, 235, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--marigold); }

.footer-base {
  border-top: 1px solid rgba(225, 232, 235, 0.12);
  padding-block: 1.5rem;
}
.footer-base p { font-size: 0.8rem; font-family: var(--font-mono); }

/* ---------- floating WhatsApp button (mobile) ---------- */

.fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(17, 31, 38, 0.25);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab svg { width: 26px; height: 26px; }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 760px) {
  .fab { display: flex; }
}

/* ---------- scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .js .reveal.in-view { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- document pages (privasi, syarat) ---------- */

.doc {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 5rem;
}
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.doc .doc-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 2.5rem;
}
.doc h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
}
.doc p, .doc li { color: var(--slate); font-size: 0.98rem; }
.doc ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.doc a { color: var(--petrol); }
