/* In The Zone — marketing site.
   No framework, no build step, no external requests. The whole site is three
   HTML files and this stylesheet, which is deliberate: it matches the app's
   own position on dependencies and means nothing can rot. */

:root {
  --z1: #59a8f0;
  --z2: #4cc79a;
  --z3: #f2c440;
  --z4: #f58c33;
  --z5: #ed4a4f;

  --ink: #16181d;
  --ink-soft: #5b616e;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --line: #e4e6eb;
  --accent: #0a84ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f3f5;
    --ink-soft: #a2a8b4;
    --bg: #101216;
    --bg-alt: #181b21;
    --line: #272b33;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav ------------------------------------------------------------------ */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img { border-radius: 7px; }

.nav nav { display: flex; gap: 1.4rem; }

.nav nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}

.nav nav a:hover { color: var(--ink); }

/* Layout --------------------------------------------------------------- */

main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 3rem); }

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.015em;
  margin: 0 0 .8rem;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); }

.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-soft); }

.note { font-size: .85rem; color: var(--ink-soft); margin-top: 1.5rem; }

/* Hero ----------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-shot img {
  width: min(300px, 40vw);
  height: auto;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { justify-self: center; }
  .hero-shot img { width: min(280px, 70vw); }
  /* Centre the zone chips and the call to action once the hero stacks —
     left-aligned, they drift to one edge with the phone shot below them. */
  .zones { justify-content: center; }
  .cta-row { text-align: center; }
}

/* Zone chips ----------------------------------------------------------- */

.zones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }

.z {
  font-size: .8rem;
  font-weight: 700;
  padding: .35rem .75rem;
  border-radius: 999px;
  color: #fff;
}

.z1 { background: var(--z1); }
.z2 { background: var(--z2); }
.z3 { background: var(--z3); color: #221b00; }
.z4 { background: var(--z4); }
.z5 { background: var(--z5); }

/* Features ------------------------------------------------------------- */

.feature.alt {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  margin: 1rem 0;
}

.feature-text { max-width: 62ch; }

.feature-text p { color: var(--ink-soft); }

/* Screenshots ---------------------------------------------------------- */

.shots {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-content: center;
}

.shots figure { margin: 0; text-align: center; }

.shots img {
  width: min(260px, 60vw);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.shots figcaption {
  margin-top: .8rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

/* Privacy pledge ------------------------------------------------------- */

.privacy-pledge {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.pledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.pledge-grid div { display: flex; flex-direction: column; gap: .2rem; }
.pledge-grid strong { font-size: 1rem; }
.pledge-grid span { font-size: .9rem; color: var(--ink-soft); }

.privacy-pledge > p { color: var(--ink-soft); margin: 0; }

/* Disclaimer ----------------------------------------------------------- */

.disclaimer p {
  font-size: .85rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: 1rem;
  margin: 0;
}

/* Long-form legal pages ------------------------------------------------ */

.doc { max-width: 70ch; }
.doc h1 { margin-bottom: .4rem; }
.doc .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2.5rem; }
.doc h2 { margin-top: 2.5rem; font-size: 1.25rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }

.callout {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}

.callout p:last-child { margin-bottom: 0; }

/* Footer --------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem clamp(1rem, 5vw, 3rem);
  text-align: center;
  color: var(--ink-soft);
  font-size: .9rem;
}

footer a { color: var(--ink-soft); }

/* Differentiator pillars ------------------------------------------------ */

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

.pillar {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 1.6rem;
}

.pillar-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: .6rem;
}

.pillar h3 {
  font-size: 1.1rem;
  margin: 0 0 .5rem;
}

.pillar p {
  font-size: .93rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Price ------------------------------------------------------------------ */

.price {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.price h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: .5rem;
}

.price p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto;
}

/* Coming-soon announce bar + App Store CTA ---------------------------- */
.announce {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .85rem;
  text-align: center;
  padding: .55rem 1rem;
}
.announce .dot {
  display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--z2); margin-right: .5rem; vertical-align: middle;
}
.cta-row { margin-top: 1.6rem; }
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: 12px; text-decoration: none;
}
.btn-appstore { background: var(--ink); color: var(--bg); }
.btn-appstore:hover { opacity: .9; }
.btn-appstore.is-soon {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line); cursor: default;
}

/* Guide pages: tables + figures --------------------------------------- */
.doc table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: .55rem .65rem; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; color: var(--ink); }
.doc td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.doc figure { margin: 1.6rem 0; text-align: center; }
.doc figure img { max-width: 280px; width: 100%; border-radius: 24px; box-shadow: 0 12px 44px rgba(0,0,0,.16); }
.doc figcaption { color: var(--ink-soft); font-size: .85rem; margin-top: .7rem; }
.related { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.related .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.related a { display: block; margin: .3rem 0; }
