/* CourSip Static Site — Warm Frosted Glass (GLASS-01 / GLASS-02) + Crayon Protagonist (WELCOME-01)
 * Primary family: fluid-glass (warm sunlit ambient glass shells + opaque crisp reading cards + emerald spotlight)
 * Borrowed layer: WELCOME-01 hand-drawn crayon mascot, organic crayon headline stroke & brush-painted primary CTA
 */

@import url("./brushes.css");

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

@font-face {
  font-family: "Departure Mono";
  src: url("./assets/fonts/DepartureMono-1.500.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Warm Sunlit Studio Environment (GLASS-01 / GLASS-02 + WELCOME-01) */
  --bg-base: #efe7d9;
  --bg-ambient:
    radial-gradient(ellipse 68% 36% at 14% 6%, rgb(255 251 244 / 0.94), transparent 64%),
    radial-gradient(ellipse 52% 34% at 84% 8%, rgb(188 213 186 / 0.62), transparent 62%),
    radial-gradient(ellipse 58% 34% at 78% 34%, rgb(222 195 162 / 0.56), transparent 66%),
    radial-gradient(ellipse 60% 34% at 16% 58%, rgb(196 218 196 / 0.54), transparent 64%),
    radial-gradient(ellipse 56% 32% at 84% 84%, rgb(232 208 175 / 0.55), transparent 66%),
    linear-gradient(180deg, #f6f0e5 0%, #eae0ce 44%, #f3ece0 100%);

  /* Layered Glass Materiality: Outer translucent shell -> More opaque crisp inner reading card */
  --glass-shell: rgb(255 251 245 / 0.52);
  --glass-shell-strong: rgb(255 252 246 / 0.68);
  --glass-card: rgb(255 253 249 / 0.86);
  --glass-card-inset: rgb(246 240 230 / 0.72);
  --glass-pill: rgb(255 252 247 / 0.64);
  --glass-border: rgb(255 255 255 / 0.74);
  --glass-edge: rgb(72 56 36 / 0.11);
  --glass-edge-strong: rgb(72 56 36 / 0.18);
  --glass-rim-inset: inset 0 1px 0 rgb(255 255 255 / 0.85);
  --glass-shadow: 0 24px 58px -26px rgb(68 50 28 / 0.22), 0 2px 8px rgb(68 50 28 / 0.06);
  --card-shadow: 0 8px 24px -16px rgb(64 48 26 / 0.16), 0 1px 2px rgb(64 48 26 / 0.05);

  /* Ink & Hierarchy */
  --ink: #1b1d1a;
  --muted: #565a52;
  --line: rgb(56 46 32 / 0.1);

  /* Signature GLASS-01 Emerald + WELCOME-01 Crayon Signals */
  --emerald-bg: linear-gradient(155deg, #217a53 0%, #16593c 100%);
  --emerald-solid: #1b6545;
  --emerald-hover: #145036;
  --emerald-ink: #fcfaf4;
  --emerald-muted: #cbe7d7;
  --emerald-line: rgb(255 255 255 / 0.22);
  --emerald-shadow: 0 24px 48px -20px rgb(18 76 50 / 0.42);

  --sage-sheet: linear-gradient(160deg, #d7e3d4 0%, #e7eee3 54%, #f8f5ec 100%);
  --sage-soft: rgb(33 110 74 / 0.11);
  --sage-ink: #164932;

  --crayon-gold: #f2cf63;
  --crayon-gold-ink: #241b05;
  --crayon-coral: #e47d58;
  --coral-bg: rgb(228 125 88 / 0.14);
  --coral-ink: #a63d1b;
  --success-bg: rgb(27 122 72 / 0.13);
  --success-ink: #14633a;

  /* Site-wide handcrafted oil-marker, masking tape & matte die-cut sticker tokens */
  --frame-ink: #1e1a16;
  --frame-coral: #df5e49;
  --tape-bg: #fcf6e6;
  --tape-edge: rgb(148 128 96 / 0.24);
  --tape-yellow: #f6d860;
  --sticker-yellow: #f8da64;
  --sticker-green: #52a476;
  --sticker-coral: #e1644c;
  --sticker-white: #fcf9f0;
  --sticker-paper-edge: rgb(118 98 68 / 0.18);

  --dark-pill: #1b1a18;
  --dark-pill-ink: #faf7f0;

  --header-bg: rgb(247 241 231 / 0.72);

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, "PingFang SC", sans-serif;
  --font-display: "Fredoka One", ui-rounded, -apple-system, sans-serif;
  --font-mono: "Departure Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 11px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --max-w: 1120px;

  --ease-florian: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-quick: 140ms;
  --dur-std: 270ms;
}

/* Warm Evening Walnut Smoked Glass Theme (via nav Sun/Moon toggle) */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg-base: #15120f;
  --bg-ambient:
    radial-gradient(ellipse 64% 34% at 16% 6%, rgb(198 154 96 / 0.17), transparent 64%),
    radial-gradient(ellipse 54% 32% at 84% 10%, rgb(68 134 96 / 0.18), transparent 62%),
    radial-gradient(ellipse 56% 34% at 76% 42%, rgb(184 134 84 / 0.13), transparent 66%),
    radial-gradient(ellipse 58% 32% at 18% 68%, rgb(74 128 96 / 0.14), transparent 64%),
    linear-gradient(180deg, #171411 0%, #12100d 52%, #171410 100%);

  --glass-shell: rgb(36 31 27 / 0.62);
  --glass-shell-strong: rgb(42 37 32 / 0.76);
  --glass-card: rgb(46 41 36 / 0.82);
  --glass-card-inset: rgb(28 24 21 / 0.74);
  --glass-pill: rgb(48 42 37 / 0.72);
  --glass-border: rgb(255 244 228 / 0.14);
  --glass-edge: rgb(255 244 228 / 0.1);
  --glass-edge-strong: rgb(255 244 228 / 0.18);
  --glass-rim-inset: inset 0 1px 0 rgb(255 244 228 / 0.13);
  --glass-shadow: 0 28px 68px -22px rgb(0 0 0 / 0.72), 0 0 0 1px rgb(255 244 228 / 0.06);
  --card-shadow: 0 10px 28px -16px rgb(0 0 0 / 0.56);

  --ink: #f6f1e6;
  --muted: #b6afa2;
  --line: rgb(255 244 228 / 0.1);

  --emerald-bg: linear-gradient(155deg, #247d56 0%, #17573c 100%);
  --emerald-solid: #28855c;
  --emerald-hover: #30986a;
  --emerald-ink: #fcfaf4;
  --emerald-muted: #cbe7d7;
  --emerald-line: rgb(255 255 255 / 0.22);
  --emerald-shadow: 0 26px 56px -22px rgb(0 0 0 / 0.75);

  --sage-sheet: linear-gradient(160deg, #2e3e34 0%, #37463b 55%, #2a312b 100%);
  --sage-soft: rgb(146 208 168 / 0.15);
  --sage-ink: #c5e8d0;

  --crayon-gold: #e8c456;
  --crayon-gold-ink: #1e1604;
  --crayon-coral: #ee9271;
  --coral-bg: rgb(238 146 113 / 0.16);
  --coral-ink: #ffb599;
  --success-bg: rgb(94 214 134 / 0.16);
  --success-ink: #7ee3a0;

  --dark-pill: #f5efe3;
  --dark-pill-ink: #191612;

  --header-bg: rgb(22 19 16 / 0.76);

  /* Cozy warm-paper stickers & warm chalk ink in dark mode */
  --frame-ink: #f3ead8;
  --frame-coral: #f2856d;
  --tape-bg: #ebe1c9;
  --tape-edge: rgb(255 248 232 / 0.22);
  --tape-yellow: #e5c654;
  --sticker-yellow: #e9cc5d;
  --sticker-green: #4fa275;
  --sticker-coral: #e4745c;
  --sticker-white: #efe8d8;
  --sticker-paper-edge: rgb(0 0 0 / 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
  background-image: var(--bg-ambient);
  background-attachment: scroll;
  color: var(--ink);
}

main {
  flex: 1 0 auto;
  overflow-x: clip;
}

::selection {
  background: var(--crayon-gold);
  color: var(--crayon-gold-ink);
}

:focus-visible {
  outline: 2px solid var(--emerald-solid);
  outline-offset: 3px;
  border-radius: 8px;
}

a {
  color: var(--sage-ink);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.25px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--dark-pill);
  color: var(--dark-pill-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.display-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Reusable Glass Surfaces (GLASS-01 / GLASS-02) ---------- */

.glass-shell {
  background: var(--glass-shell);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-rim-inset), var(--glass-shadow);
}

.glass-card {
  background: var(--glass-card);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-rim-inset), var(--card-shadow);
}

/* ---------- Floating Warm Glass Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  border-bottom: 1px solid var(--glass-edge);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.24rem;
  flex: none;
}

.brand-link img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass-pill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-rim-inset), 0 4px 14px -8px rgb(60 44 24 / 0.14);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 560;
  padding: 6px 14px;
  border-radius: 999px;
  transition: color var(--dur-quick) var(--ease-out), background var(--dur-quick) var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--glass-card);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-pill);
  color: var(--ink);
  box-shadow: var(--glass-rim-inset);
  padding: 0;
  transition: transform var(--dur-quick) var(--ease-florian), background var(--dur-quick) var(--ease-out);
}

.theme-toggle:hover {
  background: var(--glass-card);
}

.theme-toggle:active {
  transform: scale(0.93);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--dark-pill);
  color: var(--dark-pill-ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 620;
  white-space: nowrap;
  transition: transform var(--dur-quick) var(--ease-florian), opacity var(--dur-quick) var(--ease-out);
}

.nav-cta:hover {
  opacity: 0.88;
}

.nav-cta:active {
  transform: scale(0.96);
}

/* ---------- Buttons (WELCOME-01 Crayon Brush CTA + GLASS-01 Matte Pill) ---------- */

.btn-crayon {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 13px 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--emerald-ink);
  text-decoration: none;
  font-size: 0.985rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform var(--dur-quick) var(--ease-florian);
}

.btn-crayon::before {
  content: "";
  position: absolute;
  inset: 0 -4px;
  z-index: -1;
  background: var(--emerald-solid);
  mask: var(--paint-brush) center / 100% 100% no-repeat;
  -webkit-mask: var(--paint-brush) center / 100% 100% no-repeat;
  transition: background var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-florian);
}

.btn-crayon:hover::before {
  background: var(--emerald-hover);
  transform: scale(1.015, 1.02);
}

.btn-crayon:active {
  transform: translateY(1px) scale(0.985);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--dark-pill);
  color: var(--dark-pill-ink);
  text-decoration: none;
  font-size: 0.935rem;
  font-weight: 620;
  transition: transform var(--dur-quick) var(--ease-florian), opacity var(--dur-quick) var(--ease-out);
}

.btn-dark:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-dark:active {
  transform: scale(0.97);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--glass-edge-strong);
  border-radius: 999px;
  background: var(--glass-card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.935rem;
  font-weight: 600;
  box-shadow: var(--glass-rim-inset);
  transition: background var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-florian), border-color var(--dur-quick) var(--ease-out);
}

.btn-glass:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-glass:active {
  transform: scale(0.97);
}

/* White pill button on lush emerald card (GLASS-01) */
.btn-cream {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: #fcfaf4;
  color: #123c29;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
  box-shadow: 0 8px 20px -10px rgb(10 38 24 / 0.45);
  transition: transform var(--dur-quick) var(--ease-florian), background var(--dur-quick) var(--ease-out);
}

.btn-cream:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-cream:active {
  transform: scale(0.97);
}

/* ---------- Hero Section (WELCOME-01 Character + Crayon Mark meets GLASS-01 Shell) ---------- */

.hero {
  padding-block: clamp(2.8rem, 6vw, 4.5rem) clamp(2.4rem, 5vw, 3.6rem);
}

.hero-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2rem, 4.5vw, 3.25rem);
}

