/* BookedIn landing page v2 — Codesrun.
   One accent colour (BookedIn teal), system fonts, mobile first. */

:root {
  --accent: #0e7c66;
  --accent-dark: #0a5b4b;      /* 6.1:1 on white — body links, small text */
  --accent-deep: #073f34;
  --accent-light: #5ad7bd;     /* only ever used on dark backgrounds */
  --ink: #13201d;
  --muted: #4d5f59;            /* 7.0:1 on white */
  --muted-soft: #6a7b75;
  --line: #dfe6e3;
  --bg: #ffffff;
  --soft: #f3f7f5;
  --logo-tick: var(--accent);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 32, 29, .05), 0 8px 24px -12px rgba(19, 32, 29, .18);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.62 var(--sans);
  overflow-x: hidden;         /* belt and braces against a stray wide child */
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.1rem, 8.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 .9rem; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent-deep); }

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

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1.15rem; }
.wrap.narrow > * { max-width: 44rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: #fff; color: var(--accent-deep); padding: .7rem 1rem; font-weight: 700;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------------- header (sits over the hero) ---------------- */

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  padding: 1.1rem 0;
  color: #fff;
  --logo-tick: var(--accent-light);
}
.header-inner { display: flex; align-items: center; }
.logo-link { display: inline-flex; text-decoration: none; color: inherit; }
.logo { height: 36px; width: auto; }

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 34rem;
  height: 88svh;
  max-height: 46rem;
  padding: 5.5rem 0 0;
  color: #fff;
  background: #0b1714;    /* behind the media, so the shade never flashes white */
  overflow: hidden;
}
.hero-media, .hero-media img, .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity .6s ease; }
.hero-video.is-playing { opacity: 1; }

.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(6, 18, 15, .92) 0%, rgba(6, 18, 15, .72) 34%, rgba(6, 18, 15, .34) 68%, rgba(6, 18, 15, .5) 100%);
}

