/* ───────────────────────────────────────────────────────────────────────────
   Gizmo homepage — matches the Gizmo app design system.
   Restrained, premium, Apple-grade: hairline separators, soft depth,
   generous whitespace, squared retro-clean edges, blue + green accents.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #fbfbfd;
  --panel: #ffffff;
  --panel-2: #f5f5f7;
  --panel-3: #ececed;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.12);
  --accent: #0071e3;
  --accent-press: #0063c6;
  --accent-soft: rgba(0, 113, 227, 0.10);
  --green: #1d9d57;
  --green-bright: #34a853;
  --green-soft: rgba(29, 157, 87, 0.10);
  --amber: #c2820a;
  --dark: #1d1d1f;
  --dark-2: #141416;

  /* Squared, retro-clean — tiny status dots stay round via border-radius:50%. */
  --r-sm: 0px;
  --r: 0px;
  --r-lg: 0px;
  --r-pill: 0px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.20), 0 8px 24px rgba(0, 0, 0, 0.10);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  padding: 10px 18px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { color: var(--accent); }
.btn-outline { background: var(--panel); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--panel-2); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.text-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: inherit;
}
.text-link:hover { text-decoration: underline; }
.learn-more { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.learn-more:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.16em; }

.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a, .main-nav button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: none;
  border-radius: var(--r-sm);
}
.main-nav a:hover, .main-nav button:hover { color: var(--ink); background: var(--panel-2); }
.caret { opacity: 0.5; transition: transform 0.15s var(--ease); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown a { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); }
.dropdown a strong { color: var(--ink); font-size: 0.92rem; }
.dropdown a span { color: var(--muted); font-size: 0.84rem; }
.dropdown a:hover { background: var(--panel-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--bg);
  padding: 96px 0 104px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 620px;
  background: radial-gradient(closest-side, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 113, 227, 0.22);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 26px;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.022em; color: var(--ink); }
.grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--green-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 1.12rem; color: var(--ink-2); margin: 22px auto 32px; max-width: 640px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }

/* ── App frame (workflow builder showcase) ───────────────────────────────── */
.app-frame {
  margin: 64px auto 0;
  max-width: 1040px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font-size: 0.85rem;
  text-align: left;
}
.app-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.16em; font-size: 0.78rem; }
.app-tabs { display: flex; gap: 2px; background: var(--panel-2); border-radius: var(--r-pill); padding: 3px; }
.app-tab { padding: 4px 14px; border-radius: var(--r-pill); color: var(--muted); font-weight: 500; }
.app-tab.active { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.app-gear { margin-left: auto; color: var(--muted); font-size: 1rem; }

.app-body { display: grid; grid-template-columns: 200px 1fr 250px; min-height: 360px; }

.app-rail { border-right: 1px solid var(--line); padding: 14px 10px; background: var(--bg); }
.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px 10px;
}
.rail-add {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
}
.rail-item { padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); margin-bottom: 2px; }
.rail-item.active { background: var(--green-bright); color: #fff; font-weight: 600; }

.app-board { padding: 16px 18px; }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.board-head h3 { font-size: 1rem; font-weight: 700; }
.board-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
}
.board-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.board-col { background: var(--panel-2); border-radius: var(--r-sm); padding: 10px; min-height: 180px; }
.col-head { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.8rem; margin-bottom: 10px; color: var(--ink); }
.col-dot { width: 7px; height: 7px; border-radius: 50%; }
.col-dot.blue { background: var(--accent); }
.col-dot.green { background: var(--green-bright); }
.col-count { margin-left: auto; color: var(--muted); font-weight: 500; }

.board-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.board-card p { font-weight: 600; font-size: 0.83rem; margin-bottom: 6px; }
.board-card.queued p { color: var(--muted); font-weight: 500; }
.board-card.running { border-color: rgba(0, 113, 227, 0.5); box-shadow: 0 0 0 3px var(--accent-soft); }
.card-status { font-size: 0.72rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card-status.ok { color: var(--green); }
.card-status.run { color: var(--accent); }
.card-status.idle { color: var(--muted); }
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(0, 113, 227, 0); }
}

