/* Eclipse — website. Colours and spacing follow the launcher (BarLauncher.BACKGROUND/CARD/TEXT/MUTED/ACCENT). */

:root {
    --bg: #0b0d12;
    --bg-2: #121419;
    --card: #1e2129;
    --card-2: #232733;
    --border: #2d313c;
    --border-soft: #22252e;
    --text: #e2e6ed;
    --muted: #8c94a3;
    --muted-2: #6b7382;
    --accent: #f0962e;
    --accent-soft: #ffb35c;
    --accent-ink: #191208;
    --good: #5cd66e;
    --warn: #f0c040;
    --bad: #ff6054;

    --radius: 14px;
    --radius-s: 9px;
    --shell: 1180px;
    --gap: 22px;

    --shadow: 0 18px 44px rgba(0, 0, 0, .45);
    --shadow-s: 0 6px 18px rgba(0, 0, 0, .35);
    --glow: 0 0 60px rgba(240, 150, 46, .18);

    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
/* class rules like .note{display:flex} would otherwise win over the hidden attribute */
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;   /* ios otherwise inflates text when the phone is turned */
    text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); letter-spacing: -.025em; }
h3 { font-size: 1.16rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code {
    background: #0e1016; border: 1px solid var(--border-soft); border-radius: 5px;
    padding: .12em .42em; color: #cdd4e0;
}
kbd {
    background: var(--card-2); border: 1px solid var(--border); border-bottom-width: 2px;
    border-radius: 5px; padding: .08em .45em; color: var(--text); font-size: .82em;
}
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2.4rem 0; }

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

.shell {
    width: min(100% - 40px, var(--shell));
    margin-inline: auto;
    /* a notched iphone on its side puts the corners over the content */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.skip {
    position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink);
    padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 650; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 13, 18, .82);
    -webkit-backdrop-filter: blur(14px);   /* safari, including every ios browser */
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.top-in { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; letter-spacing: .13em; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span { font-size: .95rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
    color: var(--muted); font-size: .93rem; font-weight: 550; padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--card); }
.nav .btn { margin-left: 8px; }

.menu-btn {
    display: none; margin-left: auto; background: var(--card); border: 1px solid var(--border);
    color: var(--text); border-radius: 9px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}

@media (max-width: 760px) {
    .menu-btn { display: block; }
    .nav {
        display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column;
        align-items: stretch; gap: 2px; padding: 10px 20px 16px;
        background: rgba(11, 13, 18, .97); border-bottom: 1px solid var(--border);
    }
    .nav.open { display: flex; }
    .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
    font: 650 .97rem/1.2 var(--sans); cursor: pointer; text-align: center;
    transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 26px rgba(240, 150, 46, .22); }
.btn-primary:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--card-2); color: var(--text); border-color: #3a4050; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 12px; }
.btn-sub { display: block; font-weight: 450; font-size: .78rem; opacity: .72; }
/* a button with a second line: the label above, the small print under it */
.btn-stack { flex-direction: column; gap: 3px; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-soft); }
.hero::before {
    content: ""; position: absolute; inset: 0;
    /* relative to THIS file: a url() reached through a custom property resolves against the stylesheet */
    background: url("../img/corona-2400.webp") right center / cover no-repeat;
    opacity: .95;
}
@media (max-width: 900px) {
    .hero::before { background-image: url("../img/corona-1600.webp"); background-position: 72% center; }
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, var(--bg) 4%, rgba(11, 13, 18, .93) 32%, rgba(11, 13, 18, .35) 62%,
        rgba(11, 13, 18, .1) 100%);
}
.hero-in { position: relative; z-index: 1; padding: clamp(64px, 11vw, 132px) 0 clamp(60px, 9vw, 108px); }
.hero-copy { max-width: 620px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
    font-size: .74rem; font-weight: 650; letter-spacing: .19em; text-transform: uppercase; color: var(--accent);
    border: 1px solid rgba(240, 150, 46, .3); background: rgba(240, 150, 46, .07);
    border-radius: 999px; padding: 6px 14px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.24rem); color: #b9c0cd; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .87rem; color: var(--muted); }
.hero-note strong { color: #b9c0cd; font-weight: 600; }

/* ---------------------------------------------------------------- sections */

.band { padding: clamp(56px, 8vw, 96px) 0; }
.band-alt { background: var(--bg-2); border-block: 1px solid var(--border-soft); }
.band-head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 48px); }
.band-head.center { margin-inline: auto; text-align: center; }
.band-head h2 { margin-bottom: 14px; }
.band-head p { color: var(--muted); font-size: 1.05rem; }
.kicker {
    display: block; font-size: .73rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
}

