/* Public pages: landing, signup, terms. Light, confident blue; mobile first, scoped to body.pub. */

body.pub {
    --p-ink: #0f172a; --p-ink-2: #475569; --p-ink-3: #94a3b8;
    --p-line: #e2e8f0; --p-bg: #ffffff; --p-bg-2: #f8fafc; --p-bg-3: #f1f5f9;
    --p-blue: #2563eb; --p-blue-2: #1d4ed8; --p-blue-ink: #1e3a8a; --p-tint: #eff4ff; --p-violet: #4f46e5;
    --p-r: 14px; --p-r-lg: 22px;
    --p-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
    --p-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --p-shadow-lg: 0 30px 60px -25px rgba(30, 58, 138, .35);
    --p-section: clamp(3.5rem, 8vw, 6rem);
    background: var(--p-bg); color: var(--p-ink); font-size: 17px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.pub h1, body.pub h2, body.pub h3 { color: var(--p-ink); letter-spacing: -.02em; line-height: 1.15; }
body.pub a { color: var(--p-blue-2); }
body.pub :focus-visible { outline: 3px solid var(--p-blue); outline-offset: 2px; }
body.pub.menu-open { overflow: hidden; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
.wrap--narrow { max-width: 760px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--p-blue); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--p-blue-2); margin: 0 0 .8rem; }

/* --- buttons */
body.pub .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
    border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
