/* Wi-Fi Refill: product page. Light and short, built around the real menu
   and a short film. Caramel comes from the app icon. Fonts are self-hosted:
   the site CSP is `font-src 'self' data:`. */

@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/geist-variable.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --bg: #ffffff;
    --soft: #faf6f1;
    --frame: #f3e7da;
    --text: #17130f;
    --dim: #625a52;
    --line: #ebe2d8;
    --caramel: #b4562a;
    --wrap: 68rem;
    --gutter: clamp(1.25rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.55 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--caramel); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.025em; text-wrap: balance; }
p, ul, ol { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
code { font: 0.88em/1.4 ui-monospace, "SF Mono", Menlo, monospace; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.5rem 1rem; border-radius: 999px; background: var(--text); color: #fff; }
.skip:focus { top: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0 1.4rem;
    border: 1px solid var(--text);
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: #33291f; border-color: #33291f; }
.btn--line { background: transparent; border-color: var(--line); color: var(--text); }
.btn--line:hover { background: var(--soft); border-color: var(--line); }
.btn--sm { min-height: 2.4rem; padding: 0 1rem; font-size: 0.92rem; }

/* nav */

.nav { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / 88%); backdrop-filter: saturate(1.8) blur(12px); -webkit-backdrop-filter: saturate(1.8) blur(12px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 1.5rem; min-height: 3.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; color: var(--text); font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.nav__link { color: var(--dim); font-size: 0.95rem; text-decoration: none; }
.nav__link:hover { color: var(--text); }

/* hero */

.hero { padding: clamp(2.25rem, 6vw, 3.75rem) 0 clamp(2rem, 5vw, 2.75rem); text-align: center; }
.hero__icon { width: clamp(88px, 12vw, 128px); margin: 0 auto 1.1rem; filter: drop-shadow(0 18px 28px rgb(120 60 20 / 22%)); }
.hero__eyebrow { color: var(--dim); font-size: 0.95rem; }
.hero h1 { margin: 0.7rem auto 0; font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; }
.hero__lede { margin: 1.25rem auto 0; max-width: 37rem; color: var(--dim); font-size: clamp(1.05rem, 2.2vw, 1.2rem); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.hero__note { margin-top: 1rem; color: var(--dim); font-size: 0.9rem; }

.stage { margin: 0 0 clamp(1rem, 3vw, 2rem); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--frame); box-shadow: 0 30px 60px -40px rgb(90 45 15 / 45%); }

/* sections */

.section { padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
.section--soft { background: var(--soft); }
.section__title { font-size: clamp(1.8rem, 4.2vw, 2.4rem); text-align: center; }
.section__lede { max-width: 40rem; margin: 0.9rem auto 0; color: var(--dim); text-align: center; }
.section__lede b { color: var(--text); font-weight: 600; }
.section__lede--small { font-size: 0.92rem; }

.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 1.75rem); max-width: 58rem; margin: 1.75rem auto 0; }
.compare__col { padding: 1.5rem 1.6rem; border: 1px solid var(--line); border-radius: 18px; }
.compare__col h3 { font-size: 1.15rem; }
.compare__col--good { border-color: #e9cdb5; background: linear-gradient(180deg, #fff8f1, #fff); }

.steps { display: grid; gap: 0.9rem; margin-top: 1rem; counter-reset: step; }
.steps li { position: relative; padding-left: 2.6rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--caramel); color: #fff; font-size: 0.85rem; font-weight: 600; }
.steps--muted li { color: var(--dim); }
.steps--muted li::before { background: #d9d2ca; color: var(--text); }

.film { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.film h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.film p { margin-top: 0.75rem; color: var(--dim); }
.film video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--frame); }

.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.point { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.point b { display: block; }
.point span { display: block; margin-top: 0.3rem; color: var(--dim); }
.points__foot { margin-top: 1.25rem; color: var(--dim); font-size: 0.92rem; text-align: center; }

.setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); max-width: 58rem; margin: 1.5rem auto 0; }
.setup h3 { font-size: 1.1rem; }
.faq { display: grid; gap: 0.6rem; margin-top: 1rem; }
.faq details { padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 0.5rem; color: var(--dim); }
.faq code { padding: 0.1rem 0.35rem; border-radius: 5px; background: var(--soft); color: var(--text); }

/* footer */

.foot { padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem; border-top: 1px solid var(--line); background: var(--soft); color: var(--dim); font-size: 0.92rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2rem clamp(3rem, 8vw, 6rem); }
.foot__about p { max-width: 22rem; margin-top: 0.8rem; }
.foot__about p a { color: var(--text); }
.foot nav { display: grid; align-content: start; gap: 0.55rem; }
.foot h2 { margin-bottom: 0.2rem; color: var(--text); font-size: 0.92rem; font-weight: 600; letter-spacing: 0; }
.foot nav a, .foot__legal a { color: var(--dim); text-decoration: none; }
.foot nav a:hover, .foot__legal a:hover { color: var(--text); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; }
.foot__legal p:last-child { display: flex; gap: 1.25rem; }

@media (max-width: 760px) {
    .nav__link { display: none; }
    .compare { grid-template-columns: 1fr; }
    .film { grid-template-columns: 1fr; }
    .points { grid-template-columns: 1fr; gap: 0.6rem; }
    .point { padding: 0.9rem 1rem; }
    .setup { grid-template-columns: 1fr; }
    .foot__grid { grid-template-columns: 1fr 1fr; }
    .foot__about { grid-column: 1 / -1; }
}
