:root {
  color-scheme: light;
  --bg: #f8f5ef;
  --bg-2: #f2ede4;
  --ink: #1d2430;
  --muted: #665f55;
  --faint: #746d62;
  --line: rgba(29, 36, 48, 0.1);
  --line-strong: rgba(29, 36, 48, 0.18);
  --accent: #c74e2e;
  --accent-strong: #a53d22;
  --accent-soft: rgba(199, 78, 46, 0.1);
  --surface: #fffefa;
  --surface-soft: rgba(255, 255, 252, 0.72);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 50px -24px rgba(39, 31, 20, 0.28);
  --shadow-strong: 0 2px 4px rgba(39, 31, 20, 0.06), 0 30px 70px -18px rgba(39, 31, 20, 0.32), 0 70px 120px -50px rgba(39, 31, 20, 0.24);
  --radius: 20px;
  --container: 1120px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(70% 55% at 88% 0%, rgba(199, 78, 46, 0.12), transparent 62%),
    radial-gradient(55% 45% at 0% 100%, rgba(199, 78, 46, 0.06), transparent 66%),
    linear-gradient(150deg, #fbf8f2 0%, #f6f0e7 58%, #f0e8dc 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-strong);
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 239, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(39, 31, 20, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
  padding: 78px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: 6%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(199, 78, 46, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 20px;
  right: calc(6% + 90px);
  width: 240px;
  height: 240px;
  border: 1px solid rgba(199, 78, 46, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

h1 {
  max-width: 12ch;
  margin: 22px 0 20px;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.lede {
  max-width: 34em;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.55;
}

.lede b {
  color: var(--ink);
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(199, 78, 46, 0.22);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.btn-store {
  min-height: 56px;
  padding: 0 26px;
  gap: 10px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 15.5px;
  box-shadow: 0 10px 24px -8px rgba(199, 78, 46, 0.5), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.btn-store:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

.btn-store svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.store-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.hero-art {
  position: relative;
  z-index: 1;
}

.hero-art img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

/* Sections ---------------------------------------------------------- */

section {
  padding: 54px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 28px;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.card .icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.card .icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.58;
}

/* How it works ------------------------------------------------------ */

.how-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 40px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 22px 54px;
  counter-increment: step;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow);
}

.steps h3 {
  margin: 6px 0 4px;
  font-size: 15.5px;
  font-weight: 650;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.58;
}

.how-art img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

/* Screens ----------------------------------------------------------- */

.screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.screens img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Privacy CTA ------------------------------------------------------- */

.privacy-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(199, 78, 46, 0.12), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}

.privacy-cta h2 {
  margin-bottom: 8px;
}

.privacy-cta p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Footer ------------------------------------------------------------ */

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0 32px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--faint);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Legal page -------------------------------------------------------- */

.legal {
  max-width: 760px;
  padding: 56px 0 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.legal h1 {
  max-width: none;
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.legal .meta {
  margin: 0 0 34px;
  color: var(--faint);
  font-size: 13px;
}

.legal h2 {
  margin: 36px 0 8px;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.72;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

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

.legal strong {
  color: var(--ink);
  font-weight: 650;
}

.legal .callout {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
}

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

/* Responsive -------------------------------------------------------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 56px 0 40px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  h1 {
    max-width: 14ch;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .how-art {
    order: -1;
  }

  .screens {
    grid-template-columns: 1fr;
  }

  .privacy-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 28px;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 62px;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .nav .optional {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .actions {
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .btn-store {
    min-height: 54px;
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }

  section {
    padding: 38px 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
  }

  .hero-art img,
  .how-art img,
  .screens img {
    border-radius: 16px;
  }

  .legal {
    padding: 40px 0 56px;
  }

  .legal p,
  .legal li {
    font-size: 15px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
