/* =========================================================================
   Astoundify — minimal black & white design system
   Base = white + near-black ink. Brand cyan→blue (from logo) used sparingly,
   only for interactive / required accents. No frameworks. WCAG 2.2 AA.
   ========================================================================= */

:root {
  /* Neutrals (the whole UI lives here) */
  --ink:     #0d1117;   /* near-black, from logo wordmark */
  --ink-soft:#1c2230;
  --muted:   #5b626e;   /* secondary text — 5.6:1 on white */
  --faint:   #8a909b;   /* tertiary */
  --bg:      #ffffff;
  --bg-soft: #f4f6f9;   /* visible-but-soft section tint */
  --bg-tint: #eaeef4;   /* deeper tint band */
  --line:    #e6e8ee;   /* hairline borders */
  --line-2:  #d7dae2;

  /* Brand accents (from the logo) — used sparingly */
  --brand:        #1f6feb;   /* primary blue */
  --brand-strong: #1660d8;   /* hover / text-on-white safe */
  --cyan:         #35d6e8;   /* highlight only, not for text */
  --grad: linear-gradient(120deg, #35d6e8 0%, #1f6feb 100%);

  /* Type — Open Sans (body) + Montserrat (headings), matching simplecalendar.io */
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --h1: clamp(2.6rem, 1.5rem + 4vw, 4.4rem);
  --h2: clamp(1.9rem, 1.3rem + 2vw, 2.8rem);

  /* Layout */
  --maxw: 1280px;
  --maxw-wide: 1460px;
  --gap: 1.6rem;
  --radius: 8px;       /* SimpleCalendar-style subtle rounding */
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 300; }
h1 { font-size: var(--h1); font-weight: 300; }
h2 { font-size: var(--h2); }
p { margin: 0 0 1rem; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; }

/* Single shared width so header, footer and EVERY section align on the same
   left/right edges. Viewport-relative (~85% of window), capped on ultra-wide. */
.container { width: 85%; max-width: 1840px; margin-inline: auto; padding-inline: 0; }
.container-wide { width: 85%; max-width: 1840px; }  /* same as .container — kept for markup compatibility */

@media (max-width: 1100px) { .container, .container-wide { width: 90%; } }
@media (max-width: 700px)  { .container, .container-wide { width: auto; padding-inline: 1.25rem; } }
.center { text-align: center; }

/* Container for any content page (privacy, terms, docs, long-form copy) — smaller than
   the site's 1840 max, capped ~1300 */
.container-content { width: 88%; max-width: 1300px; margin-inline: auto; }
@media (max-width: 700px) { .container-content { width: auto; padding-inline: 1.25rem; } }

/* Page header for content/legal pages */
.page-head { padding: clamp(2.25rem, 4vw, 3.5rem) 0 clamp(1.25rem, 2vw, 1.75rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 1.7rem + 2.5vw, 3.4rem); margin: .4rem 0 .5rem; }
.page-meta { color: var(--faint); font-size: .9rem; margin: 0; }

/* =========================================================================
   PROSE — styles for page/post content only. EVERYTHING here is scoped under
   .prose so it themes WordPress entry content (add class="prose" to the content
   wrapper) WITHOUT touching the site's own components elsewhere. Don't move any
   of these selectors out of .prose.
   ========================================================================= */
.prose { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 5rem); font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

/* Headings */
.prose h1 { font-family: var(--font-heading); font-size: clamp(2.6rem, 1.8rem + 2.5vw, 3.6rem); line-height: 1.2; letter-spacing: -.02em; margin: 2.6rem 0 .7rem; }
.prose h2 { font-family: var(--font-heading); font-size: 2.1rem; line-height: 1.25; margin: 2.4rem 0 .7rem; }
.prose h3 { font-family: var(--font-heading); font-size: 1.6rem; margin: 1.9rem 0 .5rem; }
.prose h4 { font-family: var(--font-heading); font-size: 1.35rem; margin: 1.6rem 0 .4rem; font-weight: 300; }
.prose h5 { font-family: var(--font-heading); font-size: 1.18rem; margin: 1.5rem 0 .4rem; font-weight: 300; }
.prose h6 { font-family: var(--font-heading); font-size: 1.05rem; margin: 1.4rem 0 .4rem; font-weight: 300; }

/* Inline text */
.prose p { margin: 0 0 1.1rem; color: var(--ink-soft); }
/* Links — but not when they're buttons (.btn keeps its own colors) */
.prose a:not(.btn) { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.btn):hover { color: var(--brand); }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose em, .prose i { font-style: italic; }
.prose small { font-size: .85em; color: var(--muted); }
.prose mark { background: #fff3bf; color: var(--ink); padding: 0 .2em; border-radius: 3px; }
.prose sub, .prose sup { font-size: .72em; line-height: 0; }
.prose abbr[title] { text-decoration: underline dotted; cursor: help; }
.prose del { color: var(--faint); }
.prose ins { background: #e7f7ef; text-decoration: none; padding: 0 .15em; border-radius: 3px; }
.prose kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82em; background: var(--bg-soft); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: .1em .4em; }

/* Lists */
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.4rem; color: var(--ink-soft); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .35rem 0; }
.prose li > ul, .prose li > ol { margin: .35rem 0; }
.prose dl { margin: 0 0 1.1rem; }
.prose dt { font-weight: 700; color: var(--ink); }
.prose dd { margin: 0 0 .6rem; padding-left: 1rem; color: var(--ink-soft); }

/* Blockquote */
.prose blockquote { margin: 1.6rem 0; padding: .35rem 0 .35rem 1.25rem; border-left: 3px solid var(--brand); color: var(--ink-soft); font-size: 1.08rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: .5rem; font-size: .9rem; color: var(--muted); font-style: normal; }

/* Code */
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: .12em .4em; }
.prose pre { margin: 0 0 1.3rem; padding: 1.1rem 1.25rem; background: var(--ink); color: #e6e8ee; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 1em; }

/* Media */
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figure { margin: 1.6rem 0; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: .5rem; font-size: .88rem; color: var(--muted); text-align: center; }

/* Horizontal rule */
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

/* Tables (wrap in .table-wrap or WP's figure.wp-block-table for horizontal scroll) */
.prose .table-wrap, .prose figure.wp-block-table { overflow-x: auto; margin: 0 0 1.3rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.prose thead th { font-family: var(--font-heading); border-bottom: 2px solid var(--line-2); }
.prose tbody tr:hover { background: var(--bg-soft); }
.prose caption { caption-side: bottom; margin-top: .6rem; font-size: .85rem; color: var(--muted); }

/* Form controls inside content */
.prose label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.prose input[type="text"], .prose input[type="email"], .prose input[type="url"], .prose input[type="search"],
.prose input[type="tel"], .prose input[type="number"], .prose input[type="password"], .prose input[type="date"],
.prose textarea, .prose select {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; margin-bottom: 1rem;
}
.prose textarea { min-height: 120px; resize: vertical; }
.prose input:focus-visible, .prose textarea:focus-visible, .prose select:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 1px; }
.muted-note { color: var(--muted); font-size: .88rem; max-width: 62ch; margin-inline: auto; }

/* Accessibility */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .96rem; line-height: 1;
  padding: .82rem 1.35rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-block { width: 100%; }
/* Primary = the one place brand blue leads */
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
/* Secondary = pure black/white outline */
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #f0f1f4; border-color: #f0f1f4; }

/* Pills / badges — minimal, mono by default */
.pill { font-size: .66rem; font-weight: 700; padding: .14rem .5rem; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; }
.pill-best { background: #eef3fe; color: var(--brand-strong); display: inline-flex; align-items: center; gap: .25rem; }
.pill-best::before { content: "★"; font-size: .8em; line-height: 1; }
.pill-new  { background: #eaf1fe; color: var(--brand-strong); }
.pill-cat  { background: var(--bg-tint); color: var(--ink); }

/* =========================================================================
   ANNOUNCEMENT BAR
   ========================================================================= */
.announce { background: var(--grad); color: #fff; position: relative; }
.announce[hidden] { display: none; }
.announce-inner { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: .5rem 2.75rem; }
.announce-text { margin: 0; font-size: .9rem; line-height: 1.4; text-align: center; display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.announce-text strong { color: #fff; font-weight: 700; }
.announce-ico { flex: none; opacity: .95; }
.announce-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.announce-link:hover { color: #fff; }
.announce-close { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: #fff; cursor: pointer; opacity: .85; transition: background .15s ease, opacity .15s ease; }
.announce-close:hover { opacity: 1; background: rgba(255,255,255,.18); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.site-header::before { content: ""; display: block; height: 4px; background: var(--grad); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 28px; width: auto; }

.primary-nav { margin-inline: auto; }
.nav-list { display: flex; gap: .15rem; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--ink); font-weight: 550; font-size: .96rem;
  padding: .5rem .8rem; border-radius: 8px; background: none; border: 0; cursor: pointer;
  font-family: inherit;
}
.nav-link:hover { color: var(--brand-strong); text-decoration: none; }
.chevron { transition: transform .15s ease; color: var(--faint); }
.nav-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.link-quiet { color: var(--muted); font-weight: 550; font-size: .93rem; }
.link-quiet:hover { color: var(--ink); }

/* Mega menu — two-pane: theme grid + featured promo */
.has-menu { position: relative; }
.mega-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  width: min(600px, 94vw);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(13,17,23,.13); padding: 1rem;
  display: grid; grid-template-columns: 1.35fr .9fr; gap: 1rem;
}
.mega-menu[hidden] { display: none; }
.mega-main { display: flex; flex-direction: column; }
.mega-grid { display: grid; grid-template-columns: 1fr; gap: .1rem; }
.mega-item { display: flex; gap: .75rem; align-items: center; padding: .55rem; border-radius: var(--radius-sm); color: var(--ink); }
.mega-item:hover { background: var(--bg-soft); text-decoration: none; }
.mega-thumb { width: 56px; height: 40px; border-radius: 6px; flex: none; }
.mega-text { display: flex; flex-direction: column; line-height: 1.3; }
.mega-text strong { font-weight: 600; font-size: .94rem; display: inline-flex; align-items: center; gap: .35rem; }
.mega-text > span { color: var(--muted); font-size: .8rem; }
.mega-all { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; padding: .5rem; font-weight: 600; font-size: .9rem; color: var(--brand-strong); transition: gap .15s ease; }
.mega-all:hover { text-decoration: none; gap: .55rem; }
.mega-aside { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .45rem; }
.mega-aside-badge { align-self: flex-start; background: var(--grad); color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .03em; padding: .2rem .55rem; border-radius: 999px; }
.mega-aside strong { font-family: var(--font-heading); font-size: 1.02rem; line-height: 1.25; margin-top: .1rem; }
.mega-aside p { color: var(--muted); font-size: .84rem; margin: 0; }
.mega-aside .btn { margin-top: .3rem; }
.mega-aside-note { font-size: .76rem; margin: 0; }

/* Simple dropdown (Resources, My account) */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(13,17,23,.13); padding: .4rem;
  display: flex; flex-direction: column;
}
.dropdown[hidden] { display: none; }
.dropdown a { padding: .6rem .7rem; border-radius: var(--radius-sm); color: var(--ink); font-size: .93rem; font-weight: 500; }
.dropdown a:hover { background: var(--bg-soft); text-decoration: none; }
.dropdown-right { left: auto; right: 0; transform: none; }

/* My account toggle */
.account-menu { position: relative; }
.account-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-weight: 500; font-size: .93rem; color: var(--ink);
  padding: .5rem .7rem; border-radius: var(--radius-sm);
}
.account-toggle:hover { background: var(--bg-soft); }
.account-toggle .acc-ico { width: 18px; height: 18px; }
.account-toggle .chevron { color: var(--faint); }
.account-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Header icon buttons + cart badge */
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); color: var(--ink); }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* Mobile */
.menu-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
/* ---- Off-canvas multi-level drawer ---- */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
  width: min(86vw, 340px);
  background: #fff; box-shadow: 0 0 60px rgba(13,17,23,.28);
  transform: translateX(-100%); visibility: hidden;
  transition: transform .28s ease, visibility .28s ease;
  overflow: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 59; background: rgba(13,17,23,.45);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer-panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; overflow-y: auto; }
.drawer-sub { transform: translateX(100%); visibility: hidden; transition: transform .26s ease, visibility .26s ease; }
.drawer-sub.is-active { transform: translateX(0); visibility: visible; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); min-height: 60px; }
.drawer-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; }
.drawer-close { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); }
.drawer-close:hover { background: var(--bg-soft); }
.drawer-close svg { width: 22px; height: 22px; }
.drawer-back { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 1rem; color: var(--ink); padding: .3rem .2rem; }
.drawer-back svg { width: 20px; height: 20px; color: var(--brand); }

