/* Food Ratings landing page (/). Follows food-ratings-redesign/dist/index.html and landing.css,
   built on the tokens in design-system.css. No Bootstrap and no JavaScript on this page. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body.landing { margin: 0; background: #fff; color: var(--rr-ink); font-family: var(--rr-font); font-size: 16px; line-height: 1.6; }
/* Element defaults use :where() so they never outrank a component's own rules. */
:where(.landing) img { max-width: 100%; height: auto; }
:where(.landing) :is(h1, h2, h3, p, figure) { margin: 0; }
:where(.landing) h2 { font-size: 43px; font-weight: 680; line-height: 1.16; letter-spacing: -2px; }

.wrap { width: min(1280px, calc(100% - 80px)); margin-left: auto; margin-right: auto; }
.section { padding-top: 85px; padding-bottom: 85px; }
.eyebrow { display: block; color: var(--rr-brand); font-size: 12px; font-weight: 750; letter-spacing: 1.4px; line-height: 1.6; text-transform: uppercase; }
.text-link { color: var(--rr-ink); font-size: 15px; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover { color: var(--rr-brand); }
.pill { display: inline-block; padding: 4px 9px; border-radius: 12px; background: #f1f3f6; color: #5d6876; font-size: 12px; font-weight: 550; line-height: 1.4; }

.rr-demo-banner {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 16px;
    background: #fff4e0; color: #6b4300; border-bottom: 1px solid #f0d49c; font-size: 13px; font-weight: 600; text-align: center;
}
.rr-demo-banner .rr-icon { width: 16px; height: 16px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 91px; border-bottom: 1px solid var(--rr-border); }
.site-header .rr-brand img { height: 44px; }
.site-nav { display: flex; gap: 25px; color: #58606c; font-size: 14px; font-weight: 550; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { color: var(--rr-brand); text-decoration: underline; text-underline-offset: 5px; }
.header-cta { min-height: 44px; }

/* Hero */
.hero { padding-top: 58px; text-align: center; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.hero-kicker .rr-tag { padding: 6px 10px; font-size: 11px; letter-spacing: 1px; background: #fff0e6; }
.hero-kicker > span:last-child { color: var(--rr-muted); font-size: 13px; }
.hero h1 { margin: 23px 0; font-size: clamp(46px, 5.6vw, 78px); font-weight: 720; line-height: 1.04; letter-spacing: -4.2px; }
.hero h1 em { color: var(--rr-brand); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -3px; white-space: nowrap; }
.hero-intro { max-width: 650px; margin: 0 auto; color: #5f6672; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.hero-button { min-height: 50px; padding: 14px 22px; font-size: 15px; }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin: 21px 0 44px; padding: 0; list-style: none; color: #69717d; font-size: 13px; }
.hero-proof li + li::before { content: "·"; margin-right: 24px; color: #aaafb6; }

/* Product showcase: real screenshots of /explore */
.product-stage { text-align: left; scroll-margin-top: 25px; }
.product-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding: 0 5px 15px; color: var(--rr-muted); font-size: 14px; }
.product-caption b { margin-right: 12px; color: #4e5765; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.product-caption a { display: inline-flex; align-items: center; gap: 4px; color: var(--rr-brand); font-weight: 650; text-decoration: none; white-space: nowrap; }
.product-caption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-caption .rr-icon { width: 17px; height: 17px; }
.product-shots { display: grid; grid-template-columns: minmax(0, 1fr) 236px; align-items: end; gap: 28px; }
.product-frame { display: block; overflow: hidden; border: 1px solid #d9dce1; border-radius: 17px; background: var(--rr-canvas); box-shadow: 0 30px 80px rgba(39, 35, 46, .1); }
.product-frame img, .phone-frame img { display: block; width: 100%; height: auto; }
.phone-frame { display: block; overflow: hidden; border: 8px solid var(--rr-ink); border-radius: 34px; background: var(--rr-ink); box-shadow: 0 24px 60px rgba(32, 36, 44, .25); }
.phone-frame img { border-radius: 26px; }
.product-frame:focus-visible, .phone-frame:focus-visible { outline-offset: 6px; }
.preview-note { max-width: 860px; margin: 0 auto; padding: 18px 15px 30px; color: #6b7280; font-size: 13px; line-height: 1.6; text-align: center; }

/* Value strip */
.value-strip { margin-top: 17px; border-top: 1px solid #e7e9ec; border-bottom: 1px solid #e7e9ec; background: #f6f7f9; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 29px 0; }
.strip-inner > p { color: var(--rr-muted); font-size: 12px; letter-spacing: .7px; line-height: 1.8; text-transform: uppercase; }
.strip-inner > p strong { color: var(--rr-ink); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.strip-inner > div { display: flex; flex-direction: column; padding-left: 35px; border-left: 1px solid #dfe2e7; }
.strip-inner b { font-size: 24px; font-weight: 650; letter-spacing: -1px; line-height: 1.3; }
.strip-inner span { margin-top: 3px; color: var(--rr-muted); font-size: 13px; line-height: 1.45; }

/* Recorded rating changes */
.track-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; padding-bottom: 20px; }
.track-intro h2 { margin: 18px 0 23px; font-size: 44px; }
.track-intro h2 em { color: var(--rr-brand); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.track-intro > p { max-width: 470px; color: var(--rr-muted); line-height: 1.7; }
.audience-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.audience-notes > div { padding: 16px 18px; border: 1px solid #e8ebef; border-radius: 12px; background: #f6f7f9; }
.audience-notes h3 { font-size: 15px; font-weight: 700; }
.audience-notes p { margin-top: 5px; color: var(--rr-muted); font-size: 14px; line-height: 1.55; }
.history-panel { padding: 28px; border: 1px solid var(--rr-border); border-radius: 15px; background: #fff; box-shadow: 0 14px 45px rgba(32, 36, 44, .05); }
.history-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.history-topline .eyebrow { font-size: 11px; }
.change-list { margin: 16px 0 0; padding: 0; list-style: none; }
.change-list a { display: flex; color: inherit; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--rr-border); text-decoration: none; }
.change-list li:last-child a { border-bottom: 1px solid var(--rr-border); }
.change-list a:hover { background: #fcf6f2; }
.change-scores { display: flex; flex: none; align-items: center; gap: 4px; color: #9096a0; }
.change-scores .rr-icon { width: 15px; height: 15px; }
.change-text { display: flex; flex-direction: column; min-width: 0; }
.change-text strong { font-size: 15px; overflow-wrap: anywhere; }
.change-text span { color: var(--rr-muted); font-size: 13px; line-height: 1.5; }
.history-empty { margin-top: 18px; padding: 16px 18px; border: 1px solid #e2e7f0; border-radius: 10px; background: #f1f3f8; color: #3d4d6a; font-size: 14px; line-height: 1.6; }
.history-empty p + p { margin-top: 6px; }
.history-disclosure { margin-top: 16px !important; color: #6b7280; font-size: 13px; line-height: 1.6; }
.history-link {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 18px; padding: 10px;
    border: 1px solid var(--rr-border); border-radius: 8px; color: var(--rr-brand); font-size: 14px; font-weight: 650; text-decoration: none;
}
.history-link:hover { background: var(--rr-soft); }
.history-link .rr-icon { width: 16px; height: 16px; }

/* How it works */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-heading h2 { margin-top: 17px; }
.section-heading > p { max-width: 380px; padding-bottom: 5px; color: var(--rr-muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin: 40px 0 0; padding: 0; list-style: none; }
.steps li { padding-top: 21px; border-top: 1px solid #dfe3e8; }
.step-number { color: var(--rr-brand); font-size: 13px; font-weight: 650; }
.steps h3 { margin: 16px 0 10px; font-size: 23px; font-weight: 650; letter-spacing: -.8px; }
.steps p { max-width: 340px; color: var(--rr-muted); }

/* Hygiene context */
.food-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; padding-top: 5px; padding-bottom: 85px; }
.food-photo { position: relative; height: 490px; overflow: hidden; border-radius: 16px; background: #d7cfca; }
.food-photo picture, .food-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-label { position: absolute; left: 23px; right: 23px; bottom: 23px; padding: 13px 18px; border-radius: 8px; background: rgba(255, 255, 255, .94); font-size: 14px; font-weight: 600; }
.photo-label span { display: block; color: var(--rr-muted); font-size: 12px; font-weight: 400; }
.food-copy h2 { margin: 16px 0; font-size: 47px; }
.food-copy > p { max-width: 400px; margin-bottom: 22px; color: var(--rr-muted); }
.detail-line { display: flex; gap: 17px; margin: 21px 0; }
.detail-line > span { display: flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #e2e5e9; border-radius: 50%; color: var(--rr-brand); font-size: 12px; }
.detail-line h3 { font-size: 16px; letter-spacing: -.3px; }
.detail-line p { margin-top: 3px; color: var(--rr-muted); font-size: 15px; }
.food-copy .text-link { display: inline-block; margin-top: 10px; }

/* Businesses */
.business-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding: 64px; border-radius: 18px; background: var(--rr-dark); color: #fff; }
.eyebrow.light { color: #f1b49c; }
.business-copy h2 { margin: 16px 0 20px; font-size: 43px; line-height: 1.13; }
.business-copy > p { max-width: 440px; color: #c3cad6; }
.button-light { margin-top: 28px; background: #f8d7b7; border-color: #f8d7b7; color: #412a23; }
.button-light:hover { background: #ffe6ce; border-color: #ffe6ce; color: #412a23; }
.business-copy .rr-button:focus-visible { outline-color: #f8d7b7; }
.planned-details { margin-top: 22px; }
.planned-details > summary {
    position: relative; display: inline-block; padding: 8px 30px 8px 0; font-size: 15px; font-weight: 650; cursor: pointer;
    list-style: none; text-decoration: underline; text-underline-offset: 5px;
}
.planned-details > summary::-webkit-details-marker { display: none; }
.planned-details > summary::after { content: "+"; position: absolute; right: 6px; top: 4px; font-size: 21px; font-weight: 400; text-decoration: none; }
.planned-details[open] > summary::after { content: "−"; }
.business-copy .planned-details > summary { color: #fff; }
.business-copy .planned-details > summary:focus-visible { outline-color: #f8d7b7; }
.planned-details ul { margin: 10px 0 0; padding-left: 20px; color: #d5dbe5; font-size: 15px; line-height: 1.8; }
.planned-note { margin-top: 14px !important; padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #d5dbe5; font-size: 14px; line-height: 1.55; }
.owner-preview { padding: 28px; border-radius: 13px; background: #fff; color: var(--rr-ink); }
.portfolio-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--rr-muted); font-size: 12px; font-weight: 650; letter-spacing: 1px; text-transform: uppercase; }
.portfolio-head .pill { letter-spacing: 0; text-transform: none; }
.owner-preview h3 { margin: 18px 0; font-size: 21px; letter-spacing: -.8px; }
.owner-feature { display: flex; gap: 15px; padding: 17px 0; border-top: 1px solid var(--rr-border); }
.owner-feature > b { padding-top: 2px; color: var(--rr-brand); font-size: 12px; }
.owner-feature strong { font-size: 15px; }
.owner-feature p { margin-top: 5px; color: var(--rr-muted); font-size: 14px; }
.feature-status { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 5px; background: #f1f3f6; color: #5d6876; font-size: 11px; font-weight: 650; vertical-align: 2px; white-space: nowrap; }
.feature-status.is-live { background: #eef1f8; color: #263c64; }
.owner-principle { margin-top: 12px !important; padding: 12px; border-radius: 7px; background: #f3f5f8; color: #5d6876; font-size: 13px; }

/* Ordering (planned) */
.ordering-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; border-bottom: 1px solid var(--rr-border); }
.ordering-section h2 { margin: 18px 0 22px; font-size: 44px; }
.ordering-section > div > p { max-width: 460px; color: var(--rr-muted); }
.planned-details--plain { margin-top: 24px; padding: 4px 18px; border: 1px solid var(--rr-border); border-radius: 10px; }
.planned-details--plain > summary { color: var(--rr-brand); }
.planned-details--plain[open] { padding-bottom: 18px; }
.ordering-plan { margin: 8px 0 0; padding-left: 22px; }
.ordering-plan li { padding: 8px 0; }
.ordering-plan strong { font-size: 15px; }
.ordering-plan p { color: var(--rr-muted); font-size: 15px; line-height: 1.6; }
.planned-details--plain .planned-note { background: #f3f5f8; color: var(--rr-muted); }
.order-steps { margin: 0; padding: 0; list-style: none; }
.order-steps li { padding: 20px 0; border-bottom: 1px solid var(--rr-border); }
.order-steps li:last-child { border-bottom: 0; }
.order-steps span { color: var(--rr-brand); font-size: 12px; font-weight: 650; letter-spacing: 1.2px; text-transform: uppercase; }
.order-steps h3 { margin: 8px 0; font-size: 21px; letter-spacing: -.6px; }
.order-steps p { color: var(--rr-muted); font-size: 15px; }

/* FAQs */
.faq-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; padding-top: 75px; }
.faq-section h2 { margin: 17px 0; }
.faq-section > div > p { color: var(--rr-muted); }
.faqs details { border-bottom: 1px solid var(--rr-border); }
.faqs details:first-child { border-top: 1px solid var(--rr-border); }
.faqs summary { position: relative; padding: 20px 34px 20px 0; font-size: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 22px; font-weight: 400; }
.faqs details[open] summary::after { content: "−"; }
.faqs details p { padding: 0 25px 20px 0; color: var(--rr-muted); font-size: 15px; line-height: 1.65; }
.faqs details a { color: var(--rr-brand); }

/* Closing band and footer */
.closing { padding: 65px 0; border-top: 1px solid #eee0d6; background: #f7ece4; text-align: center; }
.closing h2 { margin: 17px 0 26px; font-size: 58px; line-height: 1.05; letter-spacing: -2.5px; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 40px 0 30px; }
.footer-main .rr-brand img { height: 34px; }
.footer-tagline { color: var(--rr-muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.footer-nav a { color: inherit; text-decoration: none; }
.footer-nav a:hover { color: var(--rr-brand); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 20px 0 30px; border-top: 1px solid var(--rr-border); color: var(--rr-muted); font-size: 13px; line-height: 1.6; }
.footer-bottom a { color: inherit; text-underline-offset: 3px; }
.site-footer .rr-credit { padding-bottom: 32px; }

/* ---------- Responsive ---------- */
@media (min-width: 1450px) {
    .hero { padding-top: 65px; }
}
@media (max-width: 1100px) {
    .wrap { width: calc(100% - 48px); }
    .site-nav { gap: 17px; font-size: 13px; }
    .site-nav a:first-child { display: none; } /* the header button opens the map */
    .track-section, .food-section, .ordering-section { gap: 40px; }
    .business-section { gap: 35px; padding: 40px; }
    .track-intro h2, .business-copy h2, .ordering-section h2 { font-size: 38px; }
    .product-shots { grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; }
    .phone-frame { border-width: 6px; border-radius: 26px; }
    .phone-frame img { border-radius: 20px; }
    .audience-notes { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .site-header { height: 80px; }
    .site-nav { display: none; }
    .hero { padding-top: 43px; }
    .hero h1 { font-size: 58px; letter-spacing: -3px; }
    .hero-intro { font-size: 17px; }
    .product-shots { grid-template-columns: minmax(0, 1fr); }
    .shot-mobile { width: min(300px, 70%); margin: 0 auto; }
    .section { padding-top: 65px; padding-bottom: 65px; }
    .strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
    .strip-inner > div { padding-left: 0; border: 0; }
    .track-section, .food-section, .ordering-section, .faq-section, .business-section { grid-template-columns: 1fr; }
    .track-section { gap: 32px; }
    .ordering-section { gap: 24px; }
    .faq-section { gap: 25px; }
    .business-section { padding: 35px; }
    .food-photo { height: 440px; }
    .food-copy h2 { font-size: 42px; }
    :where(.landing) h2, .section-heading h2 { font-size: 40px; }
    .closing h2 { font-size: 49px; }
    .steps { gap: 24px; }
    .steps h3 { font-size: 20px; }
}
@media (max-width: 600px) {
    .wrap { width: calc(100% - 32px); }
    .site-header { gap: 12px; height: 72px; }
    .site-header .rr-brand img { height: 36px; }
    .header-cta { padding: 10px 14px; font-size: 14px; }
    .hero h1 { font-size: 46px; letter-spacing: -2.4px; margin: 20px 0; }
    .hero h1 em { letter-spacing: -2px; }
    .hero h1 br, .desktop-break { display: none; }
    .hero-intro { font-size: 16px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-proof { flex-direction: column; gap: 2px; margin-bottom: 30px; }
    .hero-proof li + li::before { display: none; }
    .shot-desktop { display: none; } /* a phone shows the phone screenshot instead */
    .shot-mobile { width: min(320px, 86%); }
    .product-caption { justify-content: center; text-align: center; }
    .product-caption b { display: block; margin: 0 0 2px; }
    .preview-note { padding-left: 0; padding-right: 0; }
    .strip-inner { grid-template-columns: 1fr; }
    .history-panel { padding: 20px; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 18px; }
    .steps { grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
    .steps h3 { margin: 10px 0 6px; }
    .food-photo { height: 340px; }
    .photo-label { left: 14px; right: 14px; bottom: 14px; }
    :where(.landing) h2, .section-heading h2, .track-intro h2, .business-copy h2, .ordering-section h2, .food-copy h2 { font-size: 35px; letter-spacing: -1.4px; }
    .business-section { padding: 26px 20px; }
    .owner-preview { padding: 20px; }
    .closing h2 { font-size: 40px; }
    .footer-bottom { flex-direction: column; }
}