.app-log { border-left: 1px solid var(--line); padding: 14px; background: var(--bg); }
.log-head { font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }
.log-line { font-size: 0.74rem; color: var(--ink-2); margin-bottom: 10px; line-height: 1.5; }
.log-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--r-sm);
  padding: 1px 6px;
  margin-right: 6px;
}
.log-tag.col { background: var(--accent-soft); color: var(--accent); }
.log-tag.think { background: rgba(194, 130, 10, 0.12); color: var(--amber); }
.log-tag.tool { background: var(--accent-soft); color: var(--accent-press); }
.log-tag.ok { background: var(--green-soft); color: var(--green); }
.cursor {
  display: inline-block;
  width: 7px; height: 12px;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Integrations ────────────────────────────────────────────────────────── */
.integrations { padding: 56px 0; border-bottom: 1px solid var(--line); background: var(--panel); }
.logos-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.hub-wrap { max-width: 860px; margin: 0 auto; }
.hub-diagram { width: 100%; height: auto; display: block; }
.hub-lines line { stroke-width: 1.5; stroke-opacity: 0.75; }
.flow-out { stroke: var(--accent); stroke-dasharray: 5 9; animation: flowout 1.2s linear infinite; }
.flow-ret { stroke: var(--green); stroke-dasharray: 5 9; animation: flowret 1.2s linear infinite; }
@keyframes flowout { to { stroke-dashoffset: -14; } }
@keyframes flowret { to { stroke-dashoffset: -14; } }
.hub-tile {
  fill: var(--panel);
  stroke: rgba(0, 0, 0, 0.12);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}
.hub-glyph { font-size: 24px; font-weight: 700; text-anchor: middle; }
.hub-glyph-sm { font-size: 15px; }
.hub-label { font-size: 14px; font-weight: 600; text-anchor: middle; fill: var(--ink); }
.hub-center {
  fill: var(--panel);
  stroke: rgba(0, 0, 0, 0.12);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}
.hub-name { font-size: 15px; font-weight: 700; letter-spacing: 0.16em; text-anchor: middle; fill: var(--ink); }
.hub-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.hub-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend-swatch { width: 22px; height: 0; border-top: 2px dashed; display: inline-block; }
.legend-swatch.out { border-color: var(--accent); }
.legend-swatch.ret { border-color: var(--green); }

/* ── Integration marquee ─────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  margin: 0 auto 40px;
  max-width: 860px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee-item i { font-style: normal; font-weight: 700; font-size: 0.95rem; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; margin-top: 12px; }

/* Use cases (tabbed) */
.capabilities { padding: 96px 0; background: var(--bg); }
.uc-tabs {
  display: flex;
  justify-content: center;
  gap: 2px;
  background: var(--panel-2);
  border-radius: var(--r-pill);
  padding: 3px;
  width: max-content;
  margin: 0 auto 28px;
}
.uc-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 28px;
  border-radius: var(--r-pill);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.uc-tab.active { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
.uc-panel { display: none; }
.uc-panel.active { display: block; }
.uc-blurb { text-align: center; color: var(--ink-2); max-width: 620px; margin: 0 auto 24px; font-size: 0.98rem; }
.uc-blurb strong { color: var(--ink); }
.app-frame-tab { margin: 0 auto; max-width: 920px; box-shadow: var(--shadow-md); }
.app-body-2col { grid-template-columns: 200px 1fr; min-height: 300px; }

/* How it works */
.how { padding: 96px 0; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: flex; align-items: stretch; gap: 18px; justify-content: center; }
.step {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 30px 26px;
  flex: 1;
  max-width: 330px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 0.93rem; }
.step-arrow { align-self: center; color: var(--accent); font-size: 1.4rem; font-weight: 700; }

/* Prompt → workflow gallery */
.gallery { padding: 96px 0; background: var(--panel); border-top: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-card {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
}
.gallery-card:hover { box-shadow: var(--shadow-md); border-color: rgba(0, 113, 227, 0.35); }
.gallery-prompt { font-size: 0.98rem; font-weight: 600; color: var(--ink); line-height: 1.45; flex: 1; }
.gallery-pipe { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.gallery-pipe span {
  background: var(--panel);
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.gallery-pipe i { font-style: normal; color: var(--accent); font-weight: 700; font-size: 0.85rem; }

/* Build → Coach → Run pillars */
.features { padding: 96px 0; background: var(--bg); }
.pillars { max-width: 860px; margin: 0 auto; border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--shadow-sm); }
.pillar { border-bottom: 1px solid var(--line); }
.pillar:last-child { border-bottom: none; }
.pillar-head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 22px 26px;
  text-align: left;
}
.pillar-head:hover { background: var(--panel-2); }
.pillar-num {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.pillar:nth-child(2) .pillar-num { background: var(--green); }
.pillar:nth-child(3) .pillar-num { background: var(--ink); }
.pillar-title { flex: 1; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.pillar-head .caret { color: var(--muted); transition: transform 0.2s var(--ease); }
.pillar.open .pillar-head .caret { transform: rotate(180deg); }
.pillar-body { display: none; padding: 0 26px 26px 72px; }
.pillar.open .pillar-body { display: block; }
.pillar-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.pillar-cols > p { color: var(--ink-2); font-size: 0.95rem; }
.pillar-visual {
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pv-input {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  padding: 9px 12px;
}
.pv-bubble {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-2);
  padding: 9px 12px;
}
.pv-saved { font-size: 0.8rem; font-weight: 600; color: var(--green); }
.pillar-visual .log-line { margin-bottom: 0; }

/* Security */
.security { padding: 96px 0; background: var(--panel); border-top: 1px solid var(--line); }
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.security-card {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.feature-icon { font-size: 1.7rem; margin-bottom: 14px; }
.security-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.security-card p { color: var(--ink-2); font-size: 0.9rem; }

/* ── CTA banner ──────────────────────────────────────────────────────────── */
.cta-banner {
  background: radial-gradient(800px 360px at 50% -15%, rgba(0, 113, 227, 0.28) 0%, transparent 60%),
              var(--dark);
  color: #fff;
  padding: 88px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-logo { margin-bottom: 6px; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; }
.cta-banner p { color: rgba(255, 255, 255, 0.65); font-size: 1.06rem; margin-bottom: 16px; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact { padding: 72px 0; background: var(--bg); }
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
}
.contact h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
.contact p { color: var(--ink-2); margin-top: 6px; max-width: 460px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark-2); color: rgba(255, 255, 255, 0.6); padding: 64px 0 28px; }
.logo-light { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand p { font-size: 0.9rem; margin-top: 14px; }
.footer-contact a { color: var(--green-bright); font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.site-footer h4 { color: #fff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { font-size: 0.9rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.86rem;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: #fff; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-hero { padding: 80px 0 96px; background: var(--bg); }
.pricing-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1020px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.price-card h2 { font-size: 1.15rem; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 4px; }
.price-num { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; }
.price-per { color: var(--muted); font-size: 0.95rem; }
.price-sub { color: var(--ink-2); font-size: 0.92rem; min-height: 44px; }
.price-features { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.price-features li {
  font-size: 0.93rem;
  color: var(--ink-2);
  padding-left: 26px;
  position: relative;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.price-features li strong { color: var(--ink); }
.price-features li:has(strong) { padding-left: 0; }
.price-features li:has(strong)::before { content: none; }
.pricing-note { text-align: center; margin-top: 40px; color: var(--ink-2); font-size: 0.95rem; }

/* ── Legal pages ─────────────────────────────────────────────────────────── */
.legal-page { max-width: 800px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-page h1 { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.legal-page h2 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-2); font-size: 0.96rem; margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-page ul li { margin-bottom: 6px; }
.legal-page address { font-style: normal; color: var(--ink-2); line-height: 1.7; }
.legal-back { display: inline-block; margin-bottom: 28px; color: var(--accent); font-weight: 600; }
.legal-back:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .app-body { grid-template-columns: 170px 1fr; }
  .app-log { display: none; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a, .main-nav button { width: 100%; justify-content: space-between; padding: 12px 8px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: 0;
    padding: 0 0 8px 16px;
  }
  .menu-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }

  .gallery-grid { grid-template-columns: 1fr; }
  .pillar-cols { grid-template-columns: 1fr; }
  .pillar-body { padding-left: 26px; }
  .uc-tab { padding: 8px 18px; }
  .steps { flex-direction: column; align-items: stretch; }
  .step { max-width: none; }
  .step-arrow { transform: rotate(90deg); text-align: center; }
  .app-body { grid-template-columns: 1fr; }
  .app-rail { display: none; }
  .board-cols { grid-template-columns: 1fr; }
  .board-col { min-height: 0; }
  .contact-inner { flex-direction: column; text-align: center; padding: 36px 28px; }
}

@media (max-width: 560px) {
  .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 64px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
