/* Splitpea marketing site.
   One stylesheet, no framework, no build step — the whole site is four files and
   a folder of screenshots, which is all it needs to be. */

:root {
  color-scheme: light dark;
  --pea: #16b894;
  --pea-deep: #0e8f74;
  --ink: #10201c;
  --ink-soft: #4b5f59;
  --paper: #ffffff;
  --wash: #f4f8f6;
  --line: #dfe8e4;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(16, 32, 28, .13);
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9f2ee;
    --ink-soft: #9fb3ac;
    --paper: #0d1412;
    --wash: #121b18;
    --line: #223029;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--pea-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { a { color: var(--pea); } }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 20px; }
section > h2 { text-align: center; margin-bottom: 2.2rem; }

.quiet { color: var(--ink-soft); }
.centred { text-align: center; margin-inline: auto; justify-content: center; }
.fineprint { color: var(--ink-soft); font-size: .88rem; }

/* ---------------------------------------------------------------- header */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 20px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 650; }
.brand img { border-radius: 9px; }
.bar nav { display: flex; align-items: center; gap: 1.4rem; }
.bar nav a { color: var(--ink-soft); font-size: .95rem; }
.bar nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------------------------------------------------------------- buttons */
.cta, .ghost {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 620; font-size: 1rem; text-decoration: none;
}
.cta { background: var(--pea); color: #fff; box-shadow: 0 10px 24px rgba(22, 184, 148, .3); }
.cta:hover { background: var(--pea-deep); text-decoration: none; }
.cta.small { padding: .5rem 1rem; font-size: .9rem; box-shadow: none; }
.ghost { border: 1px solid var(--line); color: var(--ink); }
.ghost:hover { border-color: var(--pea); text-decoration: none; }
.row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.6rem; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  max-width: 1120px; margin-inline: auto;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; }
}
.lede { font-size: 1.12rem; color: var(--ink-soft); }

.hero-shots { position: relative; min-height: 420px; display: flex; justify-content: center; }
.shot {
  width: 100%; max-width: 270px; height: auto;
  border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-shots .back {
  position: absolute; left: 50%; transform: translateX(-88%) rotate(-5deg);
  opacity: .96;
}
.hero-shots .front {
  position: relative; transform: translateX(22%) rotate(3deg);
}
@media (max-width: 560px) {
  .hero-shots .back { display: none; }
  .hero-shots .front { transform: none; }
}

/* ---------------------------------------------------------------- claims */
.band { background: var(--wash); border-block: 1px solid var(--line); padding-block: 2.4rem; }
.claims {
  list-style: none; margin: 0 auto; padding: 0; max-width: 980px;
  display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  text-align: center;
}
.claims strong { display: block; font-size: 1.05rem; }
.claims span { color: var(--ink-soft); font-size: .95rem; }

/* ---------------------------------------------------------------- steps */
.steps ol {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1080px;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.steps li { position: relative; padding-top: .5rem; }
.num {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .9rem;
  border-radius: 50%; background: var(--pea); color: #fff; font-weight: 700;
}
.steps p { color: var(--ink-soft); }

/* ---------------------------------------------------------------- features */
.features { background: var(--wash); border-block: 1px solid var(--line); }
.grid {
  max-width: 1080px; margin-inline: auto;
  display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.grid article {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.grid p { color: var(--ink-soft); margin-bottom: 0; font-size: .97rem; }

/* ---------------------------------------------------------------- wide blocks */
.feature-wide, .switch {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  max-width: 1080px; margin-inline: auto;
}
@media (min-width: 880px) {
  .feature-wide { grid-template-columns: 1.1fr .9fr; }
  .switch { grid-template-columns: 1.1fr .9fr; }
}
.feature-wide .shot, .switch .shot { justify-self: center; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--pea); font-weight: 700;
}
.switch { background: none; }
.switch h2 { text-align: left; }

/* ---------------------------------------------------------------- privacy + get */
.privacy { background: var(--wash); border-block: 1px solid var(--line); text-align: center; }
.privacy p { margin-inline: auto; }
.get { text-align: center; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 3rem 20px 2rem; background: var(--wash); }
.foot-grid {
  max-width: 1080px; margin-inline: auto;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
footer nav { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
footer nav a { color: var(--ink); font-size: .95rem; }
.copyright {
  max-width: 1080px; margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem;
}

/* ---------------------------------------------------------------- prose pages */
.prose { max-width: 720px; margin-inline: auto; }
.prose h1 { margin-bottom: .3em; }
.prose h2 { text-align: left; font-size: 1.35rem; margin-top: 2.4rem; }
.prose ul { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
