:root {
    color-scheme: light;
    --ink: #15313d;
    --muted: #59717a;
    --accent: #087f69;
    --accent-dark: #075c4d;
    --line: #dce9e7;
    --surface: #ffffff;
    --soft: #f4f9f7;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: #f2f7f5; }
body { margin: 0; color: var(--ink); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-shell { max-width: 1120px; margin: auto; padding: 0 28px; }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-size: 1.55rem; font-weight: 850; letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
.brand span:first-child, .brand-dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav form { margin: 0; }
.nav-link { color: var(--ink); font-size: .91rem; font-weight: 700; text-decoration: none; }
.nav-link:hover { color: var(--accent); }
.nav-button { border: 0; padding: 0; background: transparent; }
.page-content { min-height: calc(100vh - 172px); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 36px; color: #71848b; font-size: .8rem; }

.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 19px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.button:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); }
.button-small { padding: 9px 14px; font-size: .9rem; }
.button-secondary { border-color: #b7d7cf; background: #fff; color: var(--accent-dark); }
.button-secondary:hover { border-color: var(--accent); background: #eaf6f1; color: var(--accent-dark); }
.button-light { border-color: #fff; background: #fff; color: #124e43; }
.button-light:hover { background: #e6f9f2; color: #124e43; }
.button-ghost { border-color: rgba(255, 255, 255, .45); background: transparent; color: white; }
.button-ghost:hover { background: rgba(255, 255, 255, .12); color: white; }

.panel { padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 16px 55px rgba(23, 60, 59, .055); }
.page-panel { max-width: 820px; margin: 16px auto 0; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.lead { max-width: 700px; font-size: 1.13rem; line-height: 1.7; }
h1 { margin: 0 0 18px; font-size: clamp(2rem, 4.4vw, 3.35rem); line-height: 1.12; letter-spacing: -.05em; }
h2 { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.25; letter-spacing: -.025em; }
h3 { margin: 0 0 8px; font-size: 1.07rem; }
p { line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 42px 0 18px; }
.section-heading p { margin: 5px 0 0; }
.back-link { display: inline-block; margin-bottom: 28px; font-weight: 700; text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: clamp(38px, 6vw, 72px); border-radius: 24px; background: linear-gradient(125deg, #183e48 0%, #0b594f 70%, #087e66 100%); color: #fff; }
.hero::after { content: ""; position: absolute; top: -190px; right: -130px; width: 520px; height: 520px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; box-shadow: 0 0 0 85px rgba(255, 255, 255, .035), 0 0 0 175px rgba(255, 255, 255, .025); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 700px; }
.hero .eyebrow { color: #a4eed6; }
.hero .lead { color: #e6f5ef; }
.hero .actions { margin-top: 32px; }
.hero .button { min-width: 155px; }
.hero-compact { padding-block: 44px; }

.steps-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.feature-number { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; margin-bottom: 18px; border-radius: 10px; background: #e3f4ed; color: var(--accent-dark); font-size: .85rem; font-weight: 850; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: .93rem; }
.stack-panel { padding: 29px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stack-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.stack-chip { padding: 8px 12px; border: 1px solid #d3e9e0; border-radius: 99px; background: #edf8f2; color: #1c594b; font-size: .88rem; font-weight: 700; }
.stack-note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }

.meeting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.meeting-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.meeting-card h3 { margin-top: 14px; font-size: 1.25rem; }
.meeting-card p { color: var(--muted); }
.meeting-card .button { margin-top: 8px; }
.empty-state { padding: 36px; border: 1px dashed #afc8c2; border-radius: 16px; background: #f9fcfa; }
.empty-state p { color: var(--muted); }
.status { display: inline-flex; padding: 6px 10px; border-radius: 99px; background: #e9f5f0; color: #116a53; font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.status-closed { background: #e8f0fa; color: #285e8e; }

.form-grid { max-width: 610px; }
label { display: block; margin: 20px 0 7px; font-weight: 700; }
input, select, textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid #b6cbc7; border-radius: 9px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #9fe2ce; outline-offset: 2px; }
input[readonly] { background: #f4f8f6; }
textarea { resize: vertical; }
.field-error { margin: 6px 0; color: #a32d43; font-size: .9rem; }
.error { color: #a32d43; }
.form-grid > .button { margin-top: 26px; }
.date-fields { margin: 25px 0; padding: 2px 22px 23px; border: 1px solid var(--line); border-radius: 13px; background: #f9fcfa; }
.date-fields h2 { margin-top: 20px; font-size: 1.16rem; }

.share-panel { margin: 30px 0; padding: 23px; border: 1px solid #cce4da; border-radius: 15px; background: #f0f9f4; }
.share-panel h2 { margin-bottom: 5px; font-size: 1.17rem; }
.share-panel p { margin: 4px 0 14px; color: var(--muted); font-size: .92rem; }
.copy-row { display: flex; gap: 9px; align-items: stretch; }
.copy-row input { min-width: 0; flex: 1; font-size: .87rem; }
.copy-row .button { flex: none; min-width: 115px; }
.copy-hint { margin: 9px 0 0 !important; font-size: .8rem !important; }

.alert { padding: 14px 18px; border: 1px solid #b6dcc9; border-radius: 10px; background: #edfaf2; color: #175e48; font-weight: 650; }
.confirmation-panel { margin: 22px 0; padding: 23px 25px; border: 1px solid #92d2af; border-left: 6px solid #168b5c; border-radius: 14px; background: linear-gradient(120deg, #e9f9ef, #f5fff8); }
.confirmation-panel .eyebrow { margin-bottom: 7px; color: #126948; }
.confirmation-panel h2 { margin: 0 0 6px; color: #125c41; }
.confirmation-panel p { margin: 0; color: #2e6753; }

.poll-list { display: grid; gap: 15px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: rank; }
.poll-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.poll-card.is-leading { border-color: #91d1b9; background: #f8fdf9; box-shadow: 0 8px 24px rgba(10, 100, 70, .06); }
.poll-card.is-confirmed { border: 2px solid #189360; background: #f4fff7; }
.poll-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.poll-date { display: flex; gap: 12px; align-items: flex-start; font-size: 1.03rem; font-weight: 800; }
.poll-date::before { counter-increment: rank; content: counter(rank); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 29px; height: 29px; border-radius: 50%; background: #e2f2e9; color: #1c7957; font-size: .8rem; }
.poll-time { display: block; margin-top: 2px; color: var(--muted); font-size: .89rem; font-weight: 500; }
.poll-tag { flex: none; color: var(--accent-dark); font-size: .78rem; font-weight: 850; }
.poll-track { display: flex; width: 100%; height: 15px; overflow: hidden; margin-top: 22px; border-radius: 99px; background: #e6eeeb; }
.poll-segment { display: block; height: 100%; }
.poll-yes { background: #25a66e; }
.poll-maybe { background: #e8b550; }
.poll-no { background: #afc2c4; }
.poll-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 13px 0 0; color: var(--muted); font-size: .89rem; }
.poll-stats span { white-space: nowrap; }
.poll-stats strong { color: var(--ink); }
.legend-dot { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; }
.legend-yes { background: #25a66e; }
.legend-maybe { background: #e8b550; }
.legend-no { background: #afc2c4; }
.poll-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 17px; }
.poll-foot p { margin: 0; color: var(--muted); font-size: .83rem; }
.poll-foot form { margin: 0; }
.poll-foot .button { padding: 9px 13px; font-size: .85rem; }

@media (max-width: 700px) {
    .site-shell { padding: 0 16px; }
    .site-header { min-height: 74px; }
    .site-nav { gap: 10px; }
    .site-nav .nav-link { font-size: .81rem; }
    .steps-grid, .feature-grid, .meeting-grid { grid-template-columns: 1fr; }
    .hero { padding: 36px 27px; }
    .hero::after { right: -370px; }
    .copy-row { flex-wrap: wrap; }
    .copy-row .button { width: 100%; }
    .poll-top, .poll-foot { flex-wrap: wrap; }
    .site-footer { flex-direction: column; }
}