body.pub .btn:hover { transform: translateY(-1px); }
body.pub .btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
body.pub .btn--block { width: 100%; }
body.pub .btn--primary { background: var(--p-blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
body.pub .btn--primary:hover { background: var(--p-blue-2); color: #fff; }
body.pub .btn--ghost { background: #fff; color: var(--p-ink); border-color: var(--p-line); }
body.pub .btn--ghost:hover { border-color: var(--p-blue); color: var(--p-blue-2); background: var(--p-tint); }
body.pub .btn--light { background: #fff; color: var(--p-blue-ink); }

/* --- brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--p-ink); text-decoration: none; letter-spacing: -.02em; }
body.pub .brand { color: var(--p-ink); }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; font-size: .95rem; font-weight: 800;
    background: linear-gradient(135deg, var(--p-blue), var(--p-violet)); box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .7); }
body.pub .brand--light { color: #fff; }

/* --- top bar + hamburger */
.pub-bar { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.pub-bar.is-scrolled { border-bottom-color: var(--p-line); box-shadow: var(--p-shadow-sm); }
.pub-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.pub-bar__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer; border-radius: 10px; }
.pub-bar__toggle span { display: block; height: 2px; background: var(--p-ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.pub-bar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pub-bar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pub-bar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.pub-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 8px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--p-line); box-shadow: var(--p-shadow); }
.pub-nav.is-open { display: flex; }
.pub-nav a { min-height: 48px; display: flex; align-items: center; color: var(--p-ink-2); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--p-bg-3); }
.pub-nav a:hover { color: var(--p-ink); }
body.pub .pub-nav a.btn { justify-content: center; margin-top: 14px; border-bottom: 0; color: #fff; }

/* --- hero */
.hero { overflow: hidden; background: linear-gradient(180deg, #fff, var(--p-bg-2)); border-bottom: 1px solid var(--p-line); }
.hero__inner { display: grid; gap: 40px; padding-block: 48px 64px; }
.hero__title { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; margin: 0 0 18px; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--p-ink-2); max-width: 40ch; margin: 0 0 28px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__note { margin: 14px 0 0; font-size: .9rem; color: var(--p-ink-3); }

/* faux phone */
.hero__visual { position: relative; display: grid; place-items: center; padding: 16px 0; }
.phone { position: relative; width: min(290px, 78vw); padding: 12px; border-radius: 40px; background: #0f172a; box-shadow: var(--p-shadow-lg); transform: rotate(-2deg); }
.phone__notch { position: absolute; top: 18px; left: 50%; width: 80px; height: 18px; margin-left: -40px; border-radius: 10px; background: #0f172a; z-index: 1; }
.phone__screen { display: grid; gap: 12px; padding: 44px 14px 18px; border-radius: 30px; background: #f1f5f9; }
.ph-hero { display: grid; gap: 2px; padding: 16px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--p-blue), var(--p-blue-ink)); }
.ph-hero__state { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; opacity: .85; }
.ph-hero__state i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); animation: pulse 1.8s ease-in-out infinite; }
.ph-hero strong { font-size: 1.3rem; }
.ph-hero__time { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ph-chip { padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--p-line); font-size: .85rem; font-weight: 600; color: var(--p-ink-2); }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-tile { padding: 14px 12px; border-radius: 16px; font-size: .85rem; font-weight: 700; background: rgba(37, 99, 235, .12); color: var(--p-ink); }
.ph-tile--on { background: var(--p-blue); color: #fff; }
.ph-tile--wait { background: rgba(217, 119, 6, .14); }
.ph-tile--break { background: rgba(100, 116, 139, .16); }
.ph-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #e2e8f0; }
.ph-bar i { display: block; height: 100%; }
.ph-bar__work { width: 62%; background: var(--p-blue); }
.ph-bar__wait { width: 18%; background: #d97706; }
.float { position: absolute; display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #fff;
    border: 1px solid var(--p-line); box-shadow: var(--p-shadow); font-size: .82rem; color: var(--p-ink-2); white-space: nowrap; }
.float b { color: var(--p-ink); font-size: .95rem; }
.float--gps { top: 8%; left: 0; }
.float--gps b { color: #047857; }
.float--pay { bottom: 10%; right: 0; }
.float--pay b { color: var(--p-blue-2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }

/* --- moving strip */
.strip { overflow: hidden; border-bottom: 1px solid var(--p-line); padding-block: 22px; background: #fff;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip__track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.strip__track span { font-weight: 700; color: var(--p-ink-3); white-space: nowrap; font-size: .95rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- sections */
.section { padding-block: var(--p-section); }
.section--alt { background: var(--p-bg-2); border-block: 1px solid var(--p-line); }
.section__head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin: 0 0 12px; }
.section__lead { color: var(--p-ink-2); font-size: 1.075rem; margin: 0; }

/* bento */
.bento { display: grid; gap: 14px; }
.bento__cell { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--p-r); border: 1px solid var(--p-line);
    background: #fff; box-shadow: var(--p-shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.bento__cell:hover { transform: translateY(-4px); box-shadow: var(--p-shadow); border-color: #cbd5e1; }
.bento__cell--feature { background: linear-gradient(160deg, var(--p-tint), #fff 70%); }
.bento__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--p-blue); color: #fff;
    margin-bottom: 12px; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .7); }
.bento__icon svg { width: 24px; height: 24px; }
.bento__title { font-size: 1.2rem; margin: 0; }
.bento__cell--feature .bento__title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.bento__text { color: var(--p-ink-2); font-size: .98rem; margin: 0; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.step { position: relative; padding: 24px; border-radius: var(--p-r); background: #fff; border: 1px solid var(--p-line); }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--p-tint); color: var(--p-blue-2);
    font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--p-ink-2); }

/* prices */
.period-toggle { display: inline-flex; margin-top: 22px; padding: 4px; border-radius: 999px; background: var(--p-bg-3); border: 1px solid var(--p-line); }
.period-toggle button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; color: var(--p-ink-2); cursor: pointer; }
.period-toggle button[aria-pressed="true"] { background: #fff; color: var(--p-ink); box-shadow: var(--p-shadow-sm); }
.price-cards { display: grid; gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-radius: var(--p-r-lg);
    background: #fff; border: 1px solid var(--p-line); box-shadow: var(--p-shadow-sm); }
.price-card--pick { border: 2px solid var(--p-blue); box-shadow: var(--p-shadow-lg); }
.price-card__flag { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--p-blue); color: #fff;
    font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.price-card h3 { margin: 0; font-size: 1.3rem; }
.price-card p { margin: 0; }
.price-card__seats { color: var(--p-ink-2); font-weight: 500; }
.price-card__desc { color: var(--p-ink-2); font-size: .95rem; }
.price-card__price { margin: 8px 0 12px !important; }
.price-card__price[hidden] { display: none; }
.price-card__price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price-card__per { color: var(--p-ink-2); }
.price-card__vat { display: block; font-size: .85rem; color: var(--p-ink-3); }
.price-card .btn { margin-top: auto; }
.price-card__note { font-size: .82rem; color: var(--p-ink-3); text-align: center; }

/* FAQ */
.faq { border-bottom: 1px solid var(--p-line); }
.faq summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--p-blue); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--p-ink-2); }

/* CTA band */
.cta-band { color: #fff; background: linear-gradient(120deg, var(--p-blue-ink), var(--p-blue) 60%, var(--p-violet)); }
.cta-band__inner { display: flex; flex-direction: column; gap: 20px; padding-block: clamp(2.5rem, 6vw, 4rem); }
body.pub .cta-band__title { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; margin: 0 0 6px; }
.cta-band__text { color: #dbeafe; margin: 0; }

/* footer */
.pub-foot { background: #0b1220; color: #cbd5e1; font-size: .95rem; }
.pub-foot__grid { display: grid; gap: 28px; padding-block: 48px 32px; }
.pub-foot__brand p { margin: 12px 0 0; color: #94a3b8; max-width: 32ch; }
.pub-foot__col { display: flex; flex-direction: column; gap: 8px; }
body.pub .pub-foot__col h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 4px; }
body.pub .pub-foot a { color: #cbd5e1; text-decoration: none; }
body.pub .pub-foot a:hover { color: #fff; }
.pub-foot__legal { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 20px 28px; border-top: 1px solid #1e293b; color: #64748b; font-size: .85rem; }
.pub-foot__legal nav { display: flex; gap: 20px; }

/* signup + text pages */
.pub-form { background: linear-gradient(180deg, var(--p-tint), var(--p-bg-2)); padding: 40px 16px 64px; }
.pub-form__card { max-width: 500px; margin: 0 auto; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-r-lg); padding: 28px 24px; box-shadow: var(--p-shadow); }
.pub-form__card h1 { font-size: 1.6rem; font-weight: 800; }
.pub-form__row { display: grid; gap: 12px; }
.pub-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pub-text { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }

@media (prefers-reduced-motion: reduce) {
    .strip__track, .ph-hero__state i { animation: none; }
    body.pub .btn, .bento__cell { transition: none; }
}

@media (min-width: 600px) {
    .hero__actions { flex-direction: row; flex-wrap: wrap; }
    .pub-form__row { grid-template-columns: 1fr 1fr; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento__cell--feature, .bento__cell--wide { grid-column: span 2; }
    .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .pub-foot__grid { grid-template-columns: 1fr 1fr; }
    .pub-foot__brand { grid-column: span 2; }
}

@media (min-width: 900px) {
    .wrap { padding-inline: 32px; }
    .pub-bar__toggle { display: none; }
    .pub-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; }
    .pub-nav a { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; }
    .pub-nav a:hover { background: var(--p-bg-3); }
    .pub-nav__login { margin-left: 12px; }
    body.pub .pub-nav a.btn { margin: 0 0 0 8px; padding: 0 20px; }
    .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-block: 96px 112px; }
    .bento { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
    .bento__cell--feature { grid-column: span 2; grid-row: span 2; justify-content: flex-end; }
    .bento__cell--wide { grid-column: span 2; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .price-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .pub-foot__grid { grid-template-columns: 2fr 1fr 1fr; }
    .pub-foot__brand { grid-column: auto; }
}