@media (min-width: 961px) {
  .hero {
    min-height: calc(100svh - 84px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(2.5rem, 5vh, 4rem) clamp(1.5rem, 3vh, 2.25rem);
  }

  .hero-stage {
    flex: 1 0 auto;
    width: min(100% - 40px, var(--max-w));
    margin-inline: auto;
    justify-content: center;
    position: relative;
    padding-bottom: 48px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 6px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.15vw, 3.65rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.038em;
  text-wrap: balance;
  color: var(--ink);
  max-width: 14.5ch;
}

/* WELCOME-01 organic honey-gold crayon highlighter sweep behind key phrase */
.crayon-keep {
  white-space: nowrap;
}

.crayon-mark {
  position: relative;
  display: inline-block;
  isolation: isolate;
  white-space: nowrap;
}

.crayon-mark::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.08em;
  bottom: 0.04em;
  height: 0.34em;
  z-index: -1;
  background: var(--crayon-gold);
  opacity: 0.88;
  transform: rotate(-1.3deg);
  mask: var(--paint-brush) center / 100% 100% no-repeat;
  -webkit-mask: var(--paint-brush) center / 100% 100% no-repeat;
}

:root[data-theme="dark"] .crayon-mark::after {
  background: #f0c94d;
  opacity: 0.54;
  filter: saturate(1.12);
}

.hero-sub {
  margin-top: 18px;
  max-width: 48ch;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero-meta {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.hero-scroll-cue {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 560;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-florian);
}

.hero-scroll-cue:hover {
  color: var(--ink);
  transform: translateY(2px);
}

.hero-scroll-cue .icon {
  width: 15px;
  height: 15px;
}

@media (min-width: 961px) {
  .hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
  }

  .hero-scroll-cue:hover {
    transform: translate(-50%, 2px);
  }
}

/* Unboxed Giant Animated CourSip Pearl Mascot + Site-Wide Handcrafted Stickers */
.craft-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-mascot-canvas {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-mascot-canvas::before {
  content: "";
  position: absolute;
  inset: 10% 8% 12% 8%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 54%,
    rgb(196 220 194 / 0.44) 0%,
    rgb(245 234 210 / 0.26) 48%,
    transparent 74%
  );
  filter: blur(22px);
  pointer-events: none;
}

:root[data-theme="dark"] .hero-mascot-canvas::before {
  background: radial-gradient(
    circle at 50% 54%,
    rgb(86 150 112 / 0.24) 0%,
    rgb(218 178 122 / 0.14) 46%,
    transparent 74%
  );
}

.hero-mascot-stage {
  position: relative;
  z-index: 2;
  width: 96%;
  height: 96%;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 50%;
}

.hero-mascot-poster,
.hero-mascot-canvas-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  transform-origin: 50% 84%;
  filter: drop-shadow(0 24px 32px rgb(46 38 24 / 0.16));
}