.drawer-nav { display: flex; flex-direction: column; padding: .6rem; gap: .1rem; }
.drawer-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem .8rem; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; font-size: 1rem; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.drawer-item:hover, .drawer-item:active { background: var(--bg-soft); text-decoration: none; }
.drawer-item svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.drawer-foot { margin-top: auto; padding: 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .6rem; }

/* =========================================================================
   HERO — white, airy, type-led
   ========================================================================= */
.hero {
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(53,214,232,.12), transparent 60%),
    radial-gradient(820px 520px at 6% -4%, rgba(31,111,235,.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 7vw, 7.5rem) 0 clamp(3.5rem, 5vw, 5.5rem);
}
/* Theme pages: tighter top so the purchase module sits higher in the fold */
.hero-compact { padding-top: clamp(2.25rem, 4vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.eyebrow { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: #eef3fe; color: var(--brand-strong); font-weight: 600; font-size: .82rem; padding: .35rem .8rem .35rem .65rem; border-radius: 999px; margin-bottom: 1.1rem; }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.hero h1 { letter-spacing: -.03em; }
.lede { font-size: 1.18rem; color: var(--muted); }
.lede strong { color: var(--ink); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 1.6rem; }
.center-cta { justify-content: center; }
.trust-strip { display: flex; gap: 2rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.trust-strip strong { color: var(--ink); }

/* Hero visual — one large screenshot left + two stacked right. Images fit
   inside their box (contain) so nothing is cropped. */
.hero-visual { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 460px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(13,17,23,.10); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-1 { grid-column: 1; grid-row: 1 / 3; }  /* large, full-height left */
.shot-2 { grid-column: 2; grid-row: 1; }       /* top-right */
.shot-3 { grid-column: 2; grid-row: 2; }       /* bottom-right */

/* =========================================================================
   BUY-DIRECT BANNER — minimal hairline strip
   ========================================================================= */
.direct-banner { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.direct-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .9rem 1.5rem; flex-wrap: wrap; }
.direct-inner p { margin: 0; font-size: .98rem; color: var(--ink); }
.badge-save { background: var(--grad); color: #fff; font-weight: 700; font-size: .74rem; padding: .2rem .55rem; border-radius: 999px; margin-right: .5rem; }
.direct-inner .btn-light { border-color: var(--line-2); }

/* =========================================================================
   SECTIONS
   ========================================================================= */
/* Uniform section spacing (matches the Themes section): smaller top, larger bottom */
.section { padding: clamp(2rem, 3vw, 3rem) 0 clamp(3.5rem, 5.5vw, 6rem); }
/* NOTE: content-visibility:auto was removed here. It skips layout of off-screen
   sections and reserves a guessed height, which makes in-page anchor links (e.g.
   "See pricing") land in the wrong place because the target's real position isn't
   known until intervening sections render. Accurate scrolling > marginal paint win
   on a page this short. */
.section-tint { background: var(--bg-soft); }
/* Anchored sections land below the sticky header instead of under it */
section[id] { scroll-margin-top: 86px; }
.section-head { max-width: 56ch; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* Theme cards — clean, hairline, mono placeholders */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.theme-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.theme-card:hover { border-color: var(--line-2); box-shadow: 0 14px 40px rgba(13,17,23,.07); }
.theme-shot { display: block; position: relative; overflow: hidden; }
.theme-shot img { width: 100%; height: auto; display: block; }
/* Banner shown full-width but clipped to the same 2:1 box as other covers, from the top */
.theme-shot-top { aspect-ratio: 700 / 356; }
.theme-shot-top img { height: 100%; object-fit: cover; object-position: top center; }
.theme-body { padding: 1.2rem 1.3rem 1.4rem; }
.theme-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.theme-meta h3 { margin: 0; font-size: 1.2rem; }
.theme-body p { color: var(--muted); font-size: .94rem; }
.theme-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.price { color: var(--muted); font-size: .88rem; }
.price strong { color: var(--ink); font-size: 1.1rem; }
.theme-links { font-size: .9rem; font-weight: 600; color: var(--faint); }
.theme-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.theme-links a:hover { color: var(--ink); }

/* Monochrome placeholders — neutral, with a single thin brand accent line.
   Real WebP/AVIF screenshots replace these in production. */
.theme-shot, .mega-thumb, .post-thumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.mega-thumb, .post-thumb { background:
  repeating-linear-gradient(135deg, #e8edf6 0 7px, #f3f7fc 7px 14px); }

/* Why-buy-direct */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; }
.value-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: #eef3fe; color: var(--brand); margin-bottom: 1.1rem; }
.value-ico svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.08rem; }
.value-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Add-ons */
/* Add-on cards reuse .card-grid / .theme-card. They only need Free/Paid pills
   (inline, next to the title) and an "All-Access" link in the footer. */
.pill-free { background: #e7f7ef; color: #0f766e; }
.pill-paid { background: #eaf1fe; color: var(--brand-strong); }
.addon-allaccess { font-size: .9rem; font-weight: 600; color: var(--brand-strong); }
.addon-allaccess:hover { text-decoration: underline; }
.card-grid + .center, .demo-grid + .center { margin-top: 2.4rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); align-items: stretch; }
/* Centered variant for a short row (e.g. only Pro + Personal shown) — cards keep a natural width and sit centered. */
.price-grid-center { grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.6rem; display: flex; flex-direction: column; }
.price-featured { border-color: var(--ink); }
.ribbon { position: absolute; top: -.75rem; left: 1.6rem; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .04em; }
.ribbon-alt { background: var(--bg-tint); color: var(--ink); }
.price-card h3 { font-size: 1.15rem; }
.price-big { font-size: 2.5rem; font-weight: 800; margin: .3rem 0 .1rem; letter-spacing: -.03em; }
.price-big span { font-size: .92rem; font-weight: 550; color: var(--muted); margin-left: .25rem; }
.price-sub { color: var(--muted); font-size: .9rem; }
.price-sub s { color: var(--faint); }
.price-list { margin: 1.1rem 0 1.6rem; display: grid; gap: .6rem; }
.price-list li { position: relative; padding-left: 1.6rem; font-size: .93rem; }
.price-list li strong { font-weight: 700; }
/* Not-included rows: muted text with a dash instead of the brand check */
.price-list li.no { color: var(--faint); }
.price-list li.no::before { background: none; -webkit-mask: none; mask: none; content: "–"; left: .2rem; top: -.05rem; width: auto; height: auto; color: var(--line-2); font-weight: 700; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1rem; height: 1rem;
  background: var(--brand);
  -webkit-mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.5 2.7 8l1.1-1.1 2.4 2.4 5.9-5.9L13.2 4.6z' fill='%23000'/%3E%3C/svg%3E");
          mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.5 2.7 8l1.1-1.1 2.4 2.4 5.9-5.9L13.2 4.6z' fill='%23000'/%3E%3C/svg%3E"); }
.price-card .btn { margin-top: auto; }

/* Horizontal custom-plan bar below the grid */
.custom-plan { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: var(--gap); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.8rem; }
.custom-plan-text h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.custom-plan-text p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 70ch; }
.custom-plan .btn { flex: none; }
.price-grid ~ .muted-note { margin-top: 2rem; }

/* Quotes */
.quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 2.8rem; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.quote-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .85rem; }
.quote-stars { color: #f59e0b; font-size: .9rem; letter-spacing: .08em; }
.quote-badge { background: #eef3fe; color: var(--brand-strong); }
.quote-title { font-size: 1.02rem; line-height: 1.3; margin: 0 0 .5rem; }
.quote-card p { font-size: .95rem; flex: 1; margin: 0 0 1rem; }
.quote-card footer { color: var(--muted); font-size: .88rem; }
.quote-card strong { color: var(--ink); }

/* Migrate — the single dark band (still black & white) */
.migrate { background: var(--ink); color: #cdd1da; padding: clamp(2rem, 3vw, 3rem) 0 clamp(3.5rem, 5.5vw, 6rem); }
.migrate-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.migrate h2 { color: #fff; }
.migrate p { color: #aab0bd; margin: 0; }
.migrate-form label { display: block; font-size: .88rem; margin-bottom: .55rem; color: #cdd1da; }
.field-row { display: flex; gap: .5rem; }
.field-row input { flex: 1; min-width: 0; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid #2b3242; background: #161b27; color: #fff; font-size: 1rem; font-family: inherit; }
.field-row input::placeholder { color: #6b7283; }
.field-row input:focus-visible { outline: 2.5px solid var(--cyan); outline-offset: 1px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease, box-shadow .15s ease; }
.post-card:hover { border-color: var(--line-2); box-shadow: 0 12px 30px rgba(13,17,23,.07); }
.post-thumb-link { display: block; }
.post-thumb { display: block; height: 160px; }
.post-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.04rem; line-height: 1.35; margin: 0 0 .45rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand-strong); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.post-readmore { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; color: var(--brand-strong); font-weight: 600; font-size: .9rem; transition: gap .15s ease; }
.post-readmore:hover { gap: .55rem; text-decoration: none; }
.post-grid-cta { margin-top: 2.4rem; }

/* Final CTA — minimal, white, centered */
.final-cta { background: #fff; border-top: 1px solid var(--line); padding: clamp(2rem, 3vw, 3rem) 0 clamp(3.5rem, 5.5vw, 6rem); text-align: center; }
.final-cta p { color: var(--muted); font-size: 1.1rem; }

/* =========================================================================
   THEMES PAGE — breadcrumb, pricing CTA band, FAQ
   ========================================================================= */
.hero-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; margin-bottom: 1.1rem; color: var(--muted); }
.hero-breadcrumb a { color: var(--muted); }
.hero-breadcrumb a:hover { color: var(--brand-strong); }
.hero-breadcrumb .sep { color: var(--faint); }
.hero-breadcrumb [aria-current] { color: var(--ink); }

#addons { padding-bottom: clamp(1.75rem, 3vw, 3rem); }  /* tighter bottom on the themes page only */
.cta-pricing-inner { margin-top: 2rem; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 1.4rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.cta-pricing-inner h2 { color: var(--ink); margin: 0 0 .25rem; font-size: 1.15rem; }
.cta-pricing-text p { color: var(--muted); margin: 0; max-width: 60ch; font-size: .92rem; }
.cta-pricing-inner .btn { flex: none; }

.faq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.faq-head { margin-bottom: 1.5rem; }
.faq-head h2 { margin-bottom: .35rem; }
.faq-head p { color: var(--muted); margin: 0; }
.faq-support { background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; }
.faq-support-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; margin-bottom: .2rem; box-shadow: 0 8px 20px rgba(31,111,235,.25); }
.faq-support-ico svg { width: 28px; height: 28px; }
.faq-support h2 { font-size: 1.3rem; margin: 0; }
.faq-support p { color: var(--muted); margin: 0 0 .5rem; font-size: .95rem; max-width: 42ch; }
.faq-support-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.faq { display: grid; gap: .6rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: var(--ink); font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; padding: 1.05rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-q::after { content: "+"; color: var(--brand); font-size: 1.5rem; font-weight: 400; line-height: 1; flex: none; transition: transform .25s ease; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }  /* + becomes × */
/* Smooth open/close — animate a single grid track (no layout thrash) */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a-inner p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* =========================================================================
   FOOTER — light, minimal, hairline top
   ========================================================================= */
.site-footer { background: var(--ink); color: #9aa1b0; padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 2.5rem; }
.footer-brand { border-right: 1px solid #222a3a; padding-right: 3rem; margin-right: .5rem; }
.footer-desc { font-size: .92rem; max-width: 34ch; margin: 1.1rem 0 1.3rem; color: #9aa1b0; }
.brand-logo-invert { filter: brightness(0) invert(1); opacity: .92; }
.newsletter label { display: block; font-size: .85rem; margin-bottom: .55rem; color: #fff; font-weight: 550; }
.newsletter .field-row input { background: #161b27; border: 1px solid #2b3242; color: #fff; }
.newsletter .field-row input::placeholder { color: #6b7283; }
.newsletter .field-row input:focus-visible { outline-color: var(--cyan); }
.footer-col h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; font-weight: 700; }
/* Toggle is inert on desktop (columns always open); becomes an accordion on mobile */
.footer-col-toggle { display: block; width: 100%; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: default; }
.footer-col-toggle h2 { margin-bottom: 1rem; }
.footer-chev { display: none; }
.footer-col a { color: #9aa1b0; font-size: .93rem; display: inline-block; padding: .25rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: center; text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #222a3a; }
.footer-bottom p { margin: 0; font-size: .88rem; }

/* Floating back-to-top */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 45;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--brand); color: #fff; border: 2px solid rgba(255,255,255,.85); border-radius: 50%;
  box-shadow: 0 8px 24px rgba(13,17,23,.30);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .15s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-strong); text-decoration: none; }

/* Newsletter — Gravity Forms (form id 10), themed for the dark footer */
.newsletter-heading { font-size: .85rem; font-weight: 550; color: #fff; margin: 0 0 .6rem; }
.newsletter-gform { position: relative; }
.newsletter-gform .gform_fields { list-style: none; margin: 0; padding: 0; }
.newsletter-gform .gfield { margin: 0; }
.newsletter-gform .ginput_container_email input,
.newsletter-gform input[type="email"] {
  width: 100%; height: 50px; padding: 0 7.6rem 0 1rem; border-radius: var(--radius-sm);
  border: 1px solid #2b3242; background: #161b27; color: #fff; font-size: .95rem; font-family: inherit;
}
.newsletter-gform input::placeholder { color: #6b7283; }
.newsletter-gform input:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 1px; }
/* Submit sits inside the input, on the right */
.newsletter-gform .gform_footer { position: absolute; top: 5px; right: 5px; bottom: 5px; margin: 0; padding: 0; }
.newsletter-gform .gform_button {
  height: 100%; padding: 0 1.1rem; border: 0; border-radius: 6px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: .96rem; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: background .15s ease;
}
.newsletter-gform .gform_button:hover { background: var(--brand-strong); }
/* Hide the invisible-reCAPTCHA field box if your real form includes it inline */
.newsletter-gform .gfield--type-captcha { display: none; }
/* Accessible visually-hidden labels (Gravity Forms / WP convention) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================================
   THEME PAGE (individual) — single hero shot, demos, features, 2-card pricing
   ========================================================================= */
/* Hero purchase module — two comparison cards (buy direct vs ThemeForest) that
   replace the hero screenshot. Unlike .hero-visual it stays visible on mobile
   (it's the conversion point); it stacks below 600px. */
.hero-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.buy-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.3rem 1.4rem; }
.buy-card-direct { border-color: var(--ink); box-shadow: 0 18px 50px rgba(13,17,23,.12); }
.buy-badge, .buy-tag { align-self: flex-start; font-size: .66rem; font-weight: 700; letter-spacing: .03em; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .8rem; }
.buy-badge { background: var(--grad); color: #fff; }
.buy-tag { background: var(--bg-tint); color: var(--muted); }
.buy-head { font-family: var(--font-heading); font-weight: 700; font-size: .95rem; margin: 0 0 .5rem; }
.buy-price { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin: 0 0 .15rem; }
.buy-price span { font-size: .82rem; font-weight: 550; color: var(--muted); margin-left: .25rem; }
.buy-price-note { color: var(--muted); font-size: .82rem; margin: 0 0 1.1rem; }
.buy-card .price-list { margin: 0 0 1.3rem; }
.buy-card .btn { margin-top: auto; }
.buy-foot { margin: .7rem 0 0; font-size: .72rem; color: var(--faint); text-align: center; }
/* Full-width nudge under the two cards → scrolls to the pricing plans */
.buy-more { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .1rem; color: var(--brand-strong); font-weight: 600; font-size: .92rem; transition: gap .15s ease; }
.buy-more:hover { text-decoration: none; gap: .6rem; }

/* Demo grid — like .card-grid (4-up) but centers the row when the last one is
   incomplete (e.g. 3 demos → centered, not left-aligned with an empty 4th cell).
   Cards keep the exact same width as a full 4-up grid. */
.demo-grid, .post-grid-center { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.demo-grid > *, .post-grid-center > * { flex: 0 1 calc((100% - 3 * var(--gap)) / 4); max-width: calc((100% - 3 * var(--gap)) / 4); }

/* Demo cards — reuse .theme-card, but image + title + view-demo only */
.demo-card .theme-body { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1rem 1.2rem; }
.demo-card .theme-meta { margin: 0; }
.demo-view { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand-strong); font-weight: 600; font-size: .92rem; transition: gap .15s ease; white-space: nowrap; }
.demo-view:hover { gap: .55rem; text-decoration: none; }

/* Feature showcase — 4-up, compact. The icon sits BESIDE the text (grid col 1
   spanning both text rows) instead of above it, which keeps the 16-item section
   short. No per-card markup change needed. */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-card { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: .85rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.2rem 1.1rem; }
.feature-ico { grid-row: 1 / 3; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #eef3fe; color: var(--brand); }
.feature-ico svg { width: 20px; height: 20px; }
.feature-card h3 { grid-column: 2; font-size: .96rem; margin: 0 0 .15rem; }
.feature-card p { grid-column: 2; color: var(--muted); font-size: .84rem; line-height: 1.45; margin: 0; }

/* Pricing page — centered hero + segmented Themes/Add-ons toggle */
.hero-center { text-align: center; }
.hero-center .hero-breadcrumb { justify-content: center; }
.hero-center .lede { margin-inline: auto; max-width: 62ch; }
/* Pricing hero holds the plan grid too — keep it tight so cards land in the first fold */
.pricing-hero { padding-top: clamp(1.5rem, 2.5vw, 2.5rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.pricing-hero h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); margin-bottom: .4rem; }
.pricing-hero .lede { font-size: 1.05rem; margin-bottom: 2.2rem; }
/* .hero-center centers the intro, but cards/checklists must stay left-aligned */
.pricing-hero .price-card, .pricing-hero .custom-plan { text-align: left; }
.toggle-wrap { margin-bottom: 2.6rem; }
.toggle-tabs { display: inline-flex; gap: .25rem; padding: .3rem; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; }
.toggle-tab { border: 0; background: none; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .95rem; color: var(--brand-strong); padding: .55rem 1.5rem; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.toggle-tab:hover { background: #eef3fe; }
.toggle-tab.is-active, .toggle-tab.is-active:hover { background: var(--brand); color: #fff; }
.tab-panel[hidden] { display: none; }

/* Add-on page — clean 3-up feature cards (image + title + one-liner) */
.addon-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.addon-feature { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.addon-feature:hover { border-color: var(--line-2); box-shadow: 0 14px 40px rgba(13,17,23,.07); }
.addon-feature-media { margin: 0; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.addon-feature-media img { display: block; width: 100%; height: auto; }
.addon-feature-body { padding: 1.2rem 1.3rem 1.4rem; }
.addon-feature-body h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.addon-feature-body p { color: var(--muted); font-size: .93rem; margin: 0; }


/* =========================================================================
   BLOG — listing cards (reuse .post-grid/.post-card from home) + single post
   ========================================================================= */
/* Card meta line: category pill + date */
.post-meta { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--faint); margin: 0 0 .5rem; }
.post-cat { display: inline-flex; align-items: center; background: #eef3fe; color: var(--brand-strong); font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: .2rem .55rem; border-radius: 999px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: .92rem; }
.pagination a:hover { border-color: var(--ink); text-decoration: none; }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-disabled { color: var(--faint); border-color: var(--line); }

/* Single post */
.article-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin-top: .7rem; }
.article-meta .sep { color: var(--faint); }
.article-cover { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-cover img { display: block; width: 100%; height: auto; }

/* TL;DR — its own article-summary wrapper (sits under the cover image, above the
   content). Its body is a .prose block, so the summary follows post-content rules. */
.tldr { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 0 0 clamp(1.5rem, 3vw, 2rem); }
.tldr-label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .45rem; font-family: var(--font-heading); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong); }
.tldr-label svg { width: 15px; height: 15px; }
.tldr .prose { padding: 0; font-size: .98rem; }

/* Single-post two-column: sticky Table of Contents + article */
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.article-col { min-width: 0; }
.article-col .article-cover { margin: 0 0 clamp(1.5rem, 3vw, 2rem); }
.article-layout .prose { padding-top: 0; }
.article-layout [id] { scroll-margin-top: 90px; }
.toc { position: sticky; top: 90px; }
.toc-title { margin: 0 0 .8rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; }
/* Vertical rail (spine) down the left; the active item lights up a segment of it */
.toc-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc-list a { position: relative; display: block; margin-left: -2px; padding: .4rem .5rem .4rem 1.3rem; border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background-clip: padding-box; color: var(--ink); font-size: .95rem; line-height: 1.45; transition: color .15s ease, border-color .15s ease, background .15s ease; }
/* Dot marker — anchors each item at its indent so depth reads visually, not as blank space */
.toc-list a::before { content: ""; position: absolute; left: .5rem; top: 50%; transform: translateY(-50%); box-sizing: border-box; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.toc-list a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.toc-list a.is-active { color: var(--brand-strong); font-weight: 600; border-left-color: var(--brand); background: #eef3fe; }
/* Each level gets its own bullet: dot → ring → dash → small dash → tiny dot */
.toc-list a.toc-lvl-3 { padding-left: 2.2rem; font-size: .9rem; }
.toc-list a.toc-lvl-3::before { left: 1.4rem; width: 7px; height: 7px; background: transparent; border: 1.5px solid var(--line-2); }
.toc-list a.toc-lvl-4 { padding-left: 3rem; font-size: .89rem; }
.toc-list a.toc-lvl-4::before { left: 2.2rem; width: 8px; height: 2px; border-radius: 1px; }
.toc-list a.toc-lvl-5 { padding-left: 3.8rem; font-size: .88rem; }
.toc-list a.toc-lvl-5::before { left: 3rem; width: 6px; height: 2px; border-radius: 1px; }
.toc-list a.toc-lvl-6 { padding-left: 4.6rem; font-size: .87rem; }
.toc-list a.toc-lvl-6::before { left: 3.95rem; width: 4px; height: 4px; }
/* Bullet hover/active colours come AFTER the level shapes so they win for every level */
.toc-list a:hover::before { background: var(--faint); border-color: var(--faint); }
.toc-list a.is-active::before { background: var(--brand); border-color: var(--brand); transform: translateY(-50%) scale(1.3); }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .toc { position: static; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
}

/* =========================================================================
   EASY DIGITAL DOWNLOADS (EDD)
   Themes the default EDD shortcodes (checkout, cart, purchase/login/register
   forms, history & receipt tables) in our design language. Scoped to EDD's own
   selectors, so it never affects the site's own components. Reference only was
   taken from a third-party theme; values here use OUR tokens.
   ========================================================================= */

/* ---- Buttons (purchase / add-to-cart / submit) → our primary button ---- */
.edd-submit, input.edd-submit, a.edd-submit, .edd-submit.button,
#edd-purchase-button, #edd_purchase_submit input[type="submit"],
.edd_download_purchase_form .edd-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: 600; font-size: .96rem; line-height: 1;
  padding: .82rem 1.35rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--brand); background: var(--brand); color: #fff;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.edd-submit:hover, input.edd-submit:hover, a.edd-submit:hover, .edd-submit.button:hover,
#edd-purchase-button:hover, #edd_purchase_submit input[type="submit"]:hover {
  background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; text-decoration: none;
}
#edd-purchase-button, .edd_download_purchase_form .edd-submit { width: 100%; }
#edd-purchase-button[data-edd-button-state="disabled"], .edd-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Prices & price-option list (variable pricing) ---- */
.edd_price, .edd_download_purchase_form .edd_price { font-weight: 700; color: var(--ink); }
.edd_price_options ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.edd_price_options li { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.edd_price_options li:hover { border-color: var(--ink); }
.edd_price_options input[type="radio"], .edd_price_options input[type="checkbox"] { accent-color: var(--brand); }

/* ---- Cart, history, receipt & generic EDD tables ---- */
#edd_checkout_cart, #edd_user_history, #edd_download_history, .edd-table,
#edd_purchase_receipt, #edd_purchase_receipt_products, #edd_subscription_receipt,
.edd-recurring-subscription-transactions {
  width: 100%; border-collapse: collapse; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 1.6rem;
  font-size: .95rem;
}
#edd_checkout_cart th, #edd_checkout_cart td,
#edd_user_history th, #edd_user_history td,
#edd_download_history th, #edd_download_history td,
.edd-table th, .edd-table td,
#edd_purchase_receipt th, #edd_purchase_receipt td,
#edd_purchase_receipt_products th, #edd_purchase_receipt_products td,
#edd_subscription_receipt th, #edd_subscription_receipt td,
.edd-recurring-subscription-transactions th, .edd-recurring-subscription-transactions td {
  padding: .85rem 1.1rem; border: 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: middle;
}
#edd_checkout_cart thead th, #edd_user_history thead th, #edd_download_history thead th,
.edd-table thead th, #edd_purchase_receipt thead th, #edd_subscription_receipt thead th,
.edd-recurring-subscription-transactions thead th, .edd_cart_header_row th {
  background: var(--bg-soft); font-family: var(--font-heading); font-weight: 700; color: var(--ink);
}
.edd_checkout_cart_item_title, .edd_purchase_receipt_product_name { font-weight: 600; color: var(--ink); }
.edd_cart_item_price { font-weight: 700; color: var(--ink); }
.edd_cart_actions { text-align: right; }
.edd_cart_footer_row th { background: var(--bg-soft); border-bottom: 0; }
.edd_cart_total { font-family: var(--font-heading); font-weight: 700; color: var(--ink); text-align: right; }
.edd_cart_amount { color: var(--brand); font-weight: 700; }
.edd_cart_remove_item_btn { color: #c4554e; font-size: .82rem; font-weight: 600; text-decoration: none; }
.edd_cart_remove_item_btn:hover { color: #a93830; text-decoration: underline; }

/* ---- Checkout / login / register / profile forms ---- */
#edd_checkout_form_wrap, #edd_login_form, #edd_register_form, #edd_profile_editor_form { margin-top: 1.5rem; }
#edd_checkout_form_wrap fieldset, #edd_login_form fieldset, #edd_register_form fieldset, #edd_profile_editor_form fieldset {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin: 0 0 1.5rem; background: #fff;
}
#edd_checkout_form_wrap fieldset fieldset { border: 0; padding: 0; margin: 0; background: none; }
#edd_checkout_form_wrap legend, #edd_login_form legend, #edd_register_form legend, #edd_profile_editor_form legend {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.12rem; color: var(--ink); padding: 0; width: auto; margin: 0 0 1rem;
}
#edd_checkout_form_wrap label, #edd_login_form label, #edd_register_form label, #edd_profile_editor_form label {
  display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin: 0 0 .35rem;
}
.edd-required-indicator { color: #c4554e; }
.edd-description { display: block; font-size: .82rem; color: var(--muted); margin: 0 0 .6rem; }
.edd-input, input.edd-input, select.edd-select, textarea.edd-input,
#edd_checkout_form_wrap input[type="text"], #edd_checkout_form_wrap input[type="email"],
#edd_checkout_form_wrap input[type="tel"], #edd_checkout_form_wrap input[type="password"] {
  display: block; width: 100%; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.edd-input:focus, select.edd-select:focus, textarea.edd-input:focus,
#edd_checkout_form_wrap input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,235,.12); }
.edd-input.error { border-color: #c4554e; box-shadow: 0 0 0 3px rgba(196,85,78,.12); }
#edd_checkout_user_info p, fieldset > p.edd-form-field, .cc-address > div { margin: 0 0 1.1rem; }
#edd_checkout_form_wrap input[type="radio"], #edd_checkout_form_wrap input[type="checkbox"] { accent-color: var(--brand); }

/* ---- Discount code, secure-site, totals, terms ---- */
#edd_show_discount, #edd_secure_site_wrapper {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem 1rem; margin-bottom: 1.25rem;
}
#edd_secure_site_wrapper { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
#edd_secure_site_wrapper .padlock svg { fill: var(--brand); }
#edd_final_total_wrap {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
#edd_final_total_wrap strong { font-family: var(--font-heading); font-weight: 700; color: var(--ink); }
#edd_final_total_wrap .edd_cart_amount { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--brand); }
.edd-terms { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; margin-bottom: 1rem; max-height: 300px; overflow-y: auto; font-size: .85rem; line-height: 1.6; color: var(--muted); }
.edd-terms-agreement, .edd-privacy-policy-agreement { display: flex; align-items: flex-start; gap: .6rem; }
.edd-terms-agreement input[type="checkbox"], .edd-privacy-policy-agreement input[type="checkbox"] { margin-top: .2rem; accent-color: var(--brand); flex: none; }
.edd-payment-icons { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1.25rem; }

/* ---- Notices / alerts ---- */
.edd_errors, .edd-alert-error { background: #fdecea; border: 1px solid #f5c2c0; color: #a93830; border-radius: var(--radius-sm); padding: .85rem 1rem; margin: 0 0 1.25rem; }
.edd_success, .edd-alert-success { background: #e7f7ef; border: 1px solid #b7e4cd; color: #0f766e; border-radius: var(--radius-sm); padding: .85rem 1rem; margin: 0 0 1.25rem; }
.edd_receipt_payment_status.complete { color: #0f766e; font-weight: 600; }
.edd_sl_license_key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .15em .45em; font-size: .85em; color: var(--ink); word-break: break-all; }

/* ---- EDD links pick up brand colour ---- */
#edd_checkout_cart a, #edd_user_history a, .edd_sl_table a, #edd_show_discount a, .edd-show-terms a { color: var(--brand-strong); font-weight: 600; text-decoration: none; }
#edd_checkout_cart a:hover, #edd_user_history a:hover, .edd_sl_table a:hover, #edd_show_discount a:hover, .edd-show-terms a:hover { text-decoration: underline; }

/* ---- EDD responsive: stack cart & history tables into cards on phones ---- */
@media (max-width: 768px) {
  #edd_checkout_cart, #edd_checkout_cart thead, #edd_checkout_cart tbody, #edd_checkout_cart tr, #edd_checkout_cart th, #edd_checkout_cart td,
  #edd_user_history, #edd_user_history thead, #edd_user_history tbody, #edd_user_history tr, #edd_user_history th, #edd_user_history td,
  #edd_download_history, #edd_download_history thead, #edd_download_history tbody, #edd_download_history tr, #edd_download_history th, #edd_download_history td {
    display: block; width: 100%; text-align: left;
  }
  #edd_checkout_cart thead, #edd_user_history thead, #edd_download_history thead { display: none; }
  #edd_checkout_cart .edd_cart_item td, #edd_user_history .edd_purchase_row td, #edd_download_history .edd_download_history_row td { border-bottom: 0; padding: .35rem 1rem; }
  #edd_checkout_cart .edd_cart_item td:first-child, #edd_user_history .edd_purchase_row td:first-child { padding-top: 1rem; }
  #edd_checkout_cart .edd_cart_item td:last-child, #edd_user_history .edd_purchase_row td:last-child { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .edd_cart_actions { text-align: left; }
}

/* =========================================================================
   GRAVITY FORMS — themes GF output (e.g. the support "new ticket" form, id 17)
   in our design. Everything is scoped under .gform_wrapper, GF's standard
   wrapper, so it doesn't touch the footer newsletter (.newsletter-gform) or any
   other form. Half-width fields (.gfield_left_half/.gfield_right_half) use the
   grid; default fields span full width.
   ========================================================================= */
.gform_wrapper .gform_fields { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.gform_wrapper .gfield { grid-column: 1 / -1; margin: 0; min-width: 0; }
.gform_wrapper .gfield_left_half, .gform_wrapper .gfield_right_half { grid-column: span 1; }
.gform_wrapper .gfield.gform_hidden, .gform_wrapper .gfield--type-hidden { display: none; }
.gform_wrapper .gform_fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.gform_wrapper .ginput_container { margin: 0; }

/* Labels & descriptions */
.gform_wrapper .gfield_label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin: 0 0 .4rem; }
.gform_wrapper .gfield_required_asterisk, .gform_wrapper .gfield_required { color: #c4554e; }
.gform_wrapper .gfield_description { font-size: .82rem; color: var(--muted); line-height: 1.5; margin: .35rem 0 0; }
.gform_wrapper .field_description_above .gfield_description { margin: 0 0 .5rem; }

/* Text-style inputs, textarea, select */
.gform_wrapper input[type="text"], .gform_wrapper input[type="url"], .gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"], .gform_wrapper input[type="number"], .gform_wrapper input[type="password"],
.gform_wrapper textarea, .gform_wrapper select {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gform_wrapper textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.gform_wrapper input:focus, .gform_wrapper textarea:focus, .gform_wrapper select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,235,.12);
}
.gform_wrapper input::placeholder, .gform_wrapper textarea::placeholder { color: var(--faint); }

/* Select arrow — use ours; hide the theme's sprite arrow if present */
.gform_wrapper select { padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235b626e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; }
.gform_wrapper .input--select { position: relative; display: block; }
.gform_wrapper .input--select svg.icon--arrow-down { display: none; }

/* Radios & checkboxes */
.gform_wrapper .gfield_radio, .gform_wrapper .gfield_checkbox { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.gform_wrapper .gchoice { display: flex; align-items: center; gap: .6rem; }
.gform_wrapper .gchoice input[type="radio"], .gform_wrapper .gchoice input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand); }
.gform_wrapper .gchoice label { margin: 0; font-weight: 500; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.gform_wrapper .gfield_label_before_complex { margin-bottom: .5rem; }

/* File upload (drag & drop) */
.gform_wrapper .gform_drop_area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-soft); padding: 1.6rem 1rem; color: var(--muted); font-size: .9rem; }
.gform_wrapper .gform_button_select_files {
  display: inline-flex; align-items: center; justify-content: center; font-family: inherit; font-weight: 600; font-size: .92rem;
  padding: .6rem 1.1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.gform_wrapper .gform_button_select_files:hover { border-color: var(--ink); }
.gform_wrapper .gform_fileupload_rules { display: block; font-size: .78rem; color: var(--faint); margin-top: .5rem; }
.gform_wrapper .ginput_preview_list { margin-top: .5rem; }

/* Submit footer */
.gform_wrapper .gform_footer { margin: 1.6rem 0 0; padding: 0; }
.gform_wrapper .gform_button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: inherit; font-weight: 600; font-size: .96rem; line-height: 1;
  padding: .85rem 1.9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer;
  transition: background .15s ease, border-color .15s ease; }
.gform_wrapper .gform_button:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

/* Validation / messages */
.gform_wrapper .gfield_error input, .gform_wrapper .gfield_error textarea, .gform_wrapper .gfield_error select { border-color: #c4554e; box-shadow: 0 0 0 3px rgba(196,85,78,.12); }
.gform_wrapper .validation_message, .gform_wrapper .gfield_validation_message { color: #a93830; font-size: .82rem; margin-top: .35rem; }
.gform_wrapper .gform_validation_errors { background: #fdecea; border: 1px solid #f5c2c0; color: #a93830; border-radius: var(--radius-sm); padding: .85rem 1rem; margin: 0 0 1.25rem; }
.gform_confirmation_message { background: #e7f7ef; border: 1px solid #b7e4cd; color: #0f766e; border-radius: var(--radius-sm); padding: 1rem 1.25rem; }

@media (max-width: 600px) {
  .gform_wrapper .gform_fields { grid-template-columns: 1fr; }
  .gform_wrapper .gfield_left_half, .gform_wrapper .gfield_right_half { grid-column: 1 / -1; }
}

/* =========================================================================
   ACCOUNT / MY-ACCOUNT — app shell: FIXED full-height sidebar + scrolling
   content. These pages have NO site header/footer, just the sidebar + content.
   ========================================================================= */
/* Sidebar is fixed to the top-left-bottom edge; the page (right content) scrolls */
.account-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; z-index: 10;
  display: flex; flex-direction: column; gap: 1rem; overflow-y: auto;
  background: #fff; border-right: 1px solid var(--line); padding: 1.5rem 1.25rem; }
.account-brand { display: flex; align-items: center; padding: .15rem .25rem 1.1rem; border-bottom: 1px solid var(--line); }
.account-brand img { height: 28px; width: auto; }

.account-nav { display: flex; flex-direction: column; gap: .12rem; }
.account-nav a { display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem; border-radius: var(--radius-sm); color: var(--ink); font-weight: 550; font-size: .95rem; }
.account-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.account-nav a.is-active { background: #eef3fe; color: var(--brand-strong); font-weight: 600; }
.account-nav a svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.account-nav a.is-active svg { color: var(--brand); }

/* Footer row: profile (brand icon) + logout, on one line */
.account-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.account-foot a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--ink); }
.account-foot a:hover { background: var(--bg-soft); }
.account-foot svg { width: 20px; height: 20px; }
.account-foot img { width: 24px; height: 24px; border-radius: 6px; }

/* Content area sits to the right of the fixed sidebar and scrolls with the page */
.account-main { margin-left: 300px; min-height: 100vh; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 5vw, 4rem); }
.account-main .page-head { padding-top: 0; }

/* Mobile top bar (hamburger + logo) + off-canvas sidebar */
.account-topbar { display: none; }
.account-backdrop { position: fixed; inset: 0; z-index: 9; background: rgba(13,17,23,.45); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease; }
@media (min-width: 901px) { .account-backdrop { display: none; } }

@media (max-width: 900px) {
  .account-topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; position: sticky; top: 0; z-index: 8;
    background: #fff; border-bottom: 1px solid var(--line); padding: .7rem 1rem; }
  .account-burger { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; border-radius: var(--radius-sm); color: var(--ink); cursor: pointer; }
  .account-burger:hover { background: var(--bg-soft); }
  .account-burger svg { width: 22px; height: 22px; }
  .account-topbar-brand img { display: block; height: 24px; width: auto; }

  /* Sidebar slides in from the left */
  .account-sidebar { width: min(86vw, 320px); transform: translateX(-100%); transition: transform .28s ease; }
  .account-sidebar.is-open { transform: translateX(0); }
  .account-backdrop.is-open { opacity: 1; visibility: visible; }

  .account-main { margin-left: 0; min-height: 0; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .card-grid, .value-grid, .addon-grid, .price-grid, .quote-grid, .post-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid > *, .post-grid-center > * { flex-basis: calc((100% - var(--gap)) / 2); max-width: calc((100% - var(--gap)) / 2); }
  .migrate-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .faq-support { position: static; }
  .addon-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; border-right: none; padding-right: 0; margin-right: 0; }
}
@media (max-width: 960px) {
  .mega-menu { grid-template-columns: 1fr; width: min(420px, 92vw); }
  .mega-aside { display: none; }
}
@media (max-width: 780px) {
  .primary-nav, .header-cta, .account-menu { display: none; }
  .menu-burger { display: flex; }
  .header-actions { margin-left: auto; gap: .4rem; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero-buy { grid-template-columns: 1fr; }
  .addon-features { grid-template-columns: 1fr; }
  /* Mobile carousels: one item per view + a peek of the next, swipe to scroll */
  .card-grid, .value-grid, .price-grid, .post-grid, .quote-grid {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -1.25rem; padding: 1rem 1.25rem 1.1rem;
  }
  .card-grid::-webkit-scrollbar, .value-grid::-webkit-scrollbar, .price-grid::-webkit-scrollbar, .post-grid::-webkit-scrollbar, .quote-grid::-webkit-scrollbar { display: none; }
  .demo-grid > *, .post-grid-center > * { flex-basis: 100%; max-width: 100%; }
  .card-grid > *, .value-grid > *, .price-grid > *, .post-grid > *, .quote-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  .quote-grid { margin-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { margin-bottom: 1.5rem; }
  /* Accordion: each link column collapses behind its heading */
  .footer-col { border-top: 1px solid #222a3a; }
  .footer-col-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
  .footer-col-toggle h2 { margin: 1.1rem 0; }
  .footer-chev { display: block; color: #9aa1b0; transition: transform .2s ease; flex: none; }
  .footer-col-toggle[aria-expanded="true"] .footer-chev { transform: rotate(180deg); }
  .footer-col ul { overflow: hidden; max-height: 0; padding-bottom: 0; transition: max-height .32s ease, padding-bottom .32s ease; }
  .footer-col-toggle[aria-expanded="true"] + ul { max-height: 320px; padding-bottom: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Grid card titles at regular weight (other headings are light 300) */
.theme-meta h3, .value-card h3, .feature-card h3, .addon-feature-body h3, .price-card h3, .post-card h3, .quote-title { font-weight: 500; }
