/* ============================================================
   Accordate — light theme. Design tokens live on :root; never
   hardcode a colour in a rule — add or reuse a token.
   ============================================================ */
:root {
    --bg: #F5F6FB;
    --bg-2: #EEF0F8;
    --surface: #FFFFFF;
    --surface-2: #F7F8FC;
    --surface-3: #EEF0F8;
    --border: #E4E7F2;
    --border-2: #D3D8E8;
    --text: #171A2B;
    --text-2: #4B5168;
    --text-3: #7C829B;
    --brand: #6D4AFF;
    --brand-2: #5637E6;
    --brand-soft: #EFEBFF;
    --brand-glow: rgba(109, 74, 255, 0.28);
    --yes: #0E9F6E;
    --yes-soft: #DDF7EC;
    --maybe: #D97706;
    --maybe-soft: #FEF1DC;
    --no: #E11D48;
    --no-soft: #FFE4EA;
    --danger: #E11D48;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 30px rgba(23, 26, 43, 0.08);
    --shadow-sm: 0 2px 10px rgba(23, 26, 43, 0.06);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --grad: linear-gradient(135deg, #6D4AFF 0%, #A855F7 55%, #EC4899 100%);
    --grad-soft: linear-gradient(135deg, rgba(109,74,255,.12), rgba(236,72,153,.10));
    --pink: #EC4899;
    --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    background-image:
        radial-gradient(900px 520px at 8% -10%, rgba(109, 74, 255, 0.20), transparent 60%),
        radial-gradient(700px 420px at 100% 0%, rgba(236, 72, 153, 0.14), transparent 60%),
        radial-gradient(600px 400px at 50% 60%, rgba(14, 159, 110, 0.07), transparent 60%);
    background-repeat: no-repeat;
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(23, 26, 43, 0.07) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(#000 0%, transparent 70%); mask-image: linear-gradient(#000 0%, transparent 70%); }
main { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.025em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--text-3); }
.small { font-size: 0.85rem; }
.hint { color: var(--text-3); font-size: 0.9rem; margin: 0.15em 0 0.6em; }
.lead { color: var(--text-2); font-size: 1.1rem; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text-2); font-weight: 500; font-size: 0.93rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface-3); text-decoration: none; }
.nav a.lang { color: var(--text-3); }
.nav .btn { margin-left: 6px; }
@media (max-width: 760px) {
    .nav a:not(.btn) { display: none; }
    .header-inner { height: 58px; }
    .brand { font-size: 1.15rem; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 18px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 0.95rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
    color: var(--text); background: var(--surface-3); text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--border-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); background-size: 160% 160%; color: #fff; box-shadow: 0 8px 22px var(--brand-glow); border: 0; }
.btn-primary:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 12px 28px var(--brand-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--surface); border-color: rgba(225, 29, 72, 0.35); color: var(--danger); }
.btn-danger:hover { background: var(--no-soft); }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 8px 13px; font-size: 0.88rem; }
.btn-xs { padding: 5px 9px; font-size: 0.78rem; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.icon-btn { background: none; border: 0; cursor: pointer; font: inherit; color: var(--text-3); padding: 2px 6px; border-radius: 6px; line-height: 1; }
.icon-btn:hover { background: var(--no-soft); color: var(--danger); }
.inline { display: inline; margin: 0; }

/* ---------- Cards / forms ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .linkbox label { font-weight: 600; font-size: 0.9rem; color: var(--text-2); }
.field .hint { margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
input[type=text], input[type=email], input[type=time], textarea {
    width: 100%; font: inherit; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
    padding: 11px 13px; outline: none; transition: border .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[type=text]:focus, input[type=email]:focus, input[type=time]:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { resize: vertical; min-height: 44px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text-2); cursor: pointer; font-size: 0.95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.options { margin: 4px 0 22px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; background: var(--surface-2); }
.options summary { cursor: pointer; font-weight: 600; color: var(--text-2); font-size: 0.93rem; }
.options[open] summary { margin-bottom: 6px; }
.form-error { color: var(--danger); font-size: 0.9rem; font-weight: 500; }
.form-error[hidden] { display: none; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 8px; }
.flash { background: var(--brand-soft); border: 1px solid var(--brand); border-radius: var(--radius-sm); padding: 12px 16px; margin: 20px 0 0; color: var(--text); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 4vw, 48px); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin-bottom: 0.4em; font-weight: 800; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 520px; margin-bottom: 1.6em; font-size: 1.15rem; }
.hero-copy > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-art { animation: rise .8s .2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-10px); } }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--text-3); font-size: 0.9rem; }
.hero-trust span::before { content: '✓'; color: var(--yes); font-weight: 800; margin-right: 6px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 28px; } .hero-art { order: 2; } }

/* Mock grid illustration */
.mock { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px rgba(109, 74, 255, 0.18), 0 8px 24px rgba(23, 26, 43, 0.08); animation: float 6s ease-in-out infinite; }
.mock::before { content: ''; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; pointer-events: none; }
.mock-winner { position: absolute; top: -14px; right: 18px; background: var(--grad); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px var(--brand-glow); }
@media (prefers-reduced-motion: reduce) { .mock { animation: none; } }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock-title { font-weight: 700; }
.mock-badge { font-size: 0.75rem; color: var(--text-3); background: var(--surface-3); padding: 3px 8px; border-radius: 999px; }
.mock-row { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 6px; align-items: center; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-2); }
.mock-row-head span { text-align: center; font-weight: 600; color: var(--text-3); font-size: 0.78rem; }
.mock-row-head span.best { color: var(--brand); }
.mock-row i { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 8px; font-style: normal; font-weight: 700; font-size: 0.85rem; }
.mock-row i.none { background: var(--surface-3); color: transparent; }
.mock-row i.in { animation: pop .3s cubic-bezier(.2,.8,.2,1); }
.mock-row-head span.best, .mock-row-foot b.best { transition: color .3s; }
.mock-row-head span.best.lit { color: var(--brand); }
.mock-row-foot b.best.lit { color: var(--yes); }
.mock-av { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; margin-right: 7px; font-size: 0.65rem; font-weight: 800; font-style: normal; color: #fff; background: hsl(var(--h) 70% 50%); vertical-align: middle; }
.mock-row > span { display: flex; align-items: center; white-space: nowrap; }
.mock-winner { opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1); }
.mock-winner.show { opacity: 1; transform: none; }
.mock-row i.y { background: var(--yes-soft); color: var(--yes); }
.mock-row i.m { background: var(--maybe-soft); color: var(--maybe); }
.mock-row i.n { background: var(--no-soft); color: var(--no); }
.mock-row-foot b { text-align: center; color: var(--text-3); }
.mock-row-foot b.best { color: var(--yes); }