:root[data-theme="dark"] .hero-mascot-poster,
:root[data-theme="dark"] .hero-mascot-canvas-el {
  filter: drop-shadow(0 26px 40px rgb(0 0 0 / 0.52));
}

.hero-mascot-poster {
  transition: opacity 180ms ease-out;
}

.hero-mascot-stage.is-mascot-ready .hero-mascot-poster {
  opacity: 0;
  visibility: hidden;
}

.hero-mascot-ink {
  position: absolute;
  top: 16%;
  right: 11%;
  width: clamp(34px, 7.2%, 46px);
  height: clamp(34px, 7.2%, 46px);
  pointer-events: none;
  z-index: 5;
  color: var(--frame-ink);
}

.hero-mascot-ink[data-mark="glint"] {
  color: var(--frame-coral);
}

.hero-mascot-ink svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* Site-wide handcrafted oil-marker, tape & matte die-cut stickers */
.has-stickers {
  position: relative;
}

.site-sticker {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
  z-index: 6;
}

/* Hero open-canvas orbiting stickers (unboxed, wide clear breathing room) */
.hero-sticker-tape {
  top: 2%;
  left: -1%;
  width: clamp(136px, 31%, 174px);
}

.hero-sticker-star {
  top: 7%;
  right: 1%;
  width: clamp(48px, 11.5%, 62px);
}

