/* GISSMI public site. Self-hosted type and no scripts: the CSP allows only same-origin assets. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The app's own colours: its navy titles, the logo orange and the iOS score-band colours. */
  --paper: #ffffff;
  --mist: #f4f6fa;
  --ink: #19244e;
  --ink-2: #48527a;
  --ink-3: #646d8c;
  --rule: #e3e6ee;
  --signal: #ff432f;
  --well: #34c759;
  --well-text: #17803a;
  --sometimes: #ff9f0a;
  --sometimes-text: #9a4f00;
  --barely: #ff3b30;
  --barely-text: #cf1b10;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 11vw, 152px);
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --t-hero: clamp(2.75rem, 1.7rem + 3.9vw, 4.75rem);
  --t-h2: clamp(2rem, 1.35rem + 2.6vw, 3.4rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem);
  --t-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
}

*, *::before, *::after { box-sizing: border-box; }

/* Anchor jumps stop under the 69px sticky header. White sections skip their top padding so the
   heading lands just below it; the navy score band lands flush against it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 69px; }
#how, #privacy { scroll-margin-top: calc(24px - var(--section)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
li::marker { font-variant-numeric: proportional-nums; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 22.5%; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: var(--t-small); font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

/* Buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px;
  background: var(--ink); color: #fff;
  border-radius: 14px;
  font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: #0f1736; }
.button-small { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: var(--t-small); }

/* Phone frame. The screenshots are 1206 × 2622 iPhone captures without the hardware outline. */

.phone {
  position: relative;
  width: 100%;
  padding: 2.6%;
  background: #0c1024;
  border-radius: 15.5% / 7.2%;
  box-shadow: 0 1px 0 1px #2a3152 inset, 0 40px 70px -40px rgb(25 36 78 / 0.55);
}
.phone img { width: 100%; border-radius: 13.4% / 6.15%; background: var(--mist); }
.phone::after {
  /* Dynamic Island, so the status bar reads the way it does on the device. */
  content: ""; position: absolute; top: 3.9%; left: 50%; translate: -50% 0;
  width: 29%; height: 3.15%; border-radius: 999px; background: #000;
}

figcaption { font-size: var(--t-small); color: var(--ink-3); line-height: 1.45; }
figure > figcaption { margin-top: 18px; max-width: 30ch; }

/* Hero */

.hero { padding-top: clamp(40px, 5vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero h1 {
  font-size: var(--t-hero); line-height: 0.98; font-weight: 820; letter-spacing: -0.04em;
  max-width: 13ch;
}
.lead { margin-top: 24px; font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.availability { font-size: var(--t-small); color: var(--ink-3); }
.hero-shot { justify-self: end; width: min(320px, 100%); }

/* The ledger: the paid-versus-used comparison GISSMI makes, set as a statement. */

.ledger {
  margin-top: clamp(56px, 8vw, 104px);
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
}
.ledger-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem; font-weight: 700; color: var(--ink); max-width: none;
}
.ledger-note { font-size: var(--t-small); font-weight: 400; color: var(--ink-3); }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger thead th {
  padding: 14px 28px 10px; text-align: left;
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-3);
}
.ledger tbody th, .ledger tbody td {
  padding: 16px 28px; border-top: 1px solid var(--rule); text-align: left; vertical-align: middle;
}
.ledger tbody th { font-weight: 600; white-space: nowrap; }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger thead .num { text-align: right; }
.per { color: var(--ink-3); font-size: 0.875em; }
.mark {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 14px;
  border-radius: 50%; background: var(--mist); font-size: 1.05rem; vertical-align: middle;
}
.ledger td:nth-child(3) { white-space: nowrap; color: var(--ink-2); }
.meter {
  display: inline-block; width: clamp(80px, 14vw, 180px); height: 8px; margin-right: 16px;
  border-radius: 999px; background: var(--mist); vertical-align: middle; overflow: hidden;
}
.meter span {
  display: block; height: 100%; width: calc(var(--used) * 100%); border-radius: inherit;
  transform-origin: left; animation: fill 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.ledger tbody tr:nth-child(2) .meter span { animation-delay: 0.08s; }
.ledger tbody tr:nth-child(3) .meter span { animation-delay: 0.16s; }
.ledger tbody tr:nth-child(4) .meter span { animation-delay: 0.24s; }
.ledger tbody tr:nth-child(5) .meter span { animation-delay: 0.32s; }
@keyframes fill { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .meter span { animation: none; } }
.meter.well span { background: var(--well); }
.meter.sometimes span { background: var(--sometimes); }
.meter.barely span { background: var(--barely); }
.band { font-size: var(--t-small); font-weight: 650; white-space: nowrap; }
.band.well { color: var(--well-text); }
.band.sometimes { color: var(--sometimes-text); }
.band.barely { color: var(--barely-text); }
.ledger tfoot td { padding: 18px 28px; background: var(--mist); color: var(--ink-2); }
.ledger tfoot strong { color: var(--ink); }

/* Sections */

.section-head { max-width: 40rem; }
.section-head h2, .score h2, .faq h2 {
  font-size: var(--t-h2); line-height: 1.04; font-weight: 780; letter-spacing: -0.03em;
}
.section-head p { margin-top: 20px; font-size: var(--t-lead); color: var(--ink-2); }

.methods { padding-top: var(--section); }
.methods .section-head + .method { margin-top: clamp(48px, 6vw, 80px); }
.method {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 112px); align-items: center;
  margin-top: clamp(72px, 9vw, 128px);
}
.method h3 { font-size: var(--t-h3); line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; }
.method-copy > p { margin-top: 18px; color: var(--ink-2); max-width: 32em; }
.method-copy > .fine { margin-top: 24px; }
.fine { font-size: var(--t-small); color: var(--ink-3); line-height: 1.55; }
.method.flip .method-copy { order: 2; }
.method-shots {
  display: flex; justify-content: center;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px);
  background: var(--mist); border-radius: 28px;
}
.method-shots figure { width: min(300px, 100%); }
.method-shots.pair { gap: clamp(20px, 3vw, 40px); align-items: flex-start; }
.method-shots.pair figure { width: min(270px, 100%); }
.method-shots.pair figure:last-child { margin-top: clamp(40px, 6vw, 80px); }

