/* logmygig.com: one hand-written stylesheet. Tokens follow the app's src/ui/theme.ts ("Route Line"). */

@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
/* Local fallback, scaled so the swap shifts layout less */
@font-face { font-family: "Schibsted Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 102%; }

:root {
  color-scheme: light dark;
  --bg: #ECF0EE;
  --surface: #FFFFFF;
  --surface-alt: #E0E6E3;
  --border: #CAD4CF;
  --text: #0B2545;
  --muted: #52637A;
  --accent: #3DBE4F;
  --on-accent: #0B2545;
  --ink: #1B7A31;
  --band: #0E2340;
  --on-band: #ECF0EE;
  --band-link: #4CCB5E;
  --band-line: #2C4466;
  --panel: var(--band);
  --on-panel: var(--on-band);
  --panel-line: var(--band-line);
  --seg-1: #1C8F4B;
  --seg-2: #C07B00;
  --seg-3: #2E66C9;
  --stop: #FFFFFF;
  --shadow: 0 12px 32px rgb(11 37 69 / 0.14);
  --font: "Schibsted Grotesk", "Schibsted Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1420;
    --surface: #132131;
    --surface-alt: #0A111B;
    --border: #24364C;
    --text: #EEF3F9;
    --muted: #93A5BC;
    --on-accent: #062012;
    --ink: #4CCB5E;
    --band: #1B3556;
    --on-band: #E8EEF4;
    --band-link: #4CCB5E;
    --band-line: #34507A;
    --panel: var(--surface-alt);
    --on-panel: var(--text);
    --panel-line: var(--border);
    --seg-1: #3DBE4F;
    --seg-2: #F0AE2E;
    --seg-3: #5C92F2;
  }
}

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

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--font);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0 0 16px; max-width: 65ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-thickness 0.15s;
}
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--on-band); }
.panel :focus-visible { outline-color: var(--on-panel); }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
.skip:focus { top: 16px; }