.hero-sticker-arrow {
  bottom: 22%;
  left: -1%;
  width: clamp(42px, 10%, 54px);
}

.hero-sticker-tag {
  bottom: 7%;
  right: 3%;
  width: clamp(72px, 16%, 88px);
}

/* Section stickers across Features, Workspace, Security, Pricing & FAQ */
.sticker-tr-flower {
  top: -26px;
  right: -16px;
  width: 78px;
}

.sticker-bl-bulb {
  bottom: -24px;
  left: -18px;
  width: 58px;
}

.sticker-window-tape {
  top: -28px;
  right: 26px;
  width: 176px;
}

.sticker-tr-heart {
  top: -28px;
  right: -12px;
  width: 54px;
}

.sticker-tl-daisy {
  top: -28px;
  left: -18px;
  width: 58px;
}

.sticker-tr-sparks {
  top: -20px;
  right: -14px;
  width: 44px;
}

.sticker-br-star {
  bottom: -24px;
  right: -14px;
  width: 54px;
}

.hero-art-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hero-mini-tile {
  padding: 9px 11px;
  border-radius: 13px;
  background: var(--glass-card);
  border: 1px solid var(--glass-edge);
}

.hero-mini-tile .display-num {
  display: block;
  font-size: 1.32rem;
  line-height: 1.08;
  color: var(--ink);
}

.hero-mini-tile span:last-child {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  font-weight: 560;
  color: var(--muted);
  line-height: 1.3;
}

/* ---------- Interactive macOS Glass Workspace (GLASS-01 + GLASS-02) ---------- */

.window-stage {
  margin-top: 0;
}

.mac-window {
  border-radius: 28px;
  padding: 14px;
  overflow: hidden;
}

.mac-titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 14px;
}

