/* SpeedyMac website. Same tokens as the app (App/Theme.swift): lime is the only accent. */
:root {
  --canvas: #F3F5F1;
  --card: #FFFFFF;
  --ink: #0E0F0C;
  --body: #454745;
  --lime: #9FE870;
  --lime-hover: #8FDB5F;
  --lime-pale: #E2F6D5;
  --lime-pale-hover: #D3EFC0;
  --highlight: #DCF4C9;
  --ink-deep: #163300;
  --accent-text: #2F6B12;
  --on-highlight: #2E4223;
  --positive: #054D28;
  --warning-bg: #FFF4C2;
  --warning-text: #4A3B1C;
  --focus: #3F8F1E;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--ink-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding-top: 88px; }
.muted { color: var(--body); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand strong { font-size: 20px; font-weight: 800; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 12px; border-radius: 12px; }
.nav a:hover { background: var(--lime-pale); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn.small-btn { min-height: 44px; font-size: 15px; padding: 0 20px; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-hover); color: var(--ink); }
.btn-soft { background: var(--lime-pale); color: var(--ink-deep); }
.btn-soft:hover { background: var(--lime-pale-hover); color: var(--ink-deep); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn[data-disabled="true"] { visibility: hidden; }

/* Pills and cards */
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--lime-pale); color: var(--positive); }
.pill.warn { background: var(--warning-bg); color: var(--warning-text); }
.pill.plain { background: var(--canvas); color: var(--body); }
.pill.plus { background: var(--lime); color: var(--ink); font-weight: 800; font-size: 12px; padding: 3px 10px; }
.card { background: var(--card); border-radius: 24px; }
.tile { width: 48px; height: 48px; border-radius: 15px; background: var(--lime-pale); display: flex; align-items: center; justify-content: center; flex: none; }
.tile.small { width: 36px; height: 36px; border-radius: 11px; }
.highlight { background: var(--highlight); border-radius: 32px; }
/* Colored sections always run the full page width; their content stays in .wrap. */
.band { background: var(--highlight); }
.band-gap { margin-top: 88px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 24px; }
.hero-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-copy .pill { align-self: flex-start; font-size: 14px; padding: 7px 14px; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; font-weight: 900; letter-spacing: -0.03em; }
.footnote-mark { font-size: .45em; vertical-align: super; margin-left: .08em; text-decoration: none; color: var(--body); }
.footnote-mark:hover { color: var(--ink); }
.lead { font-size: 20px; color: var(--body); max-width: 540px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-shot { flex: 1 1 520px; min-width: 0; }
.hero-shot img { border-radius: 16px; box-shadow: 0 18px 40px rgba(22, 51, 0, .18); }

/* Grids */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding-top: 24px; }
.promises .card { padding: 18px 20px; display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 15px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 900; }
.section-head p { font-size: 18px; color: var(--body); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 190px; }
.feature-top { display: flex; justify-content: space-between; align-items: flex-start; }
.feature h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.feature p { font-size: 15px; color: var(--body); }

/* Safety */
.safety { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.safety-copy { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.safety-copy .eyebrow { font-size: 15px; font-weight: 700; color: var(--accent-text); }
.safety-copy h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 900; color: var(--ink-deep); }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--on-highlight); counter-reset: step; }
.steps li { display: flex; gap: 12px; }
.steps li::before { counter-increment: step; content: counter(step); font-weight: 800; color: var(--ink-deep); min-width: 24px; }
.easy-shot { flex: 1 1 520px; min-width: 0; }
.easy-shot img { border-radius: 16px; box-shadow: 0 18px 40px rgba(22, 51, 0, .18); }
.steps strong { color: var(--ink-deep); }
.scan-dot { width: 120px; height: 120px; border-radius: 60px; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; box-shadow: 0 0 0 12px rgba(159, 232, 112, .35), 0 14px 30px rgba(22, 51, 0, .18); }
.rules { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rule { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.rule-top { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 800; }
.rule p { font-size: 15px; color: var(--body); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* Split section */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > img { flex: 1 1 520px; min-width: 0; border-radius: 20px; box-shadow: 0 18px 40px rgba(22, 51, 0, .14); }
.split > div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.split h2 { font-size: clamp(30px, 3.4vw, 38px); font-weight: 900; }
.split p { font-size: 18px; color: var(--body); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.plan { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { outline: 3px solid var(--lime); outline-offset: -3px; }
.plan h3 { font-size: 24px; font-weight: 800; }
.price { font-size: 44px; font-weight: 900; margin-top: 6px; }
.price span { font-size: 17px; font-weight: 600; color: var(--body); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--on-highlight); }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F8F1E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.checks li.heading::before { display: none; }
.checks li.heading { font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* Download box */
.download { padding: 36px 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.download img { width: 88px; height: 88px; }
.download-info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.download h2 { font-size: 30px; font-weight: 900; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border-radius: 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; font-size: 18px; font-weight: 700; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 18px; height: 18px; flex: none; transition: transform .2s; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163300' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 24px 22px; font-size: 16px; color: var(--body); }

/* Download page */
.install { display: flex; flex-wrap: wrap; gap: 16px; }
.install .card { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 260px; min-width: 0; }
.num { width: 40px; height: 40px; border-radius: 13px; background: var(--lime); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; }
code.block { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--canvas); border-radius: 12px; padding: 12px 14px; overflow-wrap: anywhere; }

/* Release notes and legal pages */
.release { padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.release header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.release h2 { font-size: 26px; font-weight: 900; }
.release ul, .prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--on-highlight); }
.prose { padding: 36px 40px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.prose h2 { font-size: 22px; font-weight: 800; margin-top: 12px; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-top: 72px; padding-bottom: 48px; font-size: 14px; color: var(--body); }
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 640px) {
  /* Phones: logo and one button in the header; the sections are a short scroll away. */
  .site-header .nav { display: none; }
  .download, .prose { padding: 28px 22px; }
  .safety { padding-top: 48px; padding-bottom: 48px; }
  .band-gap { margin-top: 64px; }
  .section { padding-top: 64px; }
}
