/* Renoa — one stylesheet for every page. System font, neutral greys, one accent.
   Light and dark follow prefers-color-scheme. Mobile first; 16px side gutters. */

:root {
  color-scheme: light dark;
  --bg: #fff;
  --bg-alt: #f2f2f7;
  --grouped: #f2f2f7;
  --card: #fff;
  --fill: #f2f2f7;
  --fill-2: #e5e5ea;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #aeaeb2;
  --sep: #d2d2d7;
  --accent: #7312d4;
  --accent-pressed: #5a0ea8;
  --accent-text: #7312d4;
  --bezel: #1d1d1f;
  --ring: rgba(0, 0, 0, .06);
  --gutter: 16px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-alt: #161618;
    --grouped: #000;
    --card: #1c1c1e;
    --fill: #2c2c2e;
    --fill-2: #3a3a3c;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #636366;
    --sep: #38383a;
    --accent-text: #b78cff;
    --bezel: #2c2c2e;
    --ring: #3a3a3c;
  }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 700; }
p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; letter-spacing: inherit; }
strong, b { font-weight: 600; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(720px + 2 * var(--gutter)); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; text-decoration: none; }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--sep); }
.nav-in { display: flex; align-items: center; gap: 14px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a, .lang { color: var(--text-2); }
.nav-links a:hover, .lang:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-links .opt { display: none; }
.lang { font-size: 14px; font-weight: 500; padding: 8px 2px; }
@media (min-width: 880px) {
  .nav-links { gap: 26px; }
  .nav-links .opt { display: inline; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-pressed); text-decoration: none; }
.btn:active { background: var(--accent-pressed); transform: scale(.98); }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 14px; }
.btn-quiet { background: var(--fill); color: var(--text); }
.btn-quiet:hover, .btn-quiet:active { background: var(--fill-2); }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " \2192"; }

/* App Store badge */
.store { display: inline-block; border-radius: 9px; }
.store img { height: 48px; width: auto; }
.store-sm img { height: 44px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 42rem; margin-bottom: 40px; }
.section-head h2, .h2 { font-size: clamp(28px, 6.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.section-head p { margin-top: 14px; font-size: 19px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.eyebrow { margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--accent-text); letter-spacing: 0; }
@media (min-width: 900px) {
  .section { padding: 96px 0; }
}

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(34px, 9.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.lead { margin-top: 18px; max-width: 34rem; font-size: clamp(19px, 2.5vw, 22px); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.hero .store { margin-top: 30px; }
.meta { margin-top: 14px; font-size: 14px; color: var(--text-2); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
}

/* Phone frame around real screenshots */
.phone {
  width: min(300px, 76vw); margin: 0 auto; padding: 9px;
  background: var(--bezel); border-radius: 50px;
  box-shadow: 0 0 0 1px var(--ring), 0 30px 60px -30px rgba(0, 0, 0, .35);
}
.phone img { width: 100%; border-radius: 41px; aspect-ratio: 660 / 1434; background: var(--fill); }
.phone-sm { width: min(260px, 70vw); border-radius: 44px; padding: 8px; }
.phone-sm img { border-radius: 36px; }
figure { margin: 0; }
figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--text-2); }

/* How it works */
.steps { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sep); }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; gap: 4px 14px; padding: 24px 0; border-bottom: 1px solid var(--sep); }
.step-n {
  grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1.5px solid currentColor; border-radius: 50%;
  color: var(--accent-text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; }
.steps p { color: var(--text-2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 0; }
  .steps li { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--sep); border-bottom: 0; padding: 28px 0 0; }
  .step-n { grid-row: auto; margin-bottom: 10px; }
}

/* Features */
.features { display: grid; gap: 48px; align-items: center; }
.feature-list { display: grid; gap: 32px 36px; margin: 0; padding: 0; list-style: none; }
.feature .ico { width: 28px; height: 28px; margin-bottom: 12px; color: var(--accent-text); }
.feature h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
.feature p { color: var(--text-2); font-size: 16px; line-height: 1.5; }
.tag { padding: 1px 7px; border: 1px solid currentColor; border-radius: 6px; color: var(--accent-text); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
@media (min-width: 620px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .features { grid-template-columns: 300px minmax(0, 1fr); gap: 72px; }
}

/* Privacy */
.privacy { display: grid; gap: 36px; }
.privacy .lead { margin-top: 14px; }
.privacy .more { display: inline-block; margin-top: 22px; }
.points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sep); }
.points li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 16px; padding: 18px 0; border-bottom: 1px solid var(--sep); }
.points svg { width: 24px; height: 24px; margin-top: 2px; color: var(--text); }
.points b { display: block; }
.points span { color: var(--text-2); font-size: 16px; }
@media (min-width: 900px) {
  .privacy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
}