.mac-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mac-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.mac-lights .dot-red { background: #ff5f57; }
.mac-lights .dot-yellow { background: #febc2e; }
.mac-lights .dot-green { background: #28c840; }

.mac-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-status {
  justify-self: end;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--glass-card);
  border: 1px solid var(--glass-edge);
  color: var(--sage-ink);
  white-space: nowrap;
}

.mac-media-slot {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.mac-media-slot > video,
.mac-media-slot > img {
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

/* GLASS-01 / GLASS-02 Floating Vertical Icon Rail */
.preview-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  border-radius: 999px;
  background: var(--glass-shell-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-rim-inset);
  align-self: start;
}

.preview-rail-brand {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.preview-rail-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.preview-puck {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
}

.preview-puck.is-active {
  background: var(--glass-card);
  color: var(--ink);
  border-color: var(--glass-border);
  box-shadow: 0 4px 12px -4px rgb(46 36 20 / 0.22);
}

.preview-puck .icon {
  width: 16px;
  height: 16px;
}

.preview-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* GLASS-02 Top 4 KPI Glass Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kpi-tile {
  padding: 13px 15px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-tile.is-emerald {
  background: var(--emerald-bg);
  color: var(--emerald-ink);
  border: 1px solid var(--emerald-line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), var(--card-shadow);
}

.kpi-tile small {
  font-size: 0.74rem;
  font-weight: 560;
  color: var(--muted);
}

.kpi-tile.is-emerald small {
  color: var(--emerald-muted);
}

.kpi-tile strong {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.kpi-badge {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 620;
  padding: 2px 7px;
  border-radius: 999px;
}

.kpi-badge.is-ok {
  background: rgb(255 255 255 / 0.2);
  color: var(--emerald-ink);
}

.kpi-badge.is-coral {
  background: var(--coral-bg);
  color: var(--coral-ink);
}

.kpi-badge.is-neutral {
  background: var(--sage-soft);
  color: var(--sage-ink);
}

.preview-view[hidden] {
  display: none;
}

.preview-panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: 14px;
  align-items: stretch;
}

.preview-pane {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  border-radius: 18px;
}

.preview-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-pane-title {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.preview-pane-meta {
  color: var(--muted);
}

.preview-coach-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-coach-avatar {
  height: 26px;
  width: auto;
  object-fit: contain;
  flex: none;
}

.rubric-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.band-chip {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass-card-inset);
  color: var(--muted);
}

.band-chip.is-target {
  background: var(--crayon-gold);
  border-color: transparent;
  color: var(--crayon-gold-ink);
}

/* GLASS-02 Horizontal Category Progress Bars */
.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  gap: 5px;
}

.bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.81rem;
  font-weight: 560;
  color: var(--ink);
}

.bar-label small {
  font-size: 0.72rem;
  font-weight: 630;
}

.bar-label small.is-ok { color: var(--success-ink); }
.bar-label small.is-coral { color: var(--coral-ink); }

.bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--glass-card-inset);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
}

.bar-fill.is-emerald { background: #1e7c54; width: 92%; }
.bar-fill.is-coral { background: var(--crayon-coral); width: 58%; }
.bar-fill.is-gold { background: var(--crayon-gold); width: 88%; }

.feedback-callout {
  margin-top: auto;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--glass-card-inset);
  border: 1px solid var(--glass-edge);
}

.feedback-callout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--muted);
}

.feedback-callout p {
  font-size: 0.855rem;
  line-height: 1.5;
  color: var(--ink);
}

.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid var(--glass-edge);
  background: var(--glass-card-inset);
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--ink);
}

.check-badge {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.check-badge.is-ok {
  background: var(--success-bg);
  color: var(--success-ink);
}

.check-badge.is-gap {
  background: var(--coral-bg);
  color: var(--coral-ink);
}

.check-badge .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.check-item strong {
  display: block;
  font-weight: 620;
  margin-bottom: 2px;
}

.check-item span {
  color: var(--muted);
}

.source-row {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-pill {
  font-size: 0.74rem;
  font-weight: 580;
  color: var(--ink);
  background: var(--glass-card);
  border: 1px solid var(--glass-edge);
  padding: 3px 10px;
  border-radius: 999px;
}

.preview-caption {
  font-size: 0.74rem;
  color: var(--muted);
}

/* GLASS-01 / GLASS-02 Floating Bottom Dock Switcher */
.preview-dock-wrap {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.preview-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass-shell-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-rim-inset), 0 8px 20px -10px rgb(56 42 22 / 0.22);
}

.preview-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 580;
  padding: 6px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--dur-std) var(--ease-florian), color var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-florian);
}

