/* sPresso — direction "Encre": ink on paper, colour kept for meaning (the rating). */
:root {
  --paper: #ffffff;
  --ink: #1c1c1e;
  --graphite: #6e6e73;
  --mist: #f5f5f7;
  --line: #e5e5ea;
  --porcelain: #fbf8f3;
  --good: #0e9f6e;
  --fair: #c77700;
  --poor: #d4342c;
  --radius-phone: 44px;
  --measure: 34rem;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --ink: #f5f5f7;
    --graphite: #98989d;
    --mist: #1c1c1e;
    --line: #2c2c2e;
    --good: #30d158;
    --fair: #ffb340;
    --poor: #ff6961;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }

.bar, main > section, .foot {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; text-decoration: none;
}
.wordmark img { border-radius: 7px; }
.lang { color: var(--graphite); text-decoration: none; font-size: 0.95rem; }
.lang:hover { color: var(--ink); }

/* Hero: the promise on the left, the app itself on the right. */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 88px);
  align-items: center; padding-block: clamp(32px, 7vw, 96px) clamp(56px, 9vw, 128px);
}
.hero-text { display: grid; gap: 28px; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--graphite); max-width: var(--measure); }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600;
}
.badge::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 30%, transparent);
}
.note { color: var(--graphite); font-size: 0.95rem; }

.phone { margin: 0; justify-self: center; width: min(360px, 100%); }
.phone img {
  border-radius: var(--radius-phone);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.28), 0 8px 24px -8px rgb(0 0 0 / 0.12);
}

/* Three numbers. */
.three { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.three h2 { max-width: 18ch; }
.traits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.trait { display: grid; gap: 10px; }
.trait p { color: var(--graphite); }

/* The rating calculator: the one loud element of the page. */
.calc {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px);
  align-items: center; padding-block: clamp(48px, 7vw, 96px);
}
.calc-copy { display: grid; gap: 20px; }
.calc-copy p { color: var(--graphite); max-width: var(--measure); }
.calc-box {
  display: grid; gap: 26px;
  background: var(--mist); border-radius: 36px; padding: clamp(28px, 4vw, 48px);
}
.score {
  font: 600 clamp(5rem, 13vw, 9.5rem)/0.9 var(--sans);
  font-variant-numeric: tabular-nums; letter-spacing: -0.05em; color: var(--good);
  transition: color 0.3s ease;
}
.score[data-tier="fair"] { color: var(--fair); }
.score[data-tier="poor"] { color: var(--poor); }
.score-label { color: var(--graphite); margin-top: -10px; }
.calc-box label {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline;
  font-weight: 500;
}
.calc-box label output { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-box input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); height: 28px; margin: 0; }

/* Feature rows: the app on one side, what it means on the other. */
.feature {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px);
  align-items: center; padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line);
}
.feature > div { display: grid; gap: 20px; }
.feature p { color: var(--graphite); max-width: var(--measure); font-size: 1.1rem; }
.feature-flip .phone { order: 2; }

.privacy {
  padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line);
  display: grid; gap: 20px;
}
.privacy h2 { max-width: 20ch; }
.privacy p { color: var(--graphite); max-width: 40rem; font-size: 1.15rem; }

.faq { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.faq details, .faq h2 { max-width: 820px; }
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { color: var(--graphite); padding-bottom: 24px; max-width: 42rem; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 40px 56px; border-top: 1px solid var(--line); color: var(--graphite); font-size: 0.95rem;
}

@media (max-width: 860px) {
  .hero, .calc, .feature { grid-template-columns: 1fr; }
  .feature-flip .phone { order: 0; }
  .traits { grid-template-columns: 1fr; gap: 28px; }
  .phone { width: min(300px, 80%); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Privacy and terms: plain reading pages. */
.legal { display: grid; gap: 14px; padding-block: 32px 80px; max-width: 44rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.3rem; margin-top: 18px; }
.legal p { color: var(--graphite); }
.foot a { color: inherit; }