.hero-inner { position: relative; z-index: 2; padding-bottom: 1.6rem; }
.hero h1 { max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-sub {
  max-width: 40ch; font-size: 1.05rem; color: #e4ece9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

.eyebrow {
  display: inline-block; margin: 0 0 .9rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  padding: .3rem .75rem;
  backdrop-filter: blur(2px);
}

.hero-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem;
  margin: 1.5rem 0 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .85rem 1.7rem;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 1.05rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(14, 124, 102, .9);
}
.btn-primary:hover { background: #109076; color: #fff; }

/* Secondary hero action. It sits over the hero video, so it borrows the
   translucent treatment from .chip rather than a second solid colour. */
.btn-ghost {
  background: rgba(10, 24, 20, .5); color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(10, 24, 20, .74); color: #fff; }

.chip {
  display: inline-block;
  font-size: .92rem; font-weight: 600; color: #fff;
  background: rgba(10, 24, 20, .55);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px; padding: .5rem .95rem;
}

.hero-demo-note {
  margin: .75rem 0 0;
  max-width: 46ch;
  font-size: .86rem; color: #d9e5e1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

.hero-credit {
  position: relative; z-index: 2;
  margin: 0; padding: 0 1.15rem 1rem;
  width: 100%; max-width: 70rem; margin-inline: auto;
  font-size: .76rem; color: #c3d0cc;
}
.hero-credit a { color: #d9e5e1; }

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

.section, .band { padding: 3.4rem 0; }
.band { background: var(--soft); border-block: 1px solid var(--line); }

.kicker {
  margin: 0 0 .45rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-dark);
}
.lede { color: var(--muted); font-size: 1.04rem; max-width: 52ch; }
.note { color: var(--muted-soft); font-size: .86rem; max-width: 62ch; margin-top: 1.4rem; }

/* ---------------- screenshot frames ---------------- */

.shot { position: relative; margin: 0 0 2.4rem; }
.shot-desktop {
  width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow);
  background: #fff;
}
.shot-phone {
  position: absolute; right: 3%; bottom: -1.2rem;
  width: 24%; height: auto;
  border: 3px solid #1b2724; border-radius: 12px;
  box-shadow: 0 10px 26px -10px rgba(19, 32, 29, .55);
  background: #fff;
}
.shot-tag {
  position: absolute; left: .55rem; bottom: .55rem; margin: 0;
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(10, 24, 20, .8);
  border-radius: 999px; padding: .2rem .6rem;
}

/* ---------------- before / after ---------------- */

.ba-grid { display: grid; gap: 2.6rem; margin-top: 1.8rem; }
.ba-card { margin: 0; }
.ba-card h3 { margin-top: 0; }
.ba-card p:not(.ba-label) { color: var(--muted); margin-bottom: 0; }

.ba-label {
  display: inline-block; margin: 0 0 .7rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; padding: .28rem .7rem;
}
.ba-label-before { color: #41514b; background: #fff; border: 1px solid #c3d0cb; }
.ba-label-after { color: #fff; background: var(--accent); border: 1px solid var(--accent); }

.shot-note {
  margin: 0 0 .5rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  color: var(--muted-soft);
}

/* ---------------- sample cards ---------------- */

.sample-grid { display: grid; gap: 2.6rem; margin-top: 1.8rem; }
.sample { margin: 0; }
.sample h3 { margin: .1rem 0 .35rem; }
.sample p { color: var(--muted); margin-bottom: 0; }
.sample-type {
  margin: 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-dark);
}
.sample-live { margin: .7rem 0 0; }
.sample-live a { font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* ---------------- client steps ---------------- */

.steps-grid {
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  display: grid; gap: 1.1rem;
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.3rem 1.3rem;
  box-shadow: var(--shadow);
}
.step::after {
  content: counter(step);
  position: absolute; right: 1.1rem; top: .9rem;
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: var(--accent); opacity: .12;
}
.step-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin: 0 0 .9rem;
  border-radius: 12px;
  background: #e4f1ed; color: var(--accent-deep);
}
.step-icon svg { width: 24px; height: 24px; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------------- lists, cards, price ---------------- */

.ticks, .crosses { list-style: none; margin: 0 0 1rem; padding: 0; }
.ticks li, .crosses li { position: relative; padding-left: 1.9rem; margin: .55rem 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1.05rem; height: .6rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.crosses li::before {
  content: "—"; position: absolute; left: .1rem; top: 0;
  color: var(--muted-soft); font-weight: 700;
}

ol.steps { list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; margin: .8rem 0; }
ol.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: .05rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.3rem .9rem; background: var(--soft);
}
.card.plain { background: #fff; }
.commit { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }

.price-card {
  border: 2px solid var(--accent); border-radius: var(--radius);
  background: #fff; padding: 1.6rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  max-width: 28rem;
}
.price { font-size: 1.35rem; line-height: 1.35; margin: 0 0 .2rem; }
.price strong { font-size: 1.5em; font-weight: 800; color: var(--accent-dark); }
.price-note { color: var(--muted); font-size: .86rem; margin: .9rem 0 0; }

/* ---------------- faq ---------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 700; padding: .95rem .2rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; float: right; color: var(--accent); font-weight: 800; font-size: 1.2rem; line-height: 1.2;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 .2rem .95rem; color: var(--muted); max-width: 60ch; }

/* ---------------- form ---------------- */

form { margin: 1.4rem 0 0; max-width: 34rem; }
.field { margin: 0 0 1rem; }
label { display: block; font-weight: 700; font-size: .93rem; margin: 0 0 .3rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; }
.form-foot { margin-top: .9rem; }

input[type=text], input[type=email] {
  width: 100%; padding: .7rem .75rem;
  font: inherit; font-size: 1rem;
  border: 1px solid #b8c6c1; border-radius: 9px;
  background: #fff; color: var(--ink);
}
input::placeholder { color: var(--muted-soft); }
input:focus-visible { outline: 3px solid rgba(14, 124, 102, .4); outline-offset: 1px; border-color: var(--accent); }

/* Honeypot: off-screen, never focusable, hidden from assistive tech. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

button[type=submit] {
  background: var(--accent); color: #fff;
  border: 0; border-radius: 999px;
  padding: .85rem 1.7rem;
  font: inherit; font-size: 1.02rem; font-weight: 700;
  cursor: pointer; min-height: 52px;
}
button[type=submit]:hover { background: var(--accent-dark); }
button[type=submit][disabled] { opacity: .6; cursor: progress; }

.status { margin: 1rem 0 0; padding: .75rem .85rem; border-radius: 9px; font-size: .95rem; }
.status:empty { display: none; }
.status.ok { background: #e7f4f0; border: 1px solid var(--accent); color: var(--accent-deep); }
.status.err { background: #fdeceb; border: 1px solid #b03326; color: #7f2219; }
.status.pending { background: var(--soft); border: 1px solid var(--line); color: var(--muted); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted); font-size: .88rem;
}
.site-footer p { margin: 0 0 .65rem; }
.credits { margin-top: 1.2rem; font-size: .8rem; color: var(--muted-soft); }
.credits a { color: var(--muted); }

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

/* Only armed once app.js has set `js` on <html>, so a no-JS visitor sees
   everything immediately and there is no flash of hidden content. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------- wider screens ---------------- */

@media (min-width: 34em) {
  .shot-phone { bottom: -1.6rem; }
}

@media (min-width: 48em) {
  .section, .band { padding: 4.6rem 0; }
  .wrap { padding: 0 2rem; }
  .hero-credit { padding-inline: 2rem; }
  .hero { padding-top: 6.5rem; }
  .hero-inner { padding-bottom: 2.2rem; }
  .hero-sub { font-size: 1.15rem; }
  .ba-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.8rem; }
  .sample-grid { grid-template-columns: repeat(3, 1fr); gap: 2.4rem 1.5rem; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .shot-phone { width: 26%; right: 4%; bottom: -1.4rem; }
}

@media (min-width: 64em) {
  .hero-inner { padding-bottom: 2.6rem; }
  .ba-grid { gap: 2.4rem; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
