/* =========================================================
   Spin Crush — spincrush.css
   Green + gold theme, taken from the logo.
   Mobile-first. No external fonts, no frameworks, no JS needed for layout.
   Every colour is a token below — change --brand and the site follows.
   ========================================================= */

:root{
  --brand:#0E7A2E;        /* badge green — header, buttons, links */
  --brand-dark:#0A5E22;
  --brand-darker:#063F17; /* hero gradient end, footer */
  --brand-light:#2FBF4F;  /* bright diamond green — hovers, accents */
  --brand-tint:#E8F5EA;   /* pale green card wash */

  --gold:#FFC61A;         /* the SPIN lettering — CTAs, highlights */
  --gold-dark:#D99A00;
  --gold-tint:#FFF6DC;

  --accent:#E8401F;       /* red outline on the lettering — warnings only */
  --accent-tint:#FDECE7;

  --ink:#14201A;          /* headings */
  --body:#4B5A50;         /* body text */
  --muted:#6C7A71;
  --line:#DFE8E1;
  --bg:#FFFFFF;
  --bg-soft:#F5FAF6;
  --footer:#063314;

  --radius:12px;
  --radius-lg:20px;
  --shadow:0 2px 10px rgba(4,48,18,.06);
  --shadow-md:0 6px 22px rgba(4,48,18,.10);

  --container:1080px;
  --gutter:18px;

  /* System font stack: zero network requests, zero layout shift.
     To use a brand font, self-host a woff2 and add it to the front of this list. */
  --font:system-ui,-apple-system,'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;
  font-family:var(--font);
  font-size:17px;
  line-height:1.7;
  color:var(--body);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}

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

h1,h2,h3,h4{color:var(--ink);line-height:1.25;margin:0 0 .5em;font-weight:700;letter-spacing:-.01em}
h1{font-size:clamp(28px,6vw,42px);font-weight:800}
h2{font-size:clamp(23px,4.4vw,31px)}
h3{font-size:clamp(18px,3vw,21px)}
p{margin:0 0 1.1em}
ul,ol{margin:0 0 1.1em;padding-left:1.25em}
li{margin-bottom:.45em}
ul.plain{list-style:none;padding-left:0}

a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
a:hover{color:var(--brand-light)}

strong{color:var(--ink)}

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

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:999;
  background:var(--brand);color:#fff;padding:10px 18px;
  border-radius:0 0 8px 0;text-decoration:none;
}
.skip-link:focus{left:0}

