/* ============================================================
   DirectDine — Home page styles
   Page-specific layout for the conversion homepage.
   Depends on the shared design system in styles.css.
   ============================================================ */

/* ---- Hero ---------------------------------------------------*/
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6vw, 5rem); line-height: .98; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__note { margin-top: 1.5rem; display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .9rem; }
.hero__note b { color: var(--text); font-weight: 600; }

/* hero stage with floating mocks */
.stage { position: relative; min-height: 520px; }
.glow.hero-glow { width: 520px; height: 520px; top: -10%; right: -12%; opacity: .35; }

.store { position: relative; width: min(330px, 78%); margin-inline: auto; z-index: 2; }
.store__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.store__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.hygiene { display: inline-flex; align-items: center; gap: 6px; background: #0f7a3d; color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 8px 4px 6px; border-radius: 7px; letter-spacing: .02em; }
.hygiene .n { background: #fff; color: #0f7a3d; width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-size: .72rem; }
.seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; margin: 0 16px; }
.seg button { flex: 1; padding: 7px; font-size: .8rem; font-weight: 600; border-radius: 7px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.food { height: 132px; margin: 14px 16px 0; border-radius: 12px; background:
    radial-gradient(120% 120% at 70% 20%, #e8b15a 0%, #d98a1f 38%, #b5491f 100%);
    position: relative; overflow: hidden; display: grid; place-items: center; }
.food::after { content: "Dish photo"; font-size: .72rem; color: rgba(255,255,255,.85); font-weight: 600; letter-spacing: .04em; background: rgba(0,0,0,.18); padding: 3px 9px; border-radius: 99px; }
.item { padding: 14px 16px; }
.item h4 { font-family: var(--font-sans); font-size: .98rem; font-weight: 700; }
.item p { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.item__price { font-weight: 700; }
.addbtn { background: var(--accent); color: #fff; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
html[data-theme="dark"] .addbtn { color: #1a0f0a; }
.basket { margin: 4px 12px 14px; background: var(--text); color: var(--bg); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-size: .88rem; font-weight: 600; }
html[data-theme="dark"] .basket { background: var(--accent); color: #1a0f0a; }

.float { position: absolute; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 3; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.tracker { left: -4%; bottom: 2%; width: 250px; padding: 15px 16px; }
.tracker__head { display: flex; align-items: center; justify-content: space-between; font-size: .76rem; }
.tracker__head .ord { font-family: var(--font-mono); color: var(--muted); }
.tracker__head .st { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.dotlive { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.dotlive::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0%{transform:scale(.6);opacity:.9} 100%{transform:scale(1.8);opacity:0} }
.track-bar { height: 4px; border-radius: 99px; background: var(--surface-3); margin: 13px 0 12px; position: relative; overflow: hidden; }
.track-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 68%; background: var(--accent); border-radius: 99px; animation: fillbar 4.5s var(--ease-out) infinite alternate; }
@keyframes fillbar { 0%{width:24%} 100%{width:82%} }
.driver { display: flex; align-items: center; gap: 10px; }
.driver__av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#caa06a,#9c6b3f); flex: none; }
.driver__meta { font-size: .8rem; line-height: 1.25; }
.driver__meta b { font-weight: 700; }
.driver__meta span { color: var(--muted); font-size: .74rem; }
.driver__eta { margin-left: auto; text-align: right; }
.driver__eta b { font-family: var(--font-display); font-size: 1.15rem; }
.driver__eta span { display: block; font-size: .68rem; color: var(--muted); }

.pos { right: -3%; top: 4%; width: 215px; padding: 13px 15px; }
.pos__top { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; }
.pos__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 25%, transparent); }
.pos p { font-size: .75rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.pos .sync { margin-top: 9px; font-family: var(--font-mono); font-size: .7rem; color: var(--accent); display: flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: reduce){ .dotlive::after,.track-bar i{animation:none} .track-bar i{width:68%} }

/* trust strip */
.trust { display: flex; align-items: center; gap: clamp(1.5rem,4vw,3.5rem); flex-wrap: wrap; justify-content: center; opacity: .85; }
.trust__logo { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text-2); letter-spacing: -0.01em; white-space: nowrap; }
.trust__logo span { font-style: italic; }

/* portals grid */
.portals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.portal { display: block; padding: 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; position: relative; }
.portal:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.portal:hover .portal__go { opacity: 1; transform: none; }
.portal__ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.portal__ic svg { width: 22px; height: 22px; }
.portal h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.portal p { font-size: .85rem; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.portal__go { position: absolute; top: 18px; right: 18px; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: .3s var(--ease); }

/* benefit teaser rows */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
.teaser + .teaser { margin-top: clamp(3rem, 6vw, 5.5rem); }
.teaser.rev .teaser__media { order: -1; }
.teaser__media { border-radius: var(--radius-lg); min-height: 320px; position: relative; overflow: hidden; }
.teaser h3 { font-size: clamp(1.6rem,2.6vw,2.3rem); margin: .8rem 0 .9rem; }
.teaser__link { display: inline-flex; align-items: center; gap: .5em; color: var(--accent); font-weight: 600; margin-top: 1.4rem; }
.teaser__link .arr { transition: transform .3s var(--ease); }
.teaser__link:hover .arr { transform: translateX(4px); }

@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
  .stage{ min-height: 480px; margin-top: 1.5rem; }
  .portals{ grid-template-columns: 1fr 1fr; }
  .teaser{ grid-template-columns: 1fr; }
  .teaser.rev .teaser__media{ order: 0; }
  .teaser__media{ min-height: 210px; }
}
@media (max-width: 480px){
  .portals{ grid-template-columns: 1fr; }
  .float.pos{ display:none; }
  .tracker{ left: 0; width: 215px; }
  .teaser__media{ min-height: 170px; }
}

/* value / stat band (replaces inline grid styles for responsiveness) */
.value-grid { grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.value-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px){ .value-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px){ .value-stats { grid-template-columns: 1fr; } }
