/* The app's own palette (App/Sudoku/Shared/Theme.swift): cream page, plum ink, purple
   pencil, the star tile's gold. System fonts only: nothing is fetched from anyone else. */
:root {
  --page: #FFF6EC;
  --paper: #FFFFFF;
  --ink: #2B2340;
  --muted: #6F6680;
  --pencil: #5B4FE0;
  --plum: #2B2340;
  --plum-deep: #231B36;
  --gold: #FFC53D;
  --line: #EDE3D8;
  --shadow: 0 18px 40px rgba(90, 62, 32, 0.14);
  --radius: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #17131F;
    --paper: #262033;
    --ink: #F3EEFF;
    --muted: #A29BB3;
    --pencil: #A9A2FF;
    --line: #3A3248;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--pencil); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

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

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.top nav { display: flex; gap: 18px; font-weight: 700; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero: plum, like the icon */
.hero {
  background: linear-gradient(160deg, #3D2F6B, var(--plum-deep));
  color: #FFFFFF;
  border-radius: 32px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--gold); }

.hero p.lede { font-size: 20px; color: #E9DDFF; margin: 0 0 28px; max-width: 34ch; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--plum);
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  min-height: 48px;
}

.cta svg { width: 22px; height: 22px; }

.note { color: #CFC4EA; font-size: 14px; margin: 12px 0 0; }

.phone {
  justify-self: center;
  width: min(300px, 100%);
  border-radius: 40px;
  padding: 10px;
  background: #120E1C;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.phone img { display: block; width: 100%; height: auto; border-radius: 31px; }

/* Sections */
section { padding: 72px 0 0; }

section > h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

section > p.sub { color: var(--muted); margin: 0 0 32px; max-width: 60ch; font-size: 19px; }

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

.feature {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feature h3 { margin: 0 0 6px; font-size: 21px; }
.feature p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }

.feature img {
  display: block;
  width: 78%;
  height: auto;
  margin: auto auto 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 24px rgba(43, 35, 64, 0.12);
}

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

.fact {
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.fact strong { display: block; font-size: 30px; line-height: 1.1; }
.fact span { color: var(--muted); font-size: 15px; }

.price {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.price h3 { margin: 0 0 10px; font-size: 22px; }
.price ul { margin: 0; padding-left: 20px; }
.price li { margin: 6px 0; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
}

/* Text pages: privacy, support */
.doc { max-width: 720px; padding: 24px 0 0; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 8px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink); }

footer {
  margin-top: 88px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 40px 24px; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature img { width: 62%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price { grid-template-columns: minmax(0, 1fr); padding: 24px; }
}

@media (max-width: 420px) {
  .top nav { gap: 12px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