.preview-tab:hover {
  color: var(--ink);
}

.preview-tab[aria-selected="true"] {
  background: var(--glass-card);
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 2px 8px -2px rgb(46 34 18 / 0.2);
}

.preview-tab:active {
  transform: scale(0.95);
}

/* Interactive Tab 2 (Context Graph) & Tab 3 (Materials) */
.graph-board {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 14px;
}

.graph-canvas-card {
  padding: 18px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.graph-svg {
  width: 100%;
  height: auto;
  display: block;
}

.linked-context-intro {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.linked-context-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.linked-context-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--glass-card-inset);
  border: 1px solid var(--glass-edge);
  font-size: 0.77rem;
  line-height: 1.3;
}

.linked-context-item.is-coral {
  background: var(--coral-bg);
  border-color: rgb(228 125 88 / 0.32);
}

.linked-context-item strong {
  color: var(--ink);
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.linked-context-item > span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.linked-context-item.is-coral > span:last-child {
  color: var(--coral-ink);
}

.linked-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.linked-dot.is-emerald {
  background: #1e7c54;
}

.linked-dot.is-coral {
  background: #e47d58;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mat-card {
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mat-card strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.mat-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3.75rem, 6.8vw, 5.5rem);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(1.85rem, 3.6vw, 2.75rem);
}

.section-head.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.032em;
  text-wrap: balance;
  color: var(--ink);
}

.section-head p {
  margin-top: 12px;
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--muted);
}

.crayon-rule {
  width: 140px;
  height: 8px;
  margin-top: 12px;
  background: var(--paint-pine) left center / 100% 100% no-repeat;
  opacity: 0.7;
}

.section-head.is-centered .crayon-rule {
  margin-inline: auto;
}

:root[data-theme="dark"] .crayon-rule {
  background-image: var(--paint-lit);
}

/* ---------- Core Workflow (Warm Glass Bento Tray) ---------- */

.glass-tray {
  padding: 14px;
  border-radius: 28px;
}

.workflow-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.wf-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  border-radius: 20px;
}

.wf-card h3 {
  font-size: 1.2rem;
  font-weight: 660;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.wf-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Card 1: Emerald Hero Card (GLASS-01 focal highlight, 7 cols) */
.wf-rubric {
  grid-column: span 7;
  background: var(--emerald-bg);
  color: var(--emerald-ink);
  border: 1px solid var(--emerald-line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), var(--emerald-shadow);
}

.wf-rubric p {
  color: var(--emerald-muted);
  max-width: 48ch;
}

.wf-rubric-visual {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}

.wf-band-box {
  padding: 10px 11px;
  border-radius: 13px;
  background: rgb(255 255 255 / 0.13);
  border: 1px solid rgb(255 255 255 / 0.16);
}

.wf-band-box.is-focus {
  background: var(--crayon-gold);
  color: var(--crayon-gold-ink);
  border-color: transparent;
}

.wf-band-box .display-num {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
}

.wf-band-box small {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  opacity: 0.85;
}

/* Card 2: Bright Frosted Glass Graph Card (5 cols) */
.wf-graph {
  grid-column: span 5;
}

.wf-graph p {
  color: var(--muted);
}

.wf-graph-mini {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass-card-inset);
  border: 1px solid var(--glass-edge);
}

/* Card 3: Full-width Integrity Bar (12 cols) */
.wf-integrity {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
}

.wf-integrity p {
  color: var(--muted);
  margin-top: 4px;
}

.card-puck {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
}

.card-puck.is-on-emerald {
  background: rgb(255 255 255 / 0.16);
  color: var(--emerald-ink);
}

.card-puck.is-soft {
  background: var(--sage-soft);
  color: var(--sage-ink);
}

.integrity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.integrity-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass-card-inset);
  border: 1px solid var(--glass-edge);
  color: var(--ink);
}

/* ---------- Security & Trust Section ---------- */

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: start;
}

.security-intro h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.032em;
  text-wrap: balance;
  color: var(--ink);
}

.security-intro > p {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 44ch;
}

.security-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.94rem;
  font-weight: 620;
  text-decoration: none;
}

.security-policy-link:hover {
  text-decoration: underline;
}

/* Crayon Mascot Sandbox Card */
.mascot-card {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--sage-sheet);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-rim-inset), var(--card-shadow);
}

.mascot-card img {
  height: 96px;
  width: auto;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 10px 16px rgb(40 36 26 / 0.16));
}

