/* All Renewals — shared styles for every page.
   Page-specific layout lives in each page's own <style> block. */

:root {
  /* Brand */
  --green: #00BE64;        /* app icon */
  --green-ink: #067A45;    /* green that passes contrast as text on white */
  --red: #E5484D;          /* overdue dot in the app */
  --amber: #F2992E;        /* due-this-week dot in the app */

  /* Surfaces & ink */
  --bg: #FFFFFF;
  --mint: #EDF4EF;         /* the wash behind the app's Upcoming header */
  --surface: #F6F9F7;
  --ink: #0D1F16;
  --ink-2: #4B5C53;
  --ink-3: #7B8B82;
  --line: #DDE6E0;
  --line-strong: #C6D3CA;

  /* Dark band (privacy section, footer CTA) */
  --deep: #0D1F16;
  --deep-2: #16301F;
  --on-deep: #F1F6F2;
  --on-deep-2: #9DB2A5;

  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --wrap: 1160px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green-ink: #3DD68C;
    --bg: #0A140F;
    --mint: #0F1E16;
    --surface: #111F17;
    --ink: #EEF4F0;
    --ink-2: #A9B9AF;
    --ink-3: #7D8F85;
    --line: #1F3328;
    --line-strong: #2C4536;
    --deep: #060D09;
    --deep-2: #0F1E16;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font);
  font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
  overflow-x: hidden;
  font-feature-settings: "ss01";
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

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

/* ---- Type ---- */
.display {
  font-size: clamp(44px, 7.2vw, 84px);
  font-weight: 800; line-height: 0.98; letter-spacing: -0.045em;
}
.h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 750; line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 { font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.muted { color: var(--ink-2); }

/* ---- Promo bar ---- */
.promo {
  display: none;
  background: var(--deep); color: var(--on-deep);
  font-size: 14px; font-weight: 500; text-align: center;
  padding: 9px var(--gutter);
}
.promo.on { display: block; }
.promo::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: 10px; vertical-align: 1px;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  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 transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header nav {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; gap: 40px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin-right: auto; }
.nav-links a {
  display: block; padding: 6px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 600; text-decoration: none;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.82; }
.nav-cta svg { width: 15px; height: 15px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center; border-radius: 10px;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .close { display: none; }
.nav-toggle[aria-expanded="true"] .open { display: none; }
.nav-toggle[aria-expanded="true"] .close { display: block; }
.mobile-menu {
  /* Overlays the page so opening/closing never shifts content (keeps anchor jumps accurate) */
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - 64px); overflow-y: auto;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--line); background: var(--bg);
  box-shadow: 0 24px 40px -24px rgba(13,31,22,0.35);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 18px; font-weight: 600; text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .menu-download { color: var(--green-ink); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .site-header nav { justify-content: space-between; gap: 12px; }
  .brand { margin-right: auto; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 359px) {
  .nav-cta { display: none; }
}

/* ---- App Store badge ---- */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  background: #000; color: #fff; text-decoration: none;
  height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
  border: 1px solid #000;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 1px 2px rgba(13,31,22,0.12), 0 8px 24px -8px rgba(13,31,22,0.35);
}
.store-badge:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(13,31,22,0.12), 0 14px 32px -10px rgba(13,31,22,0.45); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: -3px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge small { font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; }
.store-badge b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.store-badge.disabled { opacity: 0.55; cursor: default; pointer-events: none; }
@media (prefers-color-scheme: dark) {
  .store-badge { border-color: #5a6b62; box-shadow: none; }
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px; font-size: 15px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-tag { color: var(--ink-2); margin-top: 12px; max-width: 26em; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 56px; list-style: none; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 14px;
}

/* ================================================================
   Sub-pages: support, privacy, terms, what's new
   ================================================================ */
.page-head { background: var(--mint); padding: 72px 0 64px; }
.page-head .wrap { max-width: 760px; }
.page-head .h2 { font-size: clamp(36px, 5vw, 56px); }
.page-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

.page-body { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 96px; }

/* Table of contents (privacy, terms) */
.toc { padding-bottom: 32px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.toc h2 { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { columns: 2; column-gap: 32px; padding-left: 1.4em; color: var(--ink-3); }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Long-form sections (privacy, terms) */
.section { padding: 40px 0 8px; }
.section-number { display: block; font-size: 14px; font-weight: 600; color: var(--green-ink); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.section h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 16px; }
.section h3 { font-size: 19px; font-weight: 650; margin: 28px 0 10px; }
.section p, .section li { color: var(--ink-2); }
.section p { margin-bottom: 14px; }
.section ul, .section ol { padding-left: 1.3em; margin-bottom: 16px; }
.section li { margin-bottom: 6px; padding-left: 4px; }
.section li::marker { color: var(--green-ink); }
.section strong { color: var(--ink); font-weight: 600; }
.section a, .faq-answer a { color: var(--green-ink); text-underline-offset: 3px; }

.highlight-card {
  background: var(--mint); border-radius: 16px;
  padding: 24px 28px; margin: 4px 0 20px;
}
.highlight-card p { color: var(--ink) !important; font-size: 18px; line-height: 1.55; margin: 0 !important; }

.callout {
  border-left: 3px solid var(--amber);
  padding: 4px 0 4px 20px; margin: 20px 0;
}
.callout strong { display: block; color: var(--ink); font-weight: 650; margin-bottom: 4px; }
.callout p { margin: 0; color: var(--ink-2); }

/* Support FAQ */
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.category-nav a {
  font-size: 15px; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s;
}
.category-nav a:hover { color: var(--ink); border-color: var(--ink-3); }
.faq-category { display: flex; align-items: baseline; gap: 14px; padding: 56px 0 12px; border-bottom: 1px solid var(--ink); }
.faq-category-label { font-size: 14px; font-weight: 600; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.faq-category-title { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; }

/* Disclosure rows — shared by home FAQ and support */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--ink-3);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover::after { color: var(--ink); }
.faq-item > p, .faq-answer { padding: 0 48px 24px 0; color: var(--ink-2); }
.faq-answer p { margin-bottom: 12px; }
.faq-answer h4 { font-size: 16px; font-weight: 650; color: var(--ink); margin: 16px 0 8px; }
.faq-answer h4:first-child { margin-top: 0; }
.faq-answer ol, .faq-answer ul { padding-left: 1.3em; margin-bottom: 12px; }
.faq-answer li { margin-bottom: 8px; padding-left: 4px; }
.faq-answer li::marker { color: var(--green-ink); font-variant-numeric: tabular-nums; }
.faq-answer strong { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .faq-item > p, .faq-answer { padding-right: 0; } }

/* Contact panel */
.contact-block {
  margin-top: 72px; padding: 40px;
  background: var(--deep); color: var(--on-deep);
  border-radius: 24px;
}
.contact-block h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 8px; }
.contact-block p { color: var(--on-deep-2); margin-bottom: 24px; max-width: 32em; }
.contact-block a {
  display: inline-block; text-decoration: none;
  background: var(--green); color: #04220F;
  font-weight: 650; padding: 12px 22px; border-radius: 999px;
  transition: opacity 0.2s;
}
.contact-block a:hover { opacity: 0.88; }
@media (max-width: 560px) { .contact-block { padding: 32px 24px; } }

/* What's new */
.release-card { display: grid; grid-template-columns: 140px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.release-card:first-child { border-top: 0; padding-top: 8px; }
.release-version { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.release-version span {
  display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0;
  color: #04220F; background: var(--green); padding: 2px 10px; border-radius: 999px;
}
.release-changes { list-style: none; }
.release-changes li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.release-changes li:first-child { border-top: 0; padding-top: 0; }
.release-changes strong { display: block; color: var(--ink); font-weight: 650; }
.timeline-empty { color: var(--ink-2); padding: 40px 0; }
@media (max-width: 640px) { .release-card { grid-template-columns: 1fr; gap: 16px; } }
