/* ========== CodeBuddy & WorkBuddy Brand Guidelines ==========
   Unified dual-brand site. Two brand themes switch via [data-brand]:
   - CodeBuddy · violet #3411DB (accent #5937FF)
   - WorkBuddy · teal   #00AC95 (accent #0EC8A9)
   Font Inter · Ink text on white · radius 6/12/16px
*/

:root {
  --black: #0d0d0d;
  --ink: #191a23; /* matches logo dark */
  --white: #ffffff;
  --gray-50: #f9f9fb;
  --gray-100: #f2f2f6;
  --gray-200: #e7e7ee;
  --gray-300: #c9c9d4;
  --gray-500: #8a8a99;
  --gray-600: rgba(25, 26, 35, 0.6);
  --gray-700: rgba(25, 26, 35, 0.82);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, system-ui, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;

  /* ---- default brand: CodeBuddy (violet) ---- */
  --brand: #3411db;
  --brand-accent: #5937ff;
  --brand-soft: #6b4dfc;
  --brand-glow-1: rgba(89, 55, 255, 0.22);
  --brand-glow-2: rgba(50, 176, 230, 0.16);
  --brand-tint: #f0edff; /* light callout bg */
  --brand-grad: linear-gradient(135deg, #5937ff 0%, #3411db 60%, #2a0eb0 100%);
  --brand-grad-soft: linear-gradient(135deg, #8e7bff, #5937ff);
}

/* ===== WorkBuddy theme ===== */
[data-brand="work"] {
  --brand: #00ac95;
  --brand-accent: #0ec8a9;
  --brand-soft: #32e6b9;
  --brand-glow-1: rgba(14, 200, 169, 0.24);
  --brand-glow-2: rgba(50, 230, 113, 0.16);
  --brand-tint: #e6faf5;
  --brand-grad: linear-gradient(135deg, #0ec8a9 0%, #00ac95 60%, #018a73 100%);
  --brand-grad-soft: linear-gradient(135deg, #57e6cf, #0ec8a9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* smooth brand color transition */
body,
.btn,
.callout,
.chip-brand,
.showcase,
.tile,
.info-card a.v,
.acc-head,
header {
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
    color 0.4s var(--ease);
}

/* ========== Header ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  border-bottom-color: var(--gray-200);
}

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

.nav-left {
  display: flex;
  align-items: center;
  gap: 34px;
  min-width: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo .mk {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px var(--brand-glow-1);
}

.brand-logo .mk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo .txt {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-logo .txt b {
  color: var(--brand);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  gap: 26px;
  font-size: 15px;
  color: var(--gray-700);
}

.nav-menu a {
  transition: color 0.2s;
  position: relative;
}

.nav-menu a:hover {
  color: var(--brand);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* brand switch pill */
.brand-switch {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.brand-switch button {
  border: none;
  background: transparent;
  padding: 6px 13px;
  cursor: pointer;
  color: var(--gray-600);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-switch button .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-switch button[data-brand-btn="code"] .dot {
  background: #3411db;
}
.brand-switch button[data-brand-btn="work"] .dot {
  background: #00ac95;
}

.brand-switch button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.18);
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 13px;
  cursor: pointer;
  color: var(--gray-600);
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--white);
  transition: all 0.25s var(--ease);
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -12px var(--brand);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-300);
}

.btn.ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: 0.3s;
}

/* ========== Hero ========== */
.hero {
  padding: 190px 0 96px;
  position: relative;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -160px;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    var(--brand-glow-1) 0%,
    transparent 66%
  );
  pointer-events: none;
  transition: background 0.6s var(--ease);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--brand-glow-2) 0%, transparent 68%);
  pointer-events: none;
  transition: background 0.6s var(--ease);
}

.hero .eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.hero .eyebrow-tag .pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 900px;
}

.hero h1 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lede {
  margin-top: 28px;
  font-size: 20px;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.6;
}

.hero .hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* hero: watermark cat (bg) + lying buddy (fg) sitting on the bottom edge */
.hero-marks {
  position: absolute;
  right: 3%;
  bottom: 0;
  width: 620px;
  height: 100%;
  pointer-events: none;
}

/* big faint watermark cat behind */
.hero-marks .hero-watermark {
  position: absolute;
  top: 40px;
  right: -40px;
  width: 600px;
  height: auto;
  opacity: 0.42;
  filter: saturate(0.9);
  animation: floaty 8s ease-in-out infinite;
}

/* lying buddy in front — sits across the bottom border of the hero */
.hero-marks .hero-lying {
  position: absolute;
  bottom: -30px;
  right: 80px;
  width: 400px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, 0.22));
  animation: floaty 6s ease-in-out infinite 0.4s;
}

.hero-marks .hm-glow {
  position: absolute;
  inset: auto 100px 40px 120px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow-1) 0%, transparent 66%);
  filter: blur(10px);
  z-index: 1;
  animation: orbPulse 5.5s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.09); opacity: 1; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-2deg); }
}

