/* ==========================================================================
   FeatureFragment — shared design system
   ========================================================================== */

:root {
  /* Light, cream/navy/gold — the FeatureFragment brand palette (default) */
  --bg: #f7f2e6;
  --bg-shell: #f1e9d5;
  --bg-elevated: #fbf7ee;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfbf2;
  --border: #e6ded0;
  --border-soft: #efe8db;
  --text: #14213d;
  --text-dim: #4b5468;
  --text-faint: #656b85;
  --accent: #ae8a38;
  --accent-text: #8a6a26;
  --accent-soft: #ae8a3820;
  --shelfj: #0e7a63;
  --shelfj-soft: #0e7a6316;
  --tartware: #7a4e8c;
  --tartware-soft: #7a4e8c16;
  --danger: #b3423a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --shadow: 0 20px 50px -25px rgba(20, 33, 61, 0.18);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

:root[data-theme="dark"] {
  --bg: #0f1b31;
  --bg-shell: #0b1323;
  --bg-elevated: #15223d;
  --bg-card: #182645;
  --bg-card-hover: #1e2e52;
  --border: #2a3a5c;
  --border-soft: #22314f;
  --text: #f3eee1;
  --text-dim: #b9c0d2;
  --text-faint: #8892ac;
  --accent: #d3ac5c;
  --accent-text: #d3ac5c;
  --accent-soft: #d3ac5c22;
  --shelfj: #3fbfa0;
  --shelfj-soft: #3fbfa022;
  --tartware: #b98fd1;
  --tartware-soft: #b98fd122;
  --danger: #e08279;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("../img/watermark.svg");
  background-repeat: repeat;
  background-size: 660px 660px;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, .brand { font-family: var(--font-serif); font-weight: 700; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

::selection { background: var(--accent-soft); color: var(--accent-text); }

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

.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-shell) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--border-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-faint); }
.icon-btn svg { width: 17px; height: 17px; }

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

.menu-toggle {
  display: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { box-shadow: 0 10px 24px -12px rgba(20, 33, 61, 0.35); }
:root[data-theme="dark"] .btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.2); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-faint); background: var(--bg-card); }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---- Hero ---- */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero h1 .hl { color: var(--accent-text); }

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
}
.hero-meta strong { color: var(--text-dim); font-weight: 600; }

/* ---- product mini-stack visual (carousel) ---- */
.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 56px;
  box-shadow: var(--shadow);
}

.stack-track {
  position: relative;
  height: 240px;
}

.stack-row {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 20px 22px;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.stack-row.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.stack-row .badge-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.stack-title {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
}
.stack-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 40ch;
  margin: 0;
}

.stack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stack-icon svg { width: 22px; height: 22px; overflow: visible; }

/* ---- arrows + dots ---- */
.stack-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.stack-arrow:hover { color: var(--text); border-color: var(--text-faint); }
.stack-arrow svg { width: 16px; height: 16px; }
.stack-arrow-prev { left: 12px; }
.stack-arrow-next { right: 12px; }

.stack-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.stack-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.stack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.stack-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}
[data-product="shelfj"] .stack-dot.is-active { background: var(--shelfj); }
[data-product="tartware"] .stack-dot.is-active { background: var(--tartware); }

.stack-playpause {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.15s ease;
}
.stack-playpause:hover { color: var(--text); }
.stack-playpause svg { width: 14px; height: 14px; }
.stack-playpause .icon-play { display: none; }
.stack-playpause.is-paused .icon-pause { display: none; }
.stack-playpause.is-paused .icon-play { display: block; }

/* ---- icon draw-in reveal (SVG Artista style stroke animation) ---- */
.stack-icon svg [class^="svg-elem-"] {
  fill: transparent;
  transition: stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715),
              fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715);
}

