/* HustleBoard website styles — one stylesheet behind all four pages.
   No frameworks, no build step, no external requests: no web fonts, no CDNs,
   no analytics. Colours are the app's own tokens (src/ui/tokens.ts) so the site
   and the app look like one product. Every text pairing here clears 4.5:1. */

/* 1. Tokens */

:root {
  /* Light theme — matches the app's light palette. */
  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #111114;
  --text-2: #62626a;
  --border: #e5e5ea;
  --separator: #d8d8dd;
  --primary: #08875d; /* fills; white text on it is 4.5:1 */
  --primary-text: #066e4e; /* links and green text on light backgrounds */
  --on-primary: #ffffff;
  --primary-soft: rgba(8, 135, 93, 0.1);
  --primary-edge: rgba(8, 135, 93, 0.28);
  --tint: rgba(16, 185, 129, 0.1);
  --shadow-card: 0 1px 2px rgba(17, 17, 20, 0.05), 0 10px 30px rgba(17, 17, 20, 0.06);
  --shadow-btn: 0 1px 2px rgba(4, 120, 87, 0.2), 0 8px 20px rgba(4, 120, 87, 0.18);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --gutter: 20px;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --prose: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark theme — the app's near-black grouped background with raised cards. */
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --border: #333336;
    --separator: #38383a;
    --primary: #34d399;
    --primary-text: #34d399;
    --on-primary: #03291c;
    --primary-soft: rgba(52, 211, 153, 0.14);
    --primary-edge: rgba(52, 211, 153, 0.32);
    --tint: rgba(52, 211, 153, 0.1);
    --shadow-card: none;
    --shadow-btn: none;
  }
}

/* 2. Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 4.2vw, 2.1rem);
  font-weight: 750;
}

h3 {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

strong,
b {
  font-weight: 700;
}

code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--primary-soft);
  border-radius: 5px;
  padding: 1px 5px;
  word-break: break-word;
}

/* Skip link — first thing in the tab order on every page. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 650;
  text-decoration: none;
}

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

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

@media (max-width: 420px) {
  :root {
    --gutter: 16px;
  }
}

/* 3. Header & footer */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 550;
  padding: 4px 0;
}

.site-nav a:hover {
  color: var(--primary-text);
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  padding-block: 36px 48px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 20px;
  font-weight: 550;
}

.site-footer p {
  max-width: var(--prose);
}

.site-footer .fine {
  font-size: 0.88rem;
}

/* 4. Hero */

.hero {
  background: radial-gradient(900px 520px at 50% -180px, var(--tint), transparent 70%);
  padding-block: clamp(48px, 9vw, 92px) clamp(36px, 6vw, 64px);
}

.hero__inner {
  max-width: 760px;
}

.hero p.lede {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: var(--text-2);
  margin-top: 22px;
  max-width: 40em;
}

.hero p.lede strong {
  color: var(--text);
  font-weight: 650;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-edge);
  color: var(--primary-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--quiet {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--quiet:hover {
  border-color: var(--primary-edge);
}

.btn svg {
  flex: none;
}

/* The App Store slot. Deliberately not a link and deliberately dashed, so
   nobody mistakes it for a live download. Swapping it is one HTML edit. */
.store-slot {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 6px 20px;
  border: 2px dashed var(--primary-edge);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--text-2);
  line-height: 1.3;
}

.store-slot b {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.store-slot span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
}

.hero__note {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--text-2);
  max-width: 46em;
}

/* 5. Sections, cards, grids */

.section {
  padding-block: clamp(40px, 6vw, 68px);
}

.section--tinted {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section__lede {
  color: var(--text-2);
  max-width: var(--prose);
  margin-top: 14px;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.section--tinted .card {
  background: var(--bg);
  box-shadow: none;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-2);
  margin: 0;
  font-size: 0.98rem;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-text);
}

/* Feature rows: words on one side, a mockup on the other. */
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--border);
}

.feature:first-of-type {
  border-top: 0;
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .feature--flip .feature__words {
    order: 2;
  }
}

.feature__words p {
  color: var(--text-2);
  margin-top: 12px;
  margin-bottom: 0;
}

.feature__words p + p {
  margin-top: 12px;
}

/* 6. Mockups — CSS pictures of sentences the app really writes */

figure.mock {
  margin: 0;
}

.mock__frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  font-size: 0.95rem;
}

.section--tinted .mock__frame {
  background: var(--bg);
  box-shadow: none;
}

.mock__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--separator);
}

.mock__head .emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.mock__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mock__when {
  margin-left: auto;
  color: var(--text-2);
  font-size: 0.85rem;
}

.mock__lead {
  font-weight: 650;
  margin-bottom: 12px;
}

.mock__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.mock__steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.mock__steps li b {
  color: var(--text);
  font-weight: 650;
}

.dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.dot--open {
  background: transparent;
  border: 2px solid var(--separator);
}

.mock__crumb {
  color: var(--text-2);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.mock__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--separator);
  font-variant-numeric: tabular-nums;
}

.mock__row:first-of-type {
  border-top: 0;
}

.mock__row span {
  color: var(--text-2);
}

.mock__row b {
  font-weight: 650;
}

.mock__row--keep {
  margin-top: 4px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
}

.mock__row--keep b,
.mock__row--keep span {
  color: var(--primary-text);
  font-weight: 700;
}

/* First row after a block of text inside a mockup. */
.mock__row--gap {
  margin-top: 14px;
}

.mock__hero {
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.mock__caption {
  color: var(--text-2);
  font-size: 0.86rem;
  margin-top: 10px;
}

.mock__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--separator);
  color: var(--text-2);
  font-size: 0.84rem;
}

figcaption {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.86rem;
}

/* 7. Callouts */

.callout {
  background: var(--primary-soft);
  border: 1px solid var(--primary-edge);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}

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

.note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 24px 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.note > :last-child {
  margin-bottom: 0;
}

/* 8. Legal & support pages */

.page-head {
  padding-block: clamp(36px, 6vw, 60px) 8px;
  background: radial-gradient(760px 380px at 20% -160px, var(--tint), transparent 70%);
}

.page-head p {
  color: var(--text-2);
  max-width: var(--prose);
  margin-top: 14px;
}

.updated {
  display: inline-block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 550;
}

.prose {
  max-width: var(--prose);
  padding-bottom: 24px;
}

.prose h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
}

.prose h3 {
  margin-top: 30px;
  margin-bottom: 8px;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--primary-text);
}

/* A callout's heading sits at the top of its own box, so it doesn't take the
   big gap .prose puts above a section heading. Declared after .prose so it
   wins at equal specificity. */
.callout h2,
.callout h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.callout h2 {
  font-size: 1.15rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0 8px;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc li {
  margin-bottom: 4px;
}

/* FAQ */
.faq {
  margin-top: 8px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* The question is a real heading so screen readers and outlines can find it,
   but it shouldn't look bigger than the row it sits in. */
.faq summary h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary-text);
}

.faq details[open] summary::after {
  content: "\2212"; /* true minus sign */
}

.faq .answer {
  padding: 0 18px 16px;
  color: var(--text-2);
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

.faq .answer ol,
.faq .answer ul {
  padding-left: 1.25em;
  margin-bottom: 1em;
}

/* Contact block */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0 8px;
  box-shadow: var(--shadow-card);
}

.contact p {
  margin: 0;
}

.contact__label {
  color: var(--text-2);
  font-size: 0.9rem;
}

.contact__value {
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-word;
}

/* 9. Preferences */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
