@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Poppins:wght@600;700;800&display=swap');

:root {
    --cream: #fff7e6;
    --cream-2: #fffaf1;
    --amber: #f2b45a;
    --orange: #f59e0b;
    --navy: #1e3a5f;
    --navy-dark: #142b49;
    --teal: #5bc0be;
    --teal-soft: #ddf7f3;
    --peach: #ffd6a5;
    --white: #ffffff;
    --text: #1f2937;
    --muted: #4b5563;
    --line: #eadfcf;
    --shadow-sm: 0 8px 24px rgba(30, 58, 95, .08);
    --shadow: 0 20px 55px rgba(30, 58, 95, .13);
    --radius: 26px;
    --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream-2);
    color: var(--text);
    font-family: 'Nunito', 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); font-family: 'Poppins', 'Nunito', sans-serif; }
h2 { margin-bottom: 22px; font-size: clamp(34px, 5vw, 58px); line-height: 1.12; letter-spacing: -.035em; }

.hero {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 22%, rgba(255,255,255,.85) 0 6%, transparent 6.2%),
        radial-gradient(circle at 76% 58%, rgba(91,192,190,.28), transparent 24%),
        linear-gradient(135deg, #fff7e6 0%, #ffe8cc 48%, #ddf7f3 100%);
}
.hero::before, .hero::after { content: ''; position: absolute; pointer-events: none; }
.hero::before {
    width: 420px; height: 420px; right: -110px; top: 90px;
    border: 3px solid rgba(255,255,255,.55); border-radius: 44% 56% 65% 35% / 44% 37% 63% 56%;
    transform: rotate(20deg);
}
.hero::after {
    left: -5%; right: -5%; bottom: -44px; height: 92px;
    background: var(--cream-2); border-radius: 50% 50% 0 0 / 35% 35% 0 0;
}
.nav { height: 84px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3; }
.brand { color: var(--navy); text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.brand span { color: #b56816; }
.nav-link, .text-link { color: var(--navy); font-weight: 800; text-decoration: none; }
.nav-link { padding: 10px 18px; border: 1px solid rgba(30,58,95,.16); border-radius: 999px; background: rgba(255,255,255,.55); }
.nav-link:hover { background: var(--white); }
.text-link { border-bottom: 2px solid var(--amber); }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 11vh 0 17vh; }
.eyebrow { margin-bottom: 14px; color: #a55a10; font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.hero h1 { margin-bottom: 27px; color: var(--navy); font-size: clamp(52px, 8.5vw, 100px); line-height: .98; letter-spacing: -.055em; }
.hero h1 em, .form-heading em { color: #ba6a14; font-style: normal; }
.hero-content > p:not(.eyebrow) { max-width: 650px; color: var(--muted); }
.hero .lead { margin-bottom: 10px; color: var(--navy) !important; font-size: clamp(19px, 2.2vw, 23px) !important; font-weight: 800; }
.button {
    display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 18px;
    margin-top: 20px; padding: 15px 25px; border: 0; border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--amber)); color: #39230b;
    box-shadow: 0 10px 24px rgba(245,158,11,.25); cursor: pointer; text-decoration: none;
    font-weight: 900; transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(245,158,11,.32); background: linear-gradient(135deg, #ffae24, #f7c06b); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(30,58,95,.35); outline-offset: 3px; }

.section { padding: 100px 0; }
.intro-grid, .cup-section { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 8vw; }
.large-copy { color: var(--muted); font-size: 19px; }
.values { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.values::after { content: ''; position: absolute; width: 260px; height: 260px; right: -70px; top: -80px; border-radius: 50%; background: rgba(91,192,190,.12); }
.values h2 { color: var(--white); }
.values .eyebrow { color: #ffd18d; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.value-grid article { min-height: 265px; padding: 34px; border-radius: var(--radius); color: var(--text); box-shadow: 0 16px 36px rgba(8,25,45,.18); transition: transform .2s; }
.value-grid article:hover { transform: translateY(-5px); }
.value-grid article:nth-child(1) { background: var(--peach); }
.value-grid article:nth-child(2) { background: var(--teal-soft); }
.value-grid article:nth-child(3) { background: #fff1c7; }
.value-grid article > span, .card-values article > span, .number { color: #97520f; font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.value-grid h3 { margin: 42px 0 12px; font-size: 26px; line-height: 1.2; }
.value-grid p { margin-bottom: 0; color: var(--muted); }
.cup { position: relative; text-align: center; font-size: 150px; filter: drop-shadow(0 18px 18px rgba(30,58,95,.13)); }
.cup::before { content: ''; position: absolute; inset: 15% 13%; z-index: -1; background: var(--peach); border-radius: 56% 44% 46% 54% / 48% 60% 40% 52%; }
.cup::after { content: ''; display: block; width: 60%; height: 17px; margin: -25px auto 0; border-radius: 50%; background: rgba(30,58,95,.12); filter: blur(10px); }
.cup-section blockquote { margin: 30px 0 0; padding: 20px 24px; border-left: 4px solid var(--amber); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--cream); color: #704715; font-size: 19px; font-weight: 700; }

.form-section { padding: 105px 0; background: linear-gradient(135deg, #fff7e6 0%, #ffe8cc 48%, #ddf7f3 100%); }
.form-wrap { max-width: 820px; }
.form-heading { margin-bottom: 48px; text-align: center; }
.form-heading > p:last-child { max-width: 610px; margin-inline: auto; color: var(--muted); }
.reflection-form { display: grid; gap: 18px; }
.form-card, .consent-card, .alert { position: relative; padding: 31px 34px; border: 1px solid rgba(30,58,95,.1); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.form-card { transition: border-color .2s, box-shadow .2s; }
.form-card:focus-within { border-color: rgba(91,192,190,.75); box-shadow: 0 12px 32px rgba(30,58,95,.12); }
.form-card .number { position: absolute; right: 26px; top: 26px; }
.form-card label, .form-card legend { display: block; margin-bottom: 17px; padding-right: 50px; color: var(--navy); font-size: 17px; font-weight: 800; }
.form-card small { margin-left: 5px; color: #6b7280; font-weight: 600; }
.form-card b { color: #b45309; }
input[type=text], select, textarea { width: 100%; min-height: 50px; padding: 13px 15px; border: 1.5px solid #d9dfe5; border-radius: 13px; outline: none; background: #fbfcfd; color: var(--text); }
textarea { min-height: 112px; resize: vertical; }
input[type=text]:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(91,192,190,.15); background: var(--white); }
fieldset { margin: 0; }
fieldset.form-card { min-inline-size: 0; }
fieldset.form-card legend {
    float: left;
    width: 100%;
}
fieldset.form-card legend + .scale {
    clear: both;
}
.scale { display: grid; grid-template-columns: 92px 1fr 92px; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; text-align: center; }
.scale-options { display: flex; justify-content: space-between; gap: 8px; }
.scale-options label { margin: 0; padding: 0; }
.scale-options input { position: absolute; opacity: 0; pointer-events: none; }
.scale-options i { display: grid; width: 48px; height: 48px; place-items: center; border: 1.5px solid #ccd5df; border-radius: 15px; background: #f8fafc; color: var(--navy); cursor: pointer; font-style: normal; font-weight: 800; transition: .18s; }
.scale-options label:hover i { border-color: var(--amber); background: #fff8e9; transform: translateY(-2px); }
.scale-options input:focus-visible + i { outline: 3px solid rgba(30,58,95,.3); outline-offset: 2px; }
.scale-options input:checked + i { border-color: var(--orange); background: linear-gradient(135deg, var(--orange), var(--amber)); color: #352008; box-shadow: 0 7px 16px rgba(245,158,11,.25); }
.consent-card { border-color: rgba(91,192,190,.35); background: var(--navy); color: var(--white); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 14px; cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check span { display: block; width: 24px; height: 24px; border: 2px solid #94d9d7; border-radius: 7px; }
.check input:focus-visible + span { outline: 3px solid rgba(255,255,255,.45); outline-offset: 3px; }
.check input:checked + span { background: var(--teal); border-color: var(--teal); }
.check input:checked + span::after { content: '\2713'; display: grid; height: 100%; place-items: center; color: #102d42; font-weight: 900; }
.consent-card p { margin: 18px 0 0 40px; color: #dce8f1; font-size: 14px; }
.submit { width: 100%; min-height: 60px; margin-top: 7px; font-size: 17px; }
.alert { margin-bottom: 18px; border-color: #f3b3aa; border-left: 5px solid #c84e3c; color: #842f22; }
.alert ul { margin-bottom: 0; }

footer { padding: 43px 0; background: var(--navy-dark); color: #d7e2eb; }
.footer-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-grid strong { color: var(--white); }
.footer-grid p { margin: 3px 0; }

.result-page { min-height: 100vh; background: linear-gradient(135deg, #fff7e6 0%, #ffe8cc 45%, #ddf7f3 100%); color: var(--text); }
.result-page .nav { border-bottom: 1px solid rgba(30,58,95,.1); }
.result-wrap { max-width: 900px; padding: 65px 0 95px; }
.result-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.result-intro .eyebrow { margin-bottom: 5px; }
.result-subtitle { margin: 0; color: var(--muted); font-size: 18px; font-weight: 700; }
.result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 32px; }
.result-head h1 { margin-bottom: 16px; color: var(--navy); font-size: clamp(42px, 7vw, 72px); line-height: 1.03; letter-spacing: -.045em; }
.result-head p { max-width: 590px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.source-badge { flex: 0 0 auto; padding: 8px 13px; border: 1px solid rgba(30,58,95,.14); border-radius: 999px; background: rgba(255,255,255,.65); color: var(--navy); font-size: 12px; font-weight: 800; white-space: nowrap; }
.action-card { overflow: hidden; border: 1px solid rgba(30,58,95,.08); border-radius: 32px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); color: var(--text); }
.action-card-main { padding: 42px 45px 25px; text-align: center; }
.action-card-main h1 { max-width: 720px; margin: 0 auto 16px; color: var(--navy); font-size: clamp(38px, 7vw, 64px); line-height: 1.08; letter-spacing: -.045em; }
.reflection-summary { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.card-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 30px; }
.card-values article { padding: 24px; border-radius: 20px; }
.card-values article:nth-child(1) { background: #fff0dc; }
.card-values article:nth-child(2) { background: var(--teal-soft); }
.card-values article:nth-child(3) { background: #fff3ca; }
.card-values article > span { display: block; margin-bottom: 20px; }
.card-values h2 { margin-bottom: 9px; font-size: 21px; letter-spacing: -.02em; }
.card-values p { margin: 0; color: var(--muted); font-size: 16px; }
.action-highlight { margin: 0 30px; padding: 36px 40px; border-radius: 23px; background: linear-gradient(135deg, var(--amber), var(--peach)); }
.action-highlight .eyebrow { color: #71420d; }
.action-highlight h2 { max-width: 720px; margin: 0; font-size: 30px; }
.affirmation { max-width: 700px; margin: 28px auto 0; padding: 22px 28px; border-radius: 20px; background: var(--cream); color: var(--navy); text-align: center; font-size: clamp(24px, 4vw, 36px); font-weight: 800; line-height: 1.35; }
.closing { max-width: 680px; margin: auto; padding: 0 45px 45px; color: var(--muted); text-align: center; }
.result-closing { max-width: 680px; margin: 0 auto; padding: 34px 35px 40px; color: var(--muted); text-align: center; font-size: 17px; }
.result-closing p { margin: 0; }
.ethics-note { margin-top: 20px; padding: 18px 20px; border: 1px solid rgba(30,58,95,.13); border-radius: var(--radius-sm); background: rgba(255,255,255,.55); color: var(--muted); font-size: 16px; }
.ethics-note strong { color: var(--navy); }
.result-actions { display: flex; align-items: center; gap: 26px; }
.result-actions .text-link { margin-top: 20px; }
.result-page footer { border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 820px) {
    .card-values { grid-template-columns: 1fr; }
    .card-values article > span { margin-bottom: 8px; }
    .result-intro { display: block; }
    .result-intro .source-badge { display: inline-block; margin-top: 17px; white-space: normal; }
}

@media (max-width: 900px) {
    .form-wrap { width: min(100% - 32px, 820px); }
    .reflection-form { width: 100%; }
    .form-card, .consent-card, .alert { width: 100%; min-width: 0; }
    .scale-card { overflow: hidden; }
    .scale {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px 16px;
        width: 100%;
    }
    .scale-options {
        grid-column: 1 / -1;
        grid-row: 1;
        display: grid;
        grid-template-columns: repeat(5, minmax(44px, 1fr));
        gap: 10px;
        width: 100%;
    }
    .scale > span:first-child {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
    }
    .scale > span:last-child {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }
    .scale-options label { width: 100%; min-width: 0; }
    .scale-options i { width: 100%; min-width: 0; min-height: 48px; }
}

@media (max-width: 720px) {
    .wrap { width: min(100% - 28px, 1120px); }
    .nav { height: 72px; }
    .nav-link { display: none; }
    .hero { min-height: auto; }
    .hero::before { width: 260px; height: 260px; right: -120px; }
    .hero-content { padding: 8vh 0 14vh; }
    .hero h1 { font-size: clamp(45px, 14vw, 64px); }
    .hero .lead { font-size: 19px !important; }
    .section, .form-section { padding: 72px 0; }
    .intro-grid, .cup-section { grid-template-columns: 1fr; gap: 28px; }
    .cup-section .cup { order: 2; font-size: 115px; }
    .value-grid { grid-template-columns: 1fr; }
    .value-grid article { min-height: 0; padding: 28px; }
    .value-grid h3 { margin-top: 24px; }
    .form-card, .consent-card { padding: 24px 20px; border-radius: 21px; }
    .form-card .number { right: 20px; top: 23px; }
    .scale-options i { height: auto; }
    .footer-grid, .result-head { display: block; }
    .footer-grid > div + div { margin-top: 23px; }
    .result-wrap { padding-top: 42px; }
    .source-badge { display: inline-block; margin-top: 18px; white-space: normal; }
    .card-values { padding: 18px; }
    .card-values article { padding: 22px; }
    .action-card-main { padding: 34px 24px 20px; }
    .action-card-main h1 { font-size: clamp(34px, 10vw, 48px); }
    .reflection-summary { font-size: 16px; }
    .action-highlight { margin: 0 18px; padding: 30px 24px; }
    .action-highlight h2 { font-size: 25px; }
    .affirmation { margin-top: 24px; padding: 20px; }
    .closing { padding: 0 24px 35px; }
    .result-closing { padding: 28px 24px 34px; font-size: 16px; }
    .result-actions { flex-direction: column; align-items: stretch; gap: 0; }
    .result-actions .text-link { align-self: center; }
}

@media (max-width: 640px) {
    .wrap, .form-wrap { width: min(100% - 24px, 1120px); }
    .form-section { padding-inline: 0; }
    .form-heading { margin-bottom: 34px; }
    .form-card, .consent-card, .alert { padding: 22px 18px; }
    .form-card label, .form-card legend {
        margin-bottom: 18px;
        padding-right: 42px;
        font-size: 16px;
        line-height: 1.45;
    }
    .form-card .number { top: 21px; right: 18px; font-size: 11px; }
    .scale-options { gap: 8px; }
    .form-card .scale-options label { margin: 0; padding: 0; }
    .scale-options i { min-height: 46px; border-radius: 13px; font-size: 16px; }
    .scale > span { font-size: 12px; line-height: 1.35; }
    input[type=text], select, textarea { min-width: 0; font-size: 16px; }
    .submit { min-height: 56px; }
}

@media (max-width: 380px) {
    .wrap, .form-wrap { width: min(100% - 20px, 1120px); }
    .form-card, .consent-card, .alert { padding: 20px 15px; border-radius: 18px; }
    .form-card label, .form-card legend { padding-right: 36px; }
    .form-card .number { right: 15px; top: 19px; }
    .scale-options { gap: 6px; }
    .scale-options i { min-height: 44px; border-radius: 11px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
