/* AtlasWorkspaces — brand tokens from copy/brand-kit.md */
:root {
  --bg: #F5F3EE;
  --surface: #FBFAF7;
  --surface-2: #EEEBE3;
  --text: #1A1C21;
  --muted: #676B74;
  --accent: #2D45C8;
  --accent-rgb: 45, 69, 200;
  --accent-2: #D9962F;
  --line: #E2DED4;
  --ink-dark: #161A2E;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 18px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.1; letter-spacing: -.015em; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Signature: map coordinate labels */
.coord {
  font: 500 .74rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.coord::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s;
}
.btn--primary { background: var(--accent); color: #F7F7FB; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .22); }
.btn--primary:hover { transform: translateY(-1px); background: #2539AD; box-shadow: 0 10px 26px rgba(var(--accent-rgb), .3); }
.btn--ghost { background: transparent; color: var(--text); border-color: #CFCABD; }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .88rem; }
.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 238, .82);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem/1 var(--font-head); letter-spacing: -.01em; min-height: 44px; }
.wordmark__mark { width: 28px; height: 28px; }
.wordmark__mark rect { fill: var(--accent); }
.wordmark__mark path { fill: none; stroke: #F5F3EE; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { text-decoration: none; font-size: .93rem; color: var(--muted); transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 14px 0; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 16px; }
}

/* Hero */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(26, 28, 33, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 28, 33, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 78%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 5.6rem); line-height: 1; letter-spacing: -.03em; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { margin-top: 26px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #3E424B; max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 22px; font-size: .9rem; color: var(--muted); }

.hero__map { margin: 0; }
.hero__map svg { width: 100%; height: auto; overflow: visible; }
.map__contours path { fill: none; stroke: rgba(26, 28, 33, .12); stroke-width: 1; }
.map__route { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 7; opacity: .7; }
.map__stop circle { fill: var(--surface); stroke: rgba(26, 28, 33, .18); stroke-width: 1; }
.map__stop .sym { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.map__stop text { font: 500 12px var(--font); fill: var(--muted); text-anchor: middle; letter-spacing: .02em; }
.map__stop { transform-box: fill-box; transform-origin: center; animation: drift 7s ease-in-out infinite; animation-delay: var(--d); }
.map__compass circle { fill: none; stroke: rgba(26, 28, 33, .2); }
.map__compass path { fill: var(--accent-2); }
.map__compass text { font: 600 10px var(--font); fill: var(--muted); text-anchor: middle; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Trust line */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__list { list-style: none; margin: 0 auto; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; font-size: .92rem; color: #3E424B; }
.trust__list li { display: inline-flex; align-items: center; gap: 10px; }
.trust__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .75; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section__head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 40rem; }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.section__head--split > div { max-width: 34rem; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--center .coord { justify-content: center; }
.section__intro { margin-top: 16px; color: var(--muted); font-size: 1.05rem; max-width: 30rem; }
.section__head--split .section__intro { margin-top: 0; }
.section__head--center .section__intro { margin-inline: auto; }

/* How it works: numbered route */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 26px; left: 52px; right: 52px; height: 1px;
  background: repeating-linear-gradient(to right, rgba(var(--accent-rgb), .45) 0 6px, transparent 6px 13px);
}
.step { position: relative; }
.step__num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent); color: var(--accent);
  font: 500 1.3rem/1 var(--font-head); margin-bottom: 24px; position: relative;
}
.step__num::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .25);
  animation: ping 6s ease-in-out infinite; animation-delay: -2s;
}
.step:nth-child(2) .step__num::after { animation-delay: -4s; }
.step:nth-child(3) .step__num::after { animation-delay: -0s; }
@keyframes ping { 0%, 100% { transform: scale(.92); opacity: 0; } 50% { transform: scale(1.06); opacity: 1; } }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 22rem; }

