/* WingCalc v1.5: accessible styling inspired by the WingCalc logo.
   No status or action is communicated by color alone. */
:root {
    --page: #f7f9fa;
    --paper: #ffffff;
    --ink: #202b30;
    --muted: #4f5c63;
    --line: #b2bec3;
    --soft-line: #dfe6e9;
    --accent: #a9420c;
    --accent-dark: #8b3409;
    --deep: #17252c;
    --mint: #9bedfa;
    --shadow: 0 12px 30px rgba(20, 38, 48, .07);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; font-size: 16px; }
body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
    background: var(--page);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; }
a { color: var(--accent-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #3159a3 !important; outline-offset: 3px; }
.site-frame { min-height: 100vh; padding: 0 16px 30px; }
.app-column { width: 100%; max-width: 520px; margin: 0 auto; }
/* This image is a compressed web copy of the supplied full-resolution logo. */
.brand-bar {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--soft-line);
    gap: 12px;
}
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
}
.brand-lockup:hover { color: var(--ink); }
.brand-logo {
    display: block;
    flex: 0 0 auto;
    width: 74px;
    height: auto;
    background: white;
    border-radius: 10px;
}
.brand-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.brand-name { font-size: 25px; line-height: 1.13; font-weight: 850; letter-spacing: -.035em; }
.brand-tagline { font-size: 11px; font-weight: 800; letter-spacing: .035em; color: var(--muted); line-height: 1.35; }
.brand-secondary { font-size: 12px; font-weight: 800; letter-spacing: .035em; color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 450px) { .brand-secondary { display: none; } }
.intro { padding: 27px 0 25px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 13px; letter-spacing: .055em; font-weight: 800; color: var(--accent-dark); }
.eyebrow-rule { background: var(--accent); height: 3px; width: 20px; flex: 0 0 auto; }
.intro h1 {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(43px, 11vw, 60px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.05em;
    margin: 13px 0 14px;
}
.intro h1 em { font-style: normal; color: var(--accent); }
.intro p { margin: 0; font-size: 17px; line-height: 1.6; max-width: 440px; color: var(--muted); }
.results-card {
    border-radius: 20px;
    background: var(--deep);
    color: white;
    padding: 22px 22px 18px;
    box-shadow: 0 12px 28px rgba(20, 36, 46, .18);
}
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-heading h2 { font-size: 13px; font-weight: 800; letter-spacing: .055em; margin: 0; color: #e7f3f5; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #e7f3f5; font-size: 13px; font-weight: 650; white-space: nowrap; }
.live-dot { display: inline-block; border-radius: 100%; background: #9bedfa; width: 9px; height: 9px; }
.live-dot.busy { background: #fdd28b; }
.live-dot.error { background: #ff8b83; }
.result-grid { display: grid; grid-template-columns: 1.2fr 1fr; padding: 20px 0 18px; }
.result-cell { min-width: 0; }
.result-cell-right { border-left: 1px solid #70828d; padding-left: 20px; }
.result-number { font: 800 clamp(35px, 10vw, 58px)/1.1 'Segoe UI', system-ui, sans-serif; letter-spacing: -.047em; font-variant-numeric: tabular-nums; }
.result-number.accent { color: var(--mint); }
.result-label { margin-top: 10px; color: #e7f3f5; font-size: 14px; font-weight: 650; line-height: 1.3; }
.result-footer { display: flex; gap: 11px; align-items: center; border-top: 1px solid #70828d; padding-top: 13px; font-size: 14px; color: #e7f3f5; }
.result-footer strong { color: white; }
.result-separator { color: #e7f3f5; }
.form-section-header { display: flex; align-items: center; gap: 12px; margin: 29px 0 15px; }
.form-section-header h2 { font: 750 24px 'Segoe UI', system-ui, sans-serif; margin: 0; letter-spacing: -.025em; }
.input-card { background: var(--paper); border: 1px solid var(--soft-line); border-radius: 17px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 14px; }
.input-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; }
.input-card h3 { font: 750 25px 'Segoe UI', system-ui, sans-serif; letter-spacing: -.02em; margin: 0; }
.stepper { display: flex; align-items: stretch; min-height: 48px; border-radius: 11px; border: 1px solid var(--line); overflow: hidden; background: #f8fafb; flex-shrink: 0; }
.stepper-button { appearance: none; border: 0; background: transparent; color: var(--ink); width: 45px; min-height: 48px; font-size: 27px; font-weight: 650; padding: 0; cursor: pointer; }
.stepper-button:hover { color: var(--accent-dark); background: #fff0e6; }
.stepper-value { width: 54px; min-width: 0; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; color: var(--ink); font: 800 19px 'Segoe UI', system-ui, sans-serif; text-align: center; outline-offset: -2px; -moz-appearance: textfield; }
.stepper-value::-webkit-inner-spin-button,.stepper-value::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.range-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.range-header label,.setting-copy label { font-size: 17px; font-weight: 750; }
.range-display { max-width: 58%; text-align: right; font: 800 18px 'Segoe UI', system-ui, sans-serif; color: var(--accent-dark); line-height: 1.3; }
.form-range { width: 100%; display: block; cursor: pointer; min-height: 28px; }
.form-range::-webkit-slider-thumb { background-color: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 1px 5px rgba(0,0,0,.12); width: 24px; height: 24px; margin-top: -9px; }
.form-range::-moz-range-thumb { background: var(--accent); border: 3px solid white; box-shadow: 0 0 0 2px var(--accent); width: 24px; height: 24px; }
.form-range::-webkit-slider-runnable-track { height: 7px; background: #c2cdd1; border-radius: 5px; }
.form-range::-moz-range-track { height: 7px; background: #c2cdd1; border-radius: 5px; }
.range-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; font-weight: 700; margin-top: 8px; }
/* The extra order settings are available on demand. Collapsed by default. */
.order-preferences { margin-top: 24px; }
.preferences-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 2px 10px;
    margin: 0;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow);
    cursor: pointer;
    min-height: 65px;
    list-style: none;
}
.preferences-heading::-webkit-details-marker { display: none; }
.preferences-heading:hover { border-color: var(--accent); background: #fff9f4; }
.preferences-heading:focus-visible { outline: 3px solid #3159a3; outline-offset: 3px; }
.preferences-heading h2 { grid-column: 1; grid-row: 1; }
.optional-hint { grid-column: 1; grid-row: 2; font-size: 15px; font-weight: 750; color: var(--muted); white-space: nowrap; }
.preferences-chevron {
    width: 12px;
    height: 12px;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
    border-right: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
    transform: rotate(45deg);
    transition: transform .15s ease;
    margin-top: -5px;
}
.order-preferences[open] .preferences-chevron { transform: rotate(225deg); margin-top: 5px; }
.settings-card { margin: 12px 0 0; }
/* Marks indicate the defaults only, without numeric labels. The marks sit
   directly below the slider tracks, so the draggable thumbs never obscure them. */
.range-with-tick { position: relative; padding-bottom: 10px; }
.range-with-tick::after {
    content: '';
    position: absolute;
    top: 29px;
    display: block;
    width: 3px;
    height: 10px;
    background: var(--ink);
    border-radius: 1px;
    transform: translateX(-50%);
    pointer-events: none;
}
.size-default-tick::after { left: 50%; }
/* (100 - 10) / (150 - 10) = 0.642857 of the hunger scale.
   Offset the 24px thumb width so the tick follows the actual thumb travel. */
.hunger-default-tick::after { left: calc(64.2857% - 3.43px); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting-copy p,.setting-help { color: var(--muted); font-size: 14px; margin: 5px 0 0; line-height: 1.45; }
.order-size-input { width: 83px; max-width: 30%; min-height: 48px; text-align: center; border-color: var(--line); border-radius: 11px; color: var(--ink); font: 800 19px 'Segoe UI', system-ui, sans-serif; }
.order-size-input:focus,.appetizer-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(169,66,12,.22); }
.setting-divider { background: var(--soft-line); height: 1px; margin: 24px 0; }
.hunger-header { margin-bottom: 13px; }
.hunger-bubble { color: var(--accent-dark); background: #fff0e6; padding: 7px 11px; border-radius: 8px; font: 800 17px 'Segoe UI', system-ui, sans-serif; }
.appetizer-select { width: 165px; max-width: 54%; border-color: var(--line); border-radius: 11px; min-height: 48px; color: var(--ink); background-color: #fff; font-size: 16px; font-weight: 700; }
.reset-row { display: flex; justify-content: flex-end; padding: 15px 3px 0; }
.reset-button { appearance: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 11px 16px; font: 750 15px 'Segoe UI', system-ui, sans-serif; cursor: pointer; min-height: 46px; }
.reset-button:hover { border-color: var(--accent); color: var(--accent-dark); background: #fff4ed; }
.bottom-note { color: var(--muted); text-align: center; font-size: 14px; line-height: 1.65; max-width: 440px; margin: 22px auto 6px; }
.error-message { border-radius: 10px; color: #852c23; background: #ffebe8; border: 2px solid #b7442e; font-size: 15px; padding: 12px 14px; margin-top: 14px; }
.privacy-choice { background: #edf5f7; border: 1px solid #8aabb7; border-radius: 12px; padding: 16px; margin-top: 24px; }
.privacy-choice p { font-size: 15px; color: var(--ink); margin: 0 0 12px; }
.privacy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.privacy-button { appearance: none; border: 2px solid var(--deep); background: white; color: var(--deep); padding: 9px 13px; border-radius: 8px; min-height: 44px; font-weight: 750; font-size: 14px; cursor: pointer; }
.privacy-button:hover { background: #e0f1f5; }
.privacy-settings-button { background: none; border: none; padding: 5px; margin: 0; text-decoration: underline; color: var(--accent-dark); font-weight: 700; cursor: pointer; font-size: inherit; }
footer { text-align: center; border-top: 1px solid var(--soft-line); padding: 21px 0 10px; margin-top: 28px; color: var(--muted); font-size: 14px; }
footer a { margin-left: 9px; }
footer span { color: var(--muted); margin-left: 5px; }
.ad-slot { display: none; }
.ad-slot.active { display: block; min-height: 70px; margin: 10px 0; }
.privacy-page { max-width: 620px; }
.privacy-page h1 { font-size: clamp(32px, 7vw, 44px); margin: 28px 0 14px; }
.privacy-page h2 { font-size: 22px; margin-top: 27px; }
.privacy-page p, .privacy-page li { font-size: 16px; line-height: 1.7; }
@media (max-width: 380px) {
    .site-frame { padding-left: 12px; padding-right: 12px; }
    .brand-secondary { font-size: 11px; }
    .input-card { padding: 17px; }
    .results-card { padding: 18px 16px 15px; }
    .result-cell-right { padding-left: 12px; }
    .result-label { font-size: 13px; }
    .range-header { flex-wrap: wrap; align-items: center; }
    .range-display { max-width: 100%; }
    .preferences-heading { padding: 15px 12px; gap: 2px 8px; }
    .preferences-heading h2 { font-size: 21px; }
    .optional-hint { font-size: 14px; }
}
@media (min-width: 800px) {
    .site-frame { padding-top: 12px; padding-bottom: 50px; }
    .app-column { max-width: 540px; }
}

/* v1.5 brand adjustments for narrow screens and reduced-motion users. */
@media (max-width: 380px) {
    .brand-bar { min-height: 106px; }
    .brand-logo { width: 62px; }
    .brand-lockup { gap: 10px; }
    .brand-name { font-size: 23px; }
    .brand-tagline { font-size: 10px; }
    .intro h1 { font-size: clamp(36px, 10vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
    .preferences-chevron { transition: none; }
}

/* v1.6: site-wide master-page footer and visitor-focused privacy notice. */
.site-footer { text-align: center; border-top: 1px solid var(--soft-line); padding: 23px 0 12px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.footer-message { display: block; }
.footer-links { display: flex; gap: 7px 19px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 10px; }
.footer-links a, .footer-links button { margin: 0; font-size: 15px; }
.privacy-page { padding: 26px 0 12px; }
.privacy-eyebrow { margin: 0 0 8px; font-size: 13px !important; line-height: 1.4 !important; font-weight: 800; letter-spacing: .06em; color: var(--accent-dark); }
.privacy-page h1 { margin: 0 0 14px; font-size: clamp(35px, 8vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.privacy-lead { margin: 0 0 20px; font-size: 18px !important; color: var(--ink); line-height: 1.6 !important; }
.privacy-section { background: var(--paper); border: 1px solid var(--soft-line); border-radius: 14px; padding: 19px 21px; margin: 15px 0; }
.privacy-section h2 { font-size: 21px; margin: 0 0 9px; line-height: 1.25; font-weight: 780; }
.privacy-section p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; }
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-updated { font-size: 14px !important; color: var(--muted); margin: 23px 0 10px; }
.privacy-return { display: inline-block; margin: 1px 0 8px; font-size: 16px; font-weight: 750; }
@media (max-width: 380px) {
    .privacy-section { padding: 17px; }
    .footer-links { column-gap: 15px; }
}

/* v1.8: muted appetite-section backgrounds. Text and headings remain the
   primary identifiers; the background colors are purely supplemental. */
.input-card.men-card {
    background: #edf5fa;
    border-color: #bbd5e4;
    border-left: 4px solid #24627e;
}
.input-card.women-card {
    background: #fff1f3;
    border-color: #e4c8d0;
    border-left: 4px solid #87536a;
}
.men-card h3, .women-card h3 { color: var(--ink); }
.men-card .stepper, .women-card .stepper { background: #fff; }
.men-card .range-display { color: #215b76; }
.women-card .range-display { color: #75445a; max-width: 100%; text-align: left; }
.women-card .range-header { flex-wrap: wrap; align-items: flex-start; gap: 5px; }
.women-card .range-header .range-display { flex: 0 0 100%; }
.men-card .form-range::-webkit-slider-thumb { background: #24627e; box-shadow: 0 0 0 2px #24627e; }
.men-card .form-range::-moz-range-thumb { background: #24627e; box-shadow: 0 0 0 2px #24627e; }
.women-card .form-range::-webkit-slider-thumb { background: #87536a; box-shadow: 0 0 0 2px #87536a; }
.women-card .form-range::-moz-range-thumb { background: #87536a; box-shadow: 0 0 0 2px #87536a; }
.women-card .range-ends { align-items: flex-start; gap: 15px; }
.women-card .range-ends span:last-child { text-align: right; max-width: 52%; }
.levels-button {
    display: inline-block;
    padding: 8px 0;
    margin-top: 10px;
    border: none;
    border-bottom: 2px solid currentColor;
    background: transparent;
    color: #75445a;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}
.levels-button:hover { color: #522c3c; }
.appetite-modal { border: 1px solid #dec5ce; border-radius: 16px; color: var(--ink); }
.appetite-modal .modal-header { background: #fff1f3; border-radius: 16px 16px 0 0; }
.appetite-modal .modal-title { font-weight: 800; }
.appetite-modal .modal-body p { font-size: 16px; line-height: 1.55; }
.appetite-levels-table { font-size: 16px; color: var(--ink); margin-bottom: 12px; }
.appetite-levels-table th { font-weight: 750; }
.appetite-levels-table tbody tr:nth-child(3) { background: #fff1f3; }
.appetite-levels-table td, .appetite-levels-table th { padding: 12px 6px; }
.appetite-modal .modal-note { color: var(--muted); margin-bottom: 0; }
.appetite-modal .levels-close { min-height: 44px; font-weight: 700; }
@media (max-width: 380px) {
    .women-card .range-display { font-size: 17px; }
    .women-card .range-ends { font-size: 13px; }
    .levels-button { font-size: 16px; }
}
