/* Axtorra brand tokens — from the official "Axtorra Branding Guideline.pdf"
   (Fiverr Premium Kit, designed by aldeanodesign): exact colors + fonts.
   Fonts: Poppins 700 (headings/brand), Varela Round 400 (body).
   Colors: #FFFFFF, #000000, green gradient #054E00→#A1FF00, blue gradient #0090FF→#001BBD.
   Gradients are a real brand element (they're in the logo itself) — used here on
   buttons/accents only, not as full-page washes, to stay calm per the voice rules. */

:root {
  --ink: #000000;
  --ink-muted: #4a4a48;
  --ink-faint: #85857e;
  --bg: #ffffff;
  --surface: #ffffff;
  --rule: #e3e3dd;
  --green: #a1ff00;
  --green-deep: #3c8f0e;
  --blue: #0090ff;
  --blue-deep: #001bbd;
  --black: #000000;

  --band-blue: #eef4ff;
  --band-green: #f2fbe8;

  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green-deep); }
a:hover { color: var(--green); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: 960px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { height: 52px; width: auto; }
.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand .brand-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
}

nav.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
nav.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
nav.site-nav a:hover { color: var(--green-deep); }
nav.site-nav a[aria-current="page"] { color: var(--blue-deep); }

.lang-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--blue-deep);
  color: #fff;
}

/* Hero */
.hero {
  background: var(--surface);
  color: var(--ink);
  padding: 64px 0 72px;
}
.hero .wrap { max-width: 720px; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 700;
}
.hero p.lede {
  font-size: 19px;
  color: var(--ink-muted);
  margin: 0 0 28px;
  max-width: 56ch;
}
/* Compact variant: pages whose hero has no lede text below the h1 don't need
   as much bottom padding before the next section starts. */
.hero.compact { padding-bottom: 32px; }
.hero.compact h1 { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #000f80; }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn.secondary:hover { border-color: var(--green-deep); color: var(--green-deep); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
main { padding: 56px 0 80px; }
section + section { margin-top: 56px; }

/* Color-tinted section bands — restrained, not full-bleed loud blocks */
section.tint-blue, section.tint-green {
  border-radius: 14px;
  padding: 36px 32px;
}
section.tint-blue { background: var(--band-blue); }
section.tint-green { background: var(--band-green); }
section.tint-blue .card, section.tint-green .card { background: var(--surface); }
@media (max-width: 640px) {
  section.tint-blue, section.tint-green { padding: 28px 20px; }
}
h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin: 0 0 14px;
  font-weight: 700;
}
h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 700;
}
p { color: var(--ink-muted); margin: 0 0 16px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 24px 26px;
}
.card + .card { margin-top: 16px; }

/* Product listing row — image and text side by side. Thumbnail width is
   fixed at 190px everywhere on the products page (grid cards and standalone
   flagship rows alike — see .product-stack below for the matching grid
   value), so no product looks more or less "real" than another just because
   of image size. Aspect ratio still varies by source art: 16:9 for wide
   marketing-style covers (default here), 3:4 via .book for real print-style
   covers — never cropped into the wrong shape to force a match. */
.card.product-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.product-row .product-thumb {
  flex: 0 0 190px;
  width: 190px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.product-row .product-thumb.book {
  flex-basis: 190px;
  width: 190px;
  aspect-ratio: 3 / 4;
}
.product-row .product-body { flex: 1; min-width: 0; }
.product-row .product-body h3 { font-size: 17px; }
.product-row .product-body p { font-size: 14px; margin-bottom: 10px; }
/* .lg no longer changes thumbnail size (that's the same 190px as every
   other product now) — it still gets a bit more breathing room and larger
   type since it's the only card in its section, standing in for what used
   to be a bigger image. */
.product-row.lg { gap: 28px; }
.product-row.lg .product-body h3 { font-size: 20px; }
.product-row.lg .product-body p { font-size: 15px; }
@media (max-width: 640px) {
  .product-row.lg { flex-direction: column; }
  .product-row.lg .product-thumb { width: 100%; flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .product-row { flex-direction: column; }
  .product-row .product-thumb { width: 100%; flex: 0 0 auto; }
  .product-row .product-thumb.book { width: 190px; max-width: 60%; margin: 0 auto; }
}

/* Product stack card — image on top, text underneath, for a grid of
   same-size sibling products (AI Pack) instead of the image-left/text-right
   row layout. Tighter padding than the base .card so the thumbnail (100%
   of the card's inner width) lands close to the same ~190px every other
   product thumbnail on the page uses, at this page's 3-column grid width. */
.card.product-stack {
  display: flex;
  flex-direction: column;
  padding: 18px;
}
.product-stack .product-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 14px;
}
.product-stack .product-body { flex: 1; display: flex; flex-direction: column; }
.product-stack .product-body h3 { font-size: 17px; }
.product-stack .product-body p { font-size: 14px; margin-bottom: 10px; }
.product-stack .product-body .btn { margin-top: auto; align-self: flex-start; }

/* Compact variant of .post-banner for use inside a product card, not a full-width post header */
.post-banner.compact {
  padding: 20px 18px;
  gap: 14px;
}
.post-banner.compact .post-banner-icon { width: 30px; height: 30px; }
.post-banner.compact .post-banner-icon svg { width: 30px; height: 30px; }
.post-banner.compact h3 { font-size: 16px !important; }
.post-banner.compact .post-banner-eyebrow { font-size: 11px; }
a.card { display: block; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { border-color: var(--green-deep); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
.card-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--green-deep);
}
a.card:hover .card-link { color: var(--blue-deep); }
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
}
.grid .card { margin-top: 0; height: 100%; }

