:root {
  --bg: #0a0e1a;
  --bg-alt: #10162a;
  --card: #141b30;
  --border: #232c46;
  --text: #f2f4f8;
  --text-dim: #a7afc4;
  --text-faint: #6b7390;
  --red: #ef4459;
  --teal: #2fd6a8;
  --purple: #9b5de5;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--purple) 55%, var(--teal));
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 15px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: #fff;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--text-faint); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 70% 20%, rgba(239, 68, 89, 0.22), transparent 70%),
              radial-gradient(50% 50% at 20% 40%, rgba(47, 214, 168, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: rgba(47, 214, 168, 0.1);
  border: 1px solid rgba(47, 214, 168, 0.28);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

h1 .accent-red { color: var(--red); }
h1 .accent-teal { color: var(--teal); }

.hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  max-width: 300px;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

/* Sections */
section { padding: 72px 0; }

section.alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16.5px;
  margin: 0;
}

/* Problem section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.problem-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.problem-card .tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 8px;
  display: block;
}

.problem-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.icon-red { background: rgba(239, 68, 89, 0.14); }
.icon-teal { background: rgba(47, 214, 168, 0.14); }
.icon-purple { background: rgba(155, 93, 229, 0.14); }
.icon-gold { background: rgba(255, 176, 32, 0.14); }

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* Showcase (screenshots) */
.showcase .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.showcase img {
  border-radius: 22px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  margin: 0 auto;
  max-width: 280px;
}

.showcase .copy h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.showcase .copy p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 14px;
}

.showcase.reverse {
  grid-template-columns: 1fr 1fr;
}

.showcase.reverse .art { order: 2; }
.showcase.reverse .copy { order: 1; }

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.trust-pill strong { color: var(--text); }

/* FAQ */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
}

.faq-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* CTA band */
.cta-band {
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(239, 68, 89, 0.07), rgba(47, 214, 168, 0.05));
}

.cta-band h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 12px;
}

.cta-band p {
  color: var(--text-dim);
  margin: 0 0 28px;
}

/* Footer */
footer.site {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-faint);
  font-size: 13.5px;
}

.footer-row a { text-decoration: none; color: var(--text-faint); }
.footer-row a:hover { color: var(--text-dim); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .nav-links { display: none; }
  .problem-grid, .features { grid-template-columns: 1fr; }
  .showcase .wrap, .showcase.reverse .wrap { grid-template-columns: 1fr; }
  .showcase.reverse .art, .showcase.reverse .copy { order: initial; }
  .showcase .copy { text-align: center; }
}

/* ---------------------------------------------------------------------------
   Additions made when the site moved into its own repository.
   --------------------------------------------------------------------------- */

/* The <img> tags now carry intrinsic width/height so the browser reserves the
   right space before the image arrives (no layout shift). That makes the
   attributes authoritative unless height is released back to the aspect ratio. */
img { height: auto; }

/* Keyboard users land on the sticky header first; give them a way past it. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

/* The default focus ring is nearly invisible on this background. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect a reduced-motion preference: the smooth scroll on html is the only
   motion here, and it is exactly the kind that triggers vestibular symptoms. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.section-foot {
  margin: 28px 0 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}

.section-foot a { color: var(--text-dim); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------------------------------------------------------------------------
   Guides. A single measure-limited prose column, shared by the hub and the
   articles. Everything above reuses the landing page's header, footer and
   button styles unchanged.
   --------------------------------------------------------------------------- */

.guide {
  max-width: 720px;   /* ~70-80 characters at this size; past that the eye
                         loses the line on the way back to the left margin */
  margin: 0 auto;
  padding: 0 24px;
}

.guide-head {
  padding: 56px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.breadcrumb {
  font-size: 13.5px;
  color: var(--text-faint);
  margin: 0 0 18px;
}

.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 8px; }

.guide h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.guide .standfirst {
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 0 28px;
}

/* The answer-first block. Every guide opens with one: the direct answer in a
   couple of sentences, before any context. It is what a reader scanning for an
   answer stops on, and what an AI assistant quotes if it quotes anything. */
.answer-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 36px;
}

.answer-box p { margin: 0; font-size: 16.5px; }
.answer-box p + p { margin-top: 12px; }

.guide h2 {
  font-size: clamp(21px, 2.8vw, 26px);
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}

.guide h3 {
  font-size: 18px;
  margin: 30px 0 10px;
}

.guide p { color: var(--text-dim); margin: 0 0 16px; }
.guide strong { color: var(--text); }

.guide ul, .guide ol { color: var(--text-dim); padding-left: 22px; margin: 0 0 18px; }
.guide li { margin-bottom: 9px; }

.guide blockquote {
  margin: 24px 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--purple);
  color: var(--text-dim);
  font-style: italic;
}

/* Rotation tables scroll rather than squeezing the page sideways on a phone. */
.table-scroll { overflow-x: auto; margin: 0 0 22px; }

.guide table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 14.5px;
}

.guide th, .guide td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.guide th { color: var(--text); font-weight: 700; white-space: nowrap; }

/* A rotation drawn as coloured day cells reads faster than the same thing
   written out as "D D D N N N off off". */
.pattern {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 22px;
}

.pattern span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--border);
}

.pattern .d { background: #2f7de0; }
.pattern .n { background: #6b4bb8; }
.pattern .a { background: #c9803a; }
.pattern .o { background: #2a3350; color: var(--text-faint); }

.guide .cta-inline {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0;
  text-align: center;
}

.guide .cta-inline p { margin: 0 0 16px; }

.guide-foot {
  margin: 52px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}

.guide-foot h2 { margin-top: 0; font-size: 18px; }

.guide-foot ul { list-style: none; padding: 0; }
.guide-foot li { margin-bottom: 10px; }
.guide-foot a { color: var(--text-dim); }

/* Guide hub cards */
.guide-list {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
}

.guide-list a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.guide-list a:hover { border-color: var(--purple); }
.guide-list h2 { font-size: 19px; margin: 0 0 8px; }
.guide-list p { margin: 0; font-size: 15px; }

/* The guide pages use the landing page's .faq block unchanged, but need it to
   sit in the narrow column rather than the full-width section grid. */
.guide .faq { margin-top: 12px; }

/* Byline. Google's guidance on who wrote a page is about what a reader can
   see, not only what the markup claims, so the name appears on the page as
   well as in the Article JSON-LD. No visible date: these are reference pages
   rather than news, and a date stamp only makes them look stale later. */
.byline {
  font-size: 14px;
  color: var(--text-faint);
  margin: -14px 0 28px;
}

.byline strong { color: var(--text-dim); font-weight: 700; }

.author-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 28px;
}

.author-note .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), var(--purple) 55%, var(--teal));
}

.author-note p { margin: 0; font-size: 14.5px; }
.author-note p + p { margin-top: 8px; }
.author-note strong { color: var(--text); }
