:root {
  color-scheme: light;
  --ink: #102d33;
  --muted: #5d6f72;
  --deep: #072d34;
  --teal: #0b7e83;
  --teal-soft: #dff3f0;
  --coral: #ee6b4d;
  --cream: #f7f4ed;
  --paper: #fffefa;
  --line: #d9e1df;
  --shadow: 0 18px 48px rgba(7, 45, 52, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg, #eff8f5 0, var(--cream) 32rem); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, label, input, select { -webkit-tap-highlight-color: transparent; }
.site-header { height: 68px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; background: rgba(255, 254, 250, 0.88); border-bottom: 1px solid rgba(16, 45, 51, 0.09); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.header-actions { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.header-link { color: var(--deep); font-size: .88rem; font-weight: 750; text-decoration: none; }
.header-link:hover, .header-link:focus-visible { color: var(--teal); text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--deep); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: white; background: var(--teal); font-size: 24px; line-height: 1; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 999px; background: #32a86d; box-shadow: 0 0 0 4px rgba(50,168,109,.14); }
main { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: clamp(56px, 9vw, 96px) 0 44px; max-width: 840px; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.45rem, 7vw, 5.35rem); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.hero-copy { max-width: 670px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.65; }
.notice { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; border: 1px solid; font-weight: 700; }
.notice.success { color: #12623f; background: #e8f7ef; border-color: #b7e0c9; }
.notice.error { color: #8e2d20; background: #fff0ec; border-color: #efc1b6; }
.notice.working { color: #23566f; background: #eaf5fa; border-color: #bfdce8; }
.step-card, .share-card, .trust-card { background: var(--paper); border: 1px solid rgba(16,45,51,.1); border-radius: 24px; box-shadow: var(--shadow); margin: 0 0 22px; padding: clamp(22px, 4vw, 40px); }
.step-card.locked { opacity: .48; pointer-events: none; box-shadow: none; }
.step-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.step-number { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--deep); color: white; font-weight: 850; }
h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 7px; font-size: clamp(1.35rem, 3vw, 1.85rem); letter-spacing: -.025em; }
h3 { margin-bottom: 18px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.step-heading p, .share-card p { margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.drop-zone { min-height: 230px; padding: 34px; border: 2px dashed #9ab8b5; border-radius: 20px; background: #f7fcfa; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--teal); background: var(--teal-soft); transform: translateY(-2px); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--teal); color: white; font-size: 28px; margin-bottom: 7px; }
.drop-zone strong { font-size: 1.08rem; }
.drop-zone span:not(.upload-icon), .drop-zone small { color: var(--muted); }
.file-summary { margin-top: 18px; padding: 17px; background: var(--teal-soft); border-radius: 16px; }
.file-summary > div { display: flex; align-items: center; gap: 9px; }
.file-summary ul { margin: 12px 0 0 30px; padding: 0; }
.file-summary li { margin-top: 8px; }
.file-summary li span { display: block; color: var(--muted); font-size: .82rem; }
.check { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 999px; background: var(--teal); color: white; font-size: .8rem; }
.subsection { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-row h3 { margin-bottom: 5px; }
.section-help { margin-bottom: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.swimmer-tabs { display: flex; gap: 9px; margin: 20px 0 18px; overflow-x: auto; padding-bottom: 3px; }
.swimmer-tab { flex: 0 0 auto; min-width: 145px; border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.swimmer-tab strong, .swimmer-tab small { display: block; }
.swimmer-tab small { margin-top: 3px; color: var(--muted); }
.swimmer-tab.active { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 -3px 0 var(--teal); }
.active-swimmer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #f4f7f6; }
.active-swimmer-row > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.danger-text { color: #a13b2d; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid label, .seed-fields label, .search-label { display: flex; flex-direction: column; gap: 7px; color: #344b4f; font-size: .82rem; font-weight: 750; }
.form-grid .wide { grid-column: span 2; }
input, select { width: 100%; min-height: 46px; border: 1px solid #b9c8c6; border-radius: 11px; background: white; color: var(--ink); padding: 10px 12px; outline: none; }
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,126,131,.13); }
.text-button { border: 0; background: transparent; color: var(--teal); font-weight: 750; cursor: pointer; }
.event-tools { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.search-label { width: min(420px, 100%); }
.selection-count { padding: 9px 13px; background: var(--teal-soft); border-radius: 999px; color: var(--teal); font-weight: 800; white-space: nowrap; }
.events-list { display: grid; gap: 10px; }
.event-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 16px; padding: 15px; transition: .15s ease; }
.event-row:has(input:checked) { border-color: var(--teal); background: #f2faf8; box-shadow: inset 4px 0 0 var(--teal); }
.event-row.ineligible { opacity: .48; }
.event-check { display: flex; align-items: center; gap: 13px; cursor: pointer; }
.event-check input { width: 21px; min-height: 21px; accent-color: var(--teal); }
.event-check span { display: flex; flex-direction: column; gap: 4px; }
.event-check small { color: var(--muted); }
.seed-fields { display: grid; grid-template-columns: 108px 90px; gap: 9px; }
.seed-fields input, .seed-fields select { min-height: 40px; padding: 7px 9px; }
.empty-state { padding: 38px; border-radius: 16px; background: #f4f6f5; color: var(--muted); text-align: center; }
.review { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.review > div { min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.review span { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.actions { display: flex; gap: 12px; margin-top: 24px; }
.primary-button, .secondary-button { min-height: 50px; border-radius: 13px; padding: 0 20px; border: 1px solid var(--deep); font-weight: 850; cursor: pointer; }
.compact-button { min-height: 42px; padding: 0 15px; }
.primary-button { background: var(--deep); color: white; }
.primary-button:hover { background: var(--teal); border-color: var(--teal); }
.secondary-button { background: transparent; color: var(--deep); }
.final-check { margin: 20px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--teal-soft); color: var(--deep); font-size: .85rem; line-height: 1.5; }
.share-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; background: var(--deep); color: white; margin: 36px 0 70px; }
.share-card h2 { margin-bottom: 8px; }
.share-card p { color: #bcd2d2; }
.share-links { display: grid; gap: 9px; }
.share-links > div { display: flex; align-items: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; overflow: hidden; }
.share-links a { flex: 1; color: white; padding: 13px; overflow-wrap: anywhere; }
.share-links button { align-self: stretch; border: 0; border-left: 1px solid rgba(255,255,255,.15); padding: 0 15px; background: transparent; color: #8be0d4; font-weight: 800; cursor: pointer; }
.trust-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 56px); margin: 36px 0 70px; }
.trust-card h2 { max-width: 440px; }
.trust-copy p { color: var(--muted); line-height: 1.65; }
.trust-copy p:last-child { margin-bottom: 0; }
.independence-note { padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; }
footer { padding: 30px; color: var(--muted); text-align: center; font-size: .8rem; }
footer a { color: inherit; }
.guide-hero { padding-bottom: 34px; }
.guide-hero h1 { max-width: 900px; font-size: clamp(2.4rem, 6vw, 4.65rem); line-height: 1.05; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 22px; margin-bottom: 24px; }
.guide-card { background: var(--paper); border: 1px solid rgba(16,45,51,.1); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.guide-card h2 { margin: 0 0 16px; }
.guide-card h3 { margin: 26px 0 10px; }
.guide-card p, .guide-card li { color: var(--muted); line-height: 1.7; }
.guide-card p:last-child, .guide-card li:last-child { margin-bottom: 0; }
.guide-card ol, .guide-card ul { padding-left: 23px; }
.guide-card li { margin: 0 0 10px; }
.guide-card strong { color: var(--ink); }
.guide-card a:not(.primary-button) { color: var(--teal); }
.guide-aside { background: var(--deep); color: white; }
.guide-aside .eyebrow { color: #8be0d4; }
.guide-aside h2, .guide-aside p, .guide-aside li { color: white; }
.guide-aside p { color: #c8dcda; }
.guide-aside .primary-button { display: inline-flex; align-items: center; justify-content: center; background: white; border-color: white; color: var(--deep); text-decoration: none; text-align: center; }
.guide-aside .primary-button:hover { background: var(--teal-soft); }
.guide-note { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--teal-soft); color: var(--deep); line-height: 1.6; }
.guide-card .guide-note { color: var(--deep); }
.guide-faq { margin-bottom: 56px; }
.guide-faq h3 { color: var(--deep); text-transform: none; letter-spacing: -.015em; font-size: 1.08rem; }
.guide-faq h3:first-of-type { margin-top: 0; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  .site-header { padding: 0 16px; }
  .status { font-size: 0; }
  .status-dot { display: block; }
  main { width: min(100% - 20px, 1040px); }
  .hero { padding-top: 48px; }
  .form-grid, .share-card, .trust-card, .guide-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: span 1; }
  .event-row { grid-template-columns: 1fr; }
  .seed-fields { grid-template-columns: 1fr 1fr; }
  .review { grid-template-columns: 1fr 1fr; }
  .actions { flex-direction: column; }
  .section-row { align-items: flex-start; flex-direction: column; }
  .active-swimmer-row { align-items: flex-start; flex-direction: column; }
  .active-swimmer-row > div { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .step-card { padding: 20px 16px; border-radius: 18px; }
  .step-heading { gap: 11px; }
  .step-number { width: 31px; height: 31px; }
  .event-tools { align-items: stretch; flex-direction: column; }
  .selection-count { align-self: flex-start; }
  .review { grid-template-columns: 1fr; }
}