.rules { margin-top: 28px; border-top: 1px solid var(--rule); max-width: 28rem; }
.rules div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.rules dt { font-weight: 600; }
.rules dd { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Score */

.score { margin-top: var(--section); padding: var(--section) 0; background: var(--ink); color: #fff; }
.score-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 7vw, 112px); align-items: center;
}
.score-copy > p { margin-top: 20px; font-size: var(--t-lead); color: rgb(255 255 255 / 0.78); max-width: 34em; }
.score-copy > .fine { font-size: var(--t-small); color: rgb(255 255 255 / 0.7); margin-top: 32px; max-width: 34em; }
.score-shot { justify-self: center; width: min(320px, 100%); }
.score .phone { background: #05081a; box-shadow: 0 1px 0 1px #343d66 inset, 0 40px 80px -40px rgb(0 0 0 / 0.7); }

.breakdown { margin-top: 44px; display: flex; align-items: center; gap: 20px; max-width: 34em; }
.breakdown-bar { flex: 1; display: flex; gap: 4px; height: 14px; }
.breakdown-bar span {
  flex: var(--max); position: relative; border-radius: 4px; overflow: hidden;
  background: rgb(255 255 255 / 0.14);
}
.breakdown-bar span::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: calc(var(--got) / var(--max) * 100%); background: var(--well);
}
.breakdown-total { display: flex; align-items: baseline; gap: 10px; font-size: var(--t-small); color: rgb(255 255 255 / 0.7); white-space: nowrap; }
.breakdown-total strong { font-size: 2.5rem; line-height: 1; font-weight: 800; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.factors { margin-top: 28px; display: grid; gap: 0; max-width: 34em; }
.factors div { padding: 16px 0; border-top: 1px solid rgb(255 255 255 / 0.16); }
.factors dt { display: flex; justify-content: space-between; font-weight: 650; }
.factors dt span { font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.78); font-weight: 500; }
.factors dd { margin-top: 4px; font-size: var(--t-small); color: rgb(255 255 255 / 0.7); }

/* Overview */

.overview { padding-top: var(--section); }
.overview-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.overview-shots {
  display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: end;
  gap: clamp(20px, 3vw, 40px);
}
.overview-shots figure:last-child { margin-top: clamp(40px, 6vw, 80px); }

/* Privacy */

