/* GreenEPOS homepage on phones and small tablets (820px wide and narrower).
   Wider screens are unchanged: apart from the font fallback and the two show/hide rules, every rule is inside the
   media query below. Phone-only pieces carry .m-only; wide-screen-only pieces carry .d-only.
   Figtree (SIL Open Font Licence, fonts/Figtree-OFL.txt) is used only where Segoe UI is missing, i.e. phones and Macs,
   so Windows PCs look exactly as before and never download it. */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body { font-family: "Segoe UI", "Figtree", system-ui, -apple-system, Roboto, Arial, sans-serif; }

@media (min-width: 821px) { .m-only { display: none !important; } }

@media (max-width: 820px) {
  .d-only { display: none !important; }
  /* The parts merged into other sections on phones */
  .proof, .intro, .service-rail, .features, .industries, .pilot, .security, .switch-cta, .remote-card, .demo-fab,
  .showcase-tabs, .showcase-actions, .showcase-title, .showcase-dots, .showcase-note, .sector-shot,
  .hardware-grid .terminal-visual, .hardware-grid .desktop-visual, .hardware-grid .kit-visual, .enquiry-head { display: none !important; }

  html { scroll-padding-top: 68px; }
  body { -webkit-text-size-adjust: 100%; }
  main section .eyebrow { font-size: 12.5px; letter-spacing: 1.6px; }
  main section h2, main :is(.showcase, .sectors, .hardware-section, .support-section, .m-setup, .plans, .contact, .faq) h2 { font-size: 28px; line-height: 1.12; letter-spacing: -.4px; text-wrap: balance; }

  /* ── Header + menu ── */
  header { height: 60px; padding: 0 12px 0 14px; gap: 8px; }
  header .marketing-brand { min-height: 44px; }
  header .marketing-brand img { width: 132px; margin: 0; }
  header > .button { margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; }
  .m-menu-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #dce5e1; border-radius: 12px; background: #fff; color: #102f38; cursor: pointer; }
  .m-menu { position: fixed; inset: 0; z-index: 60; background: rgb(11 40 48 / .5); }
  .m-menu[hidden] { display: none; }
  .m-menu-panel { padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px)); background: #fff; border-radius: 0 0 24px 24px; box-shadow: 0 20px 50px rgb(7 31 39 / .3); }
  .m-menu-top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
  .m-menu-top b { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: #5a6f75; }
  .m-menu nav { display: grid; }
  .m-menu nav a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid #e3ebe8; color: #102f38; font-size: 18px; font-weight: 700; text-decoration: none; }
  .m-menu nav a::after { content: "›"; color: #879aa0; font-weight: 500; font-size: 22px; }
  .m-menu .m-menu-cta { display: flex; justify-content: center; align-items: center; min-height: 50px; margin-top: 16px; border-radius: 12px; font-size: 16px; }
  .m-menu-mail { margin: 12px 0 0; text-align: center; font-size: 14px; color: #5a6f75; }
  .m-menu-mail a { color: #078b84; }

  /* ── Hero: photo on top, text below on the dark brand colour ── */
  .hero.photo-hero.new-hero { display: block; min-height: 0; padding: 0 16px 30px; background: #102f38; }
  .hero.photo-hero.new-hero::before { content: ""; display: block; height: clamp(190px, 52vw, 330px); margin: 0 -16px 4px;
    background: linear-gradient(to bottom, rgb(16 47 56 / 0) 55%, #102f38), url("/images/retail-owner-hero.webp") 72% 28% / cover no-repeat; }
  .new-hero > div { max-width: 600px; }
  .new-hero h1 { font-size: 33px; line-height: 1.06; letter-spacing: -.8px; margin: 8px 0 0; }
  .new-hero .lead { margin: 14px 0 22px; font-size: 16.5px; line-height: 1.5; }
  .new-hero .actions { display: grid; gap: 10px; }
  .new-hero .actions .button, .new-hero .actions .button.ghost { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 50px; margin: 0; border-radius: 12px; font-size: 16px; }
  .m-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: 14px; color: #c9dadd; }
  .m-trust span::before { content: "✓ "; color: #6fd9bd; font-weight: 800; }

  /* ── Swipe rows (features, systems, plans) ── */
  .showcase-stage, .hardware-grid, .plan-grid.four {
    display: flex !important; flex-direction: row; align-items: stretch; justify-content: flex-start; gap: 12px; min-height: 0;
    margin: 22px -16px 0; padding: 4px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .showcase-stage::-webkit-scrollbar, .hardware-grid::-webkit-scrollbar, .plan-grid.four::-webkit-scrollbar { display: none; }
  .showcase-stage > .showcase-slide, .hardware-grid > article, .plan-grid.four > article { flex: 0 0 86%; max-width: 420px; scroll-snap-align: start; }
  .m-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .m-dots i { width: 7px; height: 7px; border-radius: 4px; background: #cfdcd8; transition: width .2s, background .2s; }
  .m-dots i.is-on { width: 20px; background: #078b84; }
  .showcase .m-dots i { background: rgb(255 255 255 / .25); }
  .showcase .m-dots i.is-on { background: #6fd9bd; }
  .m-note { margin: 10px 0 0; text-align: center; font-size: 13px; color: #93aeb3; }

  /* ── "Your whole shop, at a glance" as cards ── */
  .showcase { display: block; padding: 34px 16px 30px; }
  .showcase h2 { margin: 6px 0 10px; }
  .showcase-lead { margin: 0; font-size: 16px; }
  .showcase-stage > .showcase-slide, .showcase-stage > .showcase-slide[hidden] { display: flex; flex-direction: column; width: auto; animation: none;
    border-radius: 20px; overflow: hidden; background: #173941; border: 1px solid rgb(255 255 255 / .1); }
  .showcase-slide .glass, .showcase-slide .phones { margin: 14px 14px 0; box-shadow: none; }
  .showcase-slide .phones { transform: scale(.82); transform-origin: top center; margin-bottom: -40px; }
  .m-cap { margin-top: auto; padding: 16px 18px 20px; }
  .m-cap span { font-size: 12.5px; font-weight: 800; letter-spacing: 1.4px; color: #6fd9bd; }
  .m-cap h3 { margin: 4px 0 0; color: #fff; font-size: 19px; line-height: 1.2; }
  .m-cap p { margin: 8px 0 0; color: #c3d6d9; font-size: 15px; line-height: 1.5; }
  .showcase-slide .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .showcase-slide .kpi-card { padding: 10px 12px; min-width: 0; }
  .showcase-slide .kpi-card b { font-size: 20px; }
  .showcase-slide .kpi-card small { font-size: 12.5px; }
  .showcase-slide .bars { height: 54px; margin: 0 12px 12px; }
  .plan-grid .popular-badge { font-size: 12.5px; }
  .m-till { display: grid; gap: 8px; padding: 14px; }
  .m-till > * { display: flex; justify-content: space-between; padding: 12px; border-radius: 10px; background: #fff; color: #102f38; font-size: 14.5px; }
  .m-till span { color: #879aa0; }
  .m-till em { font-style: normal; }
  .m-till strong { justify-content: center; background: #078b84; color: #fff; }
  .stock-list, .invoice-lines { padding: 10px 12px; }
  .stock-list li, .invoice-lines li { gap: 10px; padding: 10px 12px; }
  .stock-list li b, .invoice-lines li b { flex: 1; min-width: 0; font-size: 14px; }
  .stock-list li em, .invoice-lines li em, .invoice-lines li span, .stock-list .av { flex: none; }
  .glass-foot { flex-wrap: wrap; gap: 4px 10px; }

  /* ── Kind of shop ── */
  .sectors { padding: 40px 16px; text-align: left; }
  .sectors .section-lead { text-align: left; margin-left: 0; }
  .sector-tabs { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 20px -16px 14px; padding: 0 16px; border-radius: 0; background: none; overflow-x: auto; scrollbar-width: none; }
  .sector-tabs::-webkit-scrollbar { display: none; }
  .sector-tabs button { flex: none; min-height: 44px; padding: 0 16px; border: 1.5px solid #dce5e1; background: #fff; font-size: 14.5px; white-space: nowrap; }
  .sector-tabs button.is-on { border-color: #0b1f27; }
  .sector-panel { display: block; padding: 20px 18px; border-radius: 20px; box-shadow: none; }
  .sector-panel .sector-icon { display: none; }
  .sector-panel h3 { font-size: 21px; }
  .sector-panel ul { font-size: 15.5px; }
  .sector-link { display: inline-flex; align-items: center; min-height: 44px; }

  /* ── Systems ── */
  .hardware-section { padding: 40px 16px; }
  .hardware-heading { display: block; }
  .hardware-heading p { margin: 10px 0 0; font-size: 16px; }
  .hardware-grid > article, .hardware-grid > .hardware-featured { min-height: 0; padding: 20px 18px; border-radius: 20px; transform: none; box-shadow: none; }
  .hardware-grid small { margin-top: 0; font-size: 12.5px; }
  .hardware-grid h3 { font-size: 22px; }
  .hardware-grid ul { font-size: 15px; }
  .hardware-grid article > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; }
  .hardware-note { margin-top: 14px; font-size: 13px; }

  /* ── Support + security ── */
  .support-section { display: block; padding: 40px 16px; }
  .support-copy p { font-size: 16px; }
  .support-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
  .support-stats div { padding: 12px 10px; border-radius: 14px; }
  .support-stats b { font-size: 20px; }
  .support-stats span { font-size: 13px; }
  .m-accs { display: grid; gap: 10px; margin-top: 16px; }
  .m-acc { border-radius: 16px; background: #f5f8f7; border: 1px solid #dce5e1; color: #102f38; }
  .m-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; font-size: 16.5px; font-weight: 800; cursor: pointer; }
  .m-acc summary::-webkit-details-marker { display: none; }
  .m-acc summary::after { content: "+"; font-size: 24px; font-weight: 500; color: #078b84; }
  .m-acc[open] summary::after { content: "–"; }
  .m-acc > div { padding: 0 18px 16px; }
  .m-acc p { margin: 0; padding: 10px 0; border-top: 1px solid #dce5e1; font-size: 14.5px; color: #5a6f75; }
  .m-acc p b { display: block; color: #102f38; font-size: 15.5px; }
  .m-acc small { display: block; margin-top: 8px; font-size: 13px; color: #5a6f75; }

  /* ── Open with confidence (merged steps) ── */
  .m-setup { padding: 40px 16px; background: #f5f8f7; }
  .m-lead { margin: 10px 0 0; font-size: 16px; color: #5a6f75; }
  .m-steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; }
  .m-steps li { position: relative; counter-increment: step; padding: 0 0 22px 52px; }
  .m-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #102f38; color: #fff; font-weight: 800; font-size: 15px; }
  .m-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: #dbe6e3; }
  .m-steps b { display: block; font-size: 17.5px; }
  .m-steps span { display: block; margin-top: 2px; color: #5a6f75; font-size: 15px; }

  /* ── Plans ── */
  .plans { padding: 40px 16px; text-align: left; }
  .plans-lead { margin-left: 0; font-size: 16px; text-align: left; }
  .trial-strip { justify-content: flex-start; gap: 8px; }
  .trial-strip span { font-size: 13.5px; }
  .m-plan-tabs { display: flex; gap: 6px; margin: 22px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .m-plan-tabs::-webkit-scrollbar { display: none; }
  .m-plan-tabs button { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #5a6f75; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
  .m-plan-tabs button.is-on { background: #102f38; color: #fff; }
  .plan-grid.four { margin-top: 10px; padding-top: 14px; }
  .plan-grid.four > article, .plan-grid.four > .featured { padding: 22px 18px; border-radius: 20px; transform: none; }
  .plan-grid article .plan-card-head span { font-size: 12.5px; }
  .plan-grid .plan-button { display: flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 12px; font-size: 15.5px; }
  .plan-grid ul { min-height: 0; font-size: 15px; }
  .plan-price em, .plan-best { font-size: 13.5px; }
  .plans-note { font-size: 14px; text-align: left; }

  /* ── Contact ── */
  .contact { display: block; padding: 40px 16px; text-align: left; }
  .contact > div > h2 { font-size: 28px; letter-spacing: -.4px; margin: 6px 0 10px; }
  .contact > div > p { font-size: 16px; color: #e2f6f3; }
  .demo-form.enquiry-form { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; padding: 22px 18px; border-left: 0; border-radius: 20px; }
  .demo-form > label { grid-column: 1 / -1; font-size: 15px; }
  .demo-form > label:nth-of-type(4), .demo-form > label:nth-of-type(5) { grid-column: auto; }
  .demo-form input, .demo-form textarea { min-height: 50px; padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .enquiry-form .button { justify-self: stretch; min-height: 50px; border-radius: 12px; font-size: 16px; }
  .enquiry-form .enquiry-note p { font-size: 13.5px; }

  /* ── FAQ + footer ── */
  .faq { padding: 40px 16px; text-align: left; }
  .faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; font-size: 16.5px; }
  .faq details p { font-size: 15.5px; }
  body:has(.m-dock) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .site-footer > div:not(.footer-bottom) > a, .site-footer .link-button { display: inline-flex; align-items: center; min-height: 40px; }

  /* ── Bottom bar + cookie line ── */
  .m-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgb(255 255 255 / .97); border-top: 1px solid #dce5e1;
    box-shadow: 0 -6px 20px rgb(16 47 56 / .08); transition: transform .25s, opacity .25s; }
  .m-dock.is-away { transform: translateY(110%); opacity: 0; pointer-events: none; }
  .m-dock .button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 10px; border-radius: 12px; font-size: 15.5px; white-space: nowrap; }
  .m-dock .m-dock-alt { background: #fff; color: #102f38; border: 1.5px solid #dce5e1; }
  .cookie-consent { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 12px 14px; border-radius: 14px; font-size: 13.5px; }
  body:has(.m-dock) .cookie-consent { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .cookie-consent p { margin: 2px 0 6px; line-height: 1.4; }
  .cookie-consent button, .cookie-consent a { margin: 0 6px 0 0; }
  .cookie-consent button { min-height: 40px; padding: 0 12px; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { .m-dock, .m-dots i { transition: none; } }