/* Buttons */
.btn, .btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn { min-height: 48px; padding: 0 24px; border-radius: 12px; font-size: 1.0625rem; }
.btn-pill { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 1rem; }
.btn:hover, .btn-pill:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* Header */
.site-head { border-bottom: 1px solid var(--border); }
.head-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 12px 4px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; }
.site-nav { order: 3; flex-basis: 100%; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
@media (min-width: 920px) {
  .head-bar { flex-wrap: nowrap; min-height: 72px; padding-block: 0; gap: 32px; }
  .site-nav { order: 0; flex-basis: auto; margin-left: auto; }
  .site-nav ul { gap: 0 28px; }
}

/* Phone screenshots: the only place with a shadow */
.phone { margin: 0; width: 100%; justify-self: center; }
.phone img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.band .phone img { border-color: var(--band-line); }

/* Hero */
.hero { padding-block: 48px 64px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.lede { font-size: 1.25rem; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 32px 0 24px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.hero .phone { max-width: 340px; }
@media (min-width: 960px) {
  .hero { padding-block: 72px 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
}

/* How: full-bleed navy band */
.band { background: var(--band); color: var(--on-band); }
.band a { color: var(--band-link); }
.how { padding-block: 64px; }
.how .wrap { display: grid; gap: 48px; align-items: center; }
.how h2 { margin-bottom: 20px; }
.how p { font-size: 1.1875rem; }
.route { width: 100%; max-width: 560px; margin-top: 48px; }
.route .seg { fill: none; stroke-width: 14; stroke-linecap: round; }
.route .s1 { stroke: var(--seg-1); }
.route .s2 { stroke: var(--seg-2); }
.route .s3 { stroke: var(--seg-3); }
.route .stop { fill: var(--stop); }
.route .hole { fill: var(--band); }
.how .phone { max-width: 300px; }
@media (min-width: 960px) {
  .how { padding-block: 96px; }
  .how .wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 96px; }
}

/* What it keeps: a plain list */
.keeps { padding-block: 64px; }
.keeps .wrap { display: grid; gap: 32px 64px; }
.list { margin: 0; border-top: 1px solid var(--border); }
.list div { display: grid; gap: 4px 32px; padding-block: 20px; border-bottom: 1px solid var(--border); }
.list dt { font-weight: 700; }
.list dd { margin: 0; max-width: 60ch; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 560px; margin-top: 16px; }
.shots .phone img { border-radius: 12px; }
@media (min-width: 720px) {
  .list div { grid-template-columns: 10rem minmax(0, 1fr); }
  .shots { gap: 32px; }
}
@media (min-width: 960px) {
  .keeps { padding-block: 96px; }
  .keeps .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .keeps h2 { grid-column: 1; }
  .list, .shots { grid-column: 2; }
}

/* Taxes */
.taxes { padding-block: 64px; background: var(--surface); }
.taxes .wrap { display: grid; gap: 48px; align-items: center; }
.taxes h2 { margin-bottom: 20px; max-width: 18ch; }
.note {
  max-width: 65ch;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.taxes .phone { max-width: 300px; }
@media (min-width: 960px) {
  .taxes { padding-block: 96px; }
  .taxes .wrap { grid-template-columns: 300px minmax(0, 1fr); gap: 96px; }
  .taxes .phone { grid-column: 1; grid-row: 1; }
  .taxes .copy { grid-column: 2; grid-row: 1; }
}

/* Privacy panel */
.panel { background: var(--panel); color: var(--on-panel); }
.panel a { color: var(--band-link); }
.privacy { padding-block: 64px; }
.privacy h2 { max-width: 20ch; }
.facts { display: grid; gap: 0 48px; margin: 40px 0 0; padding: 0; list-style: none; }
.facts li { padding-block: 20px 28px; border-top: 1px solid var(--panel-line); }
.facts h3 { margin-bottom: 8px; }
.aside { max-width: 65ch; margin: 24px 0 4px; font-size: 0.875rem; line-height: 1.5; }
.aside-link a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 600; }
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .privacy { padding-block: 96px 80px; }
}

/* Pricing strip */
.pricing { padding-block: 48px; background: var(--surface); }
.pricing .wrap { display: grid; gap: 20px 48px; align-items: start; }
.pricing h2 { font-variant-numeric: tabular-nums; max-width: 16ch; }
.pricing .btn { justify-self: start; }
@media (min-width: 960px) {
  .pricing { padding-block: 56px; }
  .pricing .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; }
}

/* FAQ */
.faq { padding-block: 64px 80px; }
.faq h2 { margin-bottom: 24px; }
.faq .items { max-width: 800px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 12px;
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.faq details p { padding-bottom: 20px; }
@media (min-width: 960px) {
  .faq { padding-block: 96px; }
}

/* Footer */
.site-foot { padding-block: 48px; background: var(--surface-alt); font-size: 1rem; }
.site-foot .wrap { display: grid; gap: 24px 48px; }
.site-foot a { color: var(--text); }
.site-foot p { margin: 0; }
.site-foot address { margin-top: 8px; font-style: normal; }
.org { font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.fine { display: grid; gap: 8px; color: var(--muted); font-size: 0.875rem; }
@media (min-width: 720px) {
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fine { grid-column: 1 / -1; }
}

/* Legal pages and 404 */
.legal { padding-block: 48px 96px; }
.legal .wrap > * { max-width: 65ch; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 8px; }
.legal .meta { color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.legal h2 { font-size: 1.375rem; line-height: 1.3; letter-spacing: 0; margin: 48px 0 12px; scroll-margin-top: 16px; }
.legal p { overflow-wrap: anywhere; }
.notfound { padding-block: 96px 128px; }
.notfound h1 { margin-bottom: 24px; }

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

@media (max-width: 479px) {
  .site-nav ul { gap: 0 12px; }
  .site-nav a { font-size: 0.9375rem; }
}
