/* Recur website. Colours follow app/Recur/Components/UI/Theme.swift. */

:root {
  color-scheme: light dark;

  --brand: #1e8c45;
  --brand-strong: #17733a; /* text and buttons on light backgrounds (passes AA with white) */
  --on-brand: #ffffff;
  --canvas: #f5f7f5;
  --surface: #ffffff;
  --border: #e4eae5;
  --mint: #eef8f1;
  --text: #121a15;
  --text-muted: #4f5b53;
  --sidebar-top: #0e5a32;
  --sidebar-bottom: #083a20;
  --focus: #1e8c45;
  --shadow: 0 1px 2px rgb(8 58 32 / 0.06), 0 12px 32px rgb(8 58 32 / 0.08);

  --radius: 14px;
  --radius-small: 10px;
  --max: 1120px;
  --gutter: 20px;

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

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #34b35f;
    --brand-strong: #34b35f;
    --on-brand: #06200f;
    --canvas: #101512;
    --surface: #19201b;
    --border: #2a332d;
    --mint: #16261b;
    --text: #eef2ef;
    --text-muted: #a3ada6;
    --sidebar-top: #0b3f24;
    --sidebar-bottom: #062615;
    --focus: #4cc274;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--brand-strong);
  text-underline-offset: 0.18em;
}

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

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-small);
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

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

.narrow {
  max-width: 720px;
}

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--brand-strong);
  color: var(--on-brand);
}

.button-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.button-muted {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Hero */

.hero {
  background: linear-gradient(180deg, var(--mint), var(--canvas));
  padding: 64px 0 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--brand-strong);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero .button-row {
  justify-content: center;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.shot {
  margin: 48px auto 0;
  max-width: 1040px;
}

.shot img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.shot figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature p {
  color: var(--text-muted);
  margin: 0;
}

.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--brand-strong);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.feature .icon svg {
  width: 22px;
  height: 22px;
}

.soon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--brand-strong);
  vertical-align: middle;
  margin-left: 6px;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 7px;
  height: 12px;
  border: solid var(--brand);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Privacy band */

.privacy-band {
  background: linear-gradient(180deg, var(--sidebar-top), var(--sidebar-bottom));
  color: #ffffff;
}

.privacy-band .section-head p,
.privacy-band p {
  color: rgb(255 255 255 / 0.85);
}

.privacy-band a {
  color: #ffffff;
}

.privacy-band :focus-visible {
  outline-color: #ffffff;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.privacy-grid li {
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  padding: 22px;
}

.privacy-grid h3 {
  color: #ffffff;
}

.privacy-grid p {
  margin: 0;
}

/* Pricing */

.pricing {
  scroll-margin-top: 24px;
}

.price-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.price {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 8px 0 4px;
}

.price-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.price-card .ticks {
  text-align: left;
  margin: 0 auto 28px;
  max-width: 360px;
}

.price-card .button-row {
  flex-direction: column;
  align-items: stretch;
}

.price-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 16px 0 0;
}

/* FAQ */

.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 32px 14px 0;
  position: relative;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-strong);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* Simple pages (thanks, privacy, 404) */

.page {
  padding: 56px 0 72px;
}

.page h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
}

.page ol,
.page ul {
  padding-left: 1.3em;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

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

.muted {
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text-muted);
}

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

  .hero {
    padding-top: 44px;
  }

  .section {
    padding: 56px 0;
  }

  .price-card {
    padding: 24px 20px;
  }
}

.page .lead {
  margin-left: 0;
  margin-right: 0;
}
