/* Satoa website. System fonts, iOS grouped surfaces, one green accent.
   Light and dark follow the visitor's appearance setting. Green text and
   buttons reach 4.5:1 in both, as in the app: white on the dark green in
   light mode, black on the system green in dark mode. */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --green: #1a7f3c;
  --green-strong: #1a7f3c;
  --green-hover: #166d33;
  --on-green: #ffffff;
  --green-tint: rgba(52, 199, 89, 0.12);
  --orange: #c93400;
  --red: #d70015;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
  --radius: 28px;
  --wrap: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: rgba(255, 255, 255, 0.1);
    --green: #30d158;
    --green-strong: #30d158;
    --green-hover: #34c759;
    --on-green: #000000;
    --green-tint: rgba(48, 209, 88, 0.14);
    --orange: #ff9f0a;
    --red: #ff453a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav nav a { color: var(--text-2); }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav nav a.pill { color: var(--on-green); background: var(--green-strong); padding: 6px 14px; border-radius: 980px; font-weight: 500; }
.nav nav a.pill:hover { background: var(--green-hover); }
@media (max-width: 700px) { .nav nav a:not(.pill) { display: none; } }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-strong); color: var(--on-green);
  font-size: 17px; font-weight: 500;
  padding: 12px 24px; border-radius: 980px;
}
.button:hover { background: var(--green-hover); text-decoration: none; }
.link-arrow { font-size: 17px; }
.link-arrow::after { content: " ›"; }
.actions { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }

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

.hero { text-align: center; padding: 88px 0 40px; }
.hero .app-icon { width: 128px; height: 128px; margin: 0 auto 28px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18)); }
.hero h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.05; font-weight: 700; }
.hero .subhead { font-size: clamp(19px, 2.4vw, 24px); color: var(--text-2); max-width: 680px; margin: 20px auto 32px; line-height: 1.35; }
.hero .meta { margin-top: 18px; font-size: 14px; color: var(--text-2); }

.stage {
  display: flex; justify-content: center; align-items: flex-end; gap: 28px;
  padding: 48px 0 24px; overflow: hidden;
}
.stage .phone:nth-child(1), .stage .phone:nth-child(3) { transform: translateY(40px) scale(0.9); opacity: 0.96; }
@media (max-width: 820px) { .stage .phone:nth-child(1), .stage .phone:nth-child(3) { display: none; } }

/* A phone is the screenshot in a rounded black bezel. */
.phone {
  width: 290px; flex: none;
  padding: 10px; border-radius: 56px;
  background: #0a0a0a;
  box-shadow: var(--shadow), inset 0 0 0 2px #2a2a2a;
}
.phone img { border-radius: 46px; width: 100%; }
.phone.small { width: 260px; }

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

section { padding: 96px 0; }
section.alt { background: var(--surface); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.section-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 700; }
.section-lead { font-size: 21px; color: var(--text-2); max-width: 720px; margin: 18px 0 0; line-height: 1.4; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; }
.feature-text h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 700; }
.feature-text p { color: var(--text-2); font-size: 19px; margin: 18px 0 0; }
.feature-text ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.feature-text li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.feature-text li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .feature-text li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330d158' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  }
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-media { order: 0; }
  section { padding: 72px 0; }
}

/* ---------- Tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.tile { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
section.alt .tile { background: var(--surface-2); box-shadow: none; }
.tile .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-tint); margin-bottom: 18px; }
.tile .glyph svg { width: 24px; height: 24px; stroke: var(--green); }
.tile h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.tile p { color: var(--text-2); margin: 8px 0 0; font-size: 16px; }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Score card ---------- */

.score-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.score-card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.score-row { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score-row .pts { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.score-row .what { font-weight: 600; }
.score-row .why { color: var(--text-2); font-size: 15px; margin-top: 2px; }
.score-row .bar { height: 8px; border-radius: 4px; background: var(--surface-2); margin-top: 10px; overflow: hidden; }
.score-row .bar span { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.score-cap { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 59, 48, 0.1); color: var(--red); font-size: 15px; font-weight: 500; }
.score-notes { color: var(--text-2); font-size: 15px; }
.score-notes p { margin: 0 0 14px; }
@media (max-width: 820px) { .score-grid { grid-template-columns: 1fr; } }

/* ---------- Questions ---------- */

.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { background: var(--surface); border-radius: 20px; padding: 0 22px; margin-bottom: 10px; box-shadow: var(--shadow); }
section.alt .faq details { background: var(--surface-2); box-shadow: none; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-2); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--text-2); }

/* ---------- Closing & footer ---------- */

.closing { text-align: center; padding: 110px 0; }
.closing img { width: 96px; height: 96px; margin: 0 auto 24px; }
.closing h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; line-height: 1.08; }
.closing p { color: var(--text-2); font-size: 19px; margin: 16px 0 28px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 13px; color: var(--text-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-2); }

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

.legal { max-width: 720px; margin: 0 auto; padding: 64px 22px 96px; }
.legal h1 { font-size: 44px; font-weight: 700; }
.legal .effective { color: var(--text-2); margin: 8px 0 36px; }
.legal h2 { font-size: 24px; font-weight: 600; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal .card { background: var(--surface); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); margin: 24px 0; }

.picture-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .picture-light { display: none; }
  .picture-dark { display: block; }
}

.score-notes .section-title { color: var(--text); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
