/* ==========================================================================
   UrbOvan home: phone layout (below 761px). Desktop keeps the original sections.
   Uses only the brand palette: forest, cream, sage, leaf and terracotta clay.
   ========================================================================== */

/* which layout shows where */
.offer-bar, .m-home { display: none; }
@media (max-width: 760px) {
  .offer-bar { display: block; }
  .m-home { display: block; }
  body[data-page="home3"] main > :not(.m-home), body[data-page="home3"] .page-vine { display: none !important; }
  body[data-page="home3"] { background: var(--paper); }
  body[data-page="home3"] .skip-link:not(:focus) { top: -200px; }
  body[data-page="home3"] .site-footer { margin-top: 32px; }
  body[data-page="home3"] .footer-hero { display: block; }
}

.m-home .btn-sun { background: var(--clay); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(180, 83, 46, .3); }
.m-home .btn-sun:hover { background: var(--clay-deep); }

/* offer bar */
.offer-bar { overflow: hidden; background: var(--forest-deep); color: #e6eee3; font-size: .8rem; white-space: nowrap; }
.offer-track { display: inline-flex; gap: 36px; padding: 8px 0; animation: offer-scroll 28s linear infinite; }
.offer-track span { display: inline-flex; align-items: center; gap: 6px; }
.offer-track .icon { width: 15px; height: 15px; color: #a9c79a; }
.offer-track b { color: #cfe3bf; }
@keyframes offer-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* promo carousel */
.h4-promos { position: relative; padding: 12px 0 0; }
.promo-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: none; }
.promo-track::-webkit-scrollbar { display: none; }
.promo { position: relative; flex: 0 0 100%; scroll-snap-align: center; border-radius: 22px; overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; background: var(--forest-deep); }
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 36, 25, 0) 25%, rgba(15, 36, 25, .9) 78%); }
.promo.p1 > img { object-position: 72% 50%; }
.promo-copy { position: relative; z-index: 1; padding: 20px 18px 22px; color: #fff; }
.promo-tag { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--cream); color: var(--forest-deep); font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.promo-copy h1, .promo-copy h2 { color: #fff; font-size: 1.85rem; line-height: 1.12; margin: 10px 0 8px; }
.promo-copy em { font-style: normal; color: #cfe3bf; }
.promo-copy p { color: #e4ece0; font-size: .95rem; margin-bottom: 14px; }
.promo-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
.promo-dots button { width: 8px; height: 8px; min-height: 0; padding: 0; border: 0; border-radius: 6px; background: var(--line-strong); transition: width .25s, background-color .25s; }
.promo-dots button[aria-current="true"] { width: 22px; background: var(--forest); }

/* trust strip */
.h4-trust { list-style: none; margin: 14px 16px 0; padding: 12px 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 6px; background: var(--sage); border-radius: 16px; }
.h4-trust li { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--forest-deep); line-height: 1.25; }
.h4-trust .ti { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fff; color: var(--forest); }
.h4-trust .ti .icon { width: 18px; height: 18px; }

/* sections */
.h4-sec { padding: 28px 16px 4px; }
.h4-sec.tinted { background: var(--sage); padding-bottom: 26px; margin-top: 24px; }
.h4-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h4-head h2 { font-size: 1.45rem; }
.h4-head a { font-size: .88rem; font-weight: 700; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.h4-note { font-size: .8rem; color: var(--muted); margin: -6px 0 12px; }

/* category circles */
.h4-cats { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.h4-cats::-webkit-scrollbar { display: none; }
.h4-cat { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .76rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.h4-cat .cat-ring { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--forest), var(--leaf), var(--clay), var(--forest)); }
.h4-cat img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }

/* horizontal plant row */
.h4-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; }
.h4-row::-webkit-scrollbar { display: none; }
.h4-row .product-card { flex: 0 0 62%; scroll-snap-align: start; }
.h4-row .product-card .product-info { padding: 12px; gap: 8px; }
.h4-row .product-card h3 { font-size: .95rem; }

/* founding member card */
.fv-card { position: relative; display: grid; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg, var(--forest-deep), var(--forest)); color: #fff; }
.fv-copy { position: relative; z-index: 1; padding: 22px 18px 20px; }
.fv-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--clay-soft); color: var(--clay-deep); font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.fv-copy h2 { color: #fff; font-size: 1.6rem; margin: 10px 0 12px; }
.fv-copy ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .95rem; color: #e4ece0; }
.fv-copy li .icon { width: 16px; height: 16px; color: #a9c79a; vertical-align: -3px; }
.fv-copy b { color: #cfe3bf; }
.fv-card > img { width: 100%; height: 220px; object-fit: cover; object-position: 50% 25%; }

/* services */
.h4-svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h4-svc { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sage); }
.h4-svc img { width: 100%; height: 100%; object-fit: cover; }
.h4-svc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 36, 25, .85)); }
.h4-svc span { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.h4-svc small { display: block; font-weight: 500; font-size: .74rem; color: #cfe3bf; }
.h4-svc .free { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--cream); color: var(--forest-deep); font-size: .66rem; font-weight: 800; }

/* drag before / after */
.ba-drag { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage); }
.ba-drag > img, .ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-drag input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); pointer-events: none; }
.ba-knob::after { content: ""; position: absolute; inset: 13px 10px; border-left: 2px solid var(--forest); border-right: 2px solid var(--forest); }
.ba-knob::before { content: ""; position: absolute; top: -400px; bottom: -400px; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; z-index: -1; }
.ba-l, .ba-r { position: absolute; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; pointer-events: none; }
.ba-l { left: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.ba-r { right: 10px; background: var(--forest); color: #fff; }

/* steps */
.h4-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h4-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.h4-steps b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 800; }
.h4-steps span { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.h4-steps strong { display: block; font-size: .88rem; color: var(--ink); }

/* app */
.app4 { display: grid; gap: 16px; padding: 20px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.app4 .fv-badge { background: var(--sage); color: var(--forest); }
.app4 h2 { font-size: 1.4rem; margin: 10px 0 8px; }
.app4 p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.app4 img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
.app4 .store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px; border-radius: 12px; background: var(--forest-ink); color: #fff; line-height: 1.15; }
.app4 .store small { display: block; font-size: .62rem; opacity: .8; letter-spacing: .04em; }
.app4 .store b { font-size: 1rem; }

@media (prefers-reduced-motion: reduce) { .offer-track { animation: none; } }

/* ---------- review fixes ---------- */
/* app section: two real app screens in phone frames */
.app-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 6px 0; }
.app-shots img { width: 100%; aspect-ratio: auto; height: auto; border-radius: 22px; border: 6px solid var(--forest-ink); box-shadow: var(--shadow-md); object-fit: cover; }
.app-shots img:last-child { transform: translateY(18px); }
.app4 { padding-bottom: 34px; }

/* clearer category circles */
.h4-cat { flex-basis: 84px; font-size: .82rem; }
.h4-cat .cat-ring { width: 80px; height: 80px; }

/* plant cards on phones: name, tags and Enquire only */
#m-h4-plants .size-chips { display: none; }

/* bigger tap targets */
.promo-dots { gap: 0; }
.promo-dots button { position: relative; width: 28px; height: 28px; background: none; }
.promo-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 6px; background: var(--line-strong); transition: width .25s, margin .25s, background-color .25s; }
.promo-dots button[aria-current="true"] { width: 36px; background: none; }
.promo-dots button[aria-current="true"]::before { width: 22px; margin-left: -11px; background: var(--forest); }
@media (max-width: 760px) {
  /* shorter footer on the phone home page: the closing "Book" banner repeats the offer */
  body[data-page="home3"] .footer-hero { display: none !important; }
  .footer-grid a { padding: 10px 0; }
  .footer-grid .about { font-size: .85rem; }
}
