/* groccy.com.au — matches the app: white canvas, near-black ink, one green, Plus Jakarta Sans, soft app tints. */
:root {
  --ink: #111111;
  --ink-2: #3a3a40;
  --muted: #5b5b63;
  --line: #ececef;
  --fill: #f6f6f7;
  --bg: #ffffff;
  --green: #16a34a;
  --green-ink: #15803d;
  --green-deep: #0f5132;
  --green-tint: #e9f7ee;
  --orange-tint: #fff1e6; --orange-ink: #c2410c;
  --blue-tint: #e8f1fd; --blue-ink: #1d4ed8;
  --purple-tint: #f3ecfe; --purple-ink: #7e22ce;
  --yellow-tint: #fef6dd; --yellow-ink: #a16207;
  --pink-tint: #fdecf3; --pink-ink: #be185d;
  --red: #dc2626;
  --radius: 22px;
  --shadow-card: 0 1px 2px rgba(17, 17, 17, .04), 0 8px 24px -8px rgba(17, 17, 17, .12);
  --shadow-lift: 0 2px 4px rgba(17, 17, 17, .06), 0 24px 48px -16px rgba(17, 17, 17, .28);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 1rem/1.6 "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--green-deep); }
::selection { background: #bbf7d0; color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { width: 108px; height: auto; }
.links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 700 1rem/1 inherit; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -6px rgba(17, 17, 17, .45); }
.btn.dark:hover { background: #26262b; color: #fff; transform: translateY(-1px); }
.btn.light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.light:hover { background: var(--fill); color: var(--ink); }
.btn.white { background: #fff; color: var(--green-deep); }
.btn.white:hover { color: var(--ink); transform: translateY(-1px); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.links a.btn.dark { color: #fff; }

/* ---------- Phone frame (real app screenshots) ---------- */
.phone {
  --pw: 300px;
  width: var(--pw); flex: none; padding: calc(var(--pw) * .028); border-radius: calc(var(--pw) * .16);
  background: #0c0c0e; box-shadow: var(--shadow-lift), inset 0 0 0 1.5px #2b2b30;
}
.screen { border-radius: calc(var(--pw) * .135); overflow: hidden; background: #fff; position: relative; }
.sb { display: flex; align-items: center; justify-content: space-between; height: calc(var(--pw) * .1); padding: 0 calc(var(--pw) * .085) 0 calc(var(--pw) * .1); font-size: calc(var(--pw) * .045); font-weight: 700; color: var(--ink); position: relative; }
.sb::before { content: ""; position: absolute; left: 50%; top: 22%; width: 31%; height: 54%; transform: translateX(-50%); background: #0c0c0e; border-radius: 999px; }
.sb i { width: calc(var(--pw) * .16); height: calc(var(--pw) * .035); background:
  linear-gradient(var(--ink), var(--ink)) 0 100% / 13% 45% no-repeat,
  linear-gradient(var(--ink), var(--ink)) 16% 100% / 13% 65% no-repeat,
  linear-gradient(var(--ink), var(--ink)) 32% 100% / 13% 85% no-repeat,
  linear-gradient(var(--ink), var(--ink)) 54% 100% / 0 0 no-repeat;
  position: relative; }
.sb i::after { content: ""; position: absolute; right: 0; top: 0; width: 42%; height: 100%; border-radius: 3px; border: 1.5px solid var(--ink); box-shadow: inset 0 0 0 1.5px #fff; background: var(--ink); }
.screen img { width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); background:
  radial-gradient(60% 50% at 85% 20%, #dcf5e4 0%, rgba(220, 245, 228, 0) 70%),
  radial-gradient(40% 40% at 10% 90%, #fff1e6 0%, rgba(255, 241, 230, 0) 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 0; text-wrap: balance; }
h1 .dot { color: var(--green); }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--muted); margin: 20px 0 0; max-width: 33em; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.cta-note { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.cta-note .ico { width: 18px; height: 18px; color: var(--green); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; }
.stores .chip { display: inline-block; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font-size: .875rem; font-weight: 800; }
.stores span { font-size: .875rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
.hero-shots { position: relative; display: flex; justify-content: center; min-height: 420px; }
.hero-shots .phone.back { position: absolute; --pw: 250px; left: 2%; top: 9%; transform: rotate(-7deg); opacity: .98; }
.hero-shots .phone.front { position: relative; --pw: 296px; margin-left: 30%; }
.badge-float {
  position: absolute; left: 0; bottom: 8%; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 18px; padding: 12px 16px 12px 12px; box-shadow: var(--shadow-card), 0 0 0 1px var(--line);
}
.badge-float .tile { width: 36px; height: 36px; border-radius: 10px; background: #27272A; color: #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; flex: none; }
.badge-float b { display: block; font-size: 1.125rem; letter-spacing: -.02em; }
.badge-float small { display: block; font-size: .8125rem; color: var(--muted); font-weight: 600; line-height: 1.3; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 0; text-wrap: balance; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; margin: 0; }
.sub { font-size: clamp(1rem, .96rem + .25vw, 1.125rem); color: var(--muted); margin: 14px 0 0; max-width: 36em; text-wrap: pretty; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; line-height: 1.45; }
.ticks .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); stroke-width: 3; margin-top: 1px; }
.ticks small { display: block; font-weight: 500; color: var(--muted); font-size: .9375rem; margin-top: 2px; }

/* Green band: compare */
.band { background: linear-gradient(135deg, #15803d 0%, #0f5132 55%, #0b3d26 100%); color: #fff; border-radius: clamp(0px, 3vw, 36px); margin: 0 clamp(0px, 2vw, 24px); overflow: hidden; }
.band .sub { color: rgba(255, 255, 255, .86); }
.band .ticks .ico { background: rgba(255, 255, 255, .16); color: #fff; }
.band .ticks small { color: rgba(255, 255, 255, .78); }
.band .shot { display: flex; justify-content: center; }
.rows { margin-top: 30px; background: rgba(255, 255, 255, .08); border-radius: 20px; padding: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.row + .row { margin-top: 2px; }
.row img { width: 34px; height: 34px; border-radius: 9px; background: #fff; }
.row .name { flex: 1; min-width: 0; font-weight: 700; line-height: 1.25; }
.row .name small { display: block; font-weight: 500; font-size: .8125rem; color: rgba(255, 255, 255, .75); }
.row .amt { font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.row.best { background: #fff; color: var(--ink); }
.row.best .name small { color: var(--muted); }
.row .pill { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--green); color: #fff; font-size: .6875rem; font-weight: 800; letter-spacing: .04em; vertical-align: 2px; }
.rows-note { margin: 12px 4px 0; font-size: .8125rem; color: rgba(255, 255, 255, .75); }

/* Health */
.duo { display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); align-items: flex-start; }
.duo .phone { --pw: 264px; }
.duo .phone:last-child { margin-top: 56px; }
.swap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-card); font-weight: 700; }
.score { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 999px; color: #fff; font-weight: 800; font-size: .875rem; font-variant-numeric: tabular-nums; }
.score.bad { background: var(--red); }
.score.good { background: var(--green-ink); }
.swap .arrow { width: 22px; height: 22px; color: var(--muted); }

/* Recipe from a post: the share sheet, rebuilt from a real result */
.recipe { background: var(--orange-tint); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-weight: 700; }
.steps .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--orange-ink); box-shadow: var(--shadow-card); flex: none; }
.steps small { display: block; font-weight: 500; color: var(--muted); font-size: .9375rem; }
.honest { margin-top: 22px; display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(194, 65, 12, .14); font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.honest .ico { color: var(--orange-ink); margin-top: 2px; }
.sheet-stage { display: flex; flex-direction: column; align-items: center; position: relative; isolation: isolate; padding: 0 0 8% ; }
.sheet { position: relative; z-index: 1; width: min(100%, 360px); background: #fff; border-radius: 28px; box-shadow: var(--shadow-lift); overflow: hidden; font-size: .9375rem; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid var(--line); }
.sheet-top span { color: var(--green-ink); font-weight: 600; }
.sheet-top b { font-weight: 700; }
.sheet-top i { width: 44px; }
.sheet-head { padding: 14px 18px 4px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sheet ul { list-style: none; margin: 0; padding: 0 18px; }
.sheet li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sheet li:last-child { border-bottom: 0; }
.sheet li .c { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; flex: none; }
.sheet li .c .ico { width: 14px; height: 14px; stroke-width: 3.2; }
.sheet li.off .c { background: none; box-shadow: inset 0 0 0 1.5px #c7c7cc; }
.sheet li.off .c .ico { display: none; }
.sheet li b { display: block; font-weight: 600; line-height: 1.25; }
.sheet li small { display: block; color: var(--muted); font-size: .8125rem; }
.sheet li.off b { color: var(--muted); }
.sheet-more { padding: 6px 18px 0; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.sheet-btn { margin: 14px 16px 16px; min-height: 50px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.sheet-stage .phone { position: absolute; --pw: 210px; right: -2%; bottom: 0; transform: rotate(6deg); z-index: 0; }
.post { position: relative; z-index: 2; align-self: flex-start; margin: 0 0 -14px 4%; transform: rotate(-2deg); display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-lift); max-width: 250px; font-size: .8125rem; line-height: 1.35; }
.post .thumb { width: 40px; height: 52px; border-radius: 9px; background: url(/img/s23-recipe.jpg) 50% 4% / 300% auto; flex: none; position: relative; }
.post .thumb .ico { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; color: #fff; fill: #fff; stroke: none; }
.post b { display: block; font-size: .875rem; }

@media (prefers-reduced-motion: no-preference) {
  .sheet.in li { animation: tick .5s var(--ease-out) backwards; }
  .sheet.in li .c { animation: pop .45s var(--ease-out) backwards; }
  .sheet.in li:nth-child(1), .sheet.in li:nth-child(1) .c { animation-delay: .05s; }
  .sheet.in li:nth-child(2), .sheet.in li:nth-child(2) .c { animation-delay: .12s; }
  .sheet.in li:nth-child(3), .sheet.in li:nth-child(3) .c { animation-delay: .19s; }
  .sheet.in li:nth-child(4), .sheet.in li:nth-child(4) .c { animation-delay: .26s; }
  .sheet.in li:nth-child(5), .sheet.in li:nth-child(5) .c { animation-delay: .33s; }
  .sheet.in li:nth-child(6), .sheet.in li:nth-child(6) .c { animation-delay: .40s; }
  .sheet.in li:nth-child(7), .sheet.in li:nth-child(7) .c { animation-delay: .47s; }
  .sheet.in li:nth-child(8), .sheet.in li:nth-child(8) .c { animation-delay: .54s; }
  .sheet.in .sheet-btn { animation: tick .5s .62s var(--ease-out) backwards; }
}
@keyframes tick { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
@keyframes pop { from { transform: scale(.3); } }

/* Everyday features */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; margin-top: 32px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.feat p { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.t-green { background: var(--green-tint); color: var(--green-ink); }
.t-blue { background: var(--blue-tint); color: var(--blue-ink); }
.t-purple { background: var(--purple-tint); color: var(--purple-ink); }
.t-yellow { background: var(--yellow-tint); color: var(--yellow-ink); }
.t-pink { background: var(--pink-tint); color: var(--pink-ink); }
.t-orange { background: var(--orange-tint); color: var(--orange-ink); }
.everyday .shot { display: flex; justify-content: center; }
.everyday .phone { --pw: 280px; }

/* Honest prices strip */
.promise { padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.promise div > b { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.promise .ico { color: var(--green-ink); }
.promise p { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

/* Get it */
.get { text-align: center; }
.get .card { background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(40px, 7vw, 80px) var(--gutter); position: relative; overflow: hidden; }
.get .card::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(22, 163, 74, .55), rgba(22, 163, 74, 0)); pointer-events: none; }
.get h2 { position: relative; }
.get .sub { color: rgba(255, 255, 255, .8); margin: 14px auto 28px; position: relative; }
.get .btn { position: relative; }
.get .icon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 22px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); position: relative; }

/* FAQ */
.faq { max-width: 780px; }
details { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.0625rem; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease-out); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { margin: 0 0 18px; color: var(--ink-2); max-width: 65ch; }

/* ---------- Footer ---------- */
footer { padding: 48px 0 56px; border-top: 1px solid var(--line); margin-top: 24px; }
footer .wrap { display: grid; gap: 18px; }
footer img { width: 96px; height: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9375rem; }
footer nav a:hover { color: var(--ink); }
.fine { margin: 0; font-size: .8125rem; color: var(--muted); max-width: 80ch; line-height: 1.55; }

/* ---------- Document pages (help, privacy, terms, 404) ---------- */
.doc { padding: clamp(28px, 5vw, 56px) 0 24px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.doc h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); letter-spacing: -.02em; margin: 40px 0 6px; }
.doc p, .doc li { color: var(--ink-2); max-width: 70ch; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.meta { color: var(--muted); margin: 10px 0 8px; }
.doc details summary { font-size: 1rem; }
.box { background: var(--fill); border-radius: 18px; padding: 16px 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .9375rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); min-width: 160px; }
.doc th { font-weight: 700; color: var(--ink); }
.doc td { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero-shots { min-height: 0; margin-top: 8px; }
  .hero-shots .phone.front { --pw: min(64vw, 270px); margin-left: 26%; }
  .hero-shots .phone.back { --pw: min(50vw, 220px); left: 0; }
  .promise .wrap { grid-template-columns: 1fr; gap: 22px; }
  .sheet-stage { margin-top: 24px; padding-bottom: 24px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .feats { grid-template-columns: 1fr; gap: 22px; }
  .duo .phone { --pw: min(44vw, 210px); }
  .duo .phone:last-child { margin-top: 36px; }
  .badge-float { left: -2px; bottom: 4%; padding: 10px 12px 10px 10px; }
  .badge-float b { font-size: 1rem; }
  .band { border-radius: 0; margin: 0; }
  .sheet-stage .phone { display: none; }
  .post { margin-left: 0; }
  .chip { padding: 6px 6px 6px 12px; gap: 8px; font-size: .9375rem; }
  .score { min-width: 32px; height: 26px; }
  .swap { gap: 6px; }
  .swap .arrow { width: 18px; height: 18px; }
  .btn { min-height: 50px; }
  .cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
