/* ============================================================
   Quartoloom SMS — Brand system
   Navy + Teal + Aeonik, woven-wave + ribbon graphics
   ============================================================ */

@font-face {
  font-family: "Aeonik";
  src: url("assets/fonts/Aeonik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("assets/fonts/Aeonik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand core */
  --navy: #0e2240;
  --navy-900: #0a1a33;
  --navy-800: #122a4e;
  --navy-700: #1b3a63;
  --navy-600: #244a7a;
  --teal: #18b6a6;
  --teal-bright: #1fd3be;
  --teal-deep: #0e8c80;
  --teal-tint: #d6f1ed;
  --teal-tint-2: #eaf8f5;

  --paper: #f3f6f7;
  --paper-2: #e9eff1;
  --white: #ffffff;
  --ink: #0e2240;
  --muted: #5c6e80;
  --muted-2: #8294a3;
  --line: #dce5e9;

  /* Active accent (tweakable) */
  --accent: var(--teal);
  --accent-2: var(--teal-bright);

  --font: "Aeonik", "Segoe UI", system-ui, sans-serif;

  /* Type scale (design px @1920×1080) */
  --fs-mega: 132px;
  --fs-h1: 96px;
  --fs-h2: 66px;
  --fs-h3: 44px;
  --fs-lead: 34px;
  --fs-body: 27px;
  --fs-sm: 22px;
  --fs-xs: 18px;

  --pad: 120px;
}

* {
  box-sizing: border-box;
}

deck-stage:not(:defined) {
  visibility: hidden;
}
deck-stage {
  background: #05101f;
}

section {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Shared primitives ---------- */
.fill {
  position: absolute;
  inset: 0;
}
.pad {
  position: absolute;
  inset: 0;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
}

.kicker {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.kicker::before {
  content: "";
  width: 46px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.on-navy .kicker {
  color: var(--teal-bright);
}
.on-navy .kicker::before {
  background: var(--teal-bright);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
.h1 {
  font-size: var(--fs-h1);
}
.h2 {
  font-size: var(--fs-h2);
}
.h3 {
  font-size: var(--fs-h3);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.34;
  color: var(--muted);
  font-weight: 400;
  text-wrap: pretty;
}
.on-navy {
  color: var(--white);
}
.on-navy .lead {
  color: #b9c8d6;
}
.tg {
  color: var(--accent);
}

p {
  margin: 0;
}
.body {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
}

/* Slide chrome: corner logo + page no. */
.chrome-logo {
  position: absolute;
  top: 64px;
  left: var(--pad);
  height: 50px;
  z-index: 5;
}
.chrome-logo img {
  height: 100%;
  display: block;
}
.pageno {
  position: absolute;
  bottom: 58px;
  right: 72px;
  z-index: 5;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}
.on-navy .pageno {
  color: #6f8298;
}
.footmark {
  position: absolute;
  bottom: 56px;
  left: var(--pad);
  z-index: 5;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.on-navy .footmark {
  color: #6f8298;
}

/* Navy slide base */
.s-navy {
  background: var(--navy);
  color: var(--white);
}
.s-navy.grad {
  background: radial-gradient(
    120% 90% at 80% 0%,
    #163662 0%,
    var(--navy) 48%,
    var(--navy-900) 100%
  );
}

/* ---------- Woven wave pattern texture ---------- */
.weave {
  position: absolute;
  inset: 0;
  background-image: url("assets/pattern.svg");
  background-size: 720px auto;
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
  -webkit-print-color-adjust: exact;
  -webkit-filter: blur(0);
  filter: blur(0);
}
[data-theme="a"] .weave {
  opacity: 0.035;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 18px 40px -28px rgba(14, 34, 64, 0.35);
  -webkit-print-color-adjust: exact;
  -webkit-filter: blur(0);
  filter: blur(0);
}
.card-navy {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

/* Feature icon chip */
.chip {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: var(--teal-tint);
  display: grid;
  place-items: center;
  flex: none;
}
.chip svg {
  width: 38px;
  height: 38px;
  stroke: var(--teal-deep);
}
.on-navy .chip {
  background: rgba(24, 182, 166, 0.16);
}
.on-navy .chip svg {
  stroke: var(--teal-bright);
}

[data-theme="a"] .chip {
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--teal);
  width: 70px;
  height: 70px;
}
[data-theme="a"] .chip svg {
  stroke: var(--teal-deep);
}
[data-theme="a"] .on-navy .chip {
  box-shadow: inset 0 0 0 2px var(--teal-bright);
}

/* ---- Theme A · Editorial (restrained, deep accent, flat navy, sharper corners) ---- */
deck-stage[data-theme="a"] {
  --accent: var(--teal-deep);
  --accent-2: var(--teal);
}
[data-theme="a"] .s-navy.grad {
  background: var(--navy);
}
[data-theme="a"] .card {
  border-radius: 6px;
  box-shadow: none;
}
[data-theme="a"] .card-navy {
  border-radius: 6px;
}
[data-theme="a"] .kicker::before {
  width: 64px;
  height: 2px;
}
[data-theme="a"] .pill {
  border-radius: 4px;
}
[data-theme="a"] .eco-core {
  border-radius: 18px;
  box-shadow: 0 0 0 10px rgba(14, 140, 128, 0.1);
}
[data-theme="a"] .eco-node {
  border-radius: 6px;
}
[data-theme="a"] .tier,
[data-theme="a"] .tier.feature {
  border-radius: 8px;
}
[data-theme="a"] .on-navy .kicker,
[data-theme="a"] .stat .n,
[data-theme="a"] .on-navy .stat .n {
  color: var(--teal);
}

/* Pattern visibility toggle */
deck-stage.no-weave .weave {
  display: none;
}

/* Tag pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.pill.soon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--teal-bright);
  border: 1px solid rgba(31, 211, 190, 0.4);
}

/* Stat */
.stat .n {
  font-size: 92px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.on-navy .stat .n {
  color: var(--teal-bright);
}
.stat .l {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.35;
}
.on-navy .stat .l {
  color: #afc0d0;
}

/* Animated entrance */
@media (prefers-reduced-motion: no-preference) {
  [data-deck-active] .rise {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  [data-deck-active] .rise-2 {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both;
  }
  [data-deck-active] .rise-3 {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.16s both;
  }
  [data-deck-active] .rise-4 {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