.mascot-card strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 660;
  color: var(--ink);
  margin-bottom: 4px;
}

.mascot-card p {
  font-size: 0.875rem;
  line-height: 1.54;
  color: var(--muted);
}

.trust-shell {
  padding: 10px;
  border-radius: 26px;
}

.trust-panel {
  border-radius: 18px;
  overflow: hidden;
}

.trust-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  align-items: start;
}

.trust-row + .trust-row {
  border-top: 1px solid var(--line);
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--sage-soft);
  color: var(--sage-ink);
}

.trust-row h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 5px;
}

.trust-row p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Pricing Section (GLASS-01 Emerald Spotlight + Fredoka One Cups) ---------- */

.pricing-notices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin: 0 auto 18px;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-card);
  box-shadow: var(--glass-rim-inset), 0 4px 14px -10px rgb(56 42 22 / 0.18);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink);
}

.notice-pill.is-gold {
  background: var(--crayon-gold);
  border-color: transparent;
  color: var(--crayon-gold-ink);
  font-weight: 620;
}

.notice-pill .icon {
  width: 15px;
  height: 15px;
}

.pricing-balance-note {
  margin: 0 auto clamp(1.5rem, 2.8vw, 2.1rem);
  max-width: 62ch;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.pricing-stage {
  padding: 14px;
  border-radius: 28px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.tier-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 20px;
  transition: transform var(--dur-std) var(--ease-florian);
}

.tier-card:hover {
  transform: translateY(-2px);
}

/* Medium Cup — Lush Emerald GLASS-01 Hero Card */
.tier-card.is-popular {
  background: var(--emerald-bg);
  color: var(--emerald-ink);
  border: 1px solid var(--emerald-line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), var(--emerald-shadow);
}

.tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tier-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
}

.cup-icon {
  color: var(--sage-ink);
  flex: none;
}

.tier-card.is-popular .cup-icon {
  color: var(--crayon-gold);
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  color: var(--emerald-ink);
  white-space: nowrap;
}

.tier-badge.is-bonus {
  background: var(--crayon-gold);
  color: var(--crayon-gold-ink);
}

.tier-price-row {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 400;
  line-height: 1;
}

.tier-unit {
  font-size: 0.875rem;
  color: var(--muted);
}

.tier-card.is-popular .tier-unit {
  color: var(--emerald-muted);
}

.tier-credits {
  margin-top: 16px;
  padding: 10px 13px;
  border-radius: 13px;
  background: var(--glass-card-inset);
  border: 1px solid var(--glass-edge);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.tier-card.is-popular .tier-credits {
  background: rgb(255 255 255 / 0.14);
  border-color: rgb(255 255 255 / 0.2);
}

.tier-credits strong {
  font-size: 0.98rem;
  font-weight: 680;
}

.tier-checks {
  font-size: 0.77rem;
  color: var(--muted);
}

.tier-card.is-popular .tier-checks {
  color: var(--emerald-muted);
}

:root[data-theme="dark"] .tier-card:not(.is-popular) .tier-checks {
  color: #d6cfc2;
}

:root[data-theme="dark"] .tier-card:not(.is-popular) .tier-credits {
  border-color: rgb(255 244 228 / 0.16);
}

:root[data-theme="dark"] .tier-card:not(.is-popular) .btn-glass {
  border-color: rgb(255 244 228 / 0.32);
  background: rgb(58 52 46 / 0.88);
}

:root[data-theme="dark"] .tier-card:not(.is-popular) .btn-glass:hover {
  border-color: rgb(255 244 228 / 0.56);
}

.tier-desc {
  margin-top: 14px;
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--muted);
  flex: 1;
}

.tier-card.is-popular .tier-desc {
  color: var(--emerald-muted);
}

.tier-action {
  margin-top: 22px;
  width: 100%;
}

.pricing-footnote {
  margin: 26px auto 0;
  max-width: 68ch;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--muted);
}

.pricing-refund-note {
  margin-top: 9px;
  text-align: center;
  font-size: 0.89rem;
  color: var(--muted);
}

/* ---------- Download Anchor Strip ---------- */

.download-strip {
  margin-top: clamp(2.25rem, 4.2vw, 3.25rem);
  padding: clamp(1.4rem, 2.8vw, 2.1rem);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  scroll-margin-top: 96px;
}

.download-strip:target {
  border-color: var(--emerald-solid);
}

.download-strip-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 320px;
}

.download-strip-left img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  flex: none;
}

