/* ==========================================================================
   A Kitchen Society — the signed-out home page, phone first (2026-11-15)
   Pages/Shared/_HomeSignedOut.cshtml. Loaded after home.css, signed-out only (Pages/Index.cshtml).
   Every class starts with hz-; buttons and the invite dialog still come from home.css.

   HOW TO TWEAK
     Side gap on phones ........ --hz-gap (20px)
     Hero photo height ......... .hz-hero__media height (phones) / min-height (wide)
     Phone pictures' size ...... .hz-phone width
     Where it turns wide ....... the @media (min-width: 900px) block at the end
   ========================================================================== */

.aks-home {
    --hz-gap: 20px;
    --hz-navy: var(--home-navy, #102f56);
    --hz-gold: var(--home-gold, #F2A21B);
    --hz-gold-ink: var(--home-gold-ink, #A85F00);
    --hz-text: var(--home-text, #344b61);
    --hz-muted: var(--home-muted, #617286);
    --hz-line: var(--home-line, #e4e9ee);
    --hz-soft: var(--home-soft, #f5f8fc);
    --hz-serif: "Fraunces", Georgia, serif;
}

/* ── shared pieces ─────────────────────────────────────────────────────── */
.hz-sec { padding: 44px var(--hz-gap); }
.hz-head { margin: 0 0 22px; }
.hz-eyebrow { margin: 0 0 8px; color: var(--hz-gold-ink); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hz-eyebrow--light { color: #ffd38a; }
.hz-h2 { margin: 0 0 8px; color: var(--hz-navy); font-family: var(--hz-serif); font-size: clamp(1.6rem, 6.4vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
.hz-h3 { margin: 0 0 12px; color: var(--hz-navy); font-family: var(--hz-serif); font-size: 1.2rem; font-weight: 500; }
.hz-lead { max-width: 560px; margin: 0; color: var(--hz-text); font-size: 1rem; line-height: 1.55; }
.hz-note { margin: 14px 0 0; color: var(--hz-muted); font-size: .88rem; }
.hz-note a, .hz-close a { color: var(--hz-navy); font-weight: 600; }
.hz-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.hz-actions .home-btn { width: 100%; }

/* A row that swipes sideways on a phone (scroll snap), and lays out as a grid when wide */
.hz-row { display: flex; gap: 12px; margin: 0 calc(-1 * var(--hz-gap)); padding: 4px var(--hz-gap) 12px; list-style: none;
          overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--hz-gap); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hz-row::-webkit-scrollbar { display: none; }
.hz-row > li { flex: none; scroll-snap-align: start; }

/* ── 1. hero: the photo full width with the headline on it ────────────── */
.hz-hero__media { position: relative; height: min(62vh, 520px); min-height: 340px; overflow: hidden; background: #1d2f45; }
.hz-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.hz-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 46, 0) 30%, rgba(10, 26, 46, .78) 100%); }
.hz-hero__over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 var(--hz-gap) 22px; }
.hz-title { margin: 0; color: #fff; font-family: var(--hz-serif); font-size: clamp(2.5rem, 12vw, 4.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); max-width: 11ch; }
.hz-hero__copy { padding: 22px var(--hz-gap) 8px; }
.hz-intro { margin: 0; color: var(--hz-text); font-size: 1.05rem; line-height: 1.55; }

/* ── 2. how it works: four tiles ───────────────────────────────────────── */
.hz-flow { background: var(--hz-soft); }
.hz-step { position: relative; width: 72%; max-width: 260px; padding: 18px 16px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--hz-line), 0 6px 20px rgba(15, 47, 80, .06); }
.hz-step h3 { margin: 12px 0 4px; color: var(--hz-navy); font-size: 1.05rem; font-weight: 700; }
.hz-step p { margin: 0; color: var(--hz-text); font-size: .9rem; line-height: 1.45; }
.hz-step__icon, .hz-feat__icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff6e6; color: var(--hz-gold-ink); }
.hz-step__icon svg, .hz-feat__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hz-step__n { position: absolute; top: 14px; right: 16px; color: #d7dee6; font-family: var(--hz-serif); font-size: 1.6rem; line-height: 1; }

/* ── 3. on your phone: drawn app screens ───────────────────────────────── */
.hz-shot { width: 252px; }
.hz-phone { width: 252px; height: 520px; padding: 9px; border-radius: 38px; background: #0f1d2e; box-shadow: 0 18px 40px rgba(15, 29, 46, .22), inset 0 0 0 1px #2a3b52; }
.hz-app { height: 100%; overflow: hidden; border-radius: 30px; background: #f6f8fb; color: #223a52; font-size: 11px; line-height: 1.35; text-align: left; }
.hz-app__bar { display: flex; align-items: center; justify-content: space-between; padding: 26px 16px 10px; background: #fff; border-bottom: 1px solid #e6ebf0; color: var(--hz-navy); font-size: 12px; }
.hz-app__bar span { color: #8a9aab; font-size: 15px; line-height: 1; }
.hz-app__body { padding: 12px 14px; }
.hz-ui-title { margin: 0 0 2px; color: var(--hz-navy); font-family: var(--hz-serif); font-size: 17px; line-height: 1.15; }
.hz-ui-meta { margin: 0 0 10px; color: #6b7c8f; font-size: 10.5px; }
.hz-ui-cost { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 12px; }
.hz-ui-cost span { padding: 7px 6px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e6ebf0; color: #6b7c8f; font-size: 9.5px; text-align: center; }
.hz-ui-cost b { display: block; color: var(--hz-navy); font-size: 13px; }
.hz-ui-h, .hz-ui-aisle { margin: 10px 0 6px; color: #8a9aab; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hz-ui-lines, .hz-ui-days, .hz-ui-checks, .hz-ui-ing { margin: 0; padding: 0; list-style: none; }
.hz-ui-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #e9eef3; }
.hz-ui-lines li:first-child { border-top: 0; }
.hz-ui-lines small { display: block; color: #8a9aab; font-size: 9.5px; }
.hz-ui-lines em { color: var(--hz-navy); font-style: normal; font-weight: 700; }
.hz-ui-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.hz-ui-tags span { padding: 3px 8px; border-radius: 999px; background: #fff6e6; color: #8a5200; font-size: 9.5px; font-weight: 600; }
.hz-ui-shared { display: inline-block; margin: 0 0 10px; padding: 3px 9px; border-radius: 999px; background: #eaf1f9; color: var(--hz-navy); font-size: 9.5px; font-weight: 600; }
.hz-ui-days li { display: flex; gap: 10px; margin: 0 0 7px; padding: 9px 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e6ebf0; color: #6b7c8f; font-size: 9.5px; }
.hz-ui-days li.is-big { box-shadow: 0 0 0 1.5px var(--hz-gold); }
.hz-ui-days b { display: block; color: var(--hz-navy); font-size: 12px; }
.hz-ui-days small { display: block; margin-top: 2px; }
.hz-ui-day { flex: none; width: 30px; color: var(--hz-gold-ink); font-weight: 700; text-align: center; text-transform: uppercase; }
.hz-ui-day b { font-size: 15px; }
.hz-ui-total { display: flex; justify-content: space-between; margin: 10px 2px 0; color: #6b7c8f; }
.hz-ui-total b { color: var(--hz-navy); font-size: 13px; }
.hz-ui-checks li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #e9eef3; color: var(--hz-navy); font-weight: 600; }
.hz-ui-checks li:first-child { border-top: 0; }
.hz-ui-checks i { flex: none; width: 14px; height: 14px; border: 1.5px solid #b8c4d0; border-radius: 4px; background: #fff; }
.hz-ui-checks small { margin-left: auto; color: #8a9aab; font-size: 9.5px; font-weight: 400; }
.hz-ui-checks li.is-on { color: #9aa8b6; text-decoration: line-through; }
.hz-ui-checks li.is-on i { border-color: #2f8a5b; background: #2f8a5b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.hz-ui-pantry { margin: 10px 0 0; padding: 7px 9px; border-radius: 10px; background: #eef7f1; color: #2f6b4c; font-size: 9.5px; }
.hz-ui-btn { margin: 10px 0 0; padding: 8px; border-radius: 999px; background: var(--hz-navy); color: #fff; font-size: 10.5px; font-weight: 700; text-align: center; }
.hz-app--cook { background: #fff; font-size: 12px; }
.hz-app--cook .hz-ui-title { font-size: 20px; margin-bottom: 10px; }
.hz-ui-ing li { padding: 4px 0; }
.hz-ui-ing b { color: var(--hz-gold-ink); }
.hz-ui-steps { margin: 10px 0 0; padding: 10px 0 0 18px; border-top: 1px solid #e9eef3; }
.hz-ui-steps li { margin: 0 0 7px; padding-left: 2px; }
.hz-ui-steps li::marker { color: var(--hz-gold-ink); font-weight: 700; }
.hz-cap { margin: 12px 4px 0; color: var(--hz-text); font-size: .9rem; line-height: 1.4; }
.hz-cap b { display: block; color: var(--hz-navy); }
.hz-swipe { margin: 4px 0 0; color: var(--hz-muted); font-size: .8rem; text-align: right; }
.hz-swipe span { display: inline-block; animation: hz-nudge 1.6s ease-in-out infinite; }
@keyframes hz-nudge { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .hz-swipe span { animation: none; } }

/* ── 4. home cooks and families, then the pros ─────────────────────────── */
.hz-home { background: linear-gradient(180deg, #fff9ee 0%, #fff 100%); border-top: 1px solid #f6e6c8; }
.hz-feats { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.hz-feats li, .hz-pro summary, .hz-door { display: flex; align-items: flex-start; gap: 14px; }
.hz-feats li > span:last-child, .hz-pro summary > span:nth-child(2), .hz-door > span:nth-child(2) { color: var(--hz-text); font-size: .93rem; line-height: 1.45; }
.hz-feats b, .hz-pro summary b, .hz-door b { display: block; color: var(--hz-navy); font-size: 1.02rem; }
.hz-pros { padding-top: 8px; }
.hz-pro { border-top: 1px solid var(--hz-line); }
.hz-pro:last-child { border-bottom: 1px solid var(--hz-line); }
.hz-pro summary { padding: 16px 0; cursor: pointer; list-style: none; }
.hz-pro summary::-webkit-details-marker { display: none; }
.hz-pro__more { flex: none; width: 28px; height: 28px; margin-left: auto; border-radius: 50%; background: var(--hz-soft); position: relative; }
.hz-pro__more::before, .hz-pro__more::after { content: ""; position: absolute; left: 8px; top: 13px; width: 12px; height: 2px; border-radius: 2px; background: var(--hz-navy); transition: transform .2s ease; }
.hz-pro__more::after { transform: rotate(90deg); }
.hz-pro[open] .hz-pro__more::after { transform: rotate(0deg); }
.hz-pro__list { margin: 0 0 10px; padding: 0 0 0 54px; color: var(--hz-text); font-size: .93rem; line-height: 1.5; }
.hz-pro__list li { margin: 0 0 4px; }
.hz-pro__list li::marker { color: var(--hz-gold); }
.hz-pro__note { margin: 0 0 14px 54px; color: var(--hz-muted); font-size: .86rem; }
.hz-pro .home-btn { margin: 0 0 18px 54px; }

/* ── 5. look around first ──────────────────────────────────────────────── */
.hz-look { background: var(--hz-soft); }
.hz-doors { display: grid; gap: 10px; }
.hz-door { align-items: center; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--hz-line); text-decoration: none; }
.hz-door:hover { box-shadow: 0 0 0 1.5px var(--hz-navy); text-decoration: none; }
.hz-door > i { margin-left: auto; color: var(--hz-gold-ink); font-style: normal; font-size: 1.2rem; }
.hz-look__sub { margin-top: 30px; }
.hz-stories > li { width: 84%; max-width: 360px; }
.hz-stories > li:only-child { width: 100%; max-width: 480px; }
.hz-story { display: block; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--hz-line); color: inherit; text-decoration: none; }
.hz-story__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9eef3; }
.hz-story__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hz-story__body { display: block; padding: 12px 14px 14px; color: var(--hz-muted); font-size: .85rem; }
.hz-story__body small { display: block; color: var(--hz-gold-ink); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hz-story__body b { display: block; margin: 3px 0; color: var(--hz-navy); font-family: var(--hz-serif); font-size: 1.12rem; font-weight: 500; line-height: 1.25; }

/* ── 6. the promise, 7. join, the closing line ─────────────────────────── */
.hz-promise { padding: 36px var(--hz-gap); background: var(--hz-navy); color: #dbe5f0; }
.hz-promise h2 { margin: 0 0 8px; color: #fff; font-family: var(--hz-serif); font-size: 1.45rem; font-weight: 500; }
.hz-promise p { margin: 0 0 12px; line-height: 1.55; }
.hz-promise a { color: #ffd38a; font-weight: 600; }
.hz-partner { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .85em; font-weight: 600; }
.hz-join { text-align: left; }
.hz-close { margin: 0; padding: 22px var(--hz-gap) 30px; border-top: 1px solid var(--hz-line); color: var(--hz-muted); font-size: .85rem; line-height: 1.5; }
.hz-close small { display: block; margin-top: 8px; font-size: .75rem; }

/* ── wide screens ──────────────────────────────────────────────────────── */
@media (min-width: 600px) {
    .aks-home { --hz-gap: 32px; }
    .hz-actions { flex-direction: row; flex-wrap: wrap; }
    .hz-actions .home-btn { width: auto; }
}

@media (min-width: 900px) {
    .aks-home { --hz-gap: clamp(32px, 5vw, 80px); }
    .hz-sec { padding-top: 72px; padding-bottom: 72px; }
    .hz-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
    .hz-head .hz-lead { margin: 0 auto; }
    .hz-head--left { margin: 0; text-align: left; }
    .hz-head--left .hz-lead { margin: 0; }

    /* hero: the photo fills the band; the headline and the copy stack on the left, over it, centered up and down.
       2026-11-15: they flow one under the other (a grid), so a wide window can't make them overlap. */
    .hz-hero { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 1fr; grid-template-rows: 1fr auto auto 1fr;
               min-height: clamp(560px, 70vh, 760px); padding: 72px var(--hz-gap); overflow: hidden; background: #1d2f45; }
    .hz-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
                       background: linear-gradient(90deg, rgba(10, 26, 46, .84) 0%, rgba(10, 26, 46, .6) 38%, rgba(10, 26, 46, 0) 68%); }
    .hz-hero__media { display: contents; }
    .hz-hero__media::after { display: none; }
    .hz-hero__img { z-index: 0; }
    .hz-hero__over { position: relative; z-index: 2; grid-column: 1; grid-row: 2; padding: 0; }
    .hz-hero__copy { position: relative; z-index: 2; grid-column: 1; grid-row: 3; max-width: 560px; padding: 20px 0 0; }
    .hz-intro { color: #e6edf5; font-size: 1.12rem; }
    .hz-hero .hz-note { color: #c4d1de; }
    .hz-hero .hz-note a { color: #fff; }
    .hz-hero .home-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
    .hz-hero .home-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

    /* the rows stop swiping and become grids */
    .hz-row { margin: 0 auto; padding: 0; overflow: visible; scroll-snap-type: none; }
    .hz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1180px; }
    .hz-step { width: auto; max-width: none; }
    .hz-phones { justify-content: center; gap: 28px; flex-wrap: wrap; max-width: 1240px; }
    .hz-swipe { display: none; }
    .hz-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; max-width: 1180px; }
    .hz-stories > li { width: auto; max-width: none; }

    .hz-home__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px 56px; align-items: start; max-width: 1180px; margin: 0 auto; }
    .hz-home__in .hz-actions { grid-column: 1; margin-top: 0; }
    .hz-feats { grid-column: 2; grid-row: 1 / span 2; }
    .hz-pros > *, .hz-doors, .hz-look__sub, .hz-join > *, .hz-promise > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
    .hz-pros { padding-top: 0; }
    .hz-doors { grid-template-columns: 1fr 1fr; }
    .hz-look__sub { text-align: center; }
    .hz-promise { text-align: center; }
    /* 2026-11-15: .hz-promise h2 / p set margin 0 earlier, which beat the centering above: center the boxes too */
    .hz-promise h2, .hz-promise p { max-width: 760px; margin-left: auto; margin-right: auto; }
    .hz-join { text-align: center; }
    .hz-join .hz-lead { margin: 0 auto; }
    .hz-join .hz-actions { justify-content: center; }
    .hz-close { text-align: center; }
}

/* ── 3b. install it like an app (2026-11-15; js/sw-register.js marks this device's tile .is-you) ── */
.hz-install { background: #fff; }
.hz-devices { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hz-device { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 14px; background: var(--hz-soft); color: var(--hz-text); font-size: .9rem; line-height: 1.45; }
.hz-device b { display: block; color: var(--hz-navy); font-size: 1rem; }
.hz-device.is-you { order: -1; background: #fff7e8; box-shadow: 0 0 0 1.5px #f0c674; }
.hz-device.is-you b::after { content: "This device"; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--hz-gold); color: var(--hz-navy); font-size: .68rem; font-weight: 700; vertical-align: 2px; }
.hz-install__done { display: none; }
html[data-aks-installed] .hz-install__done { display: block; }
.hz-note--app { margin-top: 16px; color: var(--hz-text); }
.hz-note--app a { color: var(--hz-navy); font-weight: 600; }
@media (min-width: 900px) {
    .hz-devices { grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin: 0 auto; }
    .hz-device { flex-direction: column; }
    .hz-install__go, .hz-install__done { text-align: center; justify-content: center; }
    .hz-hero .hz-note--app { color: #e6edf5; }
    .hz-hero .hz-note--app a { color: #ffd38a; }
}

/* ── 5b. partners (2026-11-15) ─────────────────────────────────────────── */
.hz-partners { background: #fff; border-top: 1px solid var(--hz-line); }
.hz-partner-kinds { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.hz-partner-kinds li { display: flex; align-items: flex-start; gap: 14px; color: var(--hz-text); font-size: .93rem; line-height: 1.45; }
.hz-partner-kinds b { display: block; color: var(--hz-navy); font-size: 1.02rem; }
.hz-partner-tag { display: inline-block; padding: 0 8px; border-radius: 999px; background: #eaf1f9; color: var(--hz-navy); font-size: .78rem; font-weight: 700; }
.hz-partner-rules { margin: 20px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--hz-soft); color: var(--hz-text); font-size: .9rem; line-height: 1.5; }
/* the request dialog with four choices (Partner added): two by two */
@media (min-width: 521px) { .home-req-choice:has(> label:nth-of-type(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
    .hz-partner-kinds { grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; }   /* 2026-11-15: four kinds (creators added): two by two, four across on a wide screen */
    .hz-partner-kinds li { flex-direction: column; }
    .hz-partner-rules { max-width: 760px; margin: 28px auto 0; text-align: center; }
    .hz-partners__go { justify-content: center; }
}
@media (min-width: 900px) { .hz-partners__mail { text-align: center; } }
@media (min-width: 1200px) { .hz-partner-kinds { grid-template-columns: repeat(4, 1fr); } }
