/* Preview homepage: shared Grapeseed palette, isolated from the public homepage. */
/* Repeating farm sketches: wheat, corn, strawberries and tomatoes. */
body {
    background-color: #f5eddd;
    background-image:
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22600%22%20viewBox%3D%220%200%20640%20600%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%238b7355%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%22.13%22%3E%0A%3C%21--%20Wheat%20--%3E%0A%3Cg%20transform%3D%22translate%2855%2040%29%20rotate%28-18%2040%2070%29%22%3E%3Cpath%20d%3D%22M40%20132V24M40%20105C20%20101%2014%2088%2015%2077C31%2079%2040%2091%2040%20105ZM40%2086C59%2082%2065%2068%2064%2058C49%2062%2040%2074%2040%2086ZM40%2068C22%2062%2018%2050%2020%2039C33%2044%2040%2056%2040%2068ZM40%2049C55%2042%2059%2032%2056%2022C44%2029%2040%2039%2040%2049ZM40%2028C31%2018%2034%208%2040%201C47%2010%2048%2019%2040%2028Z%22%2F%3E%3C%2Fg%3E%0A%3C%21--%20Corn%2C%20kernels%20and%20husks%20--%3E%0A%3Cg%20transform%3D%22translate%28380%2062%29%20rotate%2816%2035%2065%29%22%3E%3Cpath%20d%3D%22M22%2099V32C22%203%2053%203%2053%2032V99M22%2035H53M22%2049H53M22%2063H53M22%2077H53M32%2016V94M43%2016V94M38%20125C7%20105%203%2072%206%2053C31%2073%2039%2096%2038%20125ZM38%20125C66%20105%2074%2072%2070%2053C47%2074%2037%2099%2038%20125ZM38%20125V138%22%2F%3E%3C%2Fg%3E%0A%3C%21--%20Strawberry%20--%3E%0A%3Cg%20transform%3D%22translate%28230%20270%29%20rotate%28-12%2038%2045%29%22%3E%3Cpath%20d%3D%22M10%2029C-5%2058%2023%2095%2038%20104C53%2095%2081%2058%2066%2029C57%2018%2019%2018%2010%2029ZM38%2028L20%2011L27%2029L8%2021L21%2039L38%2028L55%2040L68%2021L48%2029L55%2010ZM38%2028C34%2014%2039%204%2044%200%22%2F%3E%3Cpath%20d%3D%22M20%2049L22%2053M37%2044L38%2048M55%2049L53%2053M27%2066L29%2070M47%2066L45%2070M37%2082L38%2086%22%2F%3E%3C%2Fg%3E%0A%3C%21--%20Tomato%20--%3E%0A%3Cg%20transform%3D%22translate%28510%20355%29%22%3E%3Cpath%20d%3D%22M39%2026C7%207-9%2040%204%2062C15%2085%2061%2086%2075%2063C88%2038%2070%208%2039%2026ZM39%2026L22%2014L28%2030L13%2034L32%2038L39%2026L49%2039L66%2032L49%2028L54%2016ZM39%2026C36%2015%2038%206%2043%201M11%2048C10%2056%2014%2063%2020%2066%22%2F%3E%3C%2Fg%3E%0A%3C%21--%20Small%20wheat%20sprig%20--%3E%0A%3Cg%20transform%3D%22translate%2862%20405%29%20rotate%2822%2030%2050%29%22%3E%3Cpath%20d%3D%22M30%20110V16M30%2083C12%2077%208%2065%2010%2055C24%2060%2030%2071%2030%2083ZM30%2065C48%2059%2053%2046%2050%2037C36%2043%2030%2054%2030%2065ZM30%2046C14%2040%2012%2027%2016%2020C26%2027%2030%2036%2030%2046ZM30%2026C22%2016%2025%207%2030%200C37%209%2038%2017%2030%2026Z%22%2F%3E%3C%2Fg%3E%0A%3C%2Fg%3E%3C%2Fsvg%3E"),
        radial-gradient(ellipse at 10% 0%, #e8d7b533, transparent 65%),
        radial-gradient(ellipse at 95% 80%, #d8c3a029, transparent 70%);
    background-size: 640px 600px, 100% 100%, 100% 100%;
    background-position: center top, center, center;
    background-repeat: repeat, no-repeat, no-repeat;
}
@media (max-width: 768px) {
    body { background-size: 480px 450px, 100% 100%, 100% 100%; }
}
.container, .header-content { max-width: 1100px; }
.header, .header.scrolled { background: transparent; border-bottom: 0; box-shadow: none; backdrop-filter: none; }
body::before { background: #f5eddd; }
.header .logo img, .header.scrolled .logo img { height: 64px; }
.header-content { padding-top: 12px; padding-bottom: 12px; }
.nav-link { font-size: .85rem; }
.btn-primary { background: var(--primary-dark); border-radius: 10px; box-shadow: none; font: 500 .85rem 'Poppins', sans-serif; }
.hero { display: block; min-height: 0; padding: 52px 0 0; background: transparent; overflow: visible; }
.hero::before, .hero-overlay { display: none; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-content { max-width: none; margin: 0; padding: 16px 0; text-align: left; }
.eyebrow { color: #806749; font-size: .68rem; font-weight: 600; letter-spacing: .15em; line-height: 1.7; margin-bottom: 16px; }
.hero-title { color: var(--primary-dark); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -.035em; animation: none; margin-bottom: 22px; }
.hero-title > span { color: #9a784c; }
.hero-subtitle { color: #6b5844; font-size: .95rem; line-height: 1.85; margin-bottom: 28px; max-width: 440px; animation: none; }
.highlight { color: var(--primary-dark); }
.hero-buttons { justify-content: flex-start; gap: 10px; animation: none; }
.btn-hero-primary, .btn-hero-secondary, .btn-secondary { border-radius: 10px; min-height: 46px; padding: 12px 16px; font: 500 .8rem 'Poppins', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: none; }
.btn-hero-primary { background: var(--primary-dark); color: #fffdf9; }
.btn-hero-secondary, .btn-secondary { border: 1px solid #8b735566; background: #fffdf980; color: var(--primary-dark); }
.btn-hero-primary:hover, .btn-primary:hover { background: #544332; transform: none; box-shadow: none; }
.btn-hero-secondary:hover, .btn-secondary:hover { background: #fffdf9; color: var(--primary-dark); transform: none; box-shadow: none; }
.hero-showcase { border: 1px solid #8b735540; border-radius: 20px; background: #fffdf9; box-shadow: 0 8px 26px #6b584414; overflow: hidden; transform: rotate(2deg); }
.showcase-heading { display: flex; align-items: center; gap: 10px; padding: 18px 20px; background: var(--primary-dark); color: #fffdf9; font: 700 1.1rem 'Playfair Display', serif; }
.harvest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 10px; }
.harvest-item { background: #f5eee2; border-radius: 12px; display: grid; justify-items: center; padding: 14px 8px 10px; gap: 8px; }
.harvest-item img { width: 100%; height: 100px; object-fit: contain; filter: drop-shadow(0 8px 8px #6b58441a); }
.harvest-item > span { color: #6b5844; font-size: .7rem; }
.showcase-footer { padding: 12px 20px; border-top: 1px solid #8b735526; display: flex; justify-content: center; align-items: center; gap: 6px; color: #6b5844; font-size: .7rem; }
.showcase-footer .material-symbols-outlined { font-size: 18px; }
.hero-promises { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; margin-top: 40px; border-top: 1px solid #8b735533; border-bottom: 1px solid #8b735533; }
.hero-promises > span { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: #6b5844; }
.hero-promises .material-symbols-outlined { font-size: 20px; }
.featured-products, .values, .how-it-works { background: transparent; padding: 48px 0; }
.section-header { text-align: left; margin-bottom: 24px; }
.section-header .eyebrow { margin-bottom: 8px; }
.section-title { color: var(--primary-dark); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; line-height: 1.25; }
.section-subtitle { margin: 0; color: #6b5844; font-size: .85rem; }
.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.product-card, .value-card, .step-card { opacity: 1; transform: none; border: 1px solid #8b735540; border-radius: 16px; background: #fffdf9; box-shadow: 0 6px 20px #6b584410; }
.product-card.animate-in, .value-card.animate-in, .step-card.animate-in { animation: none; }
.product-card:hover, .value-card:hover { transform: none; box-shadow: 0 8px 26px #6b58441c; }
.product-image { height: 170px; background: #f5eee2; }
.product-image img { max-height: 75%; max-width: 75%; object-fit: contain; }
.product-card:hover .product-image img { transform: none; }
.product-info { padding: 16px; }
.product-info h3 { font: 700 1.2rem 'Playfair Display', serif; color: var(--primary-dark); margin-bottom: 5px; }
.product-category { font-size: .7rem; color: #806749; margin-bottom: 12px; }
.product-price { color: var(--primary-dark); font-size: 1.15rem; }
.product-badge, .product-badge.popular { background: var(--primary-dark); color: #fffdf9; font-size: .6rem; padding: 5px 9px; }
.section-cta { text-align: left; }
.values { padding-top: 20px; }
.values-grid, .steps-grid { gap: 16px; }
.value-card { text-align: left; padding: 24px; }
.value-icon { margin: 0 0 16px; width: 44px; height: 44px; border-radius: 12px; background: #f3e7cd; color: var(--primary-dark); }
.value-icon .material-symbols-outlined { font-size: 26px; }
.value-card h3, .step-card h3 { color: var(--primary-dark); font: 700 1.2rem 'Playfair Display', serif; margin-bottom: 10px; }
.value-card p, .step-card p { color: #6b5844; font-size: .8rem; line-height: 1.8; }
.how-it-works { padding-top: 12px; }
.step-card { padding: 24px; text-align: left; }
.step-number { position: static; transform: none; margin-bottom: 16px; width: 36px; height: 36px; background: var(--primary-dark); font-size: 1rem; }
.step-icon { display: none; }
.steps-grid::before { display: none; }
.footer { background: transparent; color: var(--primary-dark); padding: 16px 0 0; }
.footer-content { border-top: 1px solid #8b735533; padding-top: 28px; gap: 28px; margin-bottom: 24px; }
.footer-section { text-align: center; }
.footer-section ul { padding-left: 0; }
.footer-logo { display: block; width: 72px; margin: 0 auto 12px; }
.footer-section p, .footer-section ul li a { font-size: .75rem; color: #6b5844; }
.footer-section h4 { color: var(--primary-dark); font-size: .85rem; margin-bottom: 12px; }
.footer-bottom p { color: var(--primary-dark); }
.footer-bottom { border-color: #8b735533; padding: 16px 0; font-size: .65rem; color: #6b5844; }
#phoneLoginModal { background: #fffdf9; border: 1px solid #8b735540; border-radius: 16px; }
#phoneLoginModal .modal-header h2 { color: var(--primary-dark); }
#phoneLoginModal .phone-account-button { background: #f5eee2; color: var(--primary-dark); border-color: #8b735540; }
#phoneLoginModal .phone-account-button:hover { background: #eadcc5; border-color: #8b7355; }
a:focus-visible, button:focus-visible { outline: 3px solid #9a784c; outline-offset: 4px; }
@media (max-width: 768px) {
    .header .logo img, .header.scrolled .logo img { height: 40px; }
    .header-content { padding: 6px 12px; }
    .hero { min-height: 0; padding: 28px 0 0; }
    .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .hero-content { padding: 0; }
    .hero-title { font-size: clamp(2.15rem, 9vw, 3.2rem); }
    .eyebrow { font-size: 10px; margin-bottom: 12px; }
    .hero-subtitle { font-size: 13px; margin-bottom: 20px; }
    .hero-buttons { flex-direction: column; gap: 8px; }
    .hero-buttons > * { width: 100%; font-size: 13px; min-height: 44px; }
    .hero-showcase { transform: none; border-radius: 16px; }
    .showcase-heading { padding: 12px 16px; font-size: 16px; }
    .harvest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px; gap: 6px; }
    .harvest-item { padding: 10px 4px; gap: 5px; }
    .harvest-item img { height: 56px; }
    .harvest-item > span { font-size: 9px; text-align: center; }
    .showcase-footer { font-size: 11px; }
    .hero-promises { margin-top: 24px; padding-top: 16px; padding-bottom: 16px; gap: 12px; }
    .hero-promises > span { font-size: 11px; }
    .featured-products, .values, .how-it-works { padding: 28px 0; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 12px; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-image { height: 120px; }
    .product-info { padding: 12px; }
    .product-info h3 { font-size: 17px; }
    .product-category { font-size: 11px; }
    .product-price { font-size: 17px; }
    .values-grid, .steps-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .value-card, .step-card { padding: 18px; }
    .value-card p, .step-card p { font-size: 12px; }
    .footer-content { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .footer-section p, .footer-section ul li a { font-size: 12px; }
}
@media (max-width: 320px) { .harvest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-title { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Desktop browsers do not need the in-game phone's reserved bars. */
@media (min-width: 769px) {
    :root {
        --phone-safe-height: var(--phone-viewport-height, 100dvh);
        --phone-modal-center: calc(var(--phone-viewport-top, 0px) + var(--phone-safe-height) / 2);
    }
    html { scroll-padding-top: 100px; }
    body { padding: 0; }
    body::before { display: none; }
    .header { top: 0; }
    .header-content { padding-top: 4px; padding-bottom: 4px; }
    .header .logo img, .header.scrolled .logo img { height: 76px; }
    .modal-overlay, .cart-overlay { top: var(--phone-viewport-top, 0px); }
    .cart-sidebar { top: var(--phone-viewport-top, 0px); }
    #notificationContainer { top: calc(var(--phone-viewport-top, 0px) + 12px); }
}

/* Short, one-time entrances and gentle desktop hover feedback. */
@keyframes homepage-arrive {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-content { animation: homepage-arrive 550ms ease-out both; }
    .hero-showcase { animation: homepage-arrive 650ms ease-out 100ms both; }
    .hero-promises { animation: homepage-arrive 550ms ease-out 180ms both; }
    .product-card.animate-in, .value-card.animate-in, .step-card.animate-in {
        animation: homepage-arrive 500ms ease-out both;
    }
    .product-card.animate-in:nth-child(2), .value-card.animate-in:nth-child(2), .step-card.animate-in:nth-child(2) { animation-delay: 60ms; }
    .product-card.animate-in:nth-child(3), .value-card.animate-in:nth-child(3), .step-card.animate-in:nth-child(3) { animation-delay: 120ms; }
    .product-card.animate-in:nth-child(4) { animation-delay: 180ms; }
    @media (hover: hover) and (pointer: fine) {
        .product-card, .value-card { transition: transform 180ms ease, box-shadow 180ms ease; }
        .product-card:hover, .value-card:hover { transform: translateY(-3px); }
        .product-image img, .harvest-item img { transition: transform 220ms ease; }
        .product-card:hover .product-image img, .harvest-item:hover img { transform: scale(1.04); }
        .btn-hero-primary, .btn-hero-secondary, .btn-secondary { transition: background-color 160ms ease, transform 160ms ease; }
        .btn-hero-primary:hover, .btn-hero-secondary:hover, .btn-secondary:hover { transform: translateY(-2px); }
    }
}

/* Two title beats followed by a single fine gold underline. */
.hero-title .hero-title-first { display: inline-block; color: var(--primary-dark); }
.hero-title .hero-title-second { display: inline-block; position: relative; padding-bottom: .12em; }
.hero-title-second::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--secondary-color);
    transform-origin: left center;
}
@keyframes homepage-title-arrive {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes homepage-gold-line {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) {
    /* Animate the individual pieces so the title does not move twice. */
    .hero-content { animation: none; }
    .hero-content > .eyebrow { animation: homepage-arrive 450ms ease-out both; }
    .hero-title-first { animation: homepage-title-arrive 600ms ease-out 80ms both; }
    .hero-title-second { animation: homepage-title-arrive 600ms ease-out 230ms both; }
    .hero-title-second::after { animation: homepage-gold-line 650ms ease-out 850ms both; }
    .hero-subtitle { animation: homepage-arrive 550ms ease-out 330ms both; }
    .hero-buttons { animation: homepage-arrive 550ms ease-out 430ms both; }
    @media (hover: hover) and (pointer: fine) {
        .product-image img, .harvest-item img { transition: transform 280ms ease; }
        .product-card:hover .product-image img, .harvest-item:hover img { transform: scale(1.04) rotate(-2deg); }
        .product-card:nth-child(even):hover .product-image img, .harvest-item:nth-child(even):hover img { transform: scale(1.04) rotate(2deg); }
    }
}

/* Client dialog follows the same dark headings and cream cards as the homepage. */
#phoneLoginOverlay { background: rgba(55, 43, 30, .48); }
#phoneLoginModal { padding: 0; box-shadow: 0 20px 65px #352b1e33; }
#phoneLoginModal .modal-header { padding: 22px 24px; margin: 0; background: var(--primary-dark); align-items: center; }
#phoneLoginModal .phone-login-heading { min-width: 0; }
#phoneLoginModal .phone-login-eyebrow { color: #f3e7cd; font-size: 10px; font-weight: 500; letter-spacing: .12em; line-height: 1.6; margin-bottom: 8px; }
#phoneLoginModal .modal-header h2 { color: #fffdf9; font-size: 1.45rem; line-height: 1.3; overflow-wrap: anywhere; }
#phoneLoginModal .btn-close { width: 40px; height: 40px; border: 1px solid #ffffff40; border-radius: 10px; background: #ffffff14; color: #fffdf9; }
#phoneLoginModal .btn-close:hover { background: #ffffff26; }
#phoneLoginModal .phone-login-body { padding: 24px; font-size: .85rem; color: var(--primary-dark); }
#phoneLoginModal .phone-login-subtitle { color: #6b5844; margin-bottom: 18px; line-height: 1.7; }
#phoneLoginModal .phone-login-help { gap: 12px; line-height: 1.75; }
#phoneLoginModal .phone-login-help > p { padding: 14px 16px; border: 1px solid #8b735526; border-radius: 12px; background: #f5eee2; }
#phoneLoginModal .phone-account-button { padding: 14px; border-radius: 12px; min-height: 64px; }
#phoneLoginModal .phone-account-button > .material-symbols-outlined:first-child { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: #e9ddc9; }
#phoneLoginModal .phone-account-details strong { font-size: .95rem; font-weight: 600; }
#phoneLoginModal [role="alert"] { padding: 12px 14px; margin-bottom: 14px; border: 1px solid #b35b4140; border-radius: 10px; background: #fbefe7; color: #85452f; line-height: 1.6; }
#phoneLoginModal .phone-login-progress { color: #6b5844; font-size: .8rem; }
#phoneLoginModal button:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 3px; }
@media (max-width: 768px) {
    #phoneLoginModal { padding: 0; }
    #phoneLoginModal .modal-header { padding: 18px; }
    #phoneLoginModal .modal-header h2 { font-size: 20px; }
    #phoneLoginModal .phone-login-eyebrow { font-size: 9px; }
    #phoneLoginModal .phone-login-body { padding: 18px; font-size: 13px; }
    #phoneLoginModal .phone-account-details strong { font-size: 13px; }
}

/* Mobile homepage: centered content and an opaque, full-width phone canvas. */
@media (max-width: 768px) {
    html { background-color: #f5eddd; width: 100%; overflow-x: hidden; scrollbar-width: none; }
    body { width: 100%; max-width: 100%; overflow-x: hidden; scrollbar-width: none; }
    html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
    .phone-page { width: 100%; max-width: 100%; min-width: 0; }
    .hero-content, .section-header, .section-cta, .value-card, .step-card, .footer-section { text-align: center; }
    .hero-subtitle, .section-subtitle { margin-left: auto; margin-right: auto; }
    .hero-title { overflow-wrap: anywhere; }
    .hero-title > span { max-width: 100%; }
    .hero-buttons { align-items: center; }
    .value-icon, .step-number { margin-left: auto; margin-right: auto; }
    .footer-logo { margin-left: auto; margin-right: auto; }
    .footer-section ul { padding-left: 0; }
    .footer-section ul li a { display: inline-flex; justify-content: center; align-items: center; }
}

/* Cream mobile menu with clear, generously sized navigation rows. */
@media (max-width: 768px) {
    .menu-toggle { border: 1px solid #8b735540; border-radius: 10px; background: #fffdf980; color: var(--primary-dark); }
    .menu-toggle[aria-expanded="true"] { background: var(--primary-dark); color: #fffdf9; }
    .nav-mobile { background: #faf6ee; padding: 12px; gap: 6px; }
    .nav-mobile.active { border-top: 1px solid #8b735533; border-bottom: 1px solid #8b735533; box-shadow: 0 8px 18px #6b58440d; }
    .nav-link-mobile { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px; border: 1px solid #8b735526; border-radius: 10px; background: #fffdf9; color: var(--primary-dark); font-size: 13px; }
    .nav-link-mobile > .material-symbols-outlined { font-size: 21px; color: #8b7355; }
    .nav-link-mobile .mobile-link-arrow { margin-left: auto; font-size: 18px; }
    .nav-link-mobile:hover, .nav-link-mobile:focus-visible { background: #f3e7cd; }
    @media (prefers-reduced-motion: no-preference) {
        .nav-mobile.active { animation: homepage-arrive 180ms ease-out both; }
        .menu-toggle, .nav-link-mobile { transition: background-color 140ms ease, color 140ms ease; }
    }
}

@media (max-width: 768px) {
    .header-actions > .btn-primary { display: none; }
    .nav-mobile .mobile-login { width: 100%; font-family: inherit; font-weight: 500; text-align: left; cursor: pointer; background: var(--primary-dark); color: #fffdf9; }
    .nav-mobile .mobile-login > .material-symbols-outlined { color: #f3e7cd; }
    .nav-mobile .mobile-login:hover, .nav-mobile .mobile-login:focus-visible { background: #544332; }
}

/* Tighter phone top inset and matching spacing around the hero title. */
@media (max-width: 768px) {
    :root {
        --phone-safe-height: calc(var(--phone-viewport-height, 100dvh) - 60px);
        --phone-modal-center: calc(var(--phone-viewport-top, 0px) + 40px + var(--phone-safe-height) / 2);
    }
    body { padding-top: 40px; }
    body::before { height: 40px; }
    .header { top: 40px; }
    .modal-overlay, .cart-overlay, .cart-sidebar { top: calc(var(--phone-viewport-top, 0px) + 40px); }
    #notificationContainer { top: calc(var(--phone-viewport-top, 0px) + 52px); }
    .hero { padding-top: 52px; }
    .hero-title { margin-bottom: 22px; }
}

/* The login backdrop covers the complete viewport, including phone reserved bars. */
#phoneLoginOverlay { top: 0; bottom: 0; height: 100%; height: 100dvh; }

/* The public navigation scrolls out with the page instead of covering content. */
.phone-page > .header,
.phone-page > .header.scrolled {
    position: relative;
    top: auto;
    padding-top: 0;
}

/* Footer information shares one readable type scale. */
.footer .footer-logo { width: 80px; height: auto; }
.footer .footer-bottom p { font-size: .75rem; line-height: 1.8; }
@media (min-width: 769px) { .footer .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .footer .footer-bottom p { font-size: 12px; } }

/* Footer: brand on the left, contact details on the right. */
.footer .footer-content {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}
.footer .footer-content > .footer-section:first-child { text-align: left; }
.footer .footer-logo { margin: 0; }
.footer .footer-content > .footer-section:last-child { text-align: left; }
.footer .footer-content > .footer-section:last-child h4 { margin-bottom: 8px; }
@media (max-width: 400px) {
    .footer .footer-content { gap: 14px; }
}

/* Focus the connection dialog with a static blurred backdrop. */
#phoneLoginOverlay.active { background: rgba(25, 19, 14, .55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
body.phone-login-open .autumn-atmosphere { visibility: hidden; }
body.phone-login-open .autumn-atmosphere,
body.phone-login-open .autumn-atmosphere * { animation-play-state: paused !important; }

/* Keep the chosen account clear while the normal POST opens the dashboard. */
#phoneLoginModal .phone-account-button.is-selected:disabled { opacity: 1; cursor: default; border-color: var(--primary-color, #b37b3e); }
#phoneLoginModal .phone-account-button.is-selected .phone-account-arrow { color: inherit; }

#clientAccessRequestForm > label { display: block; margin-bottom: 7px; color: var(--text-dark); }
#clientAccessPhone { box-sizing: border-box; width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid #b17b496b; border-radius: 10px; background: #2d2118; color: #fff0d9; font: inherit; }
