:root {
  --ink: #123c3a;
  --deep: #073c3b;
  --sea: #087e79;
  --lime: #d8f080;
  --cream: #fffaf0;
  --orange: #f38b48;
  --muted: #687b76;
  --line: #dfebe3;
  --ui-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--ui-font);
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100svh; background: linear-gradient(145deg, #e8f4e7 0%, #fffaf0 42%, #f7e8d5 100%); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--sea); outline-offset: 4px; }
.page-shell { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 32px 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { height: 44px; width: 44px; flex: 0 0 44px; border-radius: 14px; background: var(--deep); color: var(--lime); display: grid; place-items: center; font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.brand-lockup { font-size: 20px; font-weight: 750; letter-spacing: -.035em; line-height: 1.25; }
.brand-detail { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #4c7970; font-weight: 650; margin-top: 4px; }
.preview-badge { font-size: 12px; font-weight: 550; color: #4d6b62; padding: 6px 10px; border: 1px solid #123c3a19; border-radius: 7px; background: #ffffff45; white-space: nowrap; }
.main-content { padding: clamp(18px, 4vh, 48px) 0 40px; }
.portal-card { background: #fff; border: 1px solid #ffffff; border-radius: 26px; padding: 36px; width: 100%; max-width: 568px; margin: 0 auto; box-shadow: 0 18px 55px #0a444014, 0 2px 9px #0a444004; }
.card-heading { margin-bottom: 26px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--sea); font-size: 12px; font-weight: 750; line-height: 1.4; letter-spacing: .11em; text-transform: uppercase; }
h1 { color: var(--deep); font-size: clamp(30px, 3.6vw, 38px); font-weight: 750; line-height: 1.12; letter-spacing: -.045em; margin: 12px 0 10px; }
.intro { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0; letter-spacing: -.015em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 650; line-height: 1.4; color: #385e57; }
.optional { font-size: 12px; font-weight: 450; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.field input { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 50px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fcfdfb; color: var(--ink); font-size: 16px; line-height: 24px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #788a83; opacity: 1; }
.field input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px #d8f08080; }
.field input[aria-invalid="true"] { border-color: #b55134; background: #fffaf8; }
input[type="date"] { -webkit-appearance: none; appearance: none; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 24px; }
.field-error { color: #a13e26; font-size: 12px; line-height: 1.4; }
.birthday-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 24px; padding: 12px 13px; border-radius: 12px; background: #eff7df; color: #466145; font-size: 13px; line-height: 1.6; }
.birthday-note svg { flex: 0 0 18px; margin-top: 2px; color: #527448; }
.preferences { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.preferences legend { padding: 0; margin-bottom: 13px; color: #385e57; font-size: 14px; font-weight: 650; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.55; color: #526762; cursor: pointer; padding: 3px 0; min-height: 36px; }
.check-row + .check-row { margin-top: 6px; }
.check-row input { width: 18px; height: 18px; min-width: 18px; margin: 1px 0 0; accent-color: var(--sea); border-radius: 4px; cursor: pointer; }
.check-row small { display: block; font-size: 12px; line-height: 1.5; color: #687b76; margin-top: 3px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 14px 18px; border: 1px solid transparent; border-radius: 13px; background: var(--orange); color: #172f2b; font-weight: 750; font-size: 16px; line-height: 1.4; letter-spacing: -.015em; box-shadow: 0 6px 16px #f38b481c; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.primary-button:hover { background: #ed8140; box-shadow: 0 8px 20px #f38b4835; }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .7; cursor: wait; }
.button-spinner { width: 16px; height: 16px; border: 2px solid #172f2b45; border-top-color: #172f2b; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal-copy { margin: 15px 0 0; color: #687b76; text-align: center; font-size: 12px; line-height: 1.75; }
.text-button { border: 0; border-radius: 2px; background: none; color: var(--ink); text-decoration: underline; text-decoration-color: #123c3a55; text-underline-offset: 3px; padding: 0; font: inherit; cursor: pointer; }
.text-button:hover { text-decoration-color: var(--ink); }
.page-footer { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 27px auto 0; color: #617b6e; font-size: 11px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.footer-rule { width: 24px; height: 1px; background: #9bb3a355; }
.result-view { padding: 18px 0 10px; outline: none; }
.result-view .eyebrow { margin-top: 23px; }
.result-view h1 { font-size: 32px; overflow-wrap: anywhere; }
.result-icon { width: 62px; height: 62px; display: grid; place-items: center; color: var(--deep); background: #eff7df; border-radius: 20px; }
.result-copy { font-size: 16px; line-height: 1.7; color: #526762; margin-bottom: 12px; }
.result-note { font-size: 14px; line-height: 1.7; color: #687b76; margin: 0 0 28px; }
.submit-error { padding: 12px 14px; margin: 0 0 15px; background: #fff1ea; color: #9b3f22; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.info-dialog { width: calc(100% - 32px); max-width: 490px; border: 1px solid var(--line); border-radius: 23px; padding: 28px; color: var(--ink); box-shadow: 0 20px 90px #073c3b30; max-height: calc(100svh - 40px); overflow-y: auto; }
.info-dialog::backdrop { background: #073c3b66; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.035em; margin: 0; }
.close-button { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fcfdfb; font-size: 26px; cursor: pointer; }
.info-dialog p { color: #526762; font-size: 14px; line-height: 1.75; }
.info-dialog .dialog-preview { color: #687b76; font-size: 12px; }
.info-dialog .dialog-footnote { padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
.secondary-button { border: 1px solid var(--line); background: #eff7df; color: var(--deep); border-radius: 10px; padding: 11px 18px; font-size: 14px; font-weight: 650; cursor: pointer; min-height: 44px; }
.noscript-message { max-width: 568px; margin: 20px auto; padding: 16px; color: #9b3f22; text-align: center; }
@media (min-width: 900px) and (min-height: 850px) { .main-content { padding-top: 55px; } .portal-card { padding: 40px; } }
@media (max-width: 620px) {
  .page-shell { padding: 0 20px; }
  .site-header { padding: 22px 0; }
  .brand-mark { height: 40px; width: 40px; flex-basis: 40px; border-radius: 12px; font-size: 21px; }
  .brand-lockup { font-size: 18px; }
  .brand-detail { font-size: 9px; letter-spacing: .11em; }
  .preview-badge { font-size: 10px; padding: 5px 7px; }
  .main-content { padding-top: 4px; padding-bottom: 28px; }
  .portal-card { padding: 27px 24px; border-radius: 23px; }
  .card-heading { margin-bottom: 23px; }
  h1 { font-size: 32px; }
  .intro { font-size: 15px; }
  .fields { grid-template-columns: 1fr; gap: 15px; }
  .birthday-note { margin-top: 16px; margin-bottom: 21px; }
  .preferences { margin-bottom: 21px; }
  .page-footer { font-size: 9px; letter-spacing: .065em; gap: 8px; margin-top: 22px; }
  .footer-rule { width: 15px; }
}
@media (max-width: 360px) {
  .page-shell { padding: 0 12px; }
  .portal-card { padding: 24px 18px; }
  .brand { gap: 8px; }
  .brand-lockup { font-size: 16px; }
  .preview-badge { font-size: 9px; padding: 4px 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