.download-strip h3 {
  font-size: 1.14rem;
  font-weight: 660;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.download-strip p {
  margin-top: 4px;
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.54;
}

.download-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ---------- FAQ Section ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item {
  padding: 24px 26px;
  border-radius: 20px;
}

.faq-item h3 {
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.935rem;
  line-height: 1.62;
  color: var(--muted);
}

.faq-item strong {
  color: var(--ink);
  font-weight: 620;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--glass-edge);
  background: var(--glass-shell-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-block: 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 580;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Legal / Policy Pages ---------- */

.legal-shell {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(4rem, 7vw, 5.5rem);
}

.legal-wrap {
  width: min(100%, 790px);
  margin-inline: auto;
  padding: 12px;
  border-radius: 28px;
}

.legal-article {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 20px;
}

.legal-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-header h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.875rem;
  color: var(--muted);
}

.legal-callout {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--sage-sheet);
  color: var(--ink);
  border: 1px solid var(--glass-edge);
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-callout strong {
  font-weight: 680;
}

.legal-callout a {
  color: var(--sage-ink);
  font-weight: 640;
}

.legal-body {
  font-size: 0.975rem;
  line-height: 1.72;
  color: var(--ink);
}

.legal-body h2 {
  margin-top: 2.1rem;
  margin-bottom: 0.75rem;
  font-size: 1.22rem;
  font-weight: 660;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p + p {
  margin-top: 0.9rem;
}

.legal-body ul,
.legal-body ol {
  margin-top: 0.75rem;
  padding-left: 1.35rem;
  display: grid;
  gap: 0.5rem;
}

.legal-body li {
  color: var(--ink);
}

.legal-body code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--glass-card-inset);
  border: 1px solid var(--glass-edge);
}

.table-wrap {
  margin-top: 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: left;
}

.policy-table th,
.policy-table td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.policy-table thead th {
  background: var(--glass-card-inset);
  font-weight: 640;
  color: var(--ink);
}

.policy-table th:first-child,
.policy-table td:first-child {
  width: 30%;
  font-weight: 560;
}

.policy-table td:last-child {
  color: var(--muted);
}

/* ---------- Responsive Breakpoints ---------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-mascot-canvas {
    max-width: 410px;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wf-rubric,
  .wf-graph,
  .wf-integrity {
    grid-column: span 12;
  }

  .wf-integrity {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .integrity-pills {
    grid-column: 1 / -1;
  }

  .security-layout,
  .pricing-grid,
  .faq-grid,
  .graph-board,
  .materials-grid {
    grid-template-columns: 1fr;
  }

  .mac-media-slot {
    grid-template-columns: 1fr;
  }

  .preview-rail {
    display: none;
  }

  .preview-panes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--max-w));
  }

  .nav-inner {
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 10px 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding: 3px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 0.84rem;
  }

  .hero-mascot-canvas {
    max-width: 316px;
    margin-top: 4px;
  }

  .hero-sticker-tape {
    top: 0;
    left: 2px;
    width: 126px;
  }

  .hero-sticker-star {
    top: 4%;
    right: 4px;
    width: 44px;
  }

  .hero-sticker-arrow {
    bottom: 20%;
    left: 2px;
    width: 38px;
  }

  .hero-sticker-tag {
    bottom: 5%;
    right: 6px;
    width: 68px;
  }

  .sticker-tr-flower {
    top: -22px;
    right: 2px;
    width: 62px;
  }

  .sticker-bl-bulb {
    bottom: -20px;
    left: 4px;
    width: 46px;
  }

  .sticker-window-tape {
    top: -30px;
    right: 8px;
    width: 128px;
  }

  .sticker-tr-heart {
    top: -22px;
    right: 4px;
    width: 44px;
  }

  .sticker-tl-daisy {
    top: -22px;
    left: 4px;
    width: 48px;
  }

  .sticker-tr-sparks {
    top: -16px;
    right: 4px;
    width: 34px;
  }

  .sticker-br-star {
    bottom: -20px;
    right: 4px;
    width: 44px;
  }

  .mac-window,
  .glass-tray,
  .pricing-stage,
  .trust-shell {
    padding: 10px;
    border-radius: 22px;
  }

  .mac-titlebar {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 4px 4px 10px;
  }

  .mac-status {
    display: none;
  }

  .wf-rubric-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mascot-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .mascot-card img {
    height: 84px;
  }

  .notice-pill {
    border-radius: 14px;
    text-align: left;
  }

  .download-strip-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .policy-table th:first-child,
  .policy-table td:first-child {
    width: 36%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