/* ---------- Composer ---------- */
.composer { max-width: 900px; margin: 0 auto 36px; }
.composer .card { position: relative; overflow: hidden; }
.composer .card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.dates-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 720px) { .dates-layout { grid-template-columns: 1fr; } }

/* Step labels */
.step-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin: 6px 0 14px; }
.step-label + .field { margin-top: 0; }
.field + .step-label, .field-row + .step-label { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--border-2); }
.step-label .num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 0.85rem; box-shadow: 0 4px 10px var(--brand-glow); }
.drag-tip { display: none; }
@media (hover: hover) and (pointer: fine) { .drag-tip { display: inline; } }

/* Calendar */
.calendar { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-weight: 700; text-transform: capitalize; }
.cal-nav { background: var(--surface); border: 1px solid var(--border-2); color: var(--text-2); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 1rem; }
.cal-nav:hover { background: var(--surface-3); color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; padding: 4px 0; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-2); font: inherit; font-size: 0.92rem; cursor: pointer; position: relative; transition: background .1s, transform .08s; }
.cal-day:hover { background: var(--surface-3); color: var(--text); }
.cal-day:active { transform: scale(0.94); }
.cal-grid { touch-action: manipulation; }
.cal-day.other { color: var(--text-3); opacity: 0.45; }
.cal-day.past { color: var(--text-3); opacity: 0.35; cursor: not-allowed; }
.cal-day.today::after { content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }
.cal-day.selected { background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 4px 12px var(--brand-glow); animation: pop .25s cubic-bezier(.2,.8,.2,1); }
.cal-day.selected:hover { filter: brightness(1.08); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Selected list */
.selected-head { font-weight: 600; font-size: 0.9rem; color: var(--text-2); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 0.78rem; font-weight: 700; }
.selected-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow: auto; }
.selected-list .empty { color: var(--text-3); font-size: 0.9rem; padding: 8px 0; }
.sel-day { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.sel-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sel-day-head b { text-transform: capitalize; font-size: 0.95rem; }
.sel-slots { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.slot { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--text-2); }
.slot input[type=time] { width: auto; padding: 6px 8px; font-size: 0.88rem; }
.slot .sep { color: var(--text-3); }
.sel-actions { margin-top: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.allday-tag { font-size: 0.78rem; color: var(--text-3); }

/* ---------- Steps ---------- */
.steps { padding: 36px 0 56px; text-align: center; }
.steps h2 { margin-bottom: 24px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
@media (max-width: 720px) { .steps-grid { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; background: var(--grad-soft); }
.step p { color: var(--text-2); margin: 0; font-size: 0.95rem; }

/* ---------- Features (bento) ---------- */
.features { padding: 10px 0 40px; text-align: center; }
.features h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 26px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.bento-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.bento-card::after { content: ''; position: absolute; width: 160px; height: 160px; right: -60px; bottom: -70px; border-radius: 50%; background: var(--grad-soft); opacity: 0; transition: opacity .25s; }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-card:hover::after { opacity: 1; }
.bento-card.big { grid-row: span 2; background: var(--grad); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.bento-card.big .bento-icon { width: 72px; height: 72px; font-size: 2.2rem; border-radius: 18px; margin-bottom: auto; }
.bento-card.big h3 { font-size: 1.4rem; margin-top: 18px; }
.bento-card.wide { grid-column: span 3; display: flex; align-items: center; gap: 18px; }
.bento-card.wide .bento-icon { margin: 0; flex-shrink: 0; }
.bento-card.wide h3 { margin-bottom: 2px; }
.bento-card.big h3, .bento-card.big p { color: #fff; }
.bento-card.big .bento-icon { background: rgba(255,255,255,.18); }
.bento-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 1.4rem; margin-bottom: 14px; background: var(--grad-soft); }
.bento-icon .pill { padding: 0 5px; font-size: 0.7rem; }
.bento-card h3 { margin-bottom: 4px; }
.bento-card p { color: var(--text-2); margin: 0; font-size: 0.93rem; }
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-card.big { grid-row: auto; grid-column: span 2; min-height: 0; } .bento-card.wide { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento-card.big, .bento-card.wide { grid-column: auto; } .bento-card.wide { flex-direction: column; align-items: flex-start; } }

.cta-band { position: relative; overflow: hidden; text-align: center; background: var(--grad); color: #fff; border-radius: 24px; padding: clamp(36px, 6vw, 64px) 24px; margin: 10px 0 40px; box-shadow: 0 24px 60px var(--brand-glow); }
.cta-band::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.12); top: -220px; right: -120px; }
.cta-band::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.10); bottom: -180px; left: -80px; }
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.05rem; position: relative; margin-bottom: 1.4em; }
.btn-white { background: #fff; color: var(--brand); position: relative; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.btn-white:hover { background: #fff; transform: translateY(-1px); }

/* ---------- Pricing ---------- */
.center { text-align: center; }
.pricing-head { text-align: center; padding: clamp(36px, 6vw, 64px) 0 28px; }
.pricing-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 760px; margin-inline: auto; }
.pricing-head .lead { max-width: 620px; margin-inline: auto; }
.billing-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-top: 10px; box-shadow: var(--shadow-sm); }
.bt-btn { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--text-2); padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s; }
.bt-btn.on { background: var(--text); color: #fff; }
.bt-btn .save { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--yes-soft); color: var(--yes); }
.bt-btn.on .save { background: rgba(255,255,255,.18); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin: 8px 0 12px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.popular { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: 0 20px 50px var(--brand-glow); transform: scale(1.03); }
.plan.popular:hover { transform: scale(1.03) translateY(-3px); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px var(--brand-glow); }
.plan h2 { font-size: 1.4rem; margin-bottom: 2px; }
.plan-tag { color: var(--text-3); font-size: 0.92rem; margin-bottom: 18px; min-height: 2.6em; }
.price { margin-bottom: 18px; min-height: 74px; }
.price .amount { display: none; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--text-3); letter-spacing: 0; margin-left: 2px; }
.plan.free .price .amount { display: block; }
.plans[data-billing="yearly"] .amount.yearly, .plans[data-billing="monthly"] .amount.monthly { display: block; }
.price .per { display: block; color: var(--text-3); font-size: 0.85rem; margin-top: 6px; }
.price .per > span.yearly, .price .per > span.monthly { display: none; }
.plans[data-billing="yearly"] .per > span.yearly, .plans[data-billing="monthly"] .per > span.monthly { display: inline; }
.plan-trial { text-align: center; color: var(--text-3); font-size: 0.78rem; margin: 10px 0 0; }
.plan-features { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; font-size: 0.93rem; color: var(--text-2); }
.plan-features li.hdr { font-weight: 700; color: var(--text); margin-top: 2px; }
.plan-features li.hl { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .plan.popular { transform: none; } .plan.popular:hover { transform: translateY(-3px); } }

