/* scourgify.com — one stylesheet.
   Tokens are the app design system's (Claude Design export, tokens/colors.css and
   typography.css); only the ones the site uses are here. Values, spacing and type sizes are
   carried over from the website design file page by page. */

/* ---------- fonts: self-hosted, so no visitor request goes to Google ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-wght-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(../fonts/caveat-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(../fonts/caveat-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --canvas: #FFF9F5;
  --canvas-sunk: #FBF1EA;
  --surface-card: #FFFFFF;
  --ink: #2D2A26;
  --ink-secondary: #6E655C;
  /* The design system's tertiary ink is #94897E, which is 3.3:1 on canvas and fails WCAG AA
     (4.5:1) at the small sizes it is used for. #776C62 is the nearest shade of the same warm
     grey that passes on canvas (4.9), canvas-sunk (4.6) and white cards (5.1). */
  --ink-tertiary: #776C62;
  --ink-on-accent: #FFFFFF;
  --accent: #F26A4F;
  --accent-pressed: #DE5639;
  --accent-tint: #FFF1ED;
  --accent-ink: #B9432A;
  --divider: #F0E6DD;
  --focus-ring: #FBA48C;
  --status-fresh: #7E9E72;
  --status-approaching: #DDA92F;
  --status-due: #E5893F;
  --status-unlogged: #B8AFA6;

  --font-ui: 'Plus Jakarta Sans', -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;

  --gutter: clamp(20px, 5vw, 32px);
  --page: 1080px;
  --shadow-card: 0 2px 10px rgba(45, 42, 38, .05), 0 12px 30px rgba(45, 42, 38, .05);
  --ease-calm: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}
.w-home { --page: 1080px; }
.w-page { --page: 860px; }
.w-legal { --page: 760px; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul { margin: 0; }
strong { color: var(--ink); font-weight: 700; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.mark { display: block; color: var(--accent); }
.mark-22 { width: 22px; height: 22px; }
.mark-26 { width: 26px; height: 26px; }
.mark-44 { width: 44px; height: 44px; margin: 0 auto 26px; }
.mark-52 { width: 52px; height: 52px; margin-bottom: 28px; }
.mark-120 { width: 120px; height: 120px; }
.mark-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark-draw 1200ms var(--ease-calm) forwards; }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }

.hand { font-family: var(--font-hand); font-weight: 500; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-tertiary); }
.note { font-size: 14px; line-height: 1.5; color: var(--ink-tertiary); }
.card { background: var(--surface-card); border-radius: 16px; box-shadow: var(--shadow-card); }
.band { background: var(--canvas-sunk); }

/* ---------- buttons and the pre-launch "coming soon" ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--accent); color: var(--ink-on-accent);
  text-decoration: none; font-weight: 600; transition: background 160ms ease-out;
}
.btn:hover { background: var(--accent-pressed); color: var(--ink-on-accent); }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 40px; padding: 0 18px; }
.btn-md { height: 52px; padding: 0 28px; font-size: 17px; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 17px; letter-spacing: -0.2px; }
/* Not a button: the palest coral tint with coral ink, the design system's "selected, not
   tappable" treatment, because solid coral reads as "tap me". */
.soon {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 14px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 600;
  font-size: 17px; line-height: 1.3;
}
.soon-md { min-height: 52px; padding: 12px 24px; }
.soon-lg { min-height: 54px; padding: 13px 26px; }

/* ---------- nav ---------- */
.site-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-size: 19px; font-weight: 700; letter-spacing: -0.6px; }
.brand-small span { font-size: 16px; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-secondary); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; padding: 0;
  border: 0; border-radius: 14px; background: transparent; color: var(--ink); cursor: pointer;
}
@media (max-width: 800px) {
  .nav-links { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .nav-links a:not(.btn) { height: 52px; display: flex; align-items: center; border-top: 1px solid var(--divider); }
  .nav-links .nav-cta { height: 52px; margin-top: 16px; }
  /* Collapsed from the first paint, so nothing below it jumps when the script arrives.
     Without JavaScript, no-js.css shows the links and hides the toggle instead. */
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .site-nav.is-open .nav-links { display: flex; }
}

/* ---------- home ---------- */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(40px, 6vw, 64px); align-items: center;
  padding-top: clamp(32px, 6vw, 56px); padding-bottom: clamp(64px, 10vw, 104px);
}
.hero-hand { font-size: clamp(30px, 6vw, 38px); line-height: 1; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -1.6px; font-weight: 800; margin-bottom: 22px; text-wrap: pretty; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-secondary); max-width: 30em; text-wrap: pretty; }
.hero .lede { margin-bottom: 36px; }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-shot { justify-self: center; }