.privacy { padding-top: var(--section); }
.privacy-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px);
  margin-top: 40px;
}
.privacy-grid > div { padding-top: 20px; border-top: 2px solid var(--ink); }
.privacy-grid > div + div { border-top-color: var(--signal); }
.privacy h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.privacy ul { list-style: none; padding: 0; margin: 12px 0 0; }
.privacy li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.privacy-note { margin-top: 32px; color: var(--ink-2); max-width: 44em; }
.privacy-note a { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* FAQ */

.faq { padding-top: var(--section); }
.faq-grid {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 24px clamp(32px, 6vw, 96px); align-items: start;
}
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  rotate: 45deg; translate: 0 -3px; transition: rotate 0.2s ease;
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 40em; }
.faq-more { grid-column: 2; font-size: var(--t-small); color: var(--ink-3); }
.faq-more a { color: var(--ink); font-weight: 600; }

/* Closing */

.closing { padding: var(--section) 0; }
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.closing img { width: 72px; height: 72px; border-radius: 22.5%; box-shadow: 0 16px 32px -16px rgb(255 67 47 / 0.6); }
.closing h2 { font-size: var(--t-h2); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: var(--t-small); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.site-footer .brand { font-size: 1rem; }
.site-footer .brand img { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.legal-line { flex-basis: 100%; color: var(--ink-3); }

/* Legal and support pages */

.legal-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.legal-hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem); line-height: 1; font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; }
.legal-hero p { margin-top: 20px; font-size: var(--t-lead); color: var(--ink-2); max-width: 36em; }
.legal-hero .effective { display: block; margin-top: 20px; font-size: var(--t-small); color: var(--ink-3); }
.legal-hero .button { margin-top: 32px; }

.legal-content { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.legal-content > section { max-width: 46rem; }
.legal-content section + section { margin-top: 44px; }
.legal-content h2 { font-size: 1.375rem; font-weight: 720; letter-spacing: -0.015em; line-height: 1.25; }
.legal-content h3 { margin-top: 24px; font-size: 1.0625rem; font-weight: 680; }
.legal-content p, .legal-content ul, .legal-content ol { margin-top: 12px; color: var(--ink-2); }
.legal-content ul, .legal-content ol { padding-left: 1.25em; }
.legal-content li + li { margin-top: 6px; }
.legal-content a { color: var(--ink); font-weight: 600; }

.support-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 80px); padding: clamp(32px, 5vw, 56px) 0 var(--section);
}
.support-grid article { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.support-grid h2 { font-size: 1.375rem; font-weight: 720; letter-spacing: -0.015em; }
.support-grid p, .support-grid ol { margin-top: 12px; color: var(--ink-2); }
.support-grid ol { padding-left: 1.25em; }
.support-grid a { color: var(--ink); font-weight: 600; }

/* Responsive */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .button-small { margin-left: auto; }
  .hero-grid, .method, .score-grid, .faq-grid, .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-shots { justify-content: start; }
  .hero-shot { justify-self: center; width: min(320px, 80%); }
  .method.flip .method-copy { order: 0; }
  .score-shot { justify-self: start; }
  .faq-more { grid-column: 1; }
}

@media (max-width: 720px) {
  .ledger-head { padding: 16px 18px; }
  .ledger thead { display: none; }
  .ledger table, .ledger tbody, .ledger tfoot, .ledger tfoot tr { display: block; }
  .ledger tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px;
    padding: 16px 18px; border-top: 1px solid var(--rule);
  }
  .ledger tbody th, .ledger tbody td { padding: 0; border: 0; }
  .ledger tbody th { display: flex; align-items: center; white-space: normal; line-height: 1.3; }
  .ledger td:nth-child(3) { grid-column: 1; padding-left: 48px; font-size: var(--t-small); white-space: normal; }
  .ledger td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; align-self: center; }
  .meter { width: 48px; margin-right: 8px; }
  .ledger tfoot td { display: block; padding: 16px 18px; }
  .method-shots.pair figure:last-child { margin-top: 48px; }
  .privacy-grid, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-shots { gap: 14px; }
  .overview-shots figure:last-child { margin-top: 36px; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 480px) {
  .method-shots.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .method-shots.pair figure:last-child { margin-top: 36px; }
  .breakdown { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .breakdown-bar { flex: none; }
  .cta-row .button { width: 100%; }
}