.faq { padding-top: 24px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(23,26,43,.45); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(520px, 100%); background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.modal-close { position: absolute; top: 12px; right: 12px; background: var(--surface-3); border: 0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font: inherit; color: var(--text-2); }
.modal-card h3 { font-size: 1.3rem; }
.modal-card p { color: var(--text-2); }
.wl-ok { color: var(--yes); font-weight: 600; margin-top: 10px; }

/* ---------- Ads (reserved height = no layout shift) ---------- */
.ad { margin: 28px auto; max-width: 900px; text-align: center; }
.ad-label { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.ad ins.adsbygoogle { display: block; min-height: 100px; border-radius: var(--radius-sm); overflow: hidden; }
.ad-placeholder .ad-box { border: 1px dashed var(--border-2); border-radius: var(--radius-sm); color: var(--text-3); font-size: 0.85rem; height: 100px; display: flex; align-items: center; justify-content: center; background: var(--surface); }

/* ---------- Share card ---------- */
.share-card { margin: 28px 0 24px; }
.share-card.is-new { border: 0; background: var(--surface); box-shadow: var(--shadow); position: relative; }
.share-card.is-new::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius); padding: 2px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.share-title { margin-bottom: 0.3em; }
.linkbox { margin-top: 16px; }
.linkrow { display: flex; gap: 8px; margin-top: 6px; }
.linkrow input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; background: var(--surface-2); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.78rem; color: var(--text-3); margin-top: 16px; }
.qr { width: 120px; height: 120px; background: #fff; padding: 6px; border-radius: 8px; }
.qr img, .qr canvas { display: block; width: 108px !important; height: 108px !important; }
@media (max-width: 640px) { .share-grid { grid-template-columns: 1fr; } .qr-box { margin-top: 0; } }
.admin-linkbox { padding-top: 14px; border-top: 1px dashed var(--border-2); }
.admin-linkbox .hint { margin-top: 8px; }

/* ---------- Poll page ---------- */
.poll-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 0 16px; }
.share-card + .poll-head { padding-top: 8px; }
.poll-head h1 { margin-bottom: 0.25em; overflow-wrap: anywhere; }
.poll-head { position: relative; }
.poll-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-2); font-size: 0.93rem; margin: 0 0 0.5em; }
.poll-desc { color: var(--text-2); white-space: pre-line; max-width: 720px; }
.poll-share { flex-shrink: 0; }
.banner { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.banner-final { background: var(--yes-soft); border: 1px solid rgba(14, 159, 110, 0.4); }
.banner-info { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2); }

