/* OptoQ landing page. No framework, no external requests: someone scanning a QR
   at a festival reads this on a phone in daylight, on whatever signal there is.
   Inter is served from this folder; nothing is fetched from anywhere else. */

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

:root {
    --oq-teal:  #0F3D3E;   /* primary, dark surfaces, headings */
    --oq-amber: #F5A623;   /* accent, CTA buttons */
    --oq-cream: #FAF7F2;   /* page background */
    --oq-ink:   #1A1A1A;   /* body text */
    --oq-white: #FFFFFF;

    --oq-teal-2: #1B5657;  /* hover / gradient partner */
    --oq-line:   #E4DED3;
    --oq-muted:  #5B6664;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(15, 61, 62, .18);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--oq-ink);
    background: var(--oq-cream);
    line-height: 1.55;
    font-size: 17px;
}

a { color: var(--oq-teal); }
img { max-width: 100%; height: auto; display: block; }

/* ── Header ── */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(250, 247, 242, .92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--oq-line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--oq-teal);
    text-decoration: none;
    letter-spacing: -.01em;
}
.mark { width: 36px; height: 36px; border-radius: 10px; }

/* ── Buttons ── amber carries ink, not white: white on #F5A623 is 2.1:1. */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn-primary { background: var(--oq-amber); color: var(--oq-ink); box-shadow: 0 6px 18px rgba(245, 166, 35, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(245, 166, 35, .45); }
.btn-primary:active { transform: translateY(0); background: #E59A16; }
.btn-large { padding: 16px 30px; font-size: 1.1rem; }
.btn-ghost { color: var(--oq-teal); border: 2px solid var(--oq-teal); }
.btn-ghost:hover { background: var(--oq-teal); color: var(--oq-cream); }

/* ── Sections ── */
main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 52px 0; }
section + section { border-top: 1px solid var(--oq-line); }

h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; color: var(--oq-teal); margin-bottom: 18px; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -.015em; color: var(--oq-teal); margin-bottom: 8px; }
h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--oq-teal); }
p  { margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--oq-muted); margin-bottom: 26px; max-width: 44rem; }
.kicker { color: var(--oq-muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; }
.sub { color: var(--oq-muted); max-width: 44rem; margin-bottom: 28px; }

/* ── Hero ── */
.hero { padding-top: 44px; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { color: var(--oq-muted); font-size: .9rem; margin-top: 14px; }

/* The kiosk in a frame, standing on a festival photo. */
.hero-visual { position: relative; }
.hero-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.device {
    position: absolute;
    right: 6%;
    bottom: -8%;
    width: 38%;
    max-width: 260px;
    padding: 4.5% 3.5% 6%;
    background: var(--oq-teal);
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(15, 61, 62, .35);
}
.device::after {   /* home mark at the foot of the bezel */
    content: "";
    position: absolute;
    left: 50%; bottom: 2.4%;
    width: 22%; height: 4px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: rgba(255,255,255,.25);
}
.device img { border-radius: 8px; width: 100%; }

/* ── Channel cards ── */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
    background: var(--oq-white);
    border: 1px solid var(--oq-line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media {
    background: linear-gradient(160deg, var(--oq-teal), var(--oq-teal-2));
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 18px;
}
.card-media.light { background: linear-gradient(160deg, #EEF3F1, #DCE7E3); }
.card-media img { max-height: 100%; width: auto; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.card-media .phone { max-height: 100%; width: auto; border-radius: 22px; border: 6px solid #1A1A1A; box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.card-body { padding: 18px 20px 22px; }
.card p { color: var(--oq-muted); margin: 0; }

/* Line icon for the till (no screenshot, the till is a staff screen behind a login). */
.icon-till { width: 46%; height: auto; color: var(--oq-cream); }

/* ── Pickup display (animated) ── */
.board {
    width: 100%;
    background: #101514;
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
    font-variant-numeric: tabular-nums;
}
.board-col { background: #1A211F; border-radius: 8px; padding: 8px; min-height: 150px; }
.board-col h4 { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 2px solid; }
.board-col.recv h4 { color: #6FB1FF; border-color: #6FB1FF; }
.board-col.prep h4 { color: var(--oq-amber); border-color: var(--oq-amber); }
.board-col.done h4 { color: #6BE59A; border-color: #6BE59A; }
.board-col ul { list-style: none; }
.board-col li {
    background: #262E2B;
    border-radius: 6px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    padding: 6px 0;
    margin-bottom: 6px;
    transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.board-col.recv li { color: #6FB1FF; }
.board-col.prep li { color: var(--oq-amber); }
.board-col.done li { color: #6BE59A; }
.board-col li.enter { animation: board-in .45s var(--ease); }
@keyframes board-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Audience ── */
.audience { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.audience-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.checks { list-style: none; margin-top: 8px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before {
    content: "✓";
    position: absolute; left: 0; top: 1px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--oq-teal);
    color: var(--oq-amber);
    font-size: .85rem; font-weight: 800;
    display: grid; place-items: center;
}

/* ── Pricing / final CTA ── */
.pricing {
    background: var(--oq-teal);
    color: var(--oq-cream);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    margin: 20px 0 52px;
}
.pricing h2 { color: var(--oq-cream); }
.pricing p { font-size: 1.15rem; margin-bottom: 22px; opacity: .92; }

/* ── Footer ── */
.foot { background: var(--oq-ink); color: #D9D9D9; padding: 36px 20px; font-size: .95rem; }
.foot a { color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 1120px; margin: 0 auto; }
.foot-note { max-width: 1120px; margin: 24px auto 0; color: #9A9A9A; font-size: .85rem; }

/* ── Motion, restrained ── */
.rise { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.hero .seq { opacity: 0; transform: translateY(12px); animation: seq .6s var(--ease) forwards; }
.hero .seq:nth-child(1) { animation-delay: .05s; }
.hero .seq:nth-child(2) { animation-delay: .18s; }
.hero .seq:nth-child(3) { animation-delay: .31s; }
.hero .seq:nth-child(4) { animation-delay: .44s; }
.hero .seq:nth-child(5) { animation-delay: .57s; }
.hero-visual.seq { animation-delay: .35s; }
@keyframes seq { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rise, .hero .seq { opacity: 1; transform: none; transition: none; animation: none; }
    .card, .btn { transition: none; }
    .card:hover, .btn-primary:hover { transform: none; }
    .board-col li, .board-col li.enter { transition: none; animation: none; }
}

/* ── Wider screens ── */
@media (min-width: 680px) {
    .grid { grid-template-columns: 1fr 1fr; }
    .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
    section { padding: 72px 0; }
}
@media (min-width: 960px) {
    .hero { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 96px; }
    .grid { grid-template-columns: repeat(4, 1fr); }
    .audience { grid-template-columns: 1fr 1fr; gap: 48px; }
    .pricing { padding: 56px 40px; }
}

/* ── Legal pages ── */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.updated { color: var(--oq-muted); font-size: .9rem; margin-bottom: 20px; }
