/*
Theme Name: Growvia
Theme URI: https://example.com/growvia
Author: Growvia
Author URI: https://example.com
Description: Self-hosted analytics landing page theme for WordPress & WooCommerce, converted from the Growvia Analytics design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: growvia
*/

/* ===== Fonts (self-hosted, latin + latin-ext) ===== */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/outfit-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/outfit-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/outfit-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/outfit-latin.woff2') format('woff2');
  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;
}

/* ===== Design tokens ===== */
:root {
  --ink: #0E1D2B;
  --ink-2: #33414F;
  --muted: #56646F;
  --muted-2: #7A8896;
  --muted-3: #33414F;
  --faint: #9AA6B2;
  --border: #EEF1F5;
  --border-2: #E2E8EF;
  --border-3: #DDE4EC;
  --border-hairline: #F0F3F7;
  --surface: #F7F9FB;
  --surface-2: #FAFBFC;
  --surface-3: #F2F5FA;
  --pill-bg: #EDF1F6;
  --signal: #17C57F;
  --signal-dark: #0F9C63;
  --signal-bright: #3EE0A8;
  --signal-tint-bg: #E7F8EF;
  --green: #17C57F;
  --green-bg: #E7F8EF;
  --dark: #0E1D2B;
  --dark-border: #22323F;
  --dark-border-2: #2C3D4C;
  --dark-muted: #AEBBC6;
  --dark-muted-2: #7A8896;
  --dark-text: #D3DBE2;
  --dark-text-2: #C6D0D9;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--signal); }
a:hover { color: var(--signal-dark); }
::selection { background: #D4F3E6; }
button { font: inherit; }

.g-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.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;
}

/* ===== Hover utility classes (inline styles carry the base state; !important wins over inline on interaction) ===== */
.hov-bg-blue-dark:hover { background: var(--signal-dark) !important; }
.hov-bg-surface:hover { background: var(--surface-3) !important; }
.hov-color-white:hover { color: #fff !important; }
.hov-border-blue:hover { border-color: var(--signal) !important; }
.hov-border-dark:hover { border-color: var(--dark) !important; }
.hov-border-white:hover { border-color: #fff !important; }
.hov-lift:hover { transform: translateY(-2px); }
a.hov-color-white, a.hov-bg-surface, a.hov-border-blue, a.hov-border-dark, a.hov-border-white, a.hov-bg-blue-dark {
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

/* ===== Header ===== */
.g-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.g-header.is-scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 8px 24px -18px rgba(14,29,43,.22); }
.g-header-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.g-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.g-logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
  border: 1px solid var(--dark-border-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.g-logo-mark .g-tick-svg { width: 16px; height: 17px; display: block; }
.g-logo-mark .g-tick-path { stroke: var(--signal-bright); }

.g-logo-text { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.g-logo-word {
  display: inline-flex; align-items: baseline; font-family: var(--font-display);
  font-weight: 700; font-size: 21px; letter-spacing: -0.01em;
}
.g-wordmark-tick { display: inline-block; width: 9px; height: 10px; margin: 0 1px; transform: translateY(1px); }
.g-wordmark-tick .g-tick-svg { display: block; width: 100%; height: 100%; }
.g-wordmark-tick .g-tick-path { stroke: var(--signal); }
.g-logo-tagline { font-size: 8.5px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }

.g-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.g-nav-link {
  font-size: 15px; font-weight: 500; color: var(--muted-3); text-decoration: none;
  padding: 10px 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.g-nav-caret { font-size: 10px; color: var(--faint); transition: transform .15s ease; }
.g-nav-item.is-open .g-nav-caret { transform: rotate(180deg); }

.g-header-cta { display: flex; align-items: center; gap: 18px; }
.g-link-quiet { font-size: 15px; font-weight: 500; color: var(--muted-3); text-decoration: none; padding: 10px 6px; }
.g-btn-primary {
  font-size: 15px; font-weight: 700; color: #fff; background: var(--signal); text-decoration: none;
  height: 44px; padding: 0 22px; border-radius: 9px; box-shadow: 0 8px 20px -8px rgba(23,197,127,.7); border: 0; cursor: pointer;
  display: inline-flex; align-items: center;
}

.g-mega {
  position: absolute; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 48px -24px rgba(14,29,43,.18);
  display: none;
}
.g-nav-item.is-open .g-mega { display: block; }
.g-mega-grid { max-width: 1180px; margin: 0 auto; padding: 28px 32px 32px; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.g-mega-item { display: block; padding: 16px; border-radius: 12px; text-decoration: none; color: inherit; }
.g-mega-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.g-mega-desc { font-size: 13.5px; line-height: 1.5; color: var(--muted-2); }
.g-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; padding: 4px 10px; border-radius: 5px;
}
.g-tag-pro { color: var(--signal-dark); background: var(--signal-tint-bg); }
.g-tag-free { color: var(--green); background: var(--green-bg); }

.g-hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.g-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
.g-mobile-nav { display: none; }

/* ===== Section basics ===== */
.g-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px; }
.g-h2 { font-family: var(--font-display); font-size: 42px; line-height: 1.14; letter-spacing: -0.022em; font-weight: 700; margin: 0; text-wrap: balance; }
.g-h3 { font-family: var(--font-display); font-size: 38px; line-height: 1.14; letter-spacing: -0.022em; font-weight: 700; margin: 0 0 16px; text-wrap: balance; }
.g-lede { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ===== Hero ===== */
.g-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg,#F7F9FB 0%,#FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}
.g-hero-grid {
  max-width: 1320px; margin: 0 auto; padding: 96px 32px 90px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.g-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px;
  border: 1px solid var(--border-3); border-radius: 100px; background: #fff;
  font-size: 13.5px; font-weight: 500; color: var(--muted-3); margin-bottom: 26px;
}
.g-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.g-h1 {
  font-family: var(--font-display); font-size: 62px; line-height: 1.04; letter-spacing: -0.025em;
  font-weight: 700; margin: 0 0 22px; text-wrap: balance;
}
.g-hero-lede { font-size: 17.5px; line-height: 1.62; color: var(--muted); margin: 0 0 34px; max-width: 540px; text-wrap: pretty; }
.g-hero-ctas { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.g-btn-lg { font-size: 16.5px; font-weight: 700; text-decoration: none; height: 54px; padding: 0 28px; border-radius: 10px; display: inline-flex; align-items: center; }
.g-btn-lg.primary { color: #fff; background: var(--signal); box-shadow: 0 14px 30px -12px rgba(23,197,127,.8); }
.g-btn-lg.secondary { color: var(--ink); background: #fff; border: 1px solid var(--border-3); }
.g-hero-checks { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }

.g-browser { border-radius: 14px; overflow: hidden; border: 0; box-shadow: none; background: #fff; }
.g-browser-bar { height: 34px; background: var(--surface-3); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.g-browser-dot { width: 9px; height: 9px; border-radius: 50%; background: #DDE3EE; display: inline-block; }
.g-browser-path { margin-left: 12px; font-size: 11.5px; color: var(--faint); }
.g-browser img { display: block; width: 100%; }

/* ===== Feature page hero (same language as the homepage hero, one section tall) ===== */
.g-feature-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg,#F7F9FB 0%,#FFFFFF 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 96px;
}
.g-feature-hero-grid {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.g-feature-hero-grid.is-single { grid-template-columns: 1fr; max-width: 760px; text-align: center; }
.g-feature-hero-grid.is-single .g-hero-ctas { justify-content: center; }
.g-feature-hero-grid.is-single .g-badge { margin-left: auto; margin-right: auto; }
.g-feature-hero-grid.is-single .g-hero-lede { margin-left: auto; margin-right: auto; }
.g-breadcrumb { font-size: 14px; color: var(--muted-2); margin-bottom: 22px; }
.g-breadcrumb a { color: var(--muted-2); text-decoration: none; }
.g-breadcrumb a:hover { color: var(--signal); }

/* ===== Benefits checklist ===== */
.g-checklist {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px;
  font-size: 16px; line-height: 1.6; color: var(--muted); list-style: none; margin: 0; padding: 0;
}
.g-checklist li { display: flex; gap: 10px; }
.g-checklist li::before { content: "✓"; color: var(--green); font-weight: 600; flex-shrink: 0; }

.g-stats { max-width: 1180px; margin: 0 auto; padding: 46px 32px; border-bottom: 1px solid var(--border); }
.g-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.g-stat { padding: 4px 28px; border-right: 1px solid var(--border); }
.g-stat:last-child { border-right: 0; }
.g-stat-num { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.g-stat-label { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.g-hero-spacer { height: 0; }

/* ===== How it works ===== */
.g-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.g-step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--signal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 20px;
}
.g-step-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.g-step-desc { font-size: 15px; line-height: 1.58; color: var(--muted); margin: 0; }

/* ===== Problem section ===== */
.g-section { padding: 104px 0; }
.g-section-head { max-width: 640px; margin-bottom: 52px; }
.g-cols-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.g-compare-card { padding: 30px 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.g-compare-card.is-highlight { border-color: var(--signal); background: var(--dark); color: #fff; box-shadow: 0 24px 50px -24px rgba(14,29,43,.55); }
.g-compare-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.g-compare-list { display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.g-compare-card.is-highlight .g-compare-list { color: var(--dark-text-2); }

/* ===== AI Assistant spotlight (dark section, reuses .g-checklist) ===== */
.g-ai-spotlight .g-lede { color: var(--dark-muted); }
.g-ai-spotlight .g-checklist { color: var(--dark-text); font-size: 15.5px; line-height: 1.55; gap: 22px 44px; }
.g-ai-spotlight .g-checklist li::before { color: var(--signal); }

/* ===== Features grid ===== */
.g-feature-card {
  display: block; padding: 26px 26px 30px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: inherit;
}
.g-feature-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.g-feature-arrow { color: var(--signal); font-size: 18px; }
.g-feature-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 16px; }
.g-feature-desc { font-size: 15px; line-height: 1.58; color: var(--muted); margin: 0; }

/* ===== Deep dive ===== */
.g-deepdive-list { display: grid; gap: 96px; }
.g-deepdive-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.g-deepdive-row.is-reverse { grid-template-columns: 1.15fr 0.85fr; }
.g-deepdive-row.is-reverse .g-deepdive-media { order: -1; }
.g-deepdive-row.is-single { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; text-align: center; }
.g-deepdive-media { border-radius: 14px; overflow: hidden; border: 0; box-shadow: none; }
.g-deepdive-media img { display: block; width: 100%; }

/* ===== Screenshot reveal + hover motion ===== */
.js .g-browser,
.js .g-deepdive-media {
  opacity: 0;
  transform: translateY(28px) scale(.98);
  transition: opacity .8s cubic-bezier(.16,.8,.24,1), transform .8s cubic-bezier(.16,.8,.24,1);
}
.js .g-browser.is-visible,
.js .g-deepdive-media.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.g-browser, .g-deepdive-media { transition: transform .4s cubic-bezier(.16,.8,.24,1); }
.g-browser:hover, .g-deepdive-media:hover {
  transform: translateY(-4px) scale(1.012);
}
.g-browser img, .g-deepdive-media img { transition: transform .5s ease; }
.g-browser:hover img, .g-deepdive-media:hover img { transform: scale(1.015); }

@media (prefers-reduced-motion: reduce) {
  .js .g-browser, .js .g-deepdive-media { opacity: 1; transform: none; transition: none; }
  .g-browser:hover, .g-deepdive-media:hover { transform: none; }
  .g-browser img, .g-deepdive-media img, .g-browser:hover img, .g-deepdive-media:hover img { transform: none; transition: none; }
}
.g-deepdive-link { font-size: 15.5px; font-weight: 700; text-decoration: none; }

/* ===== Scroll reveal — section heads, cards, stats, plans, FAQ ===== */
.js .g-section-head,
.js .g-stat,
.js .g-compare-card,
.js .g-step,
.js .g-feature-card,
.js .g-testimonial,
.js .g-faq-item,
.js .g-plan {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,.8,.24,1), transform .6s cubic-bezier(.16,.8,.24,1);
}
.js .g-section-head.is-visible,
.js .g-stat.is-visible,
.js .g-compare-card.is-visible,
.js .g-step.is-visible,
.js .g-feature-card.is-visible,
.js .g-testimonial.is-visible,
.js .g-faq-item.is-visible,
.js .g-plan.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered by column position, not absolute index, so it stays correct
   regardless of how many rows a grid has (e.g. the Features grid). */
.g-cols-3 .g-compare-card:nth-child(3n+2),
.g-cols-3 .g-feature-card:nth-child(3n+2),
.g-cols-3 .g-testimonial:nth-child(3n+2),
.g-steps .g-step:nth-child(3n+2) { transition-delay: 90ms; }
.g-cols-3 .g-compare-card:nth-child(3n+3),
.g-cols-3 .g-feature-card:nth-child(3n+3),
.g-cols-3 .g-testimonial:nth-child(3n+3),
.g-steps .g-step:nth-child(3n+3) { transition-delay: 180ms; }
.g-stats-grid .g-stat:nth-child(4n+2),
.g-plans .g-plan:nth-child(4n+2) { transition-delay: 70ms; }
.g-stats-grid .g-stat:nth-child(4n+3),
.g-plans .g-plan:nth-child(4n+3) { transition-delay: 140ms; }
.g-stats-grid .g-stat:nth-child(4n+4),
.g-plans .g-plan:nth-child(4n+4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  .js .g-section-head, .js .g-stat, .js .g-compare-card, .js .g-step,
  .js .g-feature-card, .js .g-testimonial, .js .g-faq-item, .js .g-plan {
    opacity: 1; transform: none; transition: none;
  }
}

/* ===== Hero entrance (page load, not scroll-triggered) ===== */
@media (prefers-reduced-motion: no-preference) {
  .js .g-hero .g-badge,
  .js .g-hero .g-h1,
  .js .g-hero .g-hero-lede,
  .js .g-hero .g-hero-ctas,
  .js .g-hero .g-hero-checks {
    animation: g-fade-up .7s cubic-bezier(.16,.8,.24,1) both;
  }
  .js .g-hero .g-badge { animation-delay: 0ms; }
  .js .g-hero .g-h1 { animation-delay: 80ms; }
  .js .g-hero .g-hero-lede { animation-delay: 160ms; }
  .js .g-hero .g-hero-ctas { animation-delay: 220ms; }
  .js .g-hero .g-hero-checks { animation-delay: 280ms; }
}
@keyframes g-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Compare table ===== */
.g-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.g-table-row { display: grid; grid-template-columns: 1.9fr 0.55fr 0.55fr; padding: 13px 22px; border-bottom: 1px solid var(--border-hairline); font-size: 14.5px; color: var(--ink-2); align-items: center; }
.g-table-row:last-child { border-bottom: 0; }
.g-table-row.is-alt { background: var(--surface-2); }
.g-table-row.is-head { padding: 14px 22px; background: var(--dark); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 0; }
.g-table-cell-center { text-align: center; }
.g-check { color: var(--green); font-weight: 600; font-size: 13.5px; }
.g-sample { font-size: 13.5px; color: var(--faint); }

/* ===== Pricing ===== */
.g-billing-toggle { display: flex; justify-content: center; margin-bottom: 44px; }
.g-billing-pill { display: inline-flex; padding: 4px; background: var(--pill-bg); border-radius: 10px; gap: 4px; }
.g-billing-btn {
  font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 9px 24px; border-radius: 7px; border: 0;
  background: transparent; color: var(--muted-2); box-shadow: none;
}
.g-billing-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(14,29,43,.06); }

.g-plans { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; align-items: start; }
.g-plan { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 26px 32px; display: flex; flex-direction: column; gap: 18px; }
.g-plan.is-dark { background: var(--dark); color: #fff; border-color: var(--dark); box-shadow: 0 30px 60px -30px rgba(14,29,43,.6); position: relative; padding: 34px 26px 32px; }
.g-plan-badge { position: absolute; top: -13px; left: 26px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; background: var(--signal); color: #fff; padding: 6px 12px; border-radius: 6px; }
.g-plan-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.g-plan-sub { font-size: 14px; color: var(--muted-2); }
.g-plan.is-dark .g-plan-sub { color: var(--faint); }
.g-plan-price-row { display: flex; align-items: baseline; gap: 6px; }
.g-plan-price { font-family: var(--font-display); font-size: 42px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.g-plan-period { font-size: 14.5px; color: var(--muted-2); }
.g-plan.is-dark .g-plan-period { color: var(--faint); }
.g-plan-cta { text-align: center; font-size: 14.5px; font-weight: 700; text-decoration: none; height: 46px; padding: 0 20px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.g-plan-cta.outline { color: var(--ink); background: #fff; border: 1px solid var(--border-3); }
.g-plan-cta.solid { color: #fff; background: var(--signal); }
.g-plan-list { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.g-plan.is-dark .g-plan-list { color: var(--dark-text-2); }
.g-pricing-note { text-align: center; font-size: 14px; color: var(--faint); margin: 34px 0 0; }

/* ===== Testimonials ===== */
.g-testimonial { margin: 0; padding: 30px 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.g-testimonial blockquote { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.g-testimonial figcaption { font-size: 14.5px; color: var(--muted-2); }
.g-testimonial figcaption strong { color: var(--ink); font-weight: 600; }

/* ===== FAQ ===== */
.g-faq-wrap { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.g-faq-item { border-bottom: 1px solid var(--border-hairline); }
.g-faq-item:last-child { border-bottom: 0; }
.g-faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit;
  font-size: 16.5px; font-weight: 700; color: var(--ink); padding: 22px 26px; display: flex;
  justify-content: space-between; gap: 20px;
}
.g-faq-q .g-faq-plus { color: var(--faint); font-size: 18px; line-height: 1; transition: transform .15s ease; }
.g-faq-item.is-open .g-faq-plus { transform: rotate(45deg); }
.g-faq-a { margin: 0; padding: 0 26px 22px; max-width: 720px; font-size: 16px; line-height: 1.6; color: var(--muted); display: none; }
.g-faq-item.is-open .g-faq-a { display: block; }

/* ===== Final CTA ===== */
.g-cta { padding: 104px 0; background: var(--dark); color: #fff; }
.g-cta-inner { max-width: 900px; margin: 0 auto; padding: 0 32px; text-align: center; }
.g-cta h2 { font-family: var(--font-display); font-size: 46px; line-height: 1.12; letter-spacing: -0.024em; font-weight: 700; margin: 0 auto 20px; max-width: 760px; text-wrap: balance; }
.g-cta p { font-size: 16.5px; line-height: 1.6; color: var(--dark-muted); margin: 0 auto 36px; max-width: 620px; text-wrap: pretty; }
.g-cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.g-btn-dark-outline { font-size: 16.5px; font-weight: 600; color: #fff; background: transparent; border: 1px solid var(--dark-border-2); text-decoration: none; height: 54px; padding: 0 28px; border-radius: 10px; display: inline-flex; align-items: center; }

/* ===== Footer ===== */
.g-footer { background: var(--dark); color: var(--dark-text); font-family: var(--font-body); }
.g-footer-grid { max-width: 1180px; margin: 0 auto; padding: 56px 32px 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.g-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.g-footer-brand .g-logo-mark { background: #16293A; }
.g-footer-brand .g-logo-word { color: #fff; }
.g-footer-brand .g-wordmark-tick .g-tick-path { stroke: var(--signal-bright); }
.g-footer-brand .g-logo-tagline { color: var(--dark-muted-2); }
.g-footer-desc { font-size: 14px; line-height: 1.65; color: var(--dark-muted); max-width: 280px; margin: 0; }
.g-footer-heading { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dark-muted-2); margin-bottom: 16px; }
.g-footer-links { display: flex; flex-direction: column; gap: 11px; list-style: none; margin: 0; padding: 0; }
.g-footer-links a { font-size: 14.5px; color: var(--dark-text); text-decoration: none; }
.g-footer-bottom {
  max-width: 1180px; margin: 0 auto; padding: 24px 32px 48px; border-top: 1px solid var(--dark-border);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.g-footer-bottom span { font-size: 14px; color: var(--dark-muted-2); }

/* ===== Generic page (Contact / Privacy / Terms / Feature stubs) ===== */
.g-page { padding: 88px 0 104px; }
.g-page-header { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.g-page-header h1 { font-family: var(--font-display); font-size: 46px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; }
.g-page-body { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--muted); }
.g-page-body p { margin: 0 0 20px; }
.g-page-body h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); margin: 44px 0 16px; }
.g-page-body h2:first-of-type { margin-top: 0; }
.g-page-body ul, .g-page-body ol { margin: 0 0 20px; padding-left: 22px; }
.g-page-body li { margin: 0 0 8px; }
.g-page-body strong { color: var(--ink-2); }
.g-page-body a { font-weight: 600; }
.g-terms-meta { font-size: 14.5px; color: var(--faint); margin: -8px 0 32px; }
.g-terms-note {
  background: #FBF1DC; border: 1px solid #F0DDA8; border-radius: 10px; padding: 16px 20px;
  font-size: 15px; line-height: 1.55; color: #6B4E12; margin: 0 0 20px;
}
.g-back-link { display: inline-block; margin-top: 28px; font-size: 15px; font-weight: 600; text-decoration: none; }

/* ===== Blog index ===== */
.g-blog-intro { max-width: 620px; margin: 0 auto 52px; text-align: center; font-size: 17px; line-height: 1.6; color: var(--muted); }
/* Masonry via CSS multi-column: cards keep their natural height (thumbnail
   + however much the title/excerpt wrap to) and stack into whichever column
   is shortest, instead of being stretched to match the tallest card in a
   row. No JS — break-inside stops a card being sliced across a column gap. */
.g-blog-grid { column-count: 3; column-gap: 24px; }
.g-blog-card {
  display: block; width: 100%; margin: 0 0 24px; background: #fff; overflow: hidden;
  border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: inherit;
  break-inside: avoid-column; -webkit-column-break-inside: avoid; page-break-inside: avoid;
}
.g-blog-thumb { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--border-hairline); }
.g-blog-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-blog-card-body { padding: 22px 24px 20px; }
.g-blog-meta { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px; }
.g-blog-title { font-family: var(--font-display); font-size: 19.5px; font-weight: 600; line-height: 1.28; margin-bottom: 12px; }
.g-blog-excerpt { font-size: 14.5px; line-height: 1.58; color: var(--muted); margin: 0 0 20px; }
.g-blog-foot {
  display: flex; align-items: center; justify-content: space-between; font-size: 13.5px;
  color: var(--muted-2); border-top: 1px solid var(--border-hairline); padding-top: 16px;
}
.g-blog-foot .g-feature-arrow { color: var(--signal); font-size: 16px; }
.g-blog-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.g-blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: 9px; border: 1px solid var(--border-3); font-size: 14.5px;
  font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.g-blog-pagination a.page-numbers:hover { border-color: var(--signal); color: var(--signal-dark); }
.g-blog-pagination .page-numbers.current { background: var(--dark); color: #fff; border-color: var(--dark); }
.g-blog-pagination .page-numbers.dots { border: 0; }

/* ===== Single post ===== */
.g-post-header { margin-bottom: 24px; }
.g-post-meta { font-size: 14px; color: var(--muted-2); display: flex; justify-content: center; gap: 10px; }
.g-post-meta span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--faint); }
.g-post-cover { max-width: 900px; margin: 0 auto 48px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.g-post-cover img { display: block; width: 100%; height: auto; }

/* ===== Contact form ===== */
.g-contact-body .form-row-wide { width: 100%; }
.growvia-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-contact-form button[type="submit"] { margin-top: 6px; }

/* ===== My Account (WooCommerce reskin) =====
   WooCommerce's own myaccount templates are left un-forked — this styles
   their default class names directly so template updates keep working. */
.g-account-page.g-page { padding-bottom: 120px; }
.g-account-shell { max-width: 1100px; }
/* WooCommerce's [woocommerce_my_account] shortcode wraps nav+content in its
   own ".woocommerce" div — that's the real grid parent, not .g-account-shell
   itself — and its default stylesheet floats nav 30% / content 68% inside
   it, so both are neutralised here in favour of a real two-column grid. */
.woocommerce-account .g-account-shell .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
/* Explicit placement (not source-order auto-placement) so nav is always the
   left, narrow column and content the right, wide one, regardless of any
   other sibling WooCommerce may print inside .woocommerce (e.g. a notices
   wrapper). */
.woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1; grid-row: 1; float: none; width: auto; }
.woocommerce-account .woocommerce-MyAccount-content { grid-column: 2; grid-row: 1; float: none; width: auto; }

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  list-style: none; margin: 0 0 28px; padding: 16px 20px; border-radius: 10px; font-size: 15px; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.woocommerce-error { background: #FBEAEA; border-color: #F3C9C9; color: #A32E2E; }
.woocommerce-message::before, .woocommerce-error::before, .woocommerce-info::before { display: none; }

.g-account-nav-header { margin-bottom: 36px; }
.g-account-nav-header .g-logo { display: inline-flex; }
.g-account-nav-user { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--ink); }

.woocommerce-MyAccount-navigation { position: sticky; top: 100px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.woocommerce-MyAccount-navigation-link a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500;
  color: var(--muted); text-decoration: none; box-shadow: inset 3px 0 0 0 transparent;
}
.woocommerce-MyAccount-navigation-link a::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; background-color: currentColor;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.woocommerce-MyAccount-navigation-link a:hover { color: var(--ink); background: var(--surface-2); }
.woocommerce-MyAccount-navigation-link.is-active a { color: var(--signal-dark); background: var(--signal-tint-bg); font-weight: 600; box-shadow: inset 3px 0 0 0 var(--signal-dark); }

.woocommerce-MyAccount-navigation-link--dashboard a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.5'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1.5'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.5'/%3E%3Crect x='13' y='13' width='8' height='8' rx='1.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.5'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1.5'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.5'/%3E%3Crect x='13' y='13' width='8' height='8' rx='1.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 2v5h5'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 2v5h5'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--licenses a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l8-8M17 4l3 3M14 7l2 2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l8-8M17 4l3 3M14 7l2 2'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--downloads a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4'/%3E%3Cpath d='M12 3v10M8 9l4 4 4-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4'/%3E%3Cpath d='M12 3v10M8 9l4 4 4-4'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-7.4 7-12.5A7 7 0 0 0 5 9.5C5 14.6 12 22 12 22z'/%3E%3Ccircle cx='12' cy='9.5' r='2.3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-7.4 7-12.5A7 7 0 0 0 5 9.5C5 14.6 12 22 12 22z'/%3E%3Ccircle cx='12' cy='9.5' r='2.3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--payment-methods a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4.5 5-6.5 8-6.5s6.5 2 8 6.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4.5 5-6.5 8-6.5s6.5 2 8 6.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }

/* Dashboard: two feature cards + a recent-orders table */
.g-account-dashboard-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.g-account-feature-card {
  position: relative; display: block; padding: 26px 26px 30px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; text-decoration: none; color: inherit;
}
.g-account-feature-icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--signal-tint-bg); margin-bottom: 18px;
}
.g-account-feature-icon::before {
  content: ""; width: 22px; height: 22px; background-color: var(--signal-dark);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.g-account-feature-icon--licenses::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l8-8M17 4l3 3M14 7l2 2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l8-8M17 4l3 3M14 7l2 2'/%3E%3C/svg%3E"); }
.g-account-feature-icon--orders::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 2v5h5'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 2v5h5'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.g-account-feature-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.g-account-feature-desc { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.g-account-feature-arrow { color: var(--signal-dark); font-size: 16px; font-weight: 600; }

.g-account-recent-orders h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 18px; }
.g-account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.g-account-actions .button { height: 36px; padding: 0 14px; font-size: 13px; }
.g-order-status-pill {
  display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 100px;
  background: var(--surface-3); color: var(--muted);
}
.g-order-status-pill.status-completed, .g-order-status-pill.status-processing { background: var(--signal-tint-bg); color: var(--signal-dark); }
.g-order-status-pill.status-cancelled, .g-order-status-pill.status-failed { background: #FBEAEA; color: #A32E2E; }
.g-account-recent-orders-more { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; text-decoration: none; }

.woocommerce-MyAccount-content > p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 18px; }
.woocommerce-MyAccount-content > p a { font-weight: 600; }
.woocommerce-MyAccount-content h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 32px 0 16px; }
.woocommerce-MyAccount-content h2:first-child { margin-top: 0; }

.g-account-summary-card {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin-bottom: 24px;
  background: var(--dark); color: #fff; border-radius: 14px;
}
.g-account-summary-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.g-account-summary-label { font-size: 14.5px; color: var(--dark-muted); line-height: 1.5; }
.g-account-summary-label a { color: var(--signal-bright); font-weight: 600; margin-left: 4px; }

/* Tables — orders, order details, downloads */
.shop_table {
  width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; font-size: 14.5px;
}
.shop_table th, .shop_table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border-hairline); color: var(--ink-2); }
.shop_table thead th { background: var(--dark); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 0; }
.shop_table tbody tr:nth-child(even) { background: var(--surface-2); }
.shop_table tbody tr:last-child td { border-bottom: 0; }
.shop_table .woocommerce-orders-table__cell-order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.woocommerce-order-details__title, .woocommerce-column__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 28px 0 16px; }
.order_details.woocommerce-table--order-details { margin-bottom: 28px; }
.order-total td, .order-total th, tfoot td, tfoot th { font-weight: 700; }

/* Buttons */
.woocommerce-Button.button, a.button, button.button, input.button {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px;
  font-size: 14.5px; font-weight: 600; font-family: var(--font-body); border-radius: 9px; text-decoration: none;
  background: var(--signal); color: #fff; border: 1px solid var(--signal); cursor: pointer;
}
.woocommerce-Button.button:hover, a.button:hover, button.button:hover, input.button:hover { background: var(--signal-dark); border-color: var(--signal-dark); color: #fff; }
.woocommerce-Button.button.cancel, a.button.cancel {
  background: transparent; color: var(--muted); border-color: var(--border-2);
}
.woocommerce-Button.button.cancel:hover { background: var(--surface-2); color: var(--ink); }

/* Forms — edit account, addresses */
.woocommerce-EditAccountForm, .woocommerce-address-fields, .woocommerce-form { max-width: 560px; }
.form-row { margin: 0 0 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.form-row .required { color: var(--signal-dark); }
.form-row input.input-text, .form-row select, .form-row textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: 9px;
  font-size: 15px; font-family: var(--font-body); color: var(--ink); background: #fff;
}
.form-row textarea { height: auto; padding: 12px 14px; }
.form-row span em { font-size: 12.5px; color: var(--faint); }
.form-row-first, .form-row-last { display: inline-block; width: 48%; }
.form-row-first { margin-right: 4%; }
fieldset { border: 0; padding: 0; margin: 24px 0 0; }
fieldset legend { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 12px; padding: 0; }
.clear { clear: both; }

.woocommerce-Addresses.col2-set, .u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* WC's own float-layout stylesheet gives .col-1/.col-2 float:left/right plus
   width:48% — float is neutralised automatically once these are grid items,
   but the 48% width isn't, and fights the grid's own column sizing, so both
   are reset here and placement is made explicit rather than relying on
   source order. */
.woocommerce-Addresses .u-column1.col-1,
.woocommerce-Addresses .u-column2.col-2 { float: none; width: auto; margin: 0; }
.woocommerce-Addresses .u-column1.col-1 { grid-column: 1; grid-row: 1; }
.woocommerce-Addresses .u-column2.col-2 { grid-column: 2; grid-row: 1; }
.woocommerce-Address {
  padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
}
.woocommerce-Address-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.woocommerce-Address-title h2 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0; }
.woocommerce-Address-title .edit { font-size: 13.5px; font-weight: 600; }
.woocommerce-Address address { font-size: 14.5px; line-height: 1.6; color: var(--muted); font-style: normal; }

/* ===== Licences (Growvia-only) ===== */
.g-license-list { display: flex; flex-direction: column; gap: 18px; }
.g-license-card { padding: 24px 26px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.g-license-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.g-license-plan { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.g-license-key code { font-size: 13.5px; letter-spacing: .02em; color: var(--muted); background: var(--surface-3); padding: 4px 9px; border-radius: 6px; }
.g-license-badge {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px;
  border-radius: 100px; white-space: nowrap;
}
.g-license-badge.is-active { color: var(--signal-dark); background: var(--signal-tint-bg); }
.g-license-badge.is-expired { color: #9A6B00; background: #FBF1DC; }
.g-license-badge.is-cancelled { color: var(--muted); background: var(--surface-3); }
.g-license-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding-top: 18px; border-top: 1px solid var(--border-hairline); }
.g-license-meta-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.g-license-meta-value { display: block; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.g-license-order-link { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 600; text-decoration: none; }

.g-account-license-callout {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px; padding: 16px 20px;
  background: var(--signal-tint-bg); border: 1px solid #CDEEDD; border-radius: 12px; font-size: 14px;
}
.g-account-license-callout-label { font-weight: 600; color: var(--ink-2); }
.g-account-license-callout code { background: #fff; padding: 4px 9px; border-radius: 6px; font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .g-hero-grid { grid-template-columns: 1fr; padding-top: 48px; }
  .g-stats-grid { grid-template-columns: repeat(2,1fr); }
  .g-stat { border-bottom: 1px solid var(--border); }
  .g-cols-3 { grid-template-columns: 1fr; }
  .g-blog-grid { column-count: 2; }
  .g-steps { grid-template-columns: 1fr; gap: 32px; }
  .woocommerce-account .g-account-shell .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content { grid-column: 1; grid-row: auto; }
  .woocommerce-MyAccount-navigation { position: static; }
  .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; }
  .g-license-meta { grid-template-columns: repeat(2,1fr); }
  .woocommerce-Addresses.col2-set, .u-columns { grid-template-columns: 1fr; }
  .woocommerce-Addresses .u-column1.col-1,
  .woocommerce-Addresses .u-column2.col-2 { grid-column: 1; grid-row: auto; }
  .g-account-dashboard-cards { grid-template-columns: 1fr; }
  .g-deepdive-row, .g-deepdive-row.is-reverse { grid-template-columns: 1fr; }
  .g-deepdive-row.is-reverse .g-deepdive-media { order: 0; }
  .g-plans { grid-template-columns: 1fr 1fr; }
  .g-h1 { font-size: 44px; }
  .g-h2 { font-size: 32px; }
  .g-feature-hero-grid { grid-template-columns: 1fr; }
  .g-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .g-nav, .g-header-cta .g-link-quiet { display: none; }
  .g-hamburger { display: block; }
  .g-header-row { gap: 16px; }
  .g-mobile-nav {
    position: absolute; left: 0; right: 0; top: 74px; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: 0 24px 48px -24px rgba(14,29,43,.18);
    padding: 12px 20px 24px;
  }
  .g-header.is-mobile-open .g-mobile-nav { display: block; }
  .g-mobile-nav a { display: block; padding: 12px 8px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
  .g-mobile-nav .g-mobile-sub a { padding-left: 20px; font-weight: 400; color: var(--muted-2); }
  .g-mobile-nav .g-btn-primary { margin: 10px 8px 0; text-align: center; }
  .g-plans { grid-template-columns: 1fr; }
  .g-blog-grid { column-count: 1; }
  .g-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .g-h1 { font-size: 36px; }
  .g-hero-grid { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
  .g-footer-grid { grid-template-columns: 1fr; }
  .g-table-row, .g-table-row.is-head { grid-template-columns: 1.6fr 0.5fr 0.5fr; padding: 14px 16px; font-size: 13px; }
}
