/* Offcycle marketing site — tokens from src/ui/theme.ts (light / dark, ember accent). */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-400.woff") format("woff");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-600.woff") format("woff");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Inter-700.woff") format("woff");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/Inter-800.woff") format("woff");
}

:root {
  color-scheme: light dark;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface2: #eef0f3;
  --line: #e2e5ea;
  --text: #0e1116;
  --text2: #555b66;
  --text3: #686e79;
  --accent: #e4572e;
  --accent-text: #c44720; /* darker than ember so small text/links meet 4.5:1 on --bg */
  --accent-btn: #c44720;
  --on-accent: #ffffff;
  --accent-soft: rgba(228, 87, 46, 0.12);
  --good: #0b7a55;
  --warn: #8f5f14;
  --overlay: rgba(14, 17, 22, 0.4);
  --shadow: 0 18px 50px rgba(14, 17, 22, 0.16);
  --header-h: 3.5rem;
  --wrap: 70rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --font: Inter, "Inter var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-page: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #111214;
    --surface2: #1c1d21;
    --line: #2a2b31;
    --text: #f5f6f8;
    --text2: #a9adb8;
    --text3: #7a808b;
    --accent: #ff7a50;
    --accent-text: #ff7a50;
    --accent-btn: #ff7a50;
    --on-accent: #0b0b0c;
    --accent-soft: rgba(255, 122, 80, 0.16);
    --good: #34d399;
    --warn: #f6c453;
    --overlay: rgba(0, 0, 0, 0.6);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  }
}

@media (min-width: 768px) {
  :root { --space-page: 2rem; }
}
@media (min-width: 1440px) {
  :root { --space-page: 3rem; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 100;
  background: var(--accent-btn);
  color: var(--on-accent);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

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

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

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.logo:hover { color: var(--accent-text); text-decoration: none; }
.logo span { color: var(--accent-text); }

.nav-primary {
  display: none;
  gap: 0.25rem 1.1rem;
  align-items: center;
}
.nav-primary a {
  color: var(--text2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.45rem 0;
}
.nav-primary a:hover,
.nav-primary a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  position: relative;
}
.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  min-width: 12.5rem;
  display: flex;
  flex-direction: column;
}
.nav-toggle nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
}
.nav-toggle nav a:hover,
.nav-toggle nav a[aria-current="page"] { background: var(--surface2); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  line-height: 1.2;
}
.pill-header { display: none; }

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .nav-primary { display: flex; }
  .pill-header { display: inline-flex; }
}

/* ----- Hero ----- */
.hero {
  padding: 2rem 0 2.5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  margin: 0 0 0.6rem;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.lede {
  margin: 0 0 1.4rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text2);
  max-width: 36rem;
}
.hero-cta { margin-bottom: 1.1rem; }
.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  color: var(--text2);
  font-weight: 600;
  font-size: 0.9375rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-points li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--good);
  flex: 0 0 auto;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  background: #0e1116;
  color: #f5f6f8;
  border-radius: 0.65rem;
  padding: 0.55rem 1.05rem 0.6rem;
  min-height: 3.25rem;
  min-width: 10.5rem;
  text-decoration: none;
  line-height: 1.15;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  cursor: default;
}
.store-badge .kicker {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9adb8;
}
.store-badge .name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f6f8;
}
@media (prefers-color-scheme: dark) {
  .store-badge {
    background: #f5f6f8;
    color: #0e1116;
    box-shadow: none;
  }
  .store-badge .kicker { color: #555b66; }
  .store-badge .name { color: #0e1116; }
}

.hero-copy,
.hero-shots,
.feature,
.feature-copy,
.feature-media {
  min-width: 0;
  max-width: 100%;
}
.feature-media,
.device,
.device-card,
picture {
  max-width: 100%;
}

.hero-shots {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 22rem;
  overflow: hidden;
}
.device {
  background: #0e1116;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.device.phone {
  width: min(17.5rem, 72vw);
  border-radius: 2rem;
  padding: 0.5rem;
}
.device.phone img,
.device.phone picture,
.device.phone picture img {
  width: 100%;
  height: auto;
  border-radius: 1.55rem;
  background: var(--surface2);
}
.device.tablet {
  width: 100%;
  border-radius: 1.15rem;
  padding: 0.45rem;
}
.device.tablet img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
}
.device-card {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1e2433;
}
.device-card img { width: 100%; height: auto; }

.phone-front { position: relative; z-index: 2; }
.phone-back { display: none; }

@media (min-width: 768px) {
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-shots {
    min-height: 28rem;
    padding: 1rem 2rem 0;
  }
  .phone-back {
    display: block;
    position: absolute;
    width: min(16rem, 40vw);
    z-index: 1;
    right: 4%;
    top: 8%;
    transform: rotate(7deg);
    opacity: 0.96;
  }
  .phone-front {
    margin-right: 18%;
    width: min(18.5rem, 44vw);
  }
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 1.05fr);
    gap: 2.5rem;
    align-items: center;
  }
  .hero { padding: 3.25rem 0 4rem; }
  .phone-front { width: 19rem; margin-right: 22%; }
  .phone-back { width: 17rem; right: 6%; }
}