/* ---------------------------------------------------------------- cards + grids */

.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-s);
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .96rem; }
.card-icon {
    width: 38px; height: 38px; border-radius: 10px; margin-bottom: 15px;
    display: grid; place-items: center;
    background: rgba(240, 150, 46, .1); border: 1px solid rgba(240, 150, 46, .22); color: var(--accent);
}
.card-icon svg { width: 20px; height: 20px; }

/* feature row: screenshot + copy, alternating */
.feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 84px); }
.feature.flip > .shot { order: 2; }
@media (max-width: 880px) {
    .feature { grid-template-columns: minmax(0, 1fr); }
    .feature.flip > .shot { order: 0; }
}
.feature h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 13px; letter-spacing: -.02em; }
.feature p { color: var(--muted); }

.shot {
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    background: var(--card); box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; }
.shot figcaption {
    padding: 11px 16px; font-size: .84rem; color: var(--muted-2);
    border-top: 1px solid var(--border-soft); background: #15181f;
}

/* ---------------------------------------------------------------- stats */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border-soft);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--card); padding: 22px 20px; text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; color: var(--accent);
    letter-spacing: -.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------- steps */

.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
    position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 28px 26px 84px;
}
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 26px; top: 24px;
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(240, 150, 46, .11); border: 1px solid rgba(240, 150, 46, .35);
    color: var(--accent); font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin-bottom: 8px; }
.step p, .step ul { color: var(--muted); font-size: .97rem; }
.step ul { margin: .6rem 0 0; padding-left: 1.15rem; }
.step li + li { margin-top: .35rem; }
.step .btn { margin-top: 16px; }
@media (max-width: 560px) {
    .step { padding: 62px 20px 22px; }
    .step::before { left: 20px; top: 18px; }
}

.note {
    display: flex; gap: 13px; align-items: flex-start;
    border-radius: var(--radius-s); padding: 15px 18px; font-size: .93rem;
    background: rgba(240, 192, 64, .06); border: 1px solid rgba(240, 192, 64, .26); color: #d9d2bd;
}
.note svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--warn); }
.note strong { color: var(--warn); font-weight: 650; }
.note.info { background: rgba(116, 158, 255, .06); border-color: rgba(116, 158, 255, .24); color: #c3cbdd; }
.note.info svg { color: #7aa2ff; }
.note.info strong { color: #9dbaff; }
.note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- map gallery */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; align-items: center; }
.filters .label { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2);
    margin-right: 4px; font-weight: 650; }
.chip {
    background: var(--card); border: 1px solid var(--border); color: var(--muted);
    border-radius: 999px; padding: 9px 15px; min-height: 40px; font: 550 .87rem var(--sans); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .14s, color .14s, border-color .14s;
}
.chip:hover { color: var(--text); border-color: #3a4050; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
@media (max-width: 560px) {
    /* two per row rather than one enormous card each */
    .maps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .map figcaption { padding: 9px 10px 11px; }
    .map .t { font-size: .84rem; }
    .map .m { font-size: .72rem; }
}
.map {
    position: relative; display: block; padding: 0; text-align: left;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-s);
    overflow: hidden; cursor: pointer; font: inherit; color: inherit;
    transition: transform .15s ease, border-color .15s ease;
}
.map:hover { transform: translateY(-3px); border-color: var(--accent); }
.map img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #0e1016; }
.map figcaption { padding: 11px 13px 13px; }
.map .t { font-weight: 620; font-size: .93rem; }
.map .m { margin-top: 3px; font-size: .79rem; color: var(--muted-2); }
.map-empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; text-align: center; }

