/* JustGreen Digital. Tokens mirror DESIGN.md and the shared JustGreen Technology brand system
   (/company/styles.css, /static/jg-glass.css): dark-first glass, Forest Emerald green scale
   (docs/design/PALETTE_GREEN.md), same radius scale and font family as the rest of the brand.
   No build step, no external requests. */
:root {
  /* Brand green "Forest Emerald" (owner decision 2026-10-15) -- same hex values as every other
     JustGreen surface. */
  --green-900: #143D2B; --green-700: #1F5A41; --green-600: #2A7650; --green-500: #3A8F67;
  --green-400: #5BA583; --green-300: #8CC2A6; --green-100: #E3F1EA; --green-050: #F2F8F5;

  --primary: var(--green-600);
  --on-primary: #FFFFFF;
  --accent: var(--green-300);
  --on-accent: #10200F;
  --bg: var(--green-050);
  --bg-2: var(--green-100);
  --ink: #11201A;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-muted: rgba(255, 255, 255, 0.92);
  --border: rgba(42, 118, 80, 0.26);
  --muted: #4C5B52;
  --error: #A3261E;
  --glass-blur: 14px;
  --glow: 42, 118, 80;

  /* Same font family/weights as the rest of the brand: no separate serif system. */
  --serif: var(--sans);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Same radius scale as company/styles.css and jg-glass.css */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --gutter: 16px;
  --section: clamp(36px, 5vw, 64px);      /* was clamp(64px, 10vw, 112px): tighter rhythm, Oct 17 2026 */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

/* Dark is the shared brand default (matches company/styles.css); light is the override, picked
   up from the OS or from the shared "theme" localStorage key the toggle writes. */
:root, :root:not([data-theme="light"]) {
  --primary: var(--green-400);
  --on-primary: #04100A;
  --accent: var(--green-300);
  --bg: #080C0A;
  --bg-2: #0B110D;
  --ink: #E9F1EB;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-muted: rgba(255, 255, 255, 0.07);
  --border: rgba(140, 194, 166, 0.20);
  --muted: #9FB2A6;
  --error: #FF8A80;
  --glow: 91, 165, 131;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --primary: var(--green-600);
    --on-primary: #FFFFFF;
    --bg: var(--green-050);
    --bg-2: var(--green-100);
    --ink: #11201A;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-muted: rgba(255, 255, 255, 0.92);
    --border: rgba(42, 118, 80, 0.26);
    --muted: #4C5B52;
    --error: #A3261E;
    --glow: 42, 118, 80;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --primary: var(--green-600);
  --on-primary: #FFFFFF;
  --bg: var(--green-050);
  --bg-2: var(--green-100);
  --ink: #11201A;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-muted: rgba(255, 255, 255, 0.92);
  --border: rgba(42, 118, 80, 0.26);
  --muted: #4C5B52;
  --error: #A3261E;
  --glow: 42, 118, 80;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  overflow-wrap: break-word;
  position: relative;
}
/* Ambient glow, same recipe as company/styles.css, so the material matches in both themes. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60vw 50vh at 78% -8%, rgba(var(--glow), 0.16), transparent 60%),
    radial-gradient(55vw 45vh at 8% 12%, rgba(var(--glow), 0.10), transparent 55%),
    var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 12px 16px; border-radius: var(--r-md);
}
.skip:focus { top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px;
  border-radius: var(--r-md); border: 2px solid transparent;
  font: 650 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease), background-color 120ms var(--ease);
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15px; white-space: nowrap; flex: none; }
.btn-block { width: 100%; }

/* Header: sticky glass, same recipe as company/styles.css .nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.icon-btn {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); cursor: pointer; margin-left: 8px;
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.icon-btn:hover { border-color: var(--primary); }
.icon-btn .moon { display: none; }
:root[data-theme="light"] .icon-btn .sun, :root:not([data-theme="dark"]) .icon-btn .sun { display: none; }
:root[data-theme="light"] .icon-btn .moon, :root:not([data-theme="dark"]) .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: block; } :root:not([data-theme="light"]) .icon-btn .moon { display: none; } }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  color: var(--ink); text-decoration: none; font: 600 18px/1 var(--sans); letter-spacing: -0.01em;
}
.brand-block { display: flex; flex-direction: column; margin-right: auto; min-width: 0; padding: 4px 0; }
.brand-block { flex: 1 1 auto; min-width: 0; }
.brand-block .brand { min-height: 40px; }
.parent-link {
  display: inline-flex; align-items: center; min-height: 24px; margin-left: 0; white-space: normal;
  font-size: 12.5px; line-height: 1.2; color: var(--muted); text-decoration: none;
}
.parent-link:hover { color: var(--primary); text-decoration: underline; }
.brand b { color: var(--primary); font-weight: 700; }
.brand-mark { width: 32px; height: 32px; color: #2A7650; flex: none; }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 550;
}
.nav a:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 24px 0 var(--section); }
.hero-grid { display: grid; gap: 40px; }
.kicker {
  font: 650 14px/1.2 var(--sans); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
h1 {
  font: 700 clamp(34px, 8vw, 62px)/1.04 var(--serif);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hl {
  background-image: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 2px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hl { background-image: linear-gradient(transparent 62%, rgba(155,225,93,.35) 62%, rgba(155,225,93,.35) 92%, transparent 92%); }
}
.lede { font-size: 17px; line-height: 1.55; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-row .btn { flex: 1 1 200px; }

/* Receipt (signature element) */
.receipt {
  position: relative; margin: 0;
  background: var(--surface); color: var(--ink);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  font: 500 15px/1.5 var(--mono);
  padding: 24px 20px 36px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  box-shadow: 0 1px 0 var(--border), 0 18px 40px -24px rgba(var(--glow), .35);
  transform: rotate(-1.2deg);
  max-width: 440px; width: 100%; justify-self: center;
  /* torn bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
}
.receipt-head {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  flex-direction: column; padding-right: 92px; min-height: 72px;
  font-size: 13px; letter-spacing: .08em; color: var(--muted);
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px dashed var(--border);
}
.receipt-lines li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.receipt-lines li > span:first-child { min-width: 0; }
.receipt-lines li > span:last-child { white-space: nowrap; font-weight: 700; }
.dots { flex: 1 1 12px; min-width: 12px; border-bottom: 2px dotted var(--border); transform: translateY(-4px); }
.receipt-total {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--border);
  font-weight: 700; font-size: 17px;
}
.receipt-foot { margin-top: 10px; font-size: 13px; color: var(--muted); }
.stamp {
  position: absolute; right: 14px; top: 12px;
  display: grid; place-items: center; text-align: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font: 800 12px/1.15 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(10deg);
  box-shadow: inset 0 0 0 3px var(--on-accent), inset 0 0 0 6px var(--accent), inset 0 0 0 7px var(--on-accent);
}

/* Sections */
.section { padding: var(--section) 0; }
[id] { scroll-margin-top: 84px; }
.section-muted { background: var(--surface-muted); }
.section-title {
  font: 700 clamp(26px, 6vw, 38px)/1.1 var(--serif);
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.split-head { display: grid; gap: 4px; margin-bottom: 22px; }
.split-head .section-title { margin-bottom: 8px; }
.split-head p { max-width: 38em; }

/* Services as rows */
.service-list { border-top: 2px solid var(--ink); }
.service { display: grid; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.service h3 { font: 650 24px/1.2 var(--sans); display: flex; align-items: baseline; gap: 14px; }
.svc-num { font: 500 14px/1 var(--mono); color: var(--muted); }
.ticks li { position: relative; padding-left: 26px; margin: 6px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 12px; height: 7px; border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}

/* Pricing */
.price-grid { display: grid; gap: 16px; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  padding: 20px;
}
.price-card h3 { font: 650 19px/1.25 var(--sans); }
.price {
  font: 700 34px/1.1 var(--mono); letter-spacing: -0.02em;
  margin: 6px 0 10px; padding-bottom: 10px; border-bottom: 2px dotted var(--border);
}
.from { font: 500 14px/1 var(--sans); color: var(--muted); letter-spacing: 0; margin-right: 4px; }
.per { font: 500 15px/1 var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.price-card-feature { border: 2px solid var(--primary); }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 18px; counter-reset: none; }
.step { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
.step-num {
  grid-row: span 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 700 20px/1 var(--serif);
}
.step h3 { font: 650 19px/1.25 var(--sans); padding-top: 2px; }
.step p { color: var(--muted); max-width: 30em; }

/* Portfolio */
.work-feature {
  display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
}
.work-shot { background: #0B0F14; }
.work-shot img { width: 100%; aspect-ratio: 1076 / 900; object-fit: cover; }
.work-body { padding: 24px; display: grid; gap: 12px; align-content: start; }
.work-body h3, .work-card h3 { font: 650 22px/1.25 var(--sans); }
.meta { font-size: 14px; color: var(--muted); }
.tag {
  justify-self: start; display: inline-block;
  font: 650 13px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--surface-muted); color: var(--ink);
  border: 1px solid var(--border);
}
.tag-soon { background: transparent; color: var(--muted); }
.work-grid { display: grid; gap: 16px; margin-top: 16px; }
.work-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.work-card-body { padding: 20px 24px 24px; display: grid; gap: 10px; }
.work-card-soon { background: transparent; border: 2px dashed var(--border); }
.work-card-soon h3 { color: var(--muted); }
.browser {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: var(--surface-muted); border-bottom: 1px solid var(--border);
}
.browser span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex: none; }
.browser em {
  font: 500 13px/1 var(--mono); font-style: normal; color: var(--muted);
  margin-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.link-arrow { display: inline-flex; align-items: center; min-height: 48px; font-weight: 650; }
.link-arrow::after { content: "\2192"; margin-left: 8px; transition: transform 120ms var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 52px; padding: 10px 0; cursor: pointer; list-style: none;
  font: 650 18px/1.35 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 20px; max-width: 40em; color: var(--muted); }

/* Contact */
.contact { border-top: 1px solid var(--border); }
.contact-grid { display: grid; gap: 24px; }
.email-line { margin-top: 20px; }
.email-line a { font-weight: 650; }
.form {
  display: grid; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  padding: 20px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-md);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.is-error { color: var(--error); }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding: 24px 0 28px; }
.footer-row { display: grid; gap: 8px; font-size: 15px; }

/* Wider screens */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .nav { display: block; }
  .parent-link { margin-left: 42px; }
  .hero { padding-top: 48px; }
  .split-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; }
  .service { grid-template-columns: 1.1fr 1.4fr 1fr; gap: 32px; align-items: start; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
  .step { grid-template-columns: 1fr; }
  .step-num { grid-row: auto; margin-bottom: 8px; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 48px; }
  .form { padding: 28px; }
  .footer-row { grid-template-columns: 2fr 1fr auto; align-items: center; }
}
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 64px; }
  .price-grid { grid-template-columns: repeat(4, 1fr); }
  .work-feature { grid-template-columns: 1fr 1fr; }
  .work-body { padding: 32px; align-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn-primary:hover { transform: none; }
}

/* ---------- Oct 17 2026: shorter page, menu on phones, shop easy to find ---------- */
.price-desc { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.price-card .ticks li { margin: 4px 0; }
.work-shot img { max-height: 420px; object-position: top; }
.work-note { margin-top: 14px; max-width: 46em; font-size: 15px; }
.shop-band { padding: 28px 0; }
.shop-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px 18px; align-items: center; }
.shop-row img { width: 72px; aspect-ratio: 420 / 544; object-fit: cover; border-radius: 6px; background: #fff; border: 1px solid var(--border); }
.shop-row .btn { grid-column: 1 / -1; }
.shop-title { font: 650 20px/1.25 var(--sans); margin: 8px 0 4px; }
@media (min-width: 760px) {
  .shop-row { grid-template-columns: 88px 1fr auto; }
  .shop-row img { width: 88px; }
  .shop-row .btn { grid-column: auto; }
}

/* Header: Shop link with a small bag icon; on phones the links live in a drop-down menu. */
.nav a.nav-shop { gap: 7px; font-weight: 650; }
.nav a.nav-shop svg { color: var(--primary); flex: none; }
.nav-only-menu { display: none; }
.menu-btn { display: none; }
@media (max-width: 759px) {
  .header-row { position: relative; }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: 8px; }
  .nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .45);
    border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 14px;
    opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
    transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms;
  }
  .site-header.open .nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { min-height: 48px; padding: 0 8px; font-size: 17px; }
  .nav-only-menu { display: block; margin-top: 8px; }
  .nav-only-menu a.btn { color: var(--on-primary); justify-content: center; }
  .receipt { display: none; }      /* phones: the pricing section right below says the same thing */
}
/* Phones: plan name and price share one row. */
@media (max-width: 759px) {
  .price-grid { gap: 12px; }
  .price-card { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 16px 18px; }
  .price-card > * { grid-column: 1 / -1; }
  .price-card > h3 { grid-column: 1; }
  .price-card > .price { grid-column: 2; font-size: 26px; margin: 0; padding: 0; border: 0; text-align: right; }
  .price-card > .price-desc { margin-top: 8px; padding-top: 8px; border-top: 2px dotted var(--border); }
  .work-body { padding: 18px; gap: 8px; }
}
