/* Yes or No marketing page (yesorno.html): theme and page-only rules. Loaded after product.css.
   The look is the app's Default theme: brushed steel, the YES key's green, and the graphite of
   the wells the keys sit in. Light only (the content document, Part 5). */

:root {
    color-scheme: only light;

    /* From ButtonColors in YesOrNo/ContentView.swift: the YES key runs #52DB75 to #178542. */
    --brand: #178542;          /* step numbers, the pre-launch key, link underlines */
    --accent: #178542;         /* focus ring */
    --on-brand: #FFFFFF;

    /* Sampled from the Default screenshots: the key wells (#1C1C1C) and the steel (#8F8F8F to
       #A8A8A8; the content document's flat equivalent is #9A9A9E). The bands are light tints
       of that steel. */
    --brand-deep: #1C1C1C;     /* header and footer */
    --steel: #9A9A9E;
    --hero-fallback: #9A9A9E;
    --hero-overlay: transparent;
    --hero-soft: #1C1C1C;
    --page-bg: #FFFFFF;
    --band: #EFEFF0;
    --band-light: #F7F7F8;
    --card: #EBEBED;
    --line: #D1D1D5;
    --ink: #1C1C1C;
    --link: #1C1C1C;           /* the green is too light for text on the bands */
    --caption: #4A4A4C;
    --footer-soft: #C7C7CC;

    /* The app is set in the system font (San Francisco), bold. */
    --display-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display-weight: 800;

    --radius: 18px;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

/* Links: graphite text, green underline. */
a {
    text-decoration-color: var(--brand);
    text-decoration-thickness: 2px;
}

a:hover {
    color: var(--ink);
    text-decoration-thickness: 3px;
}

/* ---------- Header: the graphite of the key wells ---------- */
.site-header {
    background: var(--brand-deep);
}

.site-header .prelaunch {
    display: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: 10px;
    box-shadow: 0 0 0 3px #3A3A3C;
}

/* ---------- The pre-launch label ----------
   Weight of a button, but not a link and nothing like Apple's badge: drawn as the app's own YES
   key in its dark well. */
.prelaunch {
    display: inline-block;
    padding: 0.8rem 1.35rem;
    font-weight: 800;
    font-size: 1.125rem;
    line-height: 1.2;
    color: #fff;
    background: var(--brand);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 5px var(--brand-deep);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: default;
}

/* ---------- Hero: the brushed steel, dark text ---------- */
.hero {
    color: var(--ink);
    background-image: url("images/yesorno/steel.webp");
    background-position: center;
}

.hero::before {
    display: none;
}

.hero h1,
.hero__lede {
    text-shadow: none;
}

.hero h1 {
    letter-spacing: -0.01em;
}

/* Break the headline between its sentences, never inside one. */
.nowrap {
    white-space: nowrap;
}

.hero__lede {
    font-size: 1.1875rem;
}

.hero .prelaunch {
    margin: 0.6rem 0 0.4rem;
}

.hero__trust {
    margin-top: 1.25rem;
}

.hero__small {
    color: var(--ink);
}

/* ---------- Eight looks ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
}

.gallery img {
    display: block;
    width: 100%;
    border-radius: 9.5% / 4.37%;
    box-shadow: var(--shadow);
}

.gallery figcaption {
    margin-top: 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--caption);
}

.gallery__name {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--ink);
}

/* ---------- Voices ---------- */
.voices__shot {
    width: min(64vw, 260px);
}

/* ---------- BREAKING strip: MAYBE amber (#FACC47) with graphite text ---------- */
.breaking {
    padding: 0.45rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
    color: var(--ink);
    background: #FACC47;
}

.breaking__tag {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- Hero additions ---------- */
.hero__sub {
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
    font-weight: 800;
    line-height: 1.25;
}

.hero__lede + .hero__lede {
    margin-top: -0.35rem;
}

.hero__price {
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
    font-weight: 800;
}

/* ---------- Demo: the two keys on a steel plate ----------
   Key colours are the app's (ButtonColors): YES runs to #178542, NO #F55C57 to #B81C1C. The tops
   are taken a step darker than the app (#2EA653, #E0443F) so white text keeps 3:1 at this size. */
.demo .lede {
    margin-bottom: 1.75rem;
}

.demo__panel {
    max-width: 560px;
    margin: 0 auto;
}

.demo__keys {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 26px;
    background: var(--steel) url("images/yesorno/steel.webp") center / cover;
    box-shadow: var(--shadow);
}

.demo__key {
    min-height: 8.5rem;
    padding: 0.5rem;
    border: 0;
    border-radius: var(--radius);
    font: 800 clamp(2rem, 1.5rem + 2vw, 2.75rem) / 1 var(--display-font);
    letter-spacing: 0.03em;
    color: #fff;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 0 0 6px var(--brand-deep);
    cursor: pointer;
    transition: transform 80ms ease-out, filter 80ms ease-out;
}

.demo__key--yes {
    background: linear-gradient(#2EA653, #178542);
}

.demo__key--no {
    background: linear-gradient(#E0443F, #B81C1C);
}

.demo__key:hover {
    filter: brightness(1.06);
}

.demo__key:active {
    transform: translateY(2px) scale(0.98);
    filter: brightness(0.94);
}

.demo__key:focus-visible {
    outline: 4px solid var(--ink);
    outline-offset: 10px;
}

.demo__key--pressed {
    animation: demo-press 220ms ease-out;
}

@keyframes demo-press {
    40% { transform: translateY(3px) scale(0.97); }
}

.demo__status:empty {
    display: none;
}

.demo__status {
    margin-top: 1rem;
    color: var(--caption);
}

.demo__panel--ready .demo__nojs {
    display: none;
}

.demo__nojs {
    margin-top: 1rem;
    color: var(--caption);
}

.demo__punchline {
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 800;
}

/* ---------- Gallery quips ---------- */
.gallery__quip {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: var(--ink);
}

/* ---------- Premium indecision: graphite, like the key wells ---------- */
.premium {
    color: #fff;
    background: var(--brand-deep);
}

.premium__head {
    max-width: 40em;
    margin: 0 auto;
    text-align: center;
}

.premium__eyebrow {
    margin-bottom: 0.6rem;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FACC47;
}

.premium .section__title {
    color: #fff;
}

.premium__sub {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.7em;
}

.premium .lede {
    color: #E5E5EA;
}

.offers {
    display: grid;
    gap: 1rem;
    max-width: 820px;
    margin: 2.25rem auto 0;
    padding: 0;
    list-style: none;
}

.offer {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: #2C2C2E;
}

.offer__key {
    display: block;
    margin-bottom: 1rem;
    padding: 0.85rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
}

.offer__key--maybe {
    color: var(--ink);
    background: linear-gradient(#FACC47, #D98C0F);
}

.offer__key--random {
    color: #fff;
    background: linear-gradient(#995C2E, #572E14);
}

.offer__name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    margin-bottom: 0.4rem;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

.offer__price {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0;
}

.offer p {
    color: #E5E5EA;
}

.offer--bundle {
    border: 1px solid #636366;
    background: transparent;
}

.offer--bundle .offer__name {
    text-transform: uppercase;
}

.premium__note {
    max-width: 40em;
    margin: 1.5rem auto 0;
    font-size: 0.9375rem;
    text-align: center;
    color: #C7C7CC;
}

.pair {
    display: grid;
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.pair__item .shot--phone {
    width: min(64vw, 260px);
    margin-bottom: 1.5rem;
}

.pair__item h3 {
    margin-bottom: 0.35rem;
    font-size: 1.375rem;
    letter-spacing: 0.02em;
    color: #fff;
}

.pair__item p {
    max-width: 30em;
    color: #E5E5EA;
}

@media (min-width: 760px) {
    .offers {
        grid-template-columns: 1fr 1fr;
    }

    .offer--bundle {
        grid-column: 1 / -1;
    }
}

/* ---------- Under the hood ---------- */
.facts {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
    font-size: 1.125rem;
}

/* Each item is marked with a tiny YES key. */
.facts li {
    position: relative;
    padding-left: 1.9rem;
}

.facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 4px;
    background: linear-gradient(#52DB75, #178542);
    box-shadow: 0 0 0 2px var(--brand-deep);
}

.everywhere__shot {
    max-width: 760px;
    margin: 2.5rem auto 0;
}

.everywhere__shot img {
    border: 1px solid var(--line);
    border-radius: 3.5% / 4.7%;
}

/* ---------- Final call ---------- */
.final-cta {
    background: var(--band);
}

.final-cta__price {
    margin-top: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.final-cta .prelaunch {
    margin-top: 1rem;
}

.final-cta__small {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--caption);
}

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
    .site-header .prelaunch {
        display: inline-block;
    }
}

@media (min-width: 760px) {
    .pair {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .pair__item .shot--phone {
        margin-inline: 0;
    }
}

@media (min-width: 860px) {
    .gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3rem 2rem;
    }

    .voices__shot {
        width: 260px;
    }

    .split .voices__shot.shot--phone {
        width: 260px;
    }

    .pair__item .shot--phone {
        width: 260px;
    }
}