dialog.lightbox {
    border: 1px solid var(--border); background: var(--card); color: var(--text);
    border-radius: var(--radius); padding: 0; width: min(94vw, 820px); max-width: 94vw;
    max-height: 92vh;
    max-height: 92dvh;            /* ios: vh counts the address bar, dvh is what you can actually see */
    overflow: auto; overscroll-behavior: contain; box-shadow: var(--shadow);
}
dialog.lightbox::backdrop {
    background: rgba(6, 7, 10, .84);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
/* the picture is square, but it must not push the text under it off the screen */
.lb-img { width: 100%; max-height: min(62vh, 700px); aspect-ratio: 1; object-fit: contain; background: #0e1016; }
@supports (height: 1dvh) {
    .lb-img { max-height: min(58dvh, 700px); }
}
.lb-body { padding: 20px 24px 24px; }
.lb-body h3 { margin-bottom: 4px; }
.lb-meta { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.lb-regen { font-size: .8rem; color: var(--muted-2); word-break: break-all; }
.lb-regen code { display: block; margin-top: 6px; padding: 9px 11px; white-space: pre-wrap; }
.lb-close {
    position: sticky; float: right; top: 12px; right: 12px; margin: 12px 12px -46px 0; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(11, 13, 18, .8); border: 1px solid var(--border); color: var(--text);
    font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: var(--card-2); }

/* ---------------------------------------------------------------- pricing */

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); max-width: 820px;
    margin-inline: auto; }
@media (max-width: 720px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.price.lead { border-color: rgba(240, 150, 46, .45); box-shadow: var(--glow); }
.price h3 { font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
    font-weight: 650; margin-bottom: 14px; }
.price.lead h3 { color: var(--accent); }
.price .amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.price .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; margin: 20px 0 0; padding: 0; }
.price li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); font-size: .95rem; }
.price li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 13px; height: 7px;
    border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg) translateY(-2px);
}
/* not included: a cross, not a grey tick - a tick here reads as "you get this" */
.price li.no { color: var(--muted-2); }
.price li.no::before {
    content: "×"; border: 0; transform: none; width: auto; height: auto;
    top: 0; left: 1px; font-size: 1.05rem; line-height: 1.45; color: var(--muted-2);
}

/* ---------------------------------------------------------------- faq */

.faq { max-width: 800px; margin-inline: auto; }
.faq details {
    border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--card);
    padding: 0; margin-bottom: 10px;
}
.faq summary {
    cursor: pointer; padding: 17px 20px; font-weight: 600; list-style: none; display: flex;
    align-items: center; justify-content: space-between; gap: 16px; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; flex: none; font-weight: 400;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border-soft); }
.faq .answer { padding: 16px 20px 20px; color: var(--muted); font-size: .96rem; }

/* ---------------------------------------------------------------- footer */

.foot { background: #080a0e; border-top: 1px solid var(--border-soft); padding: 52px 0 40px; font-size: .9rem; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 720px) { .foot-top { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.foot h4 { font-size: .74rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted-2);
    margin-bottom: 13px; font-weight: 650; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot p { color: var(--muted-2); max-width: 46ch; }
.legal { border-top: 1px solid var(--border-soft); padding-top: 24px; color: var(--muted-2); font-size: .83rem; }
.legal p { max-width: none; margin-bottom: .7rem; }
.legal strong { color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- misc */

/* only hidden when the script is actually running: without it everything stays visible */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- forms (account page) */

.field { display: block; margin-bottom: 14px; }
.field span {
    display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 600; color: var(--muted);
    letter-spacing: .02em;
}
.field input, .row input {
    width: 100%; padding: 11px 14px; border-radius: var(--radius-s);
    background: #0e1016; border: 1px solid var(--border); color: var(--text);
    font: inherit;
    /* 16px exactly: ios zooms the page when a focused field is smaller, and does not zoom back */
    font-size: 16px;
}
.field input::placeholder, .row input::placeholder { color: var(--muted-2); }
.field input:focus, .row input:focus { border-color: var(--accent); outline: none; }
.row { display: flex; gap: 10px; align-items: stretch; }
.row .btn { flex: none; }
.form-error { margin-top: 12px; font-size: .92rem; color: var(--bad); }
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#prime-actions .note { margin-top: 4px; }

/* ---------------------------------------------------------------- hero: the eclipse as it happens (hero.js)
   While the moon is on its way a canvas shows the sky and the photograph underneath is hidden; with the shutter the
   photograph is switched on, a flash covers the cut. */
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; transition: opacity 1.3s ease-in-out; }
.hero.hero-live::before { opacity: 0; transition: opacity 1.1s ease-in-out; }
.hero.hero-live.hero-snapped::before { opacity: .95; }
.hero.hero-snapped .hero-sky { opacity: 0; }
.hero-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 1; }
.hero.hero-snapped .hero-flash { animation: hero-flash 1.1s ease-out both; }
/* a soft blink, not a flashbulb in the face */
@keyframes hero-flash { 0% { opacity: 0; } 12% { opacity: .30; } 100% { opacity: 0; } }
