/* =========================================================================
   The Orb Apps — shared stylesheet
   One stylesheet for the whole site. The look is the "Delphi" line look from
   the Oryn's Simple Tools brand guide v1.10: warm dark charcoal ground, one
   brand orange, cream reading text, rounded friendly tiles, a glowing orb.

   RECOLOUR THE WHOLE SITE FROM ONE PLACE: edit the custom properties in
   :root below. Every colour on the site reads from these — no hard-coded
   hex anywhere else.

   FONTS: system stacks for now (zero remote files, ships today). A later pass
   will self-host Nunito (rounded sans, body) and Fraunces (warm serif,
   wordmarks). The two --font-* properties below are the single swap point —
   drop the @font-face rules in and change these two lines.
   ========================================================================= */

:root {
  /* ---- palette (brand guide v1.10; no blue anywhere) ---- */
  --bg:        #1c1917;   /* background charcoal            */
  --surface:   #2a2420;   /* raised surface / tiles         */
  --hover:     #3a3530;   /* lighter hover                  */
  --orange:    #d46030;   /* brand orange — buttons/accents */
  --cream:     #f0e6d3;   /* reading text (full strength)   */
  --title:     #e0d0b8;   /* titles                         */
  --bronze:    #a07860;   /* sub-labels                     */
  --muted:     #b0967c;   /* muted text                     */
  --green:     #4ade80;   /* status: good                   */
  --red:       #ef4444;   /* status: destructive            */

  /* ---- fonts (system now; self-host Nunito/Fraunces later — swap here) ---- */
  --font-body:  "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                "Helvetica Neue", system-ui, sans-serif;
  --font-wordmark: "Fraunces", "Hoefler Text", "Iowan Old Style", Palatino,
                Georgia, "Times New Roman", serif;

  /* ---- spacing / shape ---- */
  --radius: 16px;
  --measure: 65ch;        /* comfortable reading line length */
  --glow: 0 0 28px rgba(212, 96, 48, 0.45);
}

/* ---- reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 118%;                 /* large base for 40–60 readers */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.7;                /* roomy */
  letter-spacing: 0.005em;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #e6753f; }

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- layout containers ---- */
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.reading { max-width: var(--measure); }       /* narrow column for body copy */

section { padding: 48px 0; }
section + section { border-top: 1px solid rgba(160, 120, 96, 0.16); }

/* ---- top nav (app pages: small home link) ---- */
.topnav { padding: 18px 0; }
.topnav .wrap { display: flex; align-items: center; gap: 12px; }
.brandlink {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--title); text-decoration: none; font-weight: 700;
}
.brandlink:hover { color: var(--cream); }
.brandlink .orb-sm { width: 40px; height: 40px; }
.brandlink .name { font-family: var(--font-wordmark); font-size: 1.15rem; letter-spacing: 0.01em; }