.svg-elem-1  { stroke-dasharray: 44.49px; stroke-dashoffset: 44.49px; transition-delay: 0s,   0.8s; }
.svg-elem-2  { stroke-dasharray: 44.49px; stroke-dashoffset: 44.49px; transition-delay: 0.1s, 0.9s; }
.svg-elem-3  { stroke-dasharray: 11.32px; stroke-dashoffset: 11.32px; transition-delay: 0s,   0.8s; }
.svg-elem-4  { stroke-dasharray: 11.32px; stroke-dashoffset: 11.32px; transition-delay: 0.1s, 0.9s; }
.svg-elem-5  { stroke-dasharray: 11.32px; stroke-dashoffset: 11.32px; transition-delay: 0.2s, 1s; }
.svg-elem-6  { stroke-dasharray: 5px;     stroke-dashoffset: 5px;     transition-delay: 0.3s, 1.1s; }
.svg-elem-7  { stroke-dasharray: 7.81px;  stroke-dashoffset: 7.81px;  transition-delay: 0.4s, 1.2s; }
.svg-elem-8  { stroke-dasharray: 7.81px;  stroke-dashoffset: 7.81px;  transition-delay: 0.5s, 1.3s; }
.svg-elem-9  { stroke-dasharray: 39.12px; stroke-dashoffset: 39.12px; transition-delay: 0s,   0.8s; }
.svg-elem-10 { stroke-dasharray: 31.28px; stroke-dashoffset: 31.28px; transition-delay: 0s,   0.8s; }
.svg-elem-11 { stroke-dasharray: 43.79px; stroke-dashoffset: 43.79px; transition-delay: 0.1s, 0.9s; }
.svg-elem-12 { stroke-dasharray: 15.79px; stroke-dashoffset: 15.79px; transition-delay: 0.2s, 1s; }
.svg-elem-13 { stroke-dasharray: 51.22px; stroke-dashoffset: 51.22px; transition-delay: 0s,   0.8s; }
.svg-elem-14 { stroke-dasharray: 18.37px; stroke-dashoffset: 18.37px; transition-delay: 0.1s, 0.9s; }

.stack-row.is-active .stack-icon svg [class^="svg-elem-"] {
  stroke-dashoffset: 0;
  fill: currentColor;
}

/* ---- StoreQL product-page carousel icons ---- */
.sq-elem-1  { stroke-dasharray: 51.62px; stroke-dashoffset: 51.62px; transition-delay: 0s,   0.8s; }
.sq-elem-2  { stroke-dasharray: 36.06px; stroke-dashoffset: 36.06px; transition-delay: 0s,   0.8s; }
.sq-elem-3  { stroke-dasharray: 46.21px; stroke-dashoffset: 46.21px; transition-delay: 0.1s, 0.9s; }
.sq-elem-4  { stroke-dasharray: 18.21px; stroke-dashoffset: 18.21px; transition-delay: 0.2s, 1s; }
.sq-elem-5  { stroke-dasharray: 41.66px; stroke-dashoffset: 41.66px; transition-delay: 0s,   0.8s; }
.sq-elem-6  { stroke-dasharray: 41.66px; stroke-dashoffset: 41.66px; transition-delay: 0.1s, 0.9s; }
.sq-elem-7  { stroke-dasharray: 41.66px; stroke-dashoffset: 41.66px; transition-delay: 0.2s, 1s; }
.sq-elem-8  { stroke-dasharray: 39.12px; stroke-dashoffset: 39.12px; transition-delay: 0s,   0.8s; }
.sq-elem-9  { stroke-dasharray: 41.31px; stroke-dashoffset: 41.31px; transition-delay: 0s,   0.8s; }
.sq-elem-10 { stroke-dasharray: 20.57px; stroke-dashoffset: 20.57px; transition-delay: 0.1s, 0.9s; }
.sq-elem-11 { stroke-dasharray: 25.4px;  stroke-dashoffset: 25.4px;  transition-delay: 0s,   0.8s; }
.sq-elem-12 { stroke-dasharray: 25.4px;  stroke-dashoffset: 25.4px;  transition-delay: 0.1s, 0.9s; }
.sq-elem-13 { stroke-dasharray: 25.4px;  stroke-dashoffset: 25.4px;  transition-delay: 0.2s, 1s; }
.sq-elem-14 { stroke-dasharray: 25.4px;  stroke-dashoffset: 25.4px;  transition-delay: 0.3s, 1.1s; }

