:root {
  color-scheme: dark;
  --ink: #f2f3ef;
  --muted: #a5aca2;
  --soft: #737d72;
  --green: #b5f779;
  --green-strong: #a7f15e;
  --black: #070907;
  --panel: rgba(14, 19, 14, .78);
  --stroke: rgba(219, 234, 211, .12);
  --body-font: "Montserrat", "Noto Sans Sinhala", "Nirmala UI", Arial, sans-serif;
  --si-font: "Noto Sans Sinhala", "Nirmala UI", "Iskoola Pota", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; min-width: 320px; background: var(--black); color: var(--ink); font-family: var(--body-font); font-size: 14px; font-weight: 400; -webkit-font-smoothing: antialiased; }
body[lang="si"], [lang="si"] { font-family: var(--si-font); font-synthesis: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.ambient { position: fixed; z-index: 0; inset: -15%; pointer-events: none; opacity: .68; background: radial-gradient(ellipse 36% 27% at 18% 26%, rgba(74, 137, 48, .16), transparent 75%), radial-gradient(ellipse 35% 28% at 80% 35%, rgba(77, 147, 50, .12), transparent 73%), radial-gradient(ellipse 40% 23% at 64% 90%, rgba(79, 145, 56, .09), transparent 76%); filter: blur(44px); animation: atmosphere 32s ease-in-out infinite alternate; }
@keyframes atmosphere { 0% { transform: translate3d(-1%, -1%, 0) scale(.98); } 100% { transform: translate3d(2%, 1%, 0) scale(1.06); } }
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { width: min(100% - 72px, 1320px); height: 94px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 190px; }
.brand-mark { width: 47px; height: 47px; object-fit: contain; }
.brand-name { display: grid; gap: 4px; line-height: 1; font-family: var(--body-font); letter-spacing: .015em; }
.brand-name span { font-size: 11px; font-weight: 600; }
.brand-name small { color: var(--muted); font-size: 8px; letter-spacing: .28em; }
.button { min-height: 52px; border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 19px; padding: 0 26px; font: 600 11px/1 var(--body-font); letter-spacing: .01em; transition: transform .24s ease, background-color .24s ease, border-color .24s ease, box-shadow .24s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-header { min-height: 42px; padding: 0 20px; gap: 14px; border-color: rgba(255,255,255,.18); color: var(--ink); background: rgba(255,255,255,.04); }
.button-header:hover { border-color: rgba(181,247,121,.6); background: rgba(181,247,121,.08); }
.button-header span { color: var(--green); font-size: 15px; }
.button-primary { min-height: 58px; padding: 0 28px 0 32px; color: #0c1509; background: var(--green); box-shadow: 0 0 34px rgba(164, 238, 100, .14); }
.button-primary:hover { background: #c7ffa0; box-shadow: 0 0 42px rgba(164, 238, 100, .22); }
.button-arrow { font-size: 16px; line-height: 1; }
.button-quiet { color: var(--ink); border-color: rgba(255,255,255,.15); background: transparent; }
.button-quiet:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.04); }
.button-disabled, .button:disabled { cursor: not-allowed; color: #9ba294; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.055); box-shadow: none; transform: none; }
.hero { min-height: 675px; padding: 110px 24px 72px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.greeting { position: relative; z-index: 1; margin: 0 0 33px; color: #c6cec2; font: 500 11px/1.4 var(--body-font); letter-spacing: .04em; animation: rise .85s .04s both; }
.greeting span { color: var(--green); }
.hero-glow { position: absolute; z-index: -1; width: min(78vw, 920px); height: 280px; top: 185px; border-radius: 50%; background: radial-gradient(ellipse, rgba(83, 156, 47, .105), transparent 70%); filter: blur(16px); }
.hero h1 { position: relative; max-width: 1130px; margin: 0; font: 400 clamp(42px, 6.2vw, 83px)/1.045 "Times New Roman", Times, serif; letter-spacing: -.035em; text-wrap: balance; animation: rise .9s .12s both; }
.hero h1 span { color: #c9d4c4; }
.hero-copy { max-width: 570px; margin: 27px auto 29px; color: #aab2a7; font: 400 13px/1.9 var(--body-font); text-wrap: pretty; animation: rise .9s .22s both; }
.hero .button { animation: rise .9s .29s both; }
.hero-note { margin: 19px 0 0; color: #e0e5dc; font: 500 10px/1.7 var(--body-font); }
.language-note { margin: 4px 0 0; color: #929b8e; font-size: 11px; line-height: 1.9; }
.scroll-cue { position: relative; width: 34px; height: 42px; margin-top: auto; border: 1px solid rgba(221,233,214,.18); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 6px; border-radius: 3px; background: var(--green); transform: translateX(-50%); animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0%, 100% { opacity: .35; transform: translate(-50%, 0); } 55% { opacity: 1; transform: translate(-50%, 9px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes question-enter { from { transform: translateY(8px); } to { transform: translateY(0); } }
.steps-section { width: min(100% - 96px, 1140px); margin: 0 auto; padding: 63px 0 75px; border-top: 1px solid var(--stroke); }
.steps-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; padding: 0 0 36px; }
.eyebrow { margin: 0; color: var(--green); font: 600 9px/1.5 var(--body-font); letter-spacing: .16em; text-transform: uppercase; }
.steps-intro h2 { margin: 0; font: 400 clamp(28px, 3.1vw, 43px)/1.1 "Times New Roman", Times, serif; letter-spacing: -.02em; }
.steps-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.step-item { min-height: 144px; padding: 27px 25px 26px 0; display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start; }
.step-item + .step-item { border-left: 1px solid var(--stroke); padding-left: 25px; }
.step-number { padding-top: 4px; color: var(--green); font: 500 10px/1 var(--body-font); letter-spacing: .08em; }
.step-item h3 { margin: 0 0 9px; font: 400 25px/1 "Times New Roman", Times, serif; }
.step-item p { max-width: 255px; margin: 0; color: var(--muted); font: 400 11px/1.8 var(--body-font); }
.steps-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 18px; }
.steps-footer .footer-line { height: 1px; width: 58%; background: linear-gradient(90deg, rgba(181,247,121,.5), transparent); }
.steps-footer a { color: #d8e2d3; font: 500 10px/1.5 var(--body-font); }
.steps-footer a span { padding-left: 8px; color: var(--green); }
.site-footer { width: min(100% - 72px, 1320px); min-height: 106px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.07); }
.site-footer p, .footer-caption { color: #788175; font: 400 9px/1.6 var(--body-font); }
.brand-footer { min-width: unset; transform: scale(.83); transform-origin: left center; }
.footer-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(181,247,121,.6); }

/* Survey */
.survey-page { min-height: 100vh; display: flex; flex-direction: column; }
.survey-header { flex: 0 0 auto; }
.survey-header-actions { display: flex; align-items: center; gap: 27px; }
.text-link { padding: 9px 0; border: 0; background: none; color: #c4ccc0; font: 500 10px/1.4 var(--si-font); cursor: pointer; }
.text-link:hover { color: var(--green); }
.restart-link[hidden] { display: none; }
.survey-shell { width: min(100% - 40px, 760px); flex: 1 0 auto; margin: 29px auto 42px; display: flex; flex-direction: column; }
.survey-progress-wrap { margin-bottom: 24px; }
.progress-labels { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; color: #9ca69a; font: 500 10px/1.6 var(--si-font); }
.progress-labels span:last-child { font-family: var(--body-font); font-size: 9px; }
.progress-track { height: 2px; overflow: hidden; background: rgba(255,255,255,.13); }
.progress-track span { display: block; width: 11.1%; height: 100%; background: var(--green); box-shadow: 0 0 12px rgba(181,247,121,.54); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.question-panel { min-height: 480px; padding: 37px clamp(25px, 5.2vw, 62px) 34px; border: 1px solid rgba(218,232,210,.11); border-radius: 23px; background: linear-gradient(145deg, rgba(18,24,17,.84), rgba(8,11,8,.75)); box-shadow: 0 22px 90px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(15px); }
.question-enter { animation: question-enter .32s ease-out; }
.question-panel .eyebrow { margin-bottom: 13px; }
.survey-title { max-width: 600px; margin: 0; color: var(--ink); font: 500 clamp(25px, 4vw, 36px)/1.5 var(--si-font); letter-spacing: -.04em; text-wrap: pretty; }
.question-hint { margin: 8px 0 0; color: #99a397; font: 400 11px/1.9 var(--si-font); }
.question-fields { display: grid; gap: 21px; margin-top: 26px; }
.field-block { min-width: 0; }
.field-label, .choice-fieldset legend { display: block; margin: 0 0 9px; color: #c6cec2; font: 500 11px/1.8 var(--si-font); }
.text-field { width: 100%; min-height: 47px; padding: 12px 15px; border: 1px solid rgba(221,233,214,.16); border-radius: 11px; color: var(--ink); background: rgba(2,5,2,.38); font: 400 12px/1.7 var(--si-font); outline: none; transition: border-color .2s ease, background .2s ease; }
.text-field::placeholder { color: #6f7a6d; opacity: 1; }
.text-field:focus { border-color: rgba(181,247,121,.72); background: rgba(2,5,2,.58); }
.text-area { min-height: 92px; resize: vertical; }
.field-help { margin: 7px 0 0; color: #7e897b; font: 400 10px/1.8 var(--si-font); }
.choice-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-fieldset legend { width: 100%; padding: 0; }
.option-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option-list-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-choice { min-height: 48px; padding: 10px 13px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(221,233,214,.12); border-radius: 11px; color: #d9dfd5; background: rgba(255,255,255,.018); cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.option-choice:hover { border-color: rgba(181,247,121,.35); background: rgba(181,247,121,.035); }
.option-choice:has(input:checked) { border-color: rgba(181,247,121,.68); color: #f1f6ed; background: rgba(181,247,121,.075); }
.option-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-choice input:focus-visible + .option-indicator { outline: 2px solid var(--green); outline-offset: 3px; }
.option-indicator { width: 14px; height: 14px; flex: 0 0 14px; border: 1px solid #687365; border-radius: 50%; background: transparent; }
.option-choice input[type="checkbox"] + .option-indicator { border-radius: 4px; }
.option-choice input:checked + .option-indicator { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px #182212; }
.option-copy { font: 400 11px/1.65 var(--body-font); overflow-wrap: anywhere; }
.conditional-field[hidden] { display: none; }
.validation-message { margin: 17px 0 0; color: #ffd4c9; font: 500 10px/1.8 var(--si-font); }
.survey-controls { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.survey-controls .button { min-height: 47px; padding: 0 20px; font-family: var(--si-font); font-size: 10px; }
.survey-controls .button-primary { gap: 15px; }
.survey-controls .button-quiet { gap: 11px; }
.sample-empty { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px; padding: 16px 17px; border: 1px solid rgba(181,247,121,.18); border-radius: 12px; background: rgba(181,247,121,.035); }
.sample-empty p { margin: 0; color: #bbc4b6; font: 400 11px/1.9 var(--si-font); }
.sample-empty-mark { color: var(--green); font-size: 18px; }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 11px; margin-bottom: 11px; }
.sample-card { min-width: 0; padding: 7px; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(255,255,255,.025); }
.sample-choice { display: block; overflow: hidden; color: inherit; cursor: pointer; }
.sample-card:has(.sample-choice input:checked) { border-color: var(--green); }
.sample-choice input { margin: 0 4px 8px 1px; accent-color: var(--green); }
.sample-image-frame { min-height: 170px; padding: 8px; display: grid; place-items: center; border-radius: 7px; background: rgba(0,0,0,.3); }
.sample-choice img { display: block; max-width: 100%; max-height: 360px; object-fit: contain; object-position: center; border-radius: 5px; }
.sample-choice img { visibility: hidden; }
.sample-choice img.is-loaded { visibility: visible; }
.sample-choice span { display: block; padding: 8px 2px 3px; color: #d3dbce; font: 400 9px/1.6 var(--si-font); }
.sample-full-link { display: inline-flex; margin: 4px 2px 2px; color: var(--green); font: 500 9px/1.6 var(--si-font); text-decoration: underline; text-underline-offset: 3px; }
.sample-more { margin-top: 4px; min-height: 40px; padding: 0 15px; border: 1px solid rgba(181,247,121,.3); border-radius: 999px; color: var(--green); background: transparent; font: 500 10px/1.5 var(--si-font); cursor: pointer; }
.summary-panel .survey-title { max-width: 630px; }
.summary-card { margin: 25px 0 21px; padding: 19px 21px; border: 1px solid var(--stroke); border-radius: 14px; background: rgba(1,4,1,.28); }
.summary-card h2 { margin: 0 0 11px; color: #d5dfcf; font: 500 12px/1.7 var(--si-font); }
.summary-card dl { margin: 0; }
.summary-card dl div { display: grid; grid-template-columns: minmax(120px, .75fr) 1.25fr; gap: 18px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }
.summary-card dt { color: #8f9a8c; font: 400 10px/1.7 var(--si-font); }
.summary-card dd { min-width: 0; margin: 0; color: #e2e7de; font: 400 10px/1.8 var(--si-font); overflow-wrap: anywhere; }
.final-actions { display: grid; justify-items: start; gap: 10px; }
.whatsapp-button { font-family: var(--si-font); font-size: 11px; }
.setup-note, .final-note { max-width: 510px; margin: 10px 0 0; color: #98a293; font: 400 10px/1.85 var(--si-font); }
.final-note { margin-top: 13px; }
.summary-back { margin-top: 21px; min-height: 43px; padding: 0 18px; font-family: var(--si-font); font-size: 10px; }
.restart-inline { margin: 13px 0 0; padding: 6px 0; border: 0; color: #98a293; background: none; font: 400 10px/1.7 var(--si-font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.survey-reassurance { margin: 16px 3px 0; color: #798476; font: 400 9px/1.8 var(--si-font); text-align: center; }
.survey-footer { flex: 0 0 auto; min-height: 72px; }
.survey-footer .footer-caption:last-child { text-align: right; }

@media (min-width: 1440px) {
  .hero { min-height: 735px; padding-top: 133px; }
  .steps-section { padding-top: 70px; }
}
@media (max-width: 900px) {
  .hero { min-height: 620px; padding-top: 104px; }
  .hero h1 { font-size: clamp(42px, 7.2vw, 65px); }
  .steps-section { width: min(100% - 64px, 760px); }
  .steps-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  .step-item { grid-template-columns: 27px 1fr; gap: 11px; padding-right: 16px; }
  .step-item + .step-item { padding-left: 16px; }
  .step-item h3 { font-size: 22px; }
}
@media (max-width: 600px) {
  body { font-size: 13px; }
  .site-header { width: calc(100% - 34px); height: 76px; }
  .brand { min-width: 0; gap: 7px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name span { font-size: 9px; }
  .brand-name small { font-size: 7px; }
  .button-header { min-height: 38px; padding: 0 14px; font-size: 9px; }
  .hero { min-height: 660px; padding: 104px 22px 49px; }
  .greeting { margin-bottom: 28px; font-size: 10px; }
  .hero h1 { max-width: 520px; font-size: clamp(39px, 10.1vw, 54px); line-height: 1.04; }
  .hero h1 br { display: none; }
  .hero h1 span { display: block; margin-top: 8px; }
  .hero-copy { max-width: 390px; margin: 24px auto 25px; font-size: 12px; line-height: 1.9; }
  .hero .button { min-height: 54px; padding: 0 22px; gap: 13px; font-size: 10px; }
  .hero-note { margin-top: 17px; font-size: 9px; }
  .language-note { font-size: 10px; }
  .scroll-cue { margin-top: auto; }
  .steps-section { width: calc(100% - 42px); padding: 45px 0 51px; }
  .steps-intro { padding-bottom: 24px; }
  .steps-intro h2 { font-size: 32px; }
  .steps-list { grid-template-columns: 1fr; }
  .step-item { min-height: 0; padding: 21px 2px; grid-template-columns: 34px 1fr; gap: 12px; }
  .step-item + .step-item { border-left: 0; border-top: 1px solid var(--stroke); padding-left: 2px; }
  .step-item h3 { font-size: 24px; margin-bottom: 6px; }
  .step-item p { max-width: 330px; font-size: 10px; }
  .steps-footer .footer-line { width: 38%; }
  .steps-footer a { font-size: 9px; }
  .site-footer { width: calc(100% - 34px); min-height: 87px; }
  .site-footer p { display: none; }
  .brand-footer { transform: scale(.78); }
  .survey-header { height: 74px; }
  .survey-header-actions { gap: 15px; }
  .text-link { font-size: 9px; }
  .survey-shell { width: calc(100% - 28px); margin: 18px auto 25px; }
  .survey-progress-wrap { margin-bottom: 14px; }
  .question-panel { min-height: 0; padding: 27px 19px 24px; border-radius: 17px; }
  .survey-title { font-size: clamp(23px, 6.3vw, 30px); line-height: 1.55; }
  .question-hint { font-size: 10px; }
  .question-fields { gap: 17px; margin-top: 22px; }
  .option-list, .option-list-multi { grid-template-columns: 1fr; gap: 7px; }
  .option-choice { min-height: 46px; padding: 9px 12px; }
  .survey-controls { margin-top: 22px; }
  .survey-controls .button { min-height: 44px; padding: 0 15px; }
  .summary-card { padding: 15px 14px; margin-top: 20px; }
  .summary-card dl div { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .summary-card dt, .summary-card dd { font-size: 9px; }
  .final-actions { justify-items: stretch; }
  .final-actions .button { width: 100%; padding: 0 17px; gap: 10px; font-size: 10px; }
  .setup-note { text-align: center; }
  .survey-reassurance { font-size: 8px; }
  .survey-footer { min-height: 67px; }
  .survey-footer .footer-caption { max-width: 43%; font-size: 8px; }
}
@media (max-width: 370px) {
  .hero { padding-right: 17px; padding-left: 17px; }
  .hero h1 { font-size: 38px; }
  .hero .button { padding: 0 17px; font-size: 9px; }
  .survey-header .brand-name span { font-size: 8px; }
  .survey-header-actions { gap: 10px; }
  .progress-labels { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
