/* FastTrackReview - public site
   ------------------------------------------------------------------------
   One typeface, four surfaces, one accent. The gold is reserved for review
   stars and nothing else, so it always means the same thing on the page. */

:root {
    --ink:          #0e2b22;
    --ink-soft:     #385249;
    --muted:        #5c6b64;
    --line:         #d3dcd6;
    --panel:        #eef1ee;
    --panel-deep:   #e2e8e3;
    --paper:        #ffffff;
    --gold:         #c08a2e;
    --gold-soft:    #f0e0c2;

    --measure:      64ch;
    --gutter:       clamp(1.25rem, 5vw, 4rem);
    --stack:        clamp(3.5rem, 9vw, 7rem);

    --step--1:      clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
    --step-0:       clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
    --step-1:       clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
    --step-2:       clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --step-3:       clamp(2rem, 1.6rem + 2vw, 3.1rem);
    --step-4:       clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: balance;
}

p { margin: 0; max-width: var(--measure); }

a { color: inherit; }

img, svg { max-width: 100%; height: auto; display: block; }

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

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

.narrow { width: min(100%, 46rem); }

/* --- Masthead --------------------------------------------------------- */

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
}

.wordmark {
    font-size: var(--step-0);
    font-weight: 600;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.wordmark span { color: var(--gold); }

.masthead nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    font-size: var(--step--1);
}

.masthead nav a {
    text-decoration: none;
    color: var(--muted);
}

.masthead nav a:hover { color: var(--ink); }

.lang {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    color: var(--ink) !important;
    font-variant-numeric: tabular-nums;
}

/* --- Buttons ---------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: var(--step-0);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.button:hover { background: #16382d; }

.button.ghost {
    background: transparent;
    color: var(--ink);
}

.button.ghost:hover { background: var(--panel); }

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* --- Hero ------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: center;
    padding-block: clamp(2rem, 5vw, 4rem) var(--stack);
}

@media (min-width: 62rem) {
    .hero { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 {
    font-size: var(--step-4);
    max-width: 15ch;
}

.hero .lede {
    margin-top: 1.5rem;
    font-size: var(--step-1);
    color: var(--ink-soft);
    max-width: 38ch;
}

.hero-stage {
    position: relative;
    background: var(--panel);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

/* One motion moment on load: the tap lands, the ripple spreads, the stars
   fill. Nothing else on the page animates. */
@keyframes tap-approach {
    0%, 12%   { transform: translate(26px, 30px); opacity: 0; }
    30%       { transform: translate(0, 0); opacity: 1; }
    100%      { transform: translate(0, 0); opacity: 1; }
}

@keyframes ripple-out {
    0%, 30%  { r: 6; opacity: 0.65; }
    62%      { r: 52; opacity: 0; }
    100%     { r: 52; opacity: 0; }
}

@keyframes star-fill {
    from { opacity: 0.18; }
    to   { opacity: 1; }
}

.stage-phone { animation: tap-approach 2.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stage-ripple { animation: ripple-out 2.4s ease-out both; }
.stage-star { opacity: 0.18; animation: star-fill 0.4s ease-out forwards; }
.stage-star:nth-of-type(1) { animation-delay: 1.15s; }
.stage-star:nth-of-type(2) { animation-delay: 1.28s; }
.stage-star:nth-of-type(3) { animation-delay: 1.41s; }
.stage-star:nth-of-type(4) { animation-delay: 1.54s; }
.stage-star:nth-of-type(5) { animation-delay: 1.67s; }

@media (prefers-reduced-motion: reduce) {
    .stage-phone,
    .stage-ripple,
    .stage-star {
        animation: none;
        opacity: 1;
    }
    .stage-ripple { opacity: 0; }
}

/* --- Sections --------------------------------------------------------- */

section { padding-block: var(--stack); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.section-head h2 { font-size: var(--step-3); max-width: 18ch; }

.section-head p { margin-top: 1rem; color: var(--muted); }

.tinted {
    background: var(--panel);
    border-radius: clamp(1rem, 3vw, 2rem);
    padding-inline: var(--gutter);
}

/* --- Steps (a real sequence, so it is numbered) ------------------------ */

.steps {
    display: grid;
    gap: 2rem;
    counter-reset: step;
}

@media (min-width: 48rem) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.step { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid var(--line); }

.step::before {
    content: counter(step);
    display: block;
    margin-bottom: 0.75rem;
    font-size: var(--step--1);
    font-variant-numeric: tabular-nums;
    color: var(--gold);
    font-weight: 600;
}

.step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }

.step p { color: var(--muted); font-size: var(--step-0); }

/* --- Product table ---------------------------------------------------- */

.products {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
}

@media (min-width: 52rem) {
    .products { grid-template-columns: repeat(3, 1fr); }
}

.product {
    background: var(--paper);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product h3 { font-size: var(--step-1); }

.product .price {
    font-size: var(--step-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.product .price small {
    display: block;
    font-size: var(--step--1);
    letter-spacing: 0;
    color: var(--muted);
    font-weight: 400;
    margin-top: 0.2rem;
}

.product p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }

.product.featured { background: var(--ink); color: var(--paper); }
.product.featured p { color: #b9cdc4; }

/* --- Included list ---------------------------------------------------- */

.included {
    display: grid;
    gap: 1.75rem 2.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (min-width: 48rem) {
    .included { grid-template-columns: repeat(2, 1fr); }
}

.included li { padding-left: 1.6rem; position: relative; }

.included li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--gold);
}

.included strong { display: block; font-weight: 500; margin-bottom: 0.3rem; }

.included span { color: var(--muted); font-size: var(--step--1); }

/* --- Notice for people who just tapped a card ------------------------- */

.notice {
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 0.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--paper);
}

.notice h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }

.notice p { color: var(--muted); font-size: var(--step--1); }

/* --- Closing call ----------------------------------------------------- */

.closing {
    background: var(--ink);
    color: var(--paper);
    border-radius: clamp(1rem, 3vw, 2rem);
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
    text-align: left;
}

.closing h2 { font-size: var(--step-3); max-width: 20ch; }

.closing p { margin-top: 1rem; color: #b9cdc4; }

.closing .button {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

.closing .button:hover { background: #e8eee9; }

/* --- Footer ----------------------------------------------------------- */

footer {
    padding-block: 3rem 4rem;
    border-top: 1px solid var(--line);
    margin-top: var(--stack);
    font-size: var(--step--1);
    color: var(--muted);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    justify-content: space-between;
    align-items: flex-start;
}

footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* --- Not found page --------------------------------------------------- */

.centered {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.centered h1 { font-size: var(--step-3); }
.centered p { color: var(--muted); }
