/*
 * Anaar's marketing site. Every colour here is a token from the app's own design system
 * (anaar-mobile-v1/src/theme/tokens.json, v12): ground, surface, ink, pom, sun and the four scale colours, each with
 * the dark value the token carries. The type is the app's: Baloo 2 for display, Figtree for body.
 */
:root {
  --ground: #fbf4ef;
  --surface: #ffffff;
  --surface-2: #f6eae4;
  --line: #e3d3cd;
  --ink: #23161b;
  --ink-2: #6b575e;
  --ink-3: #857177;
  --pom: #d2203e;
  --pom-deep: #9f1934;
  --on-pom: #ffffff;
  --pom-soft: #fde3e8;
  --pom-text: #b5162f;
  --sun: #ffc93c;
  --great: #22955c;

  --display: 'Baloo 2', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 20px;
  --radius: 20px;
  --shot-radius: 30px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1a1114;
    --surface: #261b1f;
    --surface-2: #33262b;
    --line: #3f3035;
    --ink: #fbf3f5;
    --ink-2: #b8a6ac;
    --ink-3: #8f7f85;
    --pom: #ff6b86;
    --pom-deep: #b0304a;
    --on-pom: #3d0a17;
    --pom-soft: #4a1b27;
    --pom-text: #ff8ea3;
    --sun: #ffd35a;
    --great: #43c47f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

a {
  color: var(--pom);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--pom);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Header */
.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px var(--gutter);
}

.brand img {
  width: auto;
  height: 38px;
}

.ghost {
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  white-space: nowrap;
}

.ghost:hover {
  border-color: var(--pom);
  color: var(--pom);
}

/* Shared shapes */
.button {
  display: inline-block;
  background: var(--pom);
  color: var(--on-pom);
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
}

.button:hover {
  background: var(--pom-deep);
  color: #fff;
}

.shot,
.hero-shot img,
.feature-shot img {
  border-radius: var(--shot-radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -28px rgba(35, 22, 27, 0.5);
  max-width: 320px;
  width: 100%;
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px var(--gutter) 72px;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--pom);
  background: var(--pom-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 68px);
  margin-bottom: 20px;
}

.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--ink-2);
  max-width: 34ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 30px 0 18px;
}

.link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--pom-soft);
  padding-bottom: 2px;
}

.footnote {
  font-size: 15px;
  color: var(--ink-3);
}

.hero-shot {
  display: flex;
  justify-content: center;
}

/* Features */
.features {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.feature {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px var(--gutter);
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature + .feature {
  border-top: 1px solid var(--line);
}

.feature h2 {
  font-size: clamp(30px, 5vw, 40px);
  margin-bottom: 14px;
}

.feature p {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 42ch;
}

.feature-shot {
  display: flex;
  justify-content: center;
}

/* Strip */
.strip {
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px var(--gutter) 24px;
}

.strip h2 {
  font-size: clamp(28px, 4.5vw, 36px);
  margin-bottom: 32px;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

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

.points h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.points p {
  color: var(--ink-2);
  font-size: 16px;
}

/* Closing call to action */
.cta {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px var(--gutter);
  text-align: center;
}

.cta h2 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 14px;
}

.cta p {
  color: var(--ink-2);
  font-size: 19px;
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 56px;
  text-align: center;
  color: var(--ink-2);
}

.site-footer img {
  height: 30px;
  width: auto;
  margin: 0 auto 16px;
  opacity: 0.85;
}

.site-footer p {
  font-size: 15px;
}

.site-footer .small {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
}

/* Wider screens */
@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 40px;
    padding-bottom: 96px;
  }

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

  .feature.reverse .feature-copy {
    order: 2;
  }

  .points {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* Legal pages */
.prose {
  max-width: 740px;
  margin: 0 auto;
  padding: 16px var(--gutter) 72px;
}

.prose h1 {
  font-size: clamp(34px, 6vw, 46px);
  margin-bottom: 10px;
}

.prose .updated {
  color: var(--ink-3);
  font-size: 15px;
  margin-bottom: 28px;
}

.prose .lede {
  max-width: none;
  margin-bottom: 8px;
}

.prose h2 {
  font-size: clamp(24px, 3.6vw, 29px);
  margin: 44px 0 12px;
}

.prose h3 {
  font-size: 20px;
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  color: var(--ink-2);
  margin-bottom: 14px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul {
  padding-left: 22px;
  margin: 0 0 14px;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 16px;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.prose th {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
}

.prose .callout {
  background: var(--pom-soft);
  border: 1px solid var(--pom);
  border-radius: var(--radius);
  padding: 22px 24px 8px;
  margin-bottom: 8px;
}

.prose .callout p {
  color: var(--ink);
}

.prose .callout strong {
  color: var(--pom-text);
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--pom);
}