/* Free vs Pro */
.plans { display: grid; gap: 48px; align-items: center; }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { padding: 14px 6px; border-bottom: 1px solid var(--sep); text-align: left; vertical-align: middle; line-height: 1.4; }
.cmp th:first-child, .cmp td:first-child { padding-left: 0; }
.cmp thead th { padding-top: 0; font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.cmp tbody th { font-weight: 400; }
.cmp td, .cmp thead th:not(:first-child) { width: 29%; text-align: center; }
.cmp .pro-col { color: var(--accent-text); }
.cmp td.pro { font-weight: 600; }
.cmp .yes { display: inline-block; width: 20px; height: 20px; color: var(--accent-text); vertical-align: middle; }
.cmp .no { color: var(--text-3); }
.plan-note { margin-top: 20px; color: var(--text-2); font-size: 15px; }
@media (max-width: 420px) {
  .cmp { font-size: 15px; }
  .cmp td, .cmp thead th:not(:first-child) { width: 30%; }
}
@media (min-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr) 260px; gap: 80px; }
}

/* FAQ */
.faq { max-width: 46rem; border-top: 1px solid var(--sep); }
.faq details { border-bottom: 1px solid var(--sep); }
.faq summary { position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: translateY(-75%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq .a { padding: 0 0 22px; color: var(--text-2); }
.faq .a p + p { margin-top: 10px; }

/* Closing call to action */
.cta { text-align: center; }
.cta .app-icon { width: 72px; height: 72px; margin: 0 auto 22px; }
.cta p { max-width: 32rem; margin: 14px auto 0; color: var(--text-2); font-size: 19px; }
.cta .store { margin-top: 28px; }
.cta .also { margin-top: 18px; font-size: 15px; }

/* Footer */
.foot { padding: 32px 0 44px; border-top: 1px solid var(--sep); background: var(--bg); color: var(--text-2); font-size: 14px; }
.foot-in { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--text-2); }
.foot-links a:hover { color: var(--text); }
.fine { font-size: 12px; line-height: 1.5; color: var(--text-2); }

/* Document pages: legal, support */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: clamp(32px, 7vw, 46px); line-height: 1.1; letter-spacing: -0.03em; }
.doc .updated { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.doc .alt-lang { margin-top: 4px; font-size: 15px; }
.doc h2 { margin: 44px 0 12px; font-size: 23px; line-height: 1.25; letter-spacing: -0.02em; }
.doc h3 { margin: 24px 0 8px; font-size: 18px; letter-spacing: -0.015em; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0; padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--text-2); }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--fill); font: 14px var(--mono); }
.note { margin: 24px 0; padding: 16px 18px; border-radius: 14px; background: var(--bg-alt); }
.doc .note p { margin: 0; }
.data-table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--sep); text-align: left; vertical-align: top; line-height: 1.45; }
.data-table th { font-weight: 600; }
.data-table td:last-child, .data-table th:last-child { padding-right: 0; }
.data-table small { display: block; color: var(--text-2); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Support */
.contact { display: grid; gap: 6px; margin: 28px 0 8px; padding: 22px; border: 1px solid var(--sep); border-radius: 20px; }
.contact .label { color: var(--text-2); font-size: 15px; }
.contact .mail { font-size: clamp(20px, 5.4vw, 24px); font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact .btn { justify-self: start; margin-top: 12px; }
ol.howto { margin: 16px 0; padding: 0; list-style: none; counter-reset: s; }
ol.howto li { position: relative; margin: 0; padding: 2px 0 14px 42px; counter-increment: s; }
ol.howto li::before {
  content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--fill);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.path { font-weight: 600; }
.doc .faq { margin-top: 8px; }

/* Calculator */
.grouped { background: var(--grouped); }
.grouped .nav { background: var(--grouped); }
.calc-head { padding: 40px 0 8px; }
.calc-head h1 { font-size: clamp(32px, 8vw, 54px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.calc-head .lead { margin-top: 14px; }
.checked { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.calc { display: grid; gap: 24px; align-items: start; padding: 24px 0 56px; }
.calc-list h2, .result h2 { margin: 0 0 8px 4px; font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.svc-list { margin: 0; padding: 0; list-style: none; border-radius: 16px; background: var(--card); overflow: hidden; min-height: 60px; }
.svc { position: relative; display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 9px 12px 9px 14px; }
.svc + .svc::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; border-top: 1px solid var(--sep); }
.svc-main { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.chk {
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--text-3); border-radius: 50%;
  background: transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.chk::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .15s ease; }
.chk:checked { border-color: var(--accent); background: var(--accent); }
.chk:checked::after { transform: rotate(45deg) scale(1); }
.mono {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: var(--fill); color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: -0.02em;
}
.svc-txt { display: flex; flex-direction: column; min-width: 0; }
.svc-name { font-size: 16px; font-weight: 600; line-height: 1.25; }
.svc-plan { font-size: 13px; line-height: 1.3; color: var(--text-2); }
.price { display: flex; flex: none; align-items: center; gap: 3px; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--fill); cursor: text; }
.price .cur { color: var(--text-2); font-size: 15px; }
.price input {
  width: 72px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 600 16px/1 var(--font); text-align: right; font-variant-numeric: tabular-nums;
}
.price input::placeholder { color: var(--text-2); font-weight: 400; font-size: 14px; }
.price:focus-within { box-shadow: 0 0 0 2px var(--accent-text); }
.svc.missing .price { box-shadow: inset 0 0 0 1.5px var(--accent-text); }
.svc-name-input {
  width: 100%; min-width: 0; padding: 6px 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 600 16px/1.25 var(--font); letter-spacing: -0.01em;
}
.svc-name-input::placeholder { color: var(--text-2); font-weight: 400; }
.svc-name-input:focus-visible { outline: none; box-shadow: 0 1px 0 var(--accent-text); border-radius: 0; }
.remove {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-right: -6px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer;
}
.remove:hover { background: var(--fill); color: var(--text); }
.remove svg { width: 16px; height: 16px; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sep); background: var(--grouped);
}
.bar-totals { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bar-totals b { font-size: 19px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bar-totals span { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.result { padding: 24px 22px; border-radius: 20px; background: var(--card); }
.result h2 { margin: 0; }
.total-y { margin-top: 2px; font-size: clamp(40px, 11vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.total-sub { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.kv { display: grid; gap: 12px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--sep); font-size: 16px; }
.kv div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.kv dt { flex: none; color: var(--text-2); }
.kv dd { margin: 0; min-width: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv .top { padding-top: 12px; border-top: 1px solid var(--sep); }
.missing-note { margin-top: 12px; color: var(--accent-text); font-size: 14px; }
.share { width: 100%; margin-top: 22px; }
.share-msg { min-height: 1.4em; margin-top: 10px; text-align: center; color: var(--text-2); font-size: 14px; }
.share-fallback { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--fill); font-size: 14px; user-select: all; -webkit-user-select: all; }
.result-cta { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--sep); }
.result-cta p { font-size: 16px; line-height: 1.45; }
.result-cta .store { margin-top: 14px; }
.calc-article { padding: 56px 0 72px; background: var(--bg); }
.calc-article h2 { margin: 48px 0 12px; font-size: clamp(24px, 5vw, 30px); line-height: 1.2; letter-spacing: -0.025em; }
.calc-article h2:first-child { margin-top: 0; }
.calc-article p + p { margin-top: 12px; }
.calc-article .faq { margin-top: 8px; }
noscript p { padding: 16px; border-radius: 14px; background: var(--card); }
@media (min-width: 960px) {
  .calc { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-bottom: 80px; }
  .result { position: sticky; top: 80px; }
  .bar { display: none; }
}

/* Not found */
.nf { padding: 72px 0 96px; text-align: center; }
.nf .app-icon { width: 64px; height: 64px; margin: 0 auto 24px; }
.nf h1 { font-size: clamp(32px, 7vw, 48px); letter-spacing: -0.03em; }
.nf p { margin-top: 12px; color: var(--text-2); }
.nf .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 28px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Price table under the calculator: three columns that fit 360px */
.price-table th[scope="row"] { font-weight: 600; }
.price-table td.num, .price-table th.num { text-align: right; padding-right: 0; }
.price-table small a { color: var(--accent-text); }
.grouped .btn-quiet { background: var(--card); }
.grouped .btn-quiet:hover, .grouped .btn-quiet:active { background: var(--fill-2); }
