/* Production-first: Vanilla CSS, no deps. */

:root{
  --radius-1: 10px;
  --radius-2: 18px;
  --radius-3: 26px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 30px;
  --space-7: 42px;
  --space-8: 56px;

  --border-1: 2px;
  --border-2: 3px;

  --shadow-1: 0 10px 0 var(--shadow);
  --shadow-2: 0 18px 0 var(--shadow);

  --maxw: 1120px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}

/* Theme variables set via data-theme on <html> */
html[data-theme="light"]{
  --bg: #F8F7F2;
  --surface: #FFFFFF;
  --surface2: #F1EFE6;
  --text: #121212;
  --muted: #2B2B2B;
  --muted2: #3A3A3A;
  --border: #121212;
  --shadow: rgba(18,18,18,0.25);
  --accent: #D6002A;
  --accent2: #8B001B;
  --on-accent: #FFFFFF;
  --focus: #005FCC;
  --success: #0B6B3A;
  --warning: #8A4B00;
}
html[data-theme="dark"]{
  --bg: #0B0B0D;
  --surface: #141419;
  --surface2: #1B1B22;
  --text: #F5F5F7;
  --muted: #D7D7DE;
  --muted2: #B8B8C2;
  --border: #F5F5F7;
  --shadow: rgba(0,0,0,0.55);
  --accent: #FF3850;
  --accent2: #FFB3BC;
  --on-accent: #0B0B0D;
  --focus: #00E5FF;
  --success: #2EE59D;
  --warning: #FFB86B;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width: 100%; height: auto; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
p{ margin: 0 0 12px; color: var(--muted); }
strong{ color: var(--text); }

.container{
  width: min(var(--maxw), calc(100% - 2*var(--space-5)));
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: var(--space-3);
  top: -60px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border: var(--border-2) solid var(--border);
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
  z-index: 9999;
}
.skip-link:focus{ top: var(--space-3); outline: none; }
:focus-visible{
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

/* Sticky navbar */
.nav{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in oklab, var(--bg), transparent 25%);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-2) solid var(--border);
}
.nav__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 12px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark{
  width: 34px;
  height: 34px;
  border: var(--border-2) solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.brand__mark img{
  width: 24px; height: 24px;
  object-fit: contain;
}
.brand__text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name{
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand__tag{
  font-size: 12px;
  color: var(--muted2);
}

.nav__links{
  display: none;
  gap: 14px;
}
.nav__links a{
  padding: 8px 10px;
  border-radius: 12px;
}
.nav__links a:hover{
  text-decoration: none;
  background: var(--surface);
  border: var(--border-1) solid var(--border);
}

.nav__tools{
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn{
  border: var(--border-2) solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow-1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.icon-btn:hover{
  transform: translateY(-1px);
}
.icon{
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Language menu (custom, accessible) */
.lang{
  position: relative;
}
.lang__menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(260px, calc(100vw - 32px));
  background: var(--surface);
  border: var(--border-2) solid var(--border);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
  padding: 8px;
  display: none;
}
.lang__menu[aria-hidden="false"]{ display: block; }
.lang__opt{
  width: 100%;
  border: var(--border-1) solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 14px;
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.lang__opt:hover{
  background: var(--surface2);
  border-color: var(--border);
}
.lang__opt[aria-selected="true"]{
  background: color-mix(in oklab, var(--accent), var(--surface) 82%);
  border-color: var(--border);
}
.lang__kbd{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted2);
}

/* Progress bar */
.progress{
  height: 6px;
  background: transparent;
}
.progress__bar{
  height: 100%;
  width: 0%;
  background: var(--accent);
  transform-origin: left center;
}

/* Hero */
.hero{
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-bottom: var(--border-2) solid var(--border);
}
.hero::before{
  content:"";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/bg/brush-red-abstract.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  transform: scale(1.02);
}
.hero::after{
  content:"";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg,
    color-mix(in oklab, var(--bg), transparent 0%),
    color-mix(in oklab, var(--bg), transparent 28%),
    color-mix(in oklab, var(--bg), transparent 0%)
  );
}
.hero__inner{
  position: relative;
  z-index: 2;
  padding: 46px 0 40px;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: center;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: var(--border-2) solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  width: fit-content;
}
.badge__dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--border);
}
h1{
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  padding-top: 15px;
  padding-bottom: 10px;
}
.hero__sub{
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
}
.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: var(--border-2) solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }
.btn--primary{
  background: var(--accent);
  color: var(--on-accent);
}
.btn--ghost{
  background: var(--surface);
  color: var(--text);
}
.trust{
  margin-top: 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 60ch;
}
.trust li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}
.tick{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--surface);
  border: var(--border-2) solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-1);
}
.hero__media{
  display: grid;
  place-items: center;
}
.packshot{
  margin: 0;
  width: min(360px, 100%);
  border-radius: var(--radius-3);
  border: var(--border-2) solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 0%);
  box-shadow: var(--shadow-2);
  padding: 18px;
}
.packshot img{
  display:block;
  margin-inline:auto;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Main sections */
main{ display: block; }
.section{
  padding-top: 30px;
  padding-bottom: 30px;
}
.section__title{
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
  padding-top: 15px;
  padding-bottom: 10px;
}
article{
  border: var(--border-2) solid var(--border);
  border-radius: var(--radius-2);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: 18px;
}
article + article{ margin-top: var(--space-4); }
h2, h3{ color: var(--text); }
h2{ margin: 0; }
h3{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
  padding-top: 15px;
  padding-bottom: 10px;
}
.bullets{
  margin: 0;
  padding-left: 18px;
}
.bullets li{
  margin: 8px 0;
  color: var(--muted);
}
.cta-row{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Proof blocks */
.proof{
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-4);
}
.stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.stat{
  border: var(--border-2) solid var(--border);
  border-radius: var(--radius-2);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: 14px;
}
.stat__num{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.stat__label{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.testimonials{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.quote{
  border: var(--border-2) solid var(--border);
  border-radius: var(--radius-2);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: 16px;
  position: relative;
}
.quote__top{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
}
.quote__top img{
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.quote blockquote{
  margin: 0;
  color: var(--muted);
}
.quote cite{
  display:block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}
.guarantee{
  display: flex;
  align-items: center;
  gap: 14px;
  border: var(--border-2) solid var(--border);
  border-radius: var(--radius-2);
  background: color-mix(in oklab, var(--accent), var(--surface) 86%);
  box-shadow: var(--shadow-1);
  padding: 16px;
}
.guarantee img{
  width: 74px;
  height: 74px;
  object-fit: contain;
}

/* Pricing */
.pricing{
  margin-top: var(--space-5);
}
.pricing__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.plan{
  border: var(--border-2) solid var(--border);
  border-radius: var(--radius-2);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.plan--hot{
  background: color-mix(in oklab, var(--accent), var(--surface) 88%);
}
.plan__kicker{
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  display:flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding: 5px 10px;
  border: var(--border-2) solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: 12px;
}
.plan__qty{
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}
.pack-stack{
  margin: 8px auto 10px;
  width: 180px;
  height: 190px;
  position: relative;
}
.pack-stack img{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 120px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 12px 0 var(--shadow));
}
.pack-stack--3 img:nth-child(2){ transform: translate(calc(-50% - 22px), calc(-50% + 10px)) rotate(-4deg); opacity: 0.98; }
.pack-stack--3 img:nth-child(3){ transform: translate(calc(-50% + 22px), calc(-50% + 10px)) rotate(4deg); opacity: 0.98; }
.pack-stack--6 img:nth-child(2){ transform: translate(calc(-50% - 30px), calc(-50% + 10px)) rotate(-6deg); opacity: 0.96; }
.pack-stack--6 img:nth-child(3){ transform: translate(calc(-50% + 30px), calc(-50% + 10px)) rotate(6deg); opacity: 0.96; }
.pack-stack--6 img:nth-child(4){ transform: translate(calc(-50% - 14px), calc(-50% + 26px)) rotate(-2deg); opacity: 0.92; }
.pack-stack--6 img:nth-child(5){ transform: translate(calc(-50% + 14px), calc(-50% + 26px)) rotate(2deg); opacity: 0.92; }
.pack-stack--6 img:nth-child(6){ transform: translate(-50%, calc(-50% + 42px)); opacity: 0.88; }

.plan__bullets{
  margin: 0;
  padding-left: 18px;
}
.plan__bullets li{ margin: 8px 0; color: var(--muted); }
.plan__cta{
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  place-items: center;
}
.plan__cta .btn{
  width: min(100%, 360px);
}

/* FAQ */
.faq{
  margin-top: var(--space-5);
  border: var(--border-2) solid var(--border);
  border-radius: var(--radius-2);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
details{
  border-top: var(--border-2) solid var(--border);
}
details:first-child{ border-top: 0; }
summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--text);
}
summary::-webkit-details-marker{ display:none; }
.faq__a{
  padding: 0 16px 14px;
  color: var(--muted);
}

/* Footer */
footer{
  border-top: var(--border-2) solid var(--border);
  padding: 24px 0;
  background: color-mix(in oklab, var(--bg), var(--surface) 12%);
}
.footer__grid{
  display: grid;
  gap: 12px;
}
.footer__link{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border: var(--border-2) solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  width: fit-content;
}
.small{
  font-size: 13px;
  color: var(--muted);
}

/* Motion: reveal */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.2,.8,.2,1);
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 860px){
  .nav__links{ display: inline-flex; }
}
@media (max-width: 860px){
  .hero__grid{ grid-template-columns: 1fr; gap: var(--space-5); text-align: center; }
  .badge{ margin-inline: auto; }
  .hero__sub{ margin-inline: auto; }
  .hero__cta{ justify-content: center; }
  .trust{ margin-inline:auto; }
  .trust li{ justify-content: center; text-align: left; }
  .stats{ grid-template-columns: repeat(2,minmax(0,1fr)); }
  .testimonials{ grid-template-columns: 1fr; }
  .pricing__grid{ grid-template-columns: 1fr; }
  .plan__cta{ place-items: center; }
  .hero__cta .btn, .cta-row .btn, .plan__cta .btn{ width: min(100%, 360px); justify-content: center; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .reveal{ transition: none; }
  .icon-btn:hover, .btn:hover{ transform: none; }
  .hero::before{ transform: none; }
}