/* Templates: legend cards */
.templates { background: var(--surface); border-block: 1px solid var(--line); }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.product {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(26, 28, 33, .07); border-color: #D3CDBF; }
.product__top { display: flex; justify-content: space-between; align-items: center; }
.product__sym { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: rgba(var(--accent-rgb), .08); }
.product__sym * { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.product__price { font: 500 1.6rem/1 var(--font-head); }
.product > p { color: var(--muted); font-size: .98rem; }
.product__list { list-style: none; margin: 4px 0 8px; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: .93rem; }
.product__list li { display: flex; gap: 10px; }
.product__list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--accent); opacity: .6; }
.product .btn { margin-top: auto; }
.product--note { background: transparent; border-style: dashed; justify-content: center; }
.product--note:hover { transform: none; box-shadow: none; }
.product--note__big { font: 500 1.35rem/1.3 var(--font-head); color: var(--text) !important; }
.product--note strong { color: var(--accent); font-weight: 600; }
.link-arrow { font-weight: 600; color: var(--accent); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* Bundles: pricing columns */
.bundle-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.bundle.bundle--featured { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px clamp(28px, 5vw, 64px); padding: clamp(32px, 4vw, 48px); }
.bundle__main { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bundle__main .btn { margin-top: 8px; }
.bundle__all { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: clamp(24px, 4vw, 56px); align-self: center; }
.bundle__all-title { font: 600 .74rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #A3A7BA; }
.bundle__list--cols { grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 18px; }
.bundle {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px;
}
.bundle__tag { font: 600 .74rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bundle__price { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.bundle__now { font: 500 3rem/1 var(--font-head); letter-spacing: -.02em; }
.bundle__price s { color: var(--muted); font-size: 1.05rem; }
.save { align-self: flex-start; font: 600 .82rem/1 var(--font); padding: 7px 11px; border-radius: 999px; background: rgba(217, 150, 47, .14); color: #8A5A12; }
.bundle__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; font-size: .96rem; }
.bundle__list li { display: flex; gap: 10px; align-items: center; }
.bundle__list li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: rgba(var(--accent-rgb), .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%232D45C8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.bundle__why { color: var(--muted); font-size: .94rem; margin: 6px 0 14px; }
.bundle .btn { margin-top: auto; }

.bundle--featured {
  background: var(--ink-dark); color: #EDEEF4; border-color: var(--ink-dark);
  position: relative; overflow: hidden; box-shadow: 0 28px 60px rgba(22, 26, 46, .25);
}
.bundle--featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(160deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%);
}
.bundle--featured::after {
  content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .55), transparent 70%);
  animation: glow 9s ease-in-out infinite; animation-delay: -3s; pointer-events: none;
}
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.12); } }
.bundle--featured > * { position: relative; z-index: 1; }
.bundle--featured .bundle__tag--best { color: var(--accent-2); }
.bundle--featured .bundle__price s, .bundle--featured .bundle__why { color: #A3A7BA; }
.bundle--featured .save { background: var(--accent-2); color: #1B1405; }
.bundle--featured .bundle__list li::before { background-color: rgba(255, 255, 255, .1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23D9962F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bundle--featured .btn--primary { background: #F5F3EE; color: var(--ink-dark); box-shadow: none; }
.bundle--featured .btn--primary:hover { background: #fff; }

/* Who it's for: sticky heading + list */
.who__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.who__head { position: sticky; top: 110px; margin-bottom: 0; }
.who__list { list-style: none; margin: 0; padding: 0; }
.who__item { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 20px; }
.who__item:last-child { border-bottom: 1px solid var(--line); }
.who__item h3 { font-size: 1.5rem; }
.who__item p { color: var(--muted); }

/* FAQ */
.faq { background: var(--surface); border-block: 1px solid var(--line); }
.faq__inner { max-width: 820px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; min-height: 44px; font: 500 1.2rem/1.3 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%231A1C21' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 40rem; }
.faq details a { color: var(--accent); }

/* Contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__copy p:not(.coord) { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.contact__email {
  display: inline-block; margin-top: 28px; font: 500 clamp(1.1rem, 2.4vw, 1.5rem)/1.3 var(--font-head);
  color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(var(--accent-rgb), .35); padding-bottom: 4px; word-break: break-word;
}
.contact__email:hover { border-bottom-color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 36px); display: grid; gap: 18px; }
.form__row { display: grid; gap: 8px; }
.form label { font-size: .88rem; font-weight: 500; }
.form input, .form textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid #D8D3C7; border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.form .btn { justify-self: start; }
.form__error { color: #A3361F; font-size: .92rem; }
.form__success { padding: 18px; border-radius: 14px; background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .2); font-size: .95rem; color: #3E424B; }
.form__success-title { font-weight: 600; color: var(--text); margin-bottom: 4px; }

/* Footer */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__tag { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; }
.footer__links a { text-decoration: none; color: var(--muted); font-size: .93rem; min-height: 44px; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--text); }
.footer__base { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

/* Entrances: everything visible unless JS is running */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--stagger, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.done { transition-delay: 0ms; }

/* Responsive */
@media (max-width: 1020px) {
  .bundle-row { grid-template-columns: 1fr 1fr; }
  .bundle.bundle--featured { grid-template-columns: 1fr; }
  .bundle__all { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__map { max-width: 460px; width: 100%; margin-inline: auto; }
  .section__head--split { flex-direction: column; align-items: start; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 26px; bottom: 90px; left: 26px; right: auto; width: 1px; height: auto;
    background: repeating-linear-gradient(to bottom, rgba(var(--accent-rgb), .45) 0 6px, transparent 6px 13px); }
  .step { padding-left: 76px; }
  .step__num { position: absolute; left: 0; top: -6px; margin: 0; }
  .who__inner, .contact__inner { grid-template-columns: 1fr; }
  .who__head { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .legend, .bundle-row { grid-template-columns: 1fr; }
  .bundle__list--cols { grid-template-columns: 1fr; }
  .trust__list { justify-content: flex-start; flex-direction: column; gap: 10px; }
  .who__item { grid-template-columns: 1fr; gap: 8px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .form .btn { justify-self: stretch; }
}

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

/* =============================================================
   Product pages (product.html)
   ============================================================= */
.pd { padding: 28px 0 clamp(72px, 9vw, 120px); }
.pd__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: .93rem; }
.pd__back:hover { color: var(--text); }
.pd__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  grid-template-areas: "media card" "details card"; gap: 28px clamp(28px, 4vw, 56px); align-items: start;
}
.pd__media { grid-area: media; }
.pd__card { grid-area: card; position: sticky; top: 92px; }
.pd__details { grid-area: details; }

/* picture / placeholder */
.pd__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-2); }
.pd__ph {
  position: relative; aspect-ratio: 4 / 3; border-radius: 22px; border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center; background: var(--surface);
  background-image:
    linear-gradient(to right, rgba(26, 28, 33, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 28, 33, .05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.pd__ph-contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd__ph-contours path { fill: none; stroke: rgba(26, 28, 33, .1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pd__ph-sym { position: relative; width: clamp(90px, 16vw, 150px); height: auto; padding: 22px; border-radius: 28px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(26, 28, 33, .06); animation: drift 7s ease-in-out infinite; animation-delay: -2s; }
.pd__ph-sym * { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.pd__ph-stack { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 80%; }
.pd__ph-sym--sm { width: clamp(56px, 8vw, 84px); padding: 14px; border-radius: 20px; }
.pd__ph-stack .pd__ph-sym--sm:nth-child(2) { animation-delay: -3.4s; }
.pd__ph-stack .pd__ph-sym--sm:nth-child(3) { animation-delay: -4.8s; }
.pd__ph-stack .pd__ph-sym--sm:nth-child(4) { animation-delay: -6.2s; }
.pd__ph-code { position: absolute; left: 20px; bottom: 16px; font: 500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* buy card */
.pd__card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 34px); box-shadow: 0 24px 60px rgba(26, 28, 33, .06); }
.pd__code { display: flex; align-items: center; gap: 10px; font: 500 .74rem/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); flex: none; }
.pd__card h1 { font-size: clamp(2.1rem, 3.6vw, 2.9rem); letter-spacing: -.025em; margin-top: 14px; }
.pd__short { margin-top: 14px; color: #3E424B; font-size: 1.05rem; }
.pd__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.pd__amount { font: 500 3.2rem/1 var(--font-head); letter-spacing: -.02em; }
.pd__unit { font: 500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd__buy { min-height: 54px; font-size: 1rem; }
.pd__note { margin-top: 12px; text-align: center; font-size: .86rem; color: var(--muted); }

.spec { margin: 24px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.spec__row { display: grid; grid-template-columns: 8.5rem 1fr; }
.spec__row + .spec__row { border-top: 1px solid var(--line); }
.spec dt { padding: 13px 14px; font: 500 .68rem/1.5 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-right: 1px solid var(--line); }
.spec dd { margin: 0; padding: 12px 14px; font-size: .93rem; }
.tbc { display: inline-block; font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: rgba(217, 150, 47, .14); color: #8A5A12; }
.pd__muted { color: var(--muted); font-size: .85rem; }

.pd__notice { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #FBF5E6; border: 1px solid #EEDDB4; font-size: .86rem; color: #5A5446; }
.pd__notice strong { color: var(--text); }
.pd__notice a { color: inherit; }

.pd__card--featured { border-color: rgba(var(--accent-rgb), .35); }

/* details */
.pd__details { max-width: 44rem; padding-top: 8px; }
.pd__desc { font: 500 clamp(1.3rem, 2.2vw, 1.6rem)/1.35 var(--font-head); letter-spacing: -.01em; }
.pd__details h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.pd__list { border-top: 0; padding-top: 0; font-size: 1rem; gap: 12px; }
.pd__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd__items a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.pd__items a:hover { border-color: #CFCABD; transform: translateX(3px); }
.pd__items-text { display: grid; gap: 2px; }
.pd__items-text span { color: var(--muted); font-size: .9rem; }
.pd__items-price { font: 500 1.15rem/1 var(--font-head); color: var(--muted); }
.pd__total { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pd__total s { color: var(--muted); }
.pd__upsell { margin-top: 44px; padding: 24px; border-radius: 18px; border: 1px dashed #CFCABD; }
.pd__upsell .coord { margin-bottom: 10px; }
.pd__upsell ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pd__upsell a { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.pd__upsell a:hover span:first-child { color: var(--accent); }
.pd__upsell-price { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.pd__help { margin-top: 36px; color: var(--muted); }
.pd__help a, .pd__empty a { color: var(--accent); }
.pd__empty { padding: 60px 0; max-width: 36rem; }
.pd__empty h1 { font-size: 2.4rem; margin-bottom: 14px; }

@media (max-width: 900px) {
  .pd__grid { grid-template-columns: 1fr; grid-template-areas: "media" "card" "details"; }
  .pd__card { position: static; }
}
@media (max-width: 420px) {
  .spec__row { grid-template-columns: 1fr; }
  .spec dt { border-right: 0; padding-bottom: 6px; }
  .spec dd { padding-top: 6px; }
}

/* homepage: product titles link to their pages */
.product h3 a { text-decoration: none; }
.product h3 a:hover { color: var(--accent); }

/* =============================================================
   Contact page (contact.html)
   ============================================================= */
.ct { padding: 28px 0 clamp(72px, 9vw, 120px); }
.ct__head { max-width: 46rem; padding: 18px 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 48px); }
.ct__head h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); letter-spacing: -.03em; margin-top: 16px; }
.ct__lede { margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #3E424B; }
.ct__notice { margin-top: 26px; padding: 18px 22px; border-radius: 14px; background: #FBF5E6; border: 1px solid #EEDDB4; color: #5A5446; }
.ct__notice strong { color: var(--text); }
.ct__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ct__side { display: grid; gap: 20px; }
.ct__order, .ct__email-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 30px); display: grid; gap: 12px; }
.ct__order { box-shadow: 0 24px 60px rgba(26, 28, 33, .06); }
.ct__order .pd__code, .ct__email-card .pd__code { margin-bottom: 2px; }
.ct__order-name { font: 500 1.7rem/1.15 var(--font-head); letter-spacing: -.015em; }
.ct__order-meta { color: var(--muted); font-size: .93rem; margin-bottom: 8px; }
.ct__order-meta strong { color: var(--text); }
.ct__email-card .contact__email { margin-top: 0; justify-self: start; }
.ct__small { font-size: .84rem; color: var(--muted); }
.ct__form-title { font: 500 1.4rem/1.2 var(--font-head); }
@media (max-width: 860px) { .ct__grid { grid-template-columns: 1fr; } }

/* =============================================================
   Product image carousel (How it works, then Blueprint)
   Images are 10:7, so the frame matches and nothing is cropped.
   ============================================================= */
.product__carousel {
  position: relative; width: 100%; aspect-ratio: 10 / 7; overflow: hidden;
  border-radius: 12px; margin-bottom: 6px;
  background: var(--bg); border: 1px solid rgba(0, 0, 0, .05);
}
.carousel-track { display: flex; width: 200%; height: 100%; transition: transform .45s var(--ease); }
.carousel-track img { width: 50%; height: 100%; object-fit: cover; flex-shrink: 0; display: block; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); color: var(--text); font-size: 13px; line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  opacity: 0; transition: opacity .2s ease, background-color .2s;
}
.carousel-btn::after { content: ""; position: absolute; inset: -4px; } /* 44px tap target */
.carousel-btn:hover { background: #fff; }
.product__carousel:hover .carousel-btn,
.product__carousel:focus-within .carousel-btn { opacity: 1; }
.carousel-btn--prev { left: 10px; }
.carousel-btn--next { right: 10px; }

.carousel-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2;
  padding: 5px 8px; border-radius: 999px; background: rgba(26, 28, 33, .35); }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background-color .2s, transform .2s; }
.carousel-dots span.is-active { background: #fff; transform: scale(1.2); }

/* touch screens have no hover: keep the arrows visible */
@media (hover: none) { .carousel-btn { opacity: 1; } }

/* product page: larger frame, bigger arrows */
.product__carousel--lg { border-radius: 22px; border-color: var(--line); margin: 0; }
.product__carousel--lg .carousel-btn { width: 44px; height: 44px; font-size: 15px; }
.product__carousel--lg .carousel-btn--prev { left: 14px; }
.product__carousel--lg .carousel-btn--next { right: 14px; }

/* =============================================================
   Legal pages (terms, refunds, privacy) + footer legal links
   ============================================================= */
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; align-items: center; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 20px; order: 2; }
.footer__legal a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer__legal a:hover { color: var(--text); }

.legal { padding: 40px 0 clamp(72px, 9vw, 120px); }
.legal__head { max-width: 46rem; padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 44px); }
.legal__head h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); letter-spacing: -.03em; margin-top: 16px; }
.legal__lede { margin-top: 16px; font-size: clamp(1.05rem, 1.5vw, 1.15rem); color: #3E424B; }
.legal__updated { margin-top: 14px; font: 500 .74rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal__grid { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: clamp(28px, 5vw, 72px); align-items: start; }
.legal__toc { position: sticky; top: 96px; font-size: .9rem; }
.legal__toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc ol a { display: flex; gap: 10px; padding: 7px 0; color: var(--muted); text-decoration: none; }
.legal__toc ol a::before { content: counter(toc, decimal-leading-zero); font: 500 .72rem/1.9 "JetBrains Mono", ui-monospace, monospace; color: #A7A39A; }
.legal__toc ol a:hover { color: var(--text); }
.legal__others { display: grid; gap: 2px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal__others a { color: var(--accent); text-decoration: none; padding: 6px 0; }
.legal__body section { padding: 4px 0 30px; scroll-margin-top: 96px; }
.legal__body section + section { border-top: 1px solid var(--line); padding-top: 28px; }
.legal__body h2 { font-size: 1.55rem; margin-bottom: 14px; }
.legal__body p, .legal__body li { color: #3E424B; }
.legal__body p + p, .legal__body ul + p, .legal__body p + ul { margin-top: 12px; }
.legal__body ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal__body a { color: var(--accent); }
.legal__body strong { color: var(--text); font-weight: 600; }

/* placeholder still to be filled in by the owner: deliberately easy to spot */
.ph { display: inline-block; padding: 1px 9px; border-radius: 6px; background: rgba(217, 150, 47, .18); color: #8A5A12; font-weight: 600; font-size: .92em; border: 1px dashed rgba(138, 90, 18, .45); }

@media (max-width: 860px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
}

/* Bundle cover images */
.pd__media img { aspect-ratio: 10 / 7; }
.bundle__cover { display: block; margin: -8px -6px 8px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .05); background: var(--bg); }
.bundle__cover img { width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: cover; transition: transform .5s var(--ease); }
.bundle:hover .bundle__cover img { transform: scale(1.02); }
.bundle__cover--vault { margin: 0 0 22px; border-color: rgba(255, 255, 255, .12); }
.bundle--featured .bundle__main { align-self: center; }
.bundle--featured .bundle__main .btn { margin-top: 14px; }