/* Post summary cards (blog index) — equal height, same visual weight */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--green-deep);
}
.post-card .post-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #fff;
}
.post-card .post-card-icon svg { width: 22px; height: 22px; }
.post-card .post-card-icon.green { background: linear-gradient(135deg, #054E00, #3c8f0e 55%, #A1FF00); }
.post-card .post-card-icon.blue { background: linear-gradient(135deg, #001BBD, #0090FF); }
.post-card h3 {
  font-size: 18px;
  line-height: 1.3;
  min-height: 3.9em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card p { flex: 1; font-size: 15px; margin-bottom: 14px; }
.post-card .post-card-more {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--green-deep);
  margin-top: auto;
}
.post-card:hover .post-card-more { color: var(--blue-deep); }

.price {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(47,168,79,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tag.muted {
  color: var(--ink-faint);
  background: rgba(138,138,130,0.14);
}

.note {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 16px;
  color: var(--ink-muted);
  font-size: 15px;
}

/* Bonus list on admin-added product cards (assets/js/product-catalog.js) */
.bonus-list ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.bonus-list li { margin-bottom: 4px; }

/* Footer */
footer.site {
  background: var(--surface);
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  padding: 36px 0;
  font-size: 14px;
}
footer.site a { color: var(--ink); }
footer.site .wrap { max-width: 960px; }

.footer-social { display: flex; gap: 14px; margin: 0 0 14px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--rule); color: var(--ink);
  transition: background 0.15s ease;
}
.footer-social a:hover { background: var(--ink); color: var(--surface); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Bilingual toggle mechanism */
html[data-lang="en"] .lang-es { display: none; }
html[data-lang="es"] .lang-en { display: none; }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  header.site .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  nav.site-nav { gap: 14px; }
}

/* Token calculator — wider container for the tool itself */
.wrap.wide { max-width: 980px; }

.step-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--band-blue);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}

textarea, select, input[type="number"] {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 12px;
}
textarea { min-height: 110px; resize: vertical; }

.calc-row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) {
  .calc-row.cols-2 { grid-template-columns: 1fr 1fr; }
}

.calc-result {
  background: var(--band-green);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--green-deep);
}

.calc-table-wrap { overflow-x: auto; }
table.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
table.calc-table th, table.calc-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}
table.calc-table th { font-family: var(--font-heading); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); }
table.calc-table tr.cheapest td:first-child { color: var(--green-deep); font-weight: 700; }
table.calc-table tr.priciest td:first-child { color: var(--blue-deep); font-weight: 700; }

.sort-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sort-row button {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink-muted);
  cursor: pointer;
}
.sort-row button[aria-pressed="true"] { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }

/* Blog post banner — brand-gradient graphic, no stock photos, no personal photos */
.post-banner {
  border-radius: 14px;
  padding: 46px 32px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}
.post-banner.green { background: linear-gradient(135deg, #054E00, #3c8f0e 55%, #A1FF00); }
.post-banner.blue { background: linear-gradient(135deg, #001BBD, #0090FF); }
.post-banner .post-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}
.post-banner .post-banner-icon svg { width: 44px; height: 44px; display: block; }
.post-banner .post-banner-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}
.post-meta {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 18px 0 4px;
}
.post-body p { color: var(--ink); font-size: 17px; }
.post-body h3 { margin-top: 30px; }
.back-link { display: inline-block; margin-bottom: 20px; font-size: 14px; font-weight: 700; }
@media (max-width: 640px) {
  .post-banner { padding: 32px 22px; }
  .post-banner .post-banner-icon { width: 34px; height: 34px; }
  .post-banner .post-banner-icon svg { width: 34px; height: 34px; }
}