/* ========== Section base ========== */
section {
  scroll-margin-top: 80px;
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--gray-200);
}

.eyebrow {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.callout {
  background: var(--brand-tint);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 26px;
  margin-top: 24px;
  max-width: 760px;
  color: var(--ink) !important;
  font-size: 17px;
  line-height: 1.7;
}

.section h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.06;
  max-width: 820px;
}

.section h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.section p.body {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 680px;
  margin-top: 20px;
  line-height: 1.65;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ========== Dual brand cards (intro) ========== */
.brand-duo {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.duo-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.duo-card.code {
  background: linear-gradient(150deg, #5937ff 0%, #3411db 62%, #260c9e 100%);
}
.duo-card.work {
  background: linear-gradient(150deg, #0ec8a9 0%, #00ac95 60%, #017a66 100%);
}

.duo-card .duo-mark {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.5);
}

.duo-card .duo-mark img {
  width: 100%;
  height: 100%;
}

.duo-card h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 22px 0 10px;
  color: #fff;
}

.duo-card p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 380px;
}

.duo-card .duo-tag {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.duo-card .halo {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -80px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(255,255,255,0.28), transparent 68%);
}

/* ========== Logo showcase ========== */
.showcase {
  margin-top: 44px;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.showcase.light {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.showcase .logo-lockup {
  width: min(520px, 82%);
}

/* clear space viz */
.clearspace {
  position: relative;
  display: inline-block;
  padding: 56px;
}

.clearspace::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed var(--brand);
  opacity: 0.65;
  border-radius: 10px;
}

.clearspace .sym {
  width: 120px;
  height: 120px;
  border-radius: 24px;
}

/* ========== White / black usage ========== */
.white-usage {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wu-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 40px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.wu-card:hover {
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

.wu-card.dark {
  background: var(--ink);
  border-color: var(--ink);
}

.wu-card img {
  width: 100%;
  max-width: 300px;
}

.wu-card .lock-full {
  width: 100%;
  max-width: 340px;
}

.wu-card .sym-lg {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  max-width: none;
}

@media (max-width: 640px) {
  .white-usage {
    grid-template-columns: 1fr;
  }
}

/* ========== Do / Don't grid ========== */
.rules-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rule {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.3s, transform 0.3s;
}

.rule:hover {
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.rule-visual {
  aspect-ratio: 4 / 3;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.rule-visual.dark {
  background: var(--ink);
}

.rule-visual .sym-sm {
  width: 84px;
  height: 84px;
  border-radius: 18px;
}

.rule-visual .wm-sm {
  width: 70%;
}

.rule-visual .lock-sm {
  width: 80%;
}

.rule-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  z-index: 2;
}

.rule-tag.dont {
  background: #e5484d;
}

.rule-tag.do {
  background: #30a46c;
}

.rule-body {
  padding: 16px 18px 20px;
}

.rule-body .status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.rule-body .status.dont {
  color: #e5484d;
}

.rule-body .status.do {
  color: #30a46c;
}

.rule-body p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.5;
}

/* transformed / distorted marks for don'ts */
.warp-stretch { transform: scaleX(1.7); }
.warp-rotate { transform: rotate(18deg); }
.warp-color { filter: hue-rotate(150deg) saturate(2.2); }
.warp-crop { clip-path: inset(0 40% 0 0); }
.warp-shadow { filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, 0.35)); }
.busy-bg {
  background-image: linear-gradient(45deg, #ff9a3c 25%, transparent 25%, transparent 75%, #ff9a3c 75%),
    linear-gradient(45deg, #ff9a3c 25%, #2b7de9 25%, #2b7de9 75%, #ff9a3c 75%);
  background-size: 34px 34px;
  background-position: 0 0, 17px 17px;
}

/* ========== Two-column list ========== */
.two-col {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.col-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
}

.col-card h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.col-card.do h4 { color: #30a46c; }
.col-card.dont h4 { color: #e5484d; }

.col-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.col-card li {
  font-size: 16px;
  color: var(--gray-700);
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
}

.col-card li::before {
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 700;
}

.col-card.do li::before { content: "✓"; color: #30a46c; }
.col-card.dont li::before { content: "✕"; color: #e5484d; }

/* ========== Colors ========== */
.color-group {
  margin-top: 40px;
}

.color-group .cg-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}

.color-group .cg-title .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.swatch {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: #fff;
}

.swatch .chip {
  height: 130px;
}

.swatch .meta {
  padding: 15px 18px;
}

.swatch .meta .name {
  font-weight: 600;
  font-size: 15px;
}

.swatch .meta .hex {
  font-size: 13px;
  color: var(--gray-500);
  font-family: "SF Mono", ui-monospace, monospace;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ========== Typography spec ========== */
.type-spec {
  margin-top: 48px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.type-hero {
  padding: 56px 40px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.type-hero .big {
  font-size: clamp(56px, 11vw, 132px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.type-hero .big span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.type-weights {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.type-weight {
  padding: 28px 24px;
  border-right: 1px solid var(--gray-200);
}

.type-weight:last-child { border-right: none; }

.type-weight .sample {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 14px;
}

.type-weight .lbl {
  font-size: 13px;
  color: var(--gray-500);
}

.w-light { font-weight: 300; }
.w-regular { font-weight: 400; }
.w-medium { font-weight: 500; }
.w-semibold { font-weight: 600; }
.w-bold { font-weight: 700; }

/* ========== Mascot / Character ========== */
.mascot-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* stacked: one wide card per row (for 3-view images) */
.mascot-grid.stacked {
  grid-template-columns: 1fr;
}

.mascot-card {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.mascot-card:hover {
  box-shadow: 0 24px 56px -30px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}

.mascot-card img {
  width: 78%;
  max-width: 380px;
  height: auto;
}

/* wide card holds a horizontal 3-view render */
.mascot-card.wide {
  min-height: 240px;
  padding: 36px 48px;
}

.mascot-card.wide img {
  width: 100%;
  max-width: 820px;
}

/* blind-box render fills more of its frame, so scale it down to match */
.mascot-card.wide img.mascot-sm {
  max-width: 640px;
}

.mascot-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 2;
}

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

/* flat design boards — two square cards side by side */
.mascot-flat {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mascot-flat .mascot-card {
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 40px;
}

.mascot-flat .mascot-card img {
  width: 100%;
  max-width: 420px;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 680px) {
  .mascot-flat { grid-template-columns: 1fr; }
}

/* ========== Gallery ========== */
.gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
}

.gallery .tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.4s var(--ease);
}

.gallery .tile:hover {
  transform: scale(1.015);
}

/* 01 poster spans two rows (tall hero card) */
.tile.t-grad-code {
  background: linear-gradient(140deg, #6b4dfc, #3411db);
  grid-row: span 2;
  color: #fff;
  flex-direction: column;
  padding: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.tile.t-grad-work {
  background: linear-gradient(140deg, #32e6b9, #00ac95);
  color: #fff;
  flex-direction: column;
  padding: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.tile.t-dark {
  background: var(--ink);
  flex-direction: column;
  padding: 34px;
  gap: 20px;
}
.tile.t-light {
  background: var(--gray-50);
  padding: 34px;
}

.tile .tile-sym {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.tile .tile-wm {
  width: 62%;
}

.tile .tile-cap {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tile .tile-num {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.tile.t-light .tile-num { color: var(--ink); }
.tile.t-light .tile-cap { color: var(--gray-500); }

.tile .duo-marks {
  display: flex;
  gap: 14px;
}

.tile .duo-marks img {
  width: 66px;
  height: 66px;
  border-radius: 15px;
}

/* ========== Accordion ========== */
.accordion {
  margin-top: 44px;
  border-top: 1px solid var(--gray-200);
}

.acc-item {
  border-bottom: 1px solid var(--gray-200);
}

.acc-head {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 4px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  letter-spacing: -0.01em;
}

.acc-head:hover { color: var(--brand); }

.acc-head .ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s;
}

.acc-head .ico::before,
.acc-head .ico::after {
  content: "";
  position: absolute;
  background: var(--gray-600);
  border-radius: 2px;
}

.acc-head .ico::before {
  top: 11px;
  left: 2px;
  right: 2px;
  height: 2px;
}

.acc-head .ico::after {
  left: 11px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  transition: transform 0.3s;
}

.acc-item.open .acc-head .ico::after { transform: scaleY(0); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.acc-body-inner {
  padding: 0 4px 28px;
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 760px;
}

.acc-body-inner b { color: var(--ink); }

/* ========== Contact / press / terms ========== */
.info-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
}

.info-card .k {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.info-card .v {
  font-size: 19px;
  font-weight: 500;
}

.info-card a.v { color: var(--brand); }

.terms-list {
  margin-top: 40px;
  counter-reset: t;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 840px;
}

.terms-list li {
  list-style: none;
  padding-left: 46px;
  position: relative;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.6;
}

.terms-list li::before {
  counter-increment: t;
  content: counter(t);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.press-quote {
  margin-top: 40px;
  padding: 40px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--brand);
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray-700);
  max-width: 860px;
}

/* ========== Footer ========== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 40px;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .fb-logos {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-brand .fb-logos img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}

.footer-brand p {
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tile.t-grad-code { grid-row: span 2; }
  .type-weights { grid-template-columns: repeat(2, 1fr); }
  .type-weight:nth-child(2n) { border-right: none; }
  .hero-marks { display: none; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .two-col, .info-grid, .brand-duo { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .tile.t-grad-code { grid-row: span 1; }
  .hero { padding: 140px 0 64px; }
  .nav-left { gap: 16px; }
}
