/* groccy.com.au — same look as the app: Plus Jakarta Sans, white canvas, near-black ink, green accent, soft cards. */
:root {
  --ink: #0B0B0C; --muted: #5F5F66; --line: #EFEFF1; --fill: #F5F5F7; --bg: #FFFFFF;
  --green: #16A34A; --green-ink: #15803D; --mint: #ECFDF5; --mint-2: #C7F0DA;
  --orange: #FF8A3D; --rose: #F43F5E; --violet: #7C3AED; --indigo: #4338CA;
  --radius: 24px; --shadow: 0 10px 30px rgba(11, 11, 12, 0.08); --lift: 0 24px 60px rgba(11, 11, 12, 0.14);
}
:root:not([data-theme="light"]) { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.nav .brand img { height: 30px; width: auto; }
.nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
.nav .links a { text-decoration: none; color: var(--muted); }
.nav .links a.btn.dark { color: #fff; }
.nav .links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 14px 22px; font-weight: 800; text-decoration: none; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn.light { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.small { padding: 10px 16px; font-size: 14px; }
@media (max-width: 720px) { .nav .links a.hide-sm { display: none; } }

/* Hero */
.hero { padding: 64px 0 40px; background: radial-gradient(1200px 500px at 85% -10%, var(--mint-2), transparent 60%), radial-gradient(800px 400px at -10% 10%, #FFF1E6, transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; color: var(--green-ink); box-shadow: var(--shadow); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.045em; margin: 18px 0 16px; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--green), #0F766E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .note { font-size: 13px; color: var(--muted); font-weight: 600; }
.stores { display: flex; gap: 10px; align-items: center; margin-top: 26px; font-size: 14px; color: var(--muted); font-weight: 700; }
.stores img { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: #fff; }
.phones { position: relative; height: 600px; }
.hero { overflow: clip; }
.phone { position: absolute; width: 270px; border-radius: 40px; background: #0B0B0C; padding: 10px; box-shadow: var(--lift); }
.phone img { border-radius: 31px; width: 100%; }
.phone.a { left: 8%; top: 0; transform: rotate(-5deg); z-index: 2; animation: float 7s ease-in-out infinite; }
.phone.b { right: 0; top: 70px; transform: rotate(6deg); animation: float 7s ease-in-out -3.5s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none !important; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 470px; }
  .phone { width: 210px; }
  .phone.a { left: 2%; } .phone.b { right: 2%; top: 50px; }
}

/* Sections */
section { padding: 72px 0; }
h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 14px; font-weight: 800; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 34px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.tile { border-radius: var(--radius); padding: 24px; background: var(--fill); }
.tile .ic { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.tile h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.tile p { margin: 0; color: #4B4B50; font-size: 15.5px; }
.t-green { background: #E9F7EE; } .t-orange { background: #FFF1E6; } .t-blue { background: #E8F1FD; }
.t-purple { background: #F3ECFE; } .t-yellow { background: #FEF6DD; } .t-pink { background: #FDECF3; }

/* Feature rows (text + phone) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature + .feature { margin-top: 80px; }
.feature.flip .shot { order: -1; }
.shot { display: flex; justify-content: center; }
.shot .phone { position: relative; transform: none; width: 290px; animation: none; }
.feature ul { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.feature li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; margin-top: 2px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip .shot { order: 0; } }

/* Big highlight */
.highlight { border-radius: 32px; padding: 48px; background: linear-gradient(135deg, var(--green), #0F766E); color: #fff; position: relative; overflow: hidden; }
.highlight h2 { color: #fff; }
.highlight p { color: rgba(255, 255, 255, 0.88); font-size: 18px; max-width: 560px; }
.swap { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.swap .chip { background: rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 14px 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.score { min-width: 40px; height: 28px; border-radius: 14px; display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; padding: 0 8px; }
.s-bad { background: #E63E11; } .s-good { background: #038141; }
.arrow { font-size: 22px; opacity: 0.8; }
@media (max-width: 560px) { .highlight { padding: 30px 22px; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Legal pages */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc p, .doc li { color: #2E2E33; }
.doc .meta { color: var(--muted); font-weight: 600; }
.doc .box { background: var(--mint); border-radius: 18px; padding: 18px 20px; margin: 20px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 18px; width: 100%; }

/* Reveal on scroll (fails open: content is visible if JS is off or slow) */
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { opacity: 1; transform: none; } }