.shot { width: 100%; box-shadow: 0 18px 44px rgba(45, 42, 38, .09); }
.shot-320 { max-width: 320px; border-radius: 44px; box-shadow: 0 24px 60px rgba(45, 42, 38, .10); }
.shot-260 { max-width: 260px; border-radius: 36px; }
.shot-240 { max-width: 240px; border-radius: 34px; margin: 0 auto 28px; }
.shot-220 { max-width: 220px; border-radius: 32px; }
.shot-200 { max-width: 200px; border-radius: 30px; }

.statement { padding: clamp(64px, 9vw, 96px) var(--gutter); }
.statement p { max-width: 700px; margin: 0 auto; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.6; text-wrap: pretty; }

.section { padding-block: clamp(68px, 10vw, 112px); }
.band > .section { padding-inline: var(--gutter); }
.section-title { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -1px; font-weight: 800; margin-bottom: 20px; }
.section-lede { font-size: 19px; line-height: 1.65; color: var(--ink-secondary); max-width: 34em; margin-bottom: clamp(36px, 5vw, 56px); text-wrap: pretty; }
.section-lede.small { font-size: 18px; }
.body-lg { font-size: 18px; line-height: 1.65; color: var(--ink-secondary); text-wrap: pretty; }
.body-lg + .body-lg { margin-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: clamp(36px, 5vw, 48px); align-items: start; margin-top: clamp(36px, 5vw, 56px); }
.steps .eyebrow { margin-bottom: 10px; }
.steps h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 10px; }
.steps p:last-child { font-size: 16px; line-height: 1.6; color: var(--ink-secondary); text-wrap: pretty; }
.shot-placeholder {
  width: 100%; max-width: 240px; aspect-ratio: 1206 / 2622; margin: 0 auto 28px; padding: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 34px; background: var(--canvas-sunk);
}
.shot-placeholder p { font-size: 30px; line-height: 1.25; color: var(--ink-secondary); text-align: center; }

.states { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.state { padding: 26px 24px; }
.state .dot { display: block; width: 14px; height: 14px; border-radius: 999px; margin-bottom: 18px; }
.dot-fresh { background: var(--status-fresh); }
.dot-approaching { background: var(--status-approaching); }
.dot-due { background: var(--status-due); }
.dot-unlogged { background: var(--status-unlogged); }
.state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.state p { font-size: 15px; line-height: 1.55; color: var(--ink-secondary); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.split-narrow { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.split-shot { justify-self: center; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; justify-items: center; align-items: start; }
.pair img + img { margin-top: 44px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; justify-items: center; }

.closing { max-width: 620px; margin: 0 auto; text-align: center; }
.closing-hand { font-size: clamp(28px, 6vw, 36px); line-height: 1.15; margin-bottom: 20px; }
.closing .body-lg { margin-bottom: 34px; }
.closing .note { margin-top: 16px; }

/* ---------- inner pages ---------- */
.page-head { padding-top: clamp(32px, 6vw, 48px); padding-bottom: 24px; }
.page-head h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.1; letter-spacing: -1.2px; font-weight: 800; margin-bottom: 18px; }
.page-head .lede { line-height: 1.65; max-width: 34em; }
.page-head-hand { font-size: clamp(27px, 6vw, 34px); line-height: 1; margin-bottom: 16px; }

.faq { display: grid; gap: 16px; padding-top: clamp(32px, 6vw, 48px); padding-bottom: 24px; }
.faq .card { padding: clamp(22px, 5vw, 28px) clamp(20px, 5vw, 30px); }
.faq h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 12px; }
.faq p { font-size: 17px; line-height: 1.7; color: var(--ink-secondary); }

.callout { padding-top: 40px; padding-bottom: 96px; }
.callout-box { border-radius: 16px; background: var(--canvas-sunk); padding: clamp(28px, 6vw, 44px) clamp(22px, 5vw, 36px); text-align: center; }
.callout-hand { font-size: clamp(26px, 6vw, 32px); line-height: 1.2; margin-bottom: 12px; }
.callout-text { font-size: 17px; line-height: 1.7; color: var(--ink-secondary); }
.callout-box .body-lg { margin-bottom: 26px; }
.callout-box .note { margin-top: 14px; }

.prose { display: grid; gap: 22px; padding-top: clamp(40px, 7vw, 56px); }
.prose p, .who > p { font-size: 18px; line-height: 1.8; color: var(--ink-secondary); max-width: 40em; }
.mark-card { margin-top: 56px; }
.mark-card .card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 36px; align-items: center;
  padding: clamp(28px, 6vw, 40px) clamp(22px, 5vw, 36px);
}
.mark-card .mark-120 { justify-self: center; }
.mark-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 12px; }
.mark-card p { font-size: 17px; line-height: 1.7; color: var(--ink-secondary); }
.who { padding-top: clamp(48px, 8vw, 72px); }
.who h2 { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.2; letter-spacing: -0.7px; font-weight: 800; margin-bottom: 20px; }
.who > p + p { margin-top: 18px; }
.facts { display: grid; gap: 8px; margin-top: 32px; font-size: 16px; line-height: 1.7; color: var(--ink-tertiary); }
.about-cta { padding-top: clamp(56px, 9vw, 80px); padding-bottom: 96px; }