.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:var(--gutter)}
.narrow{max-width:760px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 28px;border-radius:10px;
  font-size:16px;font-weight:700;line-height:1.2;
  text-decoration:none;border:2px solid transparent;cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.btn-gold{background:var(--gold);color:var(--brand-darker);border-color:var(--gold)}
.btn-gold:hover{background:var(--gold-dark);border-color:var(--gold-dark);color:#fff}
.btn-brand{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn-brand:hover{background:var(--brand-dark);border-color:var(--brand-dark);color:#fff}
.btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn-ghost:hover{background:rgba(255,255,255,.12);color:#fff;border-color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px}

/* ---------- header ---------- */
.site-header{
  background:var(--brand);
  position:sticky;top:0;z-index:50;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}

.logo{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.logo-img{width:auto;height:38px;flex:0 0 auto;border-radius:0}
.logo-text{color:#fff;font-weight:700;font-size:18px;letter-spacing:.4px}
.logo-text strong{font-weight:800;color:var(--gold)}

.nav-toggle{
  display:inline-flex;align-items:center;gap:7px;
  background:transparent;border:1px solid rgba(255,255,255,.45);
  color:#fff;font:inherit;font-size:14px;font-weight:600;
  padding:7px 13px;border-radius:8px;cursor:pointer;
}
.nav-toggle:hover{background:rgba(255,255,255,.12)}

.site-nav{display:none;width:100%;padding-bottom:10px}
.site-nav.is-open{display:block}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.site-nav a{
  display:block;color:#fff;text-decoration:none;font-weight:600;font-size:15.5px;
  padding:10px 12px;border-radius:8px;
}
.site-nav a:hover{background:rgba(255,255,255,.12);color:#fff}
.site-nav a[aria-current="page"]{background:rgba(0,0,0,.20);color:var(--gold)}

/* ---------- hero ---------- */
.hero{
  background:linear-gradient(160deg,var(--brand-dark) 0%,var(--brand-darker) 100%);
  color:#fff;padding:44px 0 48px;
}
.hero h1{color:#fff;margin-bottom:16px}
.hero-lead{font-size:clamp(17px,2.4vw,19px);color:rgba(255,255,255,.90);margin-bottom:26px;max-width:62ch}
.hero-note{font-size:14.5px;color:rgba(255,255,255,.72);margin:0;max-width:56ch}
.hero-art{margin-top:30px}
.hero-art img{margin-inline:auto;max-width:230px}

/* ---------- sections ---------- */
.section{padding:48px 0;border-top:1px solid var(--line)}
.section:first-of-type{border-top:0}
.section-alt{background:var(--bg-soft)}
.section > .container > h2{margin-bottom:.6em}
.lead{font-size:18px;color:var(--ink);font-weight:500}

/* ---------- app screenshots ----------
   Tall portrait phone captures. Constrained hard, or they dominate the column. */
.shot{
  max-width:250px;margin-inline:auto;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.14);
  box-shadow:var(--shadow-md);
}
.shot-figure{margin:0 0 28px}
.shot-figure figcaption{
  margin-top:10px;text-align:center;
  font-size:14px;line-height:1.5;color:var(--muted);
}

/* ---------- callouts ---------- */
.note{
  border-left:4px solid var(--brand);
  background:var(--brand-tint);
  padding:16px 18px;border-radius:0 var(--radius) var(--radius) 0;
  margin:0 0 1.2em;
}
.note p:last-child,.note ul:last-child,.note ol:last-child{margin-bottom:0}
.note--warn{border-left-color:var(--accent);background:var(--accent-tint)}
.note--gold{border-left-color:var(--gold-dark);background:var(--gold-tint)}
.note strong:first-child{display:block;color:var(--ink);margin-bottom:4px}

/* ---------- cards ---------- */
.cards{display:grid;gap:16px;margin:24px 0;padding:0;list-style:none}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:20px;box-shadow:var(--shadow);margin:0;
}
.card h3{font-size:18px;margin-bottom:6px}
.card p{font-size:15.5px;margin-bottom:0;color:var(--body)}

/* ---------- numbered steps ---------- */
.steps{list-style:none;counter-reset:step;padding:0;margin:24px 0}
.steps li{
  counter-increment:step;position:relative;
  padding:0 0 22px 52px;margin:0;
}
.steps li::before{
  content:counter(step);
  position:absolute;left:0;top:0;
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--brand);color:#fff;font-weight:700;font-size:15px;
}
.steps li:not(:last-child)::after{
  content:"";position:absolute;left:17px;top:38px;bottom:4px;
  width:2px;background:var(--line);
}
.steps h3{font-size:17.5px;margin-bottom:3px}
.steps p{font-size:15.5px;margin-bottom:0}

/* ---------- checklist ---------- */
.ticks{list-style:none;padding:0;margin:22px 0}
.ticks li{position:relative;padding-left:32px;margin-bottom:14px;font-size:16px}
.ticks li::before{
  content:"";position:absolute;left:0;top:7px;
  width:18px;height:18px;border-radius:5px;
  background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- FAQ (no JavaScript — native <details>) ---------- */
.faq{margin:24px 0 0}
.faq details{
  border:1px solid var(--line);border-radius:var(--radius);
  background:#fff;margin-bottom:12px;
}
.faq summary{
  cursor:pointer;list-style:none;
  padding:16px 46px 16px 18px;position:relative;
  font-weight:700;font-size:17px;color:var(--ink);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"";position:absolute;right:18px;top:22px;
  width:11px;height:11px;
  border-right:2.5px solid var(--brand);border-bottom:2.5px solid var(--brand);
  transform:rotate(45deg);transition:transform .15s ease;
}
.faq details[open] summary::after{transform:rotate(-135deg);top:26px}
.faq summary:hover{color:var(--brand)}
.faq .faq-body{padding:0 18px 4px}
.faq .faq-body p:last-child{margin-bottom:16px}

/* ---------- final CTA ---------- */
.cta{
  background:linear-gradient(160deg,var(--brand) 0%,var(--brand-darker) 100%);
  color:#fff;padding:48px 0;text-align:center;
}
.cta h2{color:#fff}
.cta p{color:rgba(255,255,255,.88);max-width:56ch;margin-inline:auto}
.cta .btn-row{justify-content:center;margin-top:22px;margin-bottom:0}

/* ---------- breadcrumbs ---------- */
.crumbs{font-size:14.5px;padding:14px 0 0;color:var(--muted)}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.crumbs li::after{content:"/";margin-left:6px;color:var(--line)}
.crumbs li:last-child::after{content:""}
.crumbs a{color:var(--muted)}

/* ---------- page header (inner pages) ---------- */
.page-head{padding:30px 0 6px}
.page-head p{font-size:18px;max-width:62ch}

/* ---------- legal pages ---------- */
.legal h2{margin-top:1.6em;font-size:clamp(20px,3.4vw,25px)}
.legal h3{margin-top:1.3em;font-size:18px}
.updated{font-size:14.5px;color:var(--muted);margin-bottom:2em}

/* ---------- contact ---------- */
.contact-grid{display:grid;gap:18px;margin:26px 0}

/* ---------- footer ---------- */
.site-footer{background:var(--footer);color:rgba(255,255,255,.70);padding:40px 0 26px;font-size:15px}
.site-footer h2{color:#fff;font-size:16px;margin-bottom:10px}
.footer-top{display:grid;gap:26px;margin-bottom:26px}
.footer-about p{margin-bottom:0;font-size:14.5px;line-height:1.75}
.site-footer nav ul{list-style:none;margin:0;padding:0}
.site-footer nav li{margin-bottom:8px}
.site-footer a{color:rgba(255,255,255,.82);text-decoration:none}
.site-footer a:hover{color:var(--gold);text-decoration:underline}
.footer-legal{
  border-top:1px solid rgba(255,255,255,.14);padding-top:18px;
  font-size:13.5px;line-height:1.7;
}
.footer-legal p{margin-bottom:.7em}
.footer-legal p:last-child{margin-bottom:0}

/* ---------- 404 ---------- */
.error-page{text-align:center;padding:70px 0}
.error-code{font-size:clamp(64px,16vw,110px);font-weight:800;color:var(--brand-tint);line-height:1;margin:0}

/* =========================================================
   BREAKPOINTS
   ========================================================= */

@media (min-width:640px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .contact-grid{grid-template-columns:repeat(2,1fr)}
  .hero-art img{max-width:240px}
}

@media (min-width:900px){
  body{font-size:17.5px}
  .section{padding:64px 0}
  .hero{padding:64px 0 68px}
  .hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:44px;align-items:center}
  .hero-art{margin-top:0}
  .hero-art img{max-width:250px}
  /* Logo left, nav right, on one line. The nav is a sibling of .header-inner,
     so the header's container becomes the flex row that holds both. */
  .site-header .container{display:flex;align-items:center;justify-content:space-between;gap:28px}
  .header-inner{flex:0 0 auto;padding:12px 0}
  .nav-toggle{display:none}
  .site-nav{display:block;width:auto;padding-bottom:0}
  .site-nav ul{flex-direction:row;gap:4px}
  .site-nav a{padding:9px 14px}
  .footer-top{grid-template-columns:2fr 1fr 1fr}
  .shot-figure{float:right;margin:4px 0 18px 30px;width:250px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}

@media print{
  .site-header,.cta,.skip-link,.hero-art{display:none!important}
  body{font-size:12pt;color:#000}
}