.grid-card { padding: 0; overflow: clip; }
.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: max-content; }
.grid th, .grid td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; }
.grid thead th { padding-top: 14px; padding-bottom: 12px; background: var(--surface); }
.grid .name-col { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding-left: clamp(12px, 2.5vw, 22px); padding-right: 12px; min-width: 150px; max-width: 250px; box-shadow: 1px 0 0 var(--border); }
.grid .name-col .pname { font-weight: 600; overflow-wrap: anywhere; vertical-align: middle; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; margin-right: 9px; font-size: 0.72rem; font-weight: 800; color: #fff; background: hsl(var(--h) 65% 48%); vertical-align: middle; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.grid .name-col .you { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.bar { display: flex; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 6px auto 0; width: 56px; }
.bar i { display: block; height: 100%; }
.bar i.y { background: var(--yes); }
.bar i.m { background: var(--maybe); }
.grid .name-col .icon-btn { margin-left: 4px; opacity: 0.5; }
.grid .name-col .icon-btn:hover { opacity: 1; }
.grid .name-col input { min-width: 150px; padding: 8px 10px; font-size: 0.92rem; }
.grid th.opt { min-width: 84px; }
.grid th.opt span { display: block; line-height: 1.2; }
.grid th.opt .dow { font-size: 0.72rem; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.grid th.opt .day { font-size: 1.35rem; font-weight: 800; }
.grid th.opt .mon { font-size: 0.78rem; color: var(--text-2); text-transform: capitalize; }
.grid th.opt .time { font-size: 0.75rem; color: var(--brand); margin-top: 4px; font-weight: 600; white-space: nowrap; }
.grid th.opt .tag { display: inline-block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 6px; border-radius: 999px; margin-bottom: 4px; }
.grid th.opt.final .tag { color: var(--yes); background: var(--yes-soft); }
.grid th.opt.best, .grid td.best { background: var(--brand-soft); }
.grid th.opt.best { box-shadow: inset 0 4px 0 var(--brand); }
.grid th.opt.best .tag { background: var(--grad); color: #fff; }
.grid tbody tr:hover td { background: var(--surface-2); }
.grid tbody tr:hover td.best { background: #E6DFFF; }
.grid th.opt.final { background: var(--yes-soft); }
.grid td.cell > span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 34px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; }
.grid td.cell.yes > span { background: var(--yes-soft); color: var(--yes); }
.grid td.cell.maybe > span { background: var(--maybe-soft); color: var(--maybe); }
.grid td.cell.no > span { background: var(--no-soft); color: var(--no); }
.grid td.cell.none > span { background: var(--surface-3); color: var(--text-3); }
.grid tr.me-row td { background: var(--surface-2); border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand); padding-top: 10px; padding-bottom: 10px; }
.grid tr.me-row td.name-col { background: var(--surface-2); }

/* Segmented control: explicit Yes / Maybe / No per date */
.seg { display: inline-flex; flex-direction: column; gap: 4px; }
.seg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    min-width: 96px; padding: 6px 10px; border-radius: 8px; font: inherit; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
    border: 1px solid var(--border-2); background: var(--surface); color: var(--text-3); cursor: pointer;
    transition: background .1s, color .1s, border-color .1s, transform .08s;
}
.seg-btn:hover { border-color: var(--text-3); color: var(--text-2); }
.seg-btn:active { transform: scale(0.97); }
.seg-btn.on { animation: pop .22s cubic-bezier(.2,.8,.2,1); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.seg-btn.yes.on { background: var(--yes); border-color: var(--yes); color: #fff; }
.seg-btn.maybe.on { background: var(--maybe); border-color: var(--maybe); color: #fff; }
.seg-btn.no.on { background: var(--no); border-color: var(--no); color: #fff; }
.grid td.cell.me { padding-left: 8px; padding-right: 8px; }

.grid .empty-row td { color: var(--text-3); text-align: left; padding: 16px 22px; font-size: 0.92rem; }
.grid tfoot td { border-bottom: 0; font-size: 0.95rem; color: var(--text-2); padding-top: 10px; padding-bottom: 12px; }
.grid tfoot td b { color: var(--text); font-size: 1.05rem; }
.grid tfoot td small { color: var(--maybe); margin-left: 2px; }
.grid tfoot td.tally.best b { color: var(--brand); }
.grid tfoot .admin-row td { padding-top: 0; }
.vote-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px clamp(12px, 2.5vw, 22px); border-top: 1px solid var(--border); background: var(--surface); }
@media (max-width: 640px) { .vote-bar { position: sticky; bottom: 0; z-index: 3; box-shadow: 0 -8px 24px rgba(23,26,43,.08); } .vote-bar .legend em { display: none; } }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-3); }
.legend em { font-style: normal; color: var(--text-2); margin-left: 4px; }
.vote-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.pill.yes { background: var(--yes-soft); color: var(--yes); }
.pill.maybe { background: var(--maybe-soft); color: var(--maybe); }
.pill.no { background: var(--no-soft); color: var(--no); }

@media (max-width: 640px) {
    .grid .name-col { min-width: 104px; max-width: 150px; font-size: 0.86rem; padding-left: 12px; padding-right: 8px; }
    .avatar { width: 24px; height: 24px; font-size: 0.62rem; margin-right: 6px; }
    .grid .name-col input { min-width: 100px; width: 100px; padding: 7px 8px; font-size: 0.86rem; }
    .grid th.opt { min-width: 70px; }
    .grid td.cell > span { width: 36px; height: 32px; }
    .seg-btn { min-width: 0; padding: 7px 9px; }
    .seg-btn > span { display: none; }
    .seg-btn { font-size: 0.95rem; }
    .poll-head { flex-direction: column; }
}

/* Comments */
.comments { margin-top: 24px; }
.comments h2 { display: flex; align-items: center; gap: 10px; }
.comment-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.comment-list li { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.comment-head { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.comment-head time { color: var(--text-3); }
.comment-head .inline { margin-left: auto; }
.comment-list p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment-form { display: grid; grid-template-columns: 220px 1fr; gap: 10px; align-items: start; }
.comment-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
@media (max-width: 640px) { .comment-form { grid-template-columns: 1fr; } }

/* Admin */
.admin-card { margin-top: 24px; }
.admin-card details summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.danger-zone { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border-2); }

/* My polls */
.page { padding: 32px 0 48px; max-width: 760px; }
.poll-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.poll-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); }
.poll-list li a { font-weight: 600; color: var(--text); }
.poll-list li time { color: var(--text-3); font-size: 0.85rem; }

/* Prose pages */
.prose h2 { margin-top: 1.6em; font-size: 1.15rem; }
.prose p { color: var(--text-2); }
.prose strong { color: var(--text); }

/* Center card */
.center-card { max-width: 560px; margin: 60px auto; text-align: center; }
.big-emoji { font-size: 3rem; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 36px; background: var(--surface); }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { color: var(--text-3); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, transform .2s; z-index: 50; font-weight: 600; font-size: 0.92rem; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