/* ---------- legal pages (generated from the app repo's docs) ---------- */
.legal { padding-top: 40px; padding-bottom: 120px; }
.legal h1 { font-size: clamp(32px, 6vw, 42px); line-height: 1.12; letter-spacing: -1.2px; font-weight: 800; margin-bottom: 28px; }
.legal-meta { display: grid; gap: 10px; margin-bottom: clamp(36px, 5vw, 56px); font-size: 16px; line-height: 1.7; color: var(--ink-secondary); }
.legal-toc { padding: 26px 28px; margin-bottom: clamp(36px, 5vw, 56px); }
.legal .legal-toc .eyebrow { font-size: 13px; line-height: 1.4; color: var(--ink-tertiary); margin: 0 0 16px; }
.legal .legal-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16px; line-height: 1.5; }
.legal-toc a { text-decoration: none; }
.legal h2 { font-size: clamp(23px, 3.4vw, 27px); line-height: 1.25; letter-spacing: -0.6px; font-weight: 700; margin: 48px 0 20px; scroll-margin-top: 24px; }
.legal-meta + h2, .legal-toc + h2 { margin-top: 0; }
.legal p { font-size: 18px; line-height: 1.75; color: var(--ink-secondary); margin-bottom: 20px; }
.legal .legal-meta p { font-size: 16px; line-height: 1.7; margin: 0; }
.legal p.legal-subhead { color: var(--ink); margin: 28px 0 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 12px; margin-bottom: 28px; font-size: 18px; line-height: 1.75; color: var(--ink-secondary); }
.legal a { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { background: var(--canvas-sunk); padding-block: 48px 64px; }
.site-footer-home { background: transparent; padding-block: clamp(48px, 8vw, 64px) 72px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer-home .footer-inner { gap: 32px; align-items: flex-start; }
.site-footer p { font-size: 14px; line-height: 1.6; color: var(--ink-tertiary); }
.footer-brand { display: grid; gap: 10px; }
.footer-brand .brand { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; font-weight: 500; }
.site-footer-home .footer-links { gap: 24px; }
.footer-links a { text-decoration: none; color: var(--ink-secondary); }
.footer-links a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.lost { padding-block: clamp(48px, 10vw, 96px) 120px; text-align: center; }
.lost .mark-44 { margin-bottom: 26px; }
.lost .hand { font-size: clamp(30px, 6vw, 38px); line-height: 1.1; margin-bottom: 18px; }
.lost .lede { margin: 0 auto 32px; }

/* ---------- scroll reveal: only when the script runs, and never with reduced motion ---------- */
.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal-ready { transition: opacity 520ms var(--ease-calm), transform 520ms var(--ease-calm); }

@media (prefers-reduced-motion: reduce) {
  .mark-draw path { animation: none; stroke-dashoffset: 0; }
  .reveal-pending { opacity: 1; transform: none; }
  .btn { transition: none; }
}