.stack-row.is-active .stack-icon svg [class^="sq-elem-"] {
  stroke-dashoffset: 0;
  fill: currentColor;
}

/* ---- EzeePMS product-page carousel icons ---- */
.ez-elem-1  { stroke-dasharray: 25.14px; stroke-dashoffset: 25.14px; transition-delay: 0s,   0.8s; }
.ez-elem-2  { stroke-dasharray: 24.49px; stroke-dashoffset: 24.49px; transition-delay: 0.1s, 0.9s; }
.ez-elem-3  { stroke-dasharray: 32px;    stroke-dashoffset: 32px;    transition-delay: 0s,   0.8s; }
.ez-elem-4  { stroke-dasharray: 16.45px; stroke-dashoffset: 16.45px; transition-delay: 0.1s, 0.9s; }
.ez-elem-5  { stroke-dasharray: 41.66px; stroke-dashoffset: 41.66px; transition-delay: 0s,   0.8s; }
.ez-elem-6  { stroke-dasharray: 41.66px; stroke-dashoffset: 41.66px; transition-delay: 0.1s, 0.9s; }
.ez-elem-7  { stroke-dasharray: 41.66px; stroke-dashoffset: 41.66px; transition-delay: 0.2s, 1s; }
.ez-elem-8  { stroke-dasharray: 41.31px; stroke-dashoffset: 41.31px; transition-delay: 0s,   0.8s; }
.ez-elem-9  { stroke-dasharray: 20.57px; stroke-dashoffset: 20.57px; transition-delay: 0.1s, 0.9s; }
.ez-elem-10 { stroke-dasharray: 51.62px; stroke-dashoffset: 51.62px; transition-delay: 0s,   0.8s; }
.ez-elem-11 { stroke-dasharray: 56.57px; stroke-dashoffset: 56.57px; transition-delay: 0s,   0.8s; }
.ez-elem-12 { stroke-dasharray: 8px;     stroke-dashoffset: 8px;     transition-delay: 0.1s, 0.9s; }
.ez-elem-13 { stroke-dasharray: 4px;     stroke-dashoffset: 4px;     transition-delay: 0.2s, 1s; }

.stack-row.is-active .stack-icon svg [class^="ez-elem-"] {
  stroke-dashoffset: 0;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .stack-icon svg [class^="svg-elem-"],
  .stack-icon svg [class^="sq-elem-"],
  .stack-icon svg [class^="ez-elem-"] {
    transition: none;
    stroke-dashoffset: 0;
    fill: currentColor;
  }
  .stack-row {
    transition: none;
  }
}

/* ---- Section scaffolding ---- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; margin: 0; }

/* ---- Product cards (home) ---- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

/* ---- Product tile (bento-style, homepage) ---- */
.product-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: color-mix(in srgb, var(--bg-card) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.product-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}
.product-tile[data-accent="shelfj"]::before {
  background:
    radial-gradient(circle at 12% -10%, var(--shelfj-soft) 0%, transparent 45%),
    radial-gradient(circle at 105% 115%, var(--shelfj-soft) 0%, transparent 40%);
}
.product-tile[data-accent="tartware"]::before {
  background:
    radial-gradient(circle at 12% -10%, var(--tartware-soft) 0%, transparent 45%),
    radial-gradient(circle at 105% 115%, var(--tartware-soft) 0%, transparent 40%);
}
.product-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.product-tile[data-accent="shelfj"]:hover { border-color: var(--shelfj); }
.product-tile[data-accent="tartware"]:hover { border-color: var(--tartware); }
.product-tile:hover::before { opacity: 1.4; }

.tile-icon-bg {
  position: absolute;
  top: -26px;
  right: -22px;
  width: 190px;
  height: 190px;
  transform: rotate(-8deg);
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}
.product-tile[data-accent="shelfj"] .tile-icon-bg { color: var(--shelfj); }
.product-tile[data-accent="tartware"] .tile-icon-bg { color: var(--tartware); }