/* ---- headings ---- */
h1, h2, h3 { color: var(--title); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 0.2em 0; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.3em; color: var(--cream); }
p  { margin: 0 0 1em; }

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sub-label { color: var(--bronze); font-size: 0.95rem; text-transform: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 56px; padding: 14px 30px;
  font-family: var(--font-body); font-size: 1.15rem; font-weight: 800;
  border-radius: var(--radius); border: 0; cursor: pointer;
  text-decoration: none;
}
.btn-get {
  background: var(--orange); color: #1c1917;
  box-shadow: var(--glow);
}
.btn-get:hover { background: #e0703c; color: #1c1917; }
.btn-ghost {
  background: var(--surface); color: var(--cream);
  border: 1px solid rgba(160, 120, 96, 0.35);
}
.btn-ghost:hover { background: var(--hover); }

/* =========================  HOME  ========================= */
.hero-home { text-align: center; padding-top: 56px; }
.hero-home .orb-hero { width: clamp(140px, 34vw, 220px); margin: 0 auto 18px; }
.hero-home .brand {
  font-family: var(--font-wordmark);
  font-size: clamp(2.4rem, 8vw, 4rem);
  color: var(--title); font-weight: 600; margin: 0 0 0.1em;
}
.hero-home .headline { font-size: clamp(1.5rem, 5vw, 2.4rem); margin: 0.2em auto; text-wrap: balance; }
.hero-home .subline { color: var(--cream); max-width: 52ch; margin: 1em auto; font-size: 1.1rem; }

/* promise strip */
.promise {
  list-style: none; margin: 28px auto 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
  max-width: 760px;
}
.promise li {
  background: var(--surface); color: var(--title);
  border: 1px solid rgba(160, 120, 96, 0.25);
  border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 0.98rem;
}

/* app tiles */
.tiles {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 620px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid rgba(160, 120, 96, 0.2);
  border-radius: var(--radius); padding: 22px; text-decoration: none;
  color: var(--cream); transition: background 120ms ease, transform 120ms ease;
}
.tile:hover { background: var(--hover); transform: translateY(-2px); }
.tile .orb-tile { width: 84px; height: 84px; flex: 0 0 auto; }
.tile .tile-text { min-width: 0; }
.tile .tile-name {
  display: block;
  font-family: var(--font-wordmark); font-size: 1.5rem; font-weight: 600;
  color: var(--title); margin: 0 0 2px;
}
.tile .tile-desc { color: var(--muted); font-size: 0.98rem; margin: 0; line-height: 1.45; }

/* about block */
.about p { max-width: var(--measure); }

/* =========================  APP PAGE  ========================= */
.app-hero {
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  padding: 40px 0 8px;
}
.app-hero .orb-hero { width: clamp(120px, 28vw, 170px); flex: 0 0 auto; }
.app-hero .hgroup { min-width: 0; }
.app-hero h1.wordmark {
  font-family: var(--font-wordmark); font-weight: 600;
  margin: 0; font-size: clamp(2.4rem, 9vw, 3.6rem); color: var(--title);
}
.app-hero .underline {
  width: 84px; height: 5px; background: var(--orange);
  border-radius: 3px; margin: 12px 0 14px;
}
.app-hero .tagline { font-size: clamp(1.15rem, 3.4vw, 1.5rem); color: var(--cream); margin: 0; }

.answer-first { font-size: 1.2rem; color: var(--cream); max-width: var(--measure); }

/* feature list */
.features { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.features li {
  position: relative; padding: 6px 0 6px 28px; border-bottom: 1px solid rgba(160,120,96,0.12);
}
.features li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
}
.features li b { color: var(--title); }

/* what-it-isn't */
.isnt { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.isnt li { padding: 6px 0 6px 28px; position: relative; }
.isnt li::before {
  content: "\2014"; position: absolute; left: 2px; color: var(--bronze);
}

/* the eight tools (chipbreaker) */
.tools-grid { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: var(--measure); }
@media (min-width: 620px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
.tools-grid .tool {
  background: var(--surface); border: 1px solid rgba(160,120,96,0.18);
  border-radius: 12px; padding: 14px 16px;
}
.tools-grid .tool b { color: var(--title); display: block; }
.tools-grid .tool span { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: var(--measure); }
.faq .q { color: var(--title); font-weight: 800; margin: 1.3em 0 0.2em; font-size: 1.12rem; }
.faq .a { margin: 0; color: var(--cream); }

/* get-it CTA */
.cta { text-align: center; }
.cta .note { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }

/* screenshots + video placeholders */
.shots { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .shots { grid-template-columns: 1fr 1fr; } }
.shot figure { margin: 0; }
/* screenshots in "A look inside" — framed like the site's cards/tiles */
.shot img {
  max-width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(160, 120, 96, 0.2);
}
.shot figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.video-spot {
  background: var(--surface); border: 2px dashed rgba(160,120,96,0.4);
  border-radius: var(--radius); padding: 26px; text-align: center; color: var(--bronze);
  max-width: var(--measure);
}

/* =========================  COMPARISON PAGE  ========================= */
/* Tables scroll sideways inside their own wrapper on narrow phones —
   the page itself never scrolls horizontally. */
.table-wrap {
  overflow-x: auto;
  margin: 8px 0 16px;
  border: 1px solid rgba(160, 120, 96, 0.2);
  border-radius: var(--radius);
  background: var(--surface);
}
.compare {
  width: 100%; min-width: 720px;
  border-collapse: collapse;
  font-size: 0.95rem; line-height: 1.5;
}
.compare th, .compare td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid rgba(160, 120, 96, 0.16);
}
.compare thead th { color: var(--bronze); font-size: 0.88rem; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td b { color: var(--title); }
.compare .ours td { background: rgba(212, 96, 48, 0.07); }

/* ---- footer ---- */
.foot { padding: 40px 0; color: var(--muted); font-size: 0.95rem; }
.foot a { color: var(--bronze); }
.foot .updated { color: var(--bronze); }
.foot .row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }

/* small print / updated line */
.updated { color: var(--bronze); font-size: 0.9rem; }
