/* Willspin — visual identity v2
   Light, card-based layout inspired by clean portfolio-style sites:
   generous whitespace, rounded cards, a single bold accent doing the work.

   --bg:        #F3F5F4  cool off-white, not the generic cream
   --surface:   #FFFFFF  card surfaces
   --ink:       #16201C  near-black text, slight green cast (grooming/botanical hint)
   --muted:     #667069  secondary text
   --accent:    #FF6A3D  warm coral-orange — the one bold color, used sparingly
   --accent-deep: #E24E22 pressed/hover state
   --lime:      #C6F24E  secondary pop, used only for the wheel + tiny highlights
   --line:      #E4E8E5  hairline borders
*/

:root {
    --bg: #F3F5F4;
    --surface: #FFFFFF;
    --ink: #16201C;
    --muted: #667069;
    --accent: #FF6A3D;
    --accent-deep: #E24E22;
    --lime: #C6F24E;
    --line: #E4E8E5;
    --radius: 16px;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); text-decoration: none; }

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.logo span { color: var(--accent); }

.tagline-pill {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 100px;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.main-nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
    padding: 24px 24px 8px;
}

.hero-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.eyebrow-tag {
    display: inline-block;
    background: var(--lime);
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    margin: 0 0 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero p.sub {
    color: var(--muted);
    font-size: 1.06rem;
    max-width: 440px;
    margin: 0 0 10px;
    line-height: 1.6;
}

.hero .fine {
    font-size: 0.8rem;
    color: #93A199;
    margin-top: 6px;
}

.hero-cta-row { margin-top: 22px; }

.hero-link-btn {
    display: inline-block;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
}

.hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-art svg { max-width: 300px; }

/* ---------- Stats strip ---------- */
.stats-strip {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 26px 30px;
    background: var(--ink);
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
    color: var(--surface);
}

.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 1.7rem;
    color: var(--lime);
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 0.76rem;
    color: #C7D0CA;
}

/* ---------- Prize list ---------- */
.prize-list {
    max-width: 780px;
    margin: 64px auto 0;
    padding: 0 24px;
    text-align: center;
}

.prize-list h2 {
    font-family: var(--serif);
    font-size: 1.7rem;
    margin-bottom: 26px;
    letter-spacing: -0.01em;
}

.prize-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.prize-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.prize-chip .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.prize-chip em {
    font-style: normal;
    color: var(--muted);
    font-weight: 500;
}

/* ---------- Contact block ---------- */
.contact-block {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 24px 10px;
    text-align: center;
}

.contact-block h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.contact-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 16px;
}

.contact-label {
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-value {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--ink);
}

/* ---------- Wheel section ---------- */
.wheel-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 20px 10px;
}

.age-gate {
    max-width: 440px;
    width: 100%;
    margin: 0 auto 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    font-size: 0.9rem;
    color: var(--muted);
    box-shadow: 0 1px 2px rgba(22,32,28,0.04);
}

.age-gate label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--ink);
    font-weight: 500;
}

.age-gate input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.age-gate .dob-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.age-gate .dob-row input[type="date"] {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 9px 12px;
    border-radius: 8px;
    font-family: var(--sans);
}

.gate-note {
    font-size: 0.78rem;
    margin-top: 12px;
    color: #93A199;
}

.wheel-frame {
    position: relative;
    width: min(380px, 88vw);
    height: min(380px, 88vw);
    margin: 8px 0 30px;
}

.wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 26px solid var(--accent);
    z-index: 5;
    filter: drop-shadow(0 3px 5px rgba(22,32,28,0.2));
}

#wheelCanvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow:
        0 0 0 10px var(--surface),
        0 0 0 12px var(--line),
        0 24px 50px rgba(22,32,28,0.14);
    transition: transform 4.2s cubic-bezier(0.15, 0.85, 0.1, 1);
}

.wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--accent);
    box-shadow: 0 4px 12px rgba(22,32,28,0.18);
    z-index: 4;
}

.spin-button {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--surface);
    background: var(--accent);
    border: none;
    padding: 17px 48px;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--accent-deep), 0 12px 24px rgba(255,106,61,0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--accent-deep), 0 18px 30px rgba(255,106,61,0.32);
}

.spin-button:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--accent-deep), 0 6px 14px rgba(255,106,61,0.24);
}

.spin-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #A9B3AD;
    box-shadow: 0 4px 0 #8E988F;
}

/* Result modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(22,32,28,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-backdrop.active { display: flex; }

.modal-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 30px 70px rgba(22,32,28,0.25);
    animation: popIn 0.35s cubic-bezier(0.2,0.8,0.2,1);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-card .prize-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--accent-deep);
    margin: 4px 0 14px;
}

.modal-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.modal-card .btn-primary {
    display: inline-block;
    margin-top: 18px;
    background: var(--ink);
    color: var(--surface);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.spinner-dots {
    display: inline-flex;
    gap: 6px;
    margin-top: 6px;
}
.spinner-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    animation: bounce 1s infinite ease-in-out;
}
.spinner-dots span:nth-child(2) { animation-delay: 0.15s; }
.spinner-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,80%,100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ---------- How it works ---------- */
.how-it-works {
    padding: 70px 24px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.how-it-works h2 {
    font-family: var(--serif);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 38px;
    letter-spacing: -0.01em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 26px 22px;
    border: 1px solid var(--line);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(22,32,28,0.08);
}

.step .step-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lime);
    font-family: var(--sans);
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.step p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Products strip ---------- */
.products {
    padding: 56px 24px 76px;
    max-width: 1080px;
    margin: 0 auto;
}

.products h2 {
    font-family: var(--serif);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 34px;
    letter-spacing: -0.01em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    border: 1px solid var(--line);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(22,32,28,0.08);
}

.product-swatch {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #6C8A66, #384F35);
}

.product-swatch.cream { background: radial-gradient(circle at 32% 28%, #F0D9A8, #C9A567); }
.product-swatch.soap { background: radial-gradient(circle at 32% 28%, #F4EBCF, #D8C193); }

.product-card h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; }
.product-card p { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 34px 24px 54px;
    color: #8B968F;
    font-size: 0.8rem;
    line-height: 1.7;
}

/* ---------- Claim page ---------- */
.claim-wrap {
    max-width: 480px;
    margin: 64px auto;
    padding: 0 24px;
}

.claim-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 38px 34px;
    box-shadow: 0 20px 50px rgba(22,32,28,0.08);
}

.claim-card .eyebrow {
    color: var(--accent-deep);
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.claim-card h1 {
    font-family: var(--serif);
    font-size: 1.8rem;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.claim-card p.lead {
    color: var(--muted);
    font-size: 0.94rem;
    margin: 0 0 26px;
    line-height: 1.55;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}

.field input {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.96rem;
    font-family: var(--sans);
}

.field input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: var(--surface);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 4px 0 var(--accent-deep);
    transition: transform 0.1s ease;
}
.submit-btn:hover { transform: translateY(-1px); }
.submit-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-deep); }

.form-errors {
    background: #FFF1EC;
    border: 1px solid #FFCFBD;
    color: var(--accent-deep);
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 0.86rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.claim-success {
    text-align: center;
}

.claim-success .check {
    width: 60px; height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--lime);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    color: var(--ink);
    font-weight: 700;
}

.claim-fineprint {
    text-align: center;
    font-size: 0.78rem;
    color: #93A199;
    margin-top: 20px;
    line-height: 1.6;
}

@media (max-width: 720px) {
    .steps, .product-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-copy { order: 2; }
    .hero-art { order: 1; }
    .hero p.sub { margin-inline: auto; }
    .main-nav { display: none; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