.product-tile h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin: 14px 0 10px; letter-spacing: -0.02em; }
.product-tile p.desc { color: var(--text-dim); margin: 0 0 24px; max-width: 46ch; }

.tile-stats {
  display: flex;
  gap: 26px;
  margin: 0 0 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-soft);
}
.tile-stat { display: flex; flex-direction: column; }
.tile-stat-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.tile-stat-label { font-size: 0.76rem; color: var(--text-faint); margin-top: 3px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg-elevated);
}

.product-tile .card-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Principles grid (technology section) ---- */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.principle-card .icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.principle-card .icon-wrap svg { width: 20px; height: 20px; }
.principle-card h4 { margin: 0 0 8px; font-size: 1.03rem; }
.principle-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ---- Stats strip ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 30px 10px;
}
.stat {
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--border-soft);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
.stat .label { font-size: 0.82rem; color: var(--text-faint); }

/* ---- About / studio ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 20px; }
.about-grid p { color: var(--text-dim); margin: 0 0 16px; }
.checklist { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--text-dim); }
.checklist svg { width: 18px; height: 18px; color: var(--accent-text); flex-shrink: 0; margin-top: 2px; }

/* ---- CTA band ---- */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  padding: 60px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 14px; letter-spacing: -0.02em; }
.cta-band p { color: var(--text-dim); margin: 0 0 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  background-color: var(--bg-shell);
  background-image: url("../img/watermark.svg");
  background-repeat: repeat;
  background-size: 503px 503px;
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; max-width: 34ch; margin: 14px 0 0; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  font-size: 0.84rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Scenario tag (in-practice section) ---- */
.scenario-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---- Waitlist form (pricing section) ---- */
.waitlist-form {
  max-width: 480px;
  margin: 44px auto 0;
  text-align: center;
}
.waitlist-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}
.waitlist-row {
  display: flex;
  gap: 10px;
}
.waitlist-row input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}
.waitlist-row input:focus { outline: none; border-color: var(--text-faint); }
.waitlist-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 1.1rem;
  margin-left: 12px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 14px 0 0; color: var(--text-dim); font-size: 0.92rem; }

/* ---- Reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Product detail pages
   ========================================================================== */

.product-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border-soft);
}
.product-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 16px;
}
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 0.9rem; }
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--text); }

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.product-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; margin: 0 0 16px; }
.product-hero .tagline { font-size: 1.15rem; color: var(--text-dim); max-width: 62ch; margin: 0 0 28px; }

.pill-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
[data-product="shelfj"] .pill-accent { color: var(--shelfj); background: var(--shelfj-soft); }
[data-product="tartware"] .pill-accent { color: var(--tartware); background: var(--tartware-soft); }

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shell-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card h4:has(.screen-count) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.feature-card .screen-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-faint);
  white-space: nowrap;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.02rem;
}
.feature-card h4 svg { width: 18px; height: 18px; }
[data-product="shelfj"] .feature-card h4 svg { color: var(--shelfj); }
[data-product="tartware"] .feature-card h4 svg { color: var(--tartware); }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

.compliance-row { display: flex; flex-wrap: wrap; gap: 10px; }

.cross-link {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-card);
}
.cross-link .txt h5 { margin: 0 0 6px; font-size: 0.95rem; color: var(--text-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.cross-link .txt p { margin: 0; font-size: 1.05rem; font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .two-col, .product-hero-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .principle-grid, .three-col, .shell-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border-soft); padding-bottom: 16px; }
  .stat:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--bg-shell); flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 22px; border-top: 1px solid var(--border-soft); transform: translateX(100%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .menu-toggle { display: grid; }
  .principle-grid, .three-col, .shell-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .product-tile { padding: 30px; }
  .tile-stats { gap: 18px; }
  .cta-band { padding: 40px 24px; }
  .waitlist-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