/* ----- Sections ----- */
.section {
  padding: 2.75rem 0;
}
.section-header {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.section h2,
.feature h2,
.doc-page h1 {
  margin: 0 0 0.6rem;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.section-header p,
.feature p {
  margin: 0;
  color: var(--text2);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.feature p + p { margin-top: 0.75rem; }

.features { display: flex; flex-direction: column; gap: 3rem; }

.feature {
  display: grid;
  gap: 1.25rem;
}
.feature-copy h2 { margin-bottom: 0.55rem; }
.kicker {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-text);
}

@media (min-width: 900px) {
  .features { gap: 4.5rem; }
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 3.5rem;
    align-items: center;
  }
  .feature-alt .feature-copy { order: 2; }
}

/* ----- Pricing ----- */
.plans + .plan-table-wrap { margin-top: 1.5rem; }
.plan-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
}
.plan-table th,
.plan-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.plan-table tr:last-child th,
.plan-table tr:last-child td { border-bottom: 0; }
.plan-table thead th {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text3);
  background: var(--surface2);
}
.plan-table tbody th {
  font-weight: 600;
  color: var(--text);
  width: 50%;
}
.plan-table .yes {
  font-weight: 700;
  color: var(--good);
}
.plan-table .no {
  color: var(--text3);
}
.pricing-note {
  margin: 1.1rem 0 0;
  color: var(--text2);
  font-size: 1rem;
  max-width: 40rem;
}

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.15rem 1.15rem;
  min-width: 0;
}
.plan h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text3);
}
.plan-price {
  margin: 0;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.plan-cadence {
  margin: 0.35rem 0 0;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.4;
}
.plan-tag {
  margin: 0 0 0.45rem;
  display: inline-block;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.plan-yearly {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}
@media (min-width: 640px) {
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .plans { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
}

/* ----- FAQ ----- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 44rem;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.15rem 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-weight: 700;
  color: var(--text3);
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--text2);
}

/* ----- CTA band ----- */
.cta-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta-inner h2 { margin: 0; }
.cta-inner p { margin: 0.3rem 0 0; color: var(--text2); }

/* ----- Footer ----- */
.site-footer {
  margin-top: auto;
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--text2);
  font-size: 0.9375rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}
@media (max-width: 799px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.footer-links a { color: var(--text2); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-copy { margin: 0; }

/* ----- Inner pages ----- */
.doc-page {
  width: 100%;
  max-width: 46rem;
  padding: 2rem var(--space-page) 3.5rem;
  margin-inline: auto;
}
.doc-page h1 { margin-bottom: 0.75rem; }
.doc-page h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.doc-page p, .doc-page li { color: var(--text); line-height: 1.55; overflow-wrap: anywhere; }
.doc-page p { margin: 0 0 0.85rem; }
.doc-page ul, .doc-page ol { margin: 0 0 0.85rem; padding-left: 1.2rem; }
.doc-page li { margin: 0.25rem 0; }
.doc-page a { font-weight: 600; }

.banner {
  background: var(--accent-soft);
  border: 1px dashed var(--warn);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.banner p { margin: 0; color: var(--text); }

mark.placeholder {
  background: #f6c453;
  color: #1a1203;
  outline: 1px dashed #8f5f14;
  padding: 0 0.22em;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.92em;
}
@media (prefers-color-scheme: dark) {
  mark.placeholder {
    background: #f6c453;
    color: #1a1203;
  }
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  margin: 0 0 1.5rem;
}
.support-card a { font-weight: 700; word-break: break-word; }

/* 404 */
.not-found {
  padding: 4rem 0 5rem;
  text-align: center;
}
.not-found h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.6rem;
}
.not-found p { color: var(--text2); margin: 0 0 1.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-btn);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  min-height: 2.75rem;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; color: var(--on-accent); }

@media (min-width: 1440px) {
  .hero h1 { font-size: 3.5rem; }
}
