/* Zipp website styles. Colors come from the Zipp app icon: teal #08B9BD and navy #050D2F. */

/* Dark is the default look, matching the app. */
:root {
  --teal: #08B9BD;
  --navy: #050D2F;
  --bg: #050D2F;
  --bg-alt: #0A1438;
  --card: #111B42;
  --line: #1E2A57;
  --text: #E8ECF6;
  --muted: #9AA3BD;
  --heading: #FFFFFF;
  --link: #08B9BD;
  --accent: #08B9BD;
  --on-accent: #050D2F;
  --glow: rgba(8, 185, 189, 0.18);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* Light look, for people whose phone or computer is set to light mode. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F7FB;
    --bg-alt: #E9EFF6;
    --card: #FFFFFF;
    --line: #D6DEEA;
    --text: #1B2448;
    --muted: #4A5578;
    --heading: #050D2F;
    --link: #057174;
    --accent: #08B9BD;
    --on-accent: #050D2F;
    --glow: rgba(8, 185, 189, 0.22);
    --shadow: 0 20px 50px rgba(5, 13, 47, 0.18);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
    --bg: #F4F7FB;
    --bg-alt: #E9EFF6;
    --card: #FFFFFF;
    --line: #D6DEEA;
    --text: #1B2448;
    --muted: #4A5578;
    --heading: #050D2F;
    --link: #057174;
    --accent: #08B9BD;
    --on-accent: #050D2F;
    --glow: rgba(8, 185, 189, 0.22);
    --shadow: 0 20px 50px rgba(5, 13, 47, 0.18);
    color-scheme: light;
  }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--heading); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.mark { width: 34px; height: 34px; border-radius: 9px; background: var(--teal); display: inline-grid; place-items: center; flex: none; }
.mark svg { width: 27px; height: 27px; fill: var(--navy); color: var(--navy); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--heading); background: var(--card); }
.nav a[aria-current="page"] { color: var(--heading); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }

/* Common bits */
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--link); margin-bottom: 0.9em; }
.lede { font-size: clamp(1.08rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 36em; }
.accent { color: var(--link); }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 8px 24px var(--glow); }
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-ghost { color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }

.note { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--glow); }

/* Hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 30%; height: 700px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-shot { margin: 0 auto; width: min(340px, 82vw); }
.hero-shot img { border-radius: 36px; box-shadow: var(--shadow); }
@media (min-width: 880px) {
  .hero { padding: 80px 0 64px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-shot { width: 360px; }
}

/* Sections */
.section { padding: 64px 0; }
.section.tight { padding: 32px 0 72px; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; counter-reset: none; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.steps .num { display: block; font-weight: 800; color: var(--link); font-size: 0.9rem; letter-spacing: 0.08em; margin-bottom: 10px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.features { display: grid; gap: 16px; margin-top: 28px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 18px; position: relative; }
.feature::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--teal); margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }

.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; margin-top: 24px; -webkit-overflow-scrolling: touch; }
.gallery img { flex: none; width: 240px; border-radius: 22px; scroll-snap-align: start; box-shadow: var(--shadow); }
@media (min-width: 960px) { .gallery img { width: calc((100% - 4 * 18px) / 5); } }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 48px; position: relative; font-weight: 600; color: var(--heading); }
.checks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23050D2F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.arrow { font-weight: 700; text-decoration: none; }
.arrow::after { content: " \2192"; }

.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, var(--card), var(--bg-alt)); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.callout h2 { margin-bottom: 0.3em; }
.callout p { margin: 0; color: var(--muted); }
.callout.small { margin-top: 48px; }
.callout.small h2 { font-size: 1.35rem; }

/* Inner pages */
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; display: flex; align-items: center; gap: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .num { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--teal); color: var(--navy); font-size: 1rem; display: inline-grid; place-items: center; }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--link); font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 18px 0; }
.card p:last-child { margin-bottom: 0; }
.card.summary { border-left: 4px solid var(--teal); }
.card.summary h2 { margin: 0 0 0.4em; font-size: 1.15rem; }
.tip { background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 16px; color: var(--muted); }
.tip::before { content: "Tip: "; font-weight: 700; color: var(--link); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.toc a { text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--heading); background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.toc a:hover { border-color: var(--accent); }

.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; margin-bottom: 40px; }
.contact-card h2 { margin-top: 0; }
.big-mail { font-size: clamp(1.2rem, 4.6vw, 1.6rem); font-weight: 800; word-break: break-all; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--heading); padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--link); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { color: var(--text); margin: 0 0 16px; }

/* 404 */
.notfound { text-align: center; padding: 96px 0; }
.notfound .lede { margin-left: auto; margin-right: auto; }
.notfound .cta-row { justify-content: center; }
.mark.big { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 20px; }
.mark.big svg { width: 56px; height: 56px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 0; }
.footer-inner { display: grid; gap: 18px; }
.footer-brand p { color: var(--muted); margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--link); }
.footer-mail { margin: 0; }
.footer-legal { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-legal .tag { display: inline-block; margin-top: 6px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links, .footer-mail { justify-self: end; }
}

.hero-grid > * { min-width: 0; }
.split > *, .footer-inner > * { min-width: 0; }
