/* Website Commander — components */

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0.6rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 500 0.95rem/1 var(--font);
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.button:hover { transform: translateY(-1px); color: inherit; }
.button-primary {
  color: #fff;
  background: var(--accent);
}
.button-primary:hover { background: var(--accent-hover); color: #fff; }
.button-secondary {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.button-sm { min-height: 38px; padding: 0.5rem 1rem; font-size: 0.88rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: inherit; }
.brand img { border-radius: 9px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a:not(.button) {
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.site-nav a:not(.button):hover { color: var(--accent); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede {
  margin-top: 1.1rem;
  max-width: 33rem;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 1.9rem;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 2.2rem 0 0;
}
.hero-facts div { min-width: 86px; }
.hero-facts dt {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-facts dd { margin: 4px 0 0; font-weight: 500; font-size: 0.95rem; }

.hero-stage { position: relative; }
.stage-window {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.stage-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.stage-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.stage-bar i {
  margin-left: auto;
  color: var(--text-tertiary);
  font: 400 0.72rem var(--font-mono);
  font-style: normal;
}
.stage-window img { width: 100%; height: auto; }

/* Mac app UI mock (hero + proof panels) */
.macmock {
  display: flex;
  min-height: 330px;
  overflow: hidden;
  background: var(--term-bg);
  color: var(--term-text);
  font: 400 0.76rem/1.55 var(--font-mono);
  text-align: left;
}
.macmock-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 168px;
  flex-shrink: 0;
  padding: 16px 14px;
  border-right: 1px solid var(--term-border, rgba(255, 255, 255, 0.09));
  background: rgba(255, 255, 255, 0.025);
}
.macmock-side b { color: #e6edf3; font-size: 0.78rem; }
.macmock-branch { color: #9da7b3; font-size: 0.68rem; }
.macmock-side ul { margin: 4px 0 0; padding: 0; list-style: none; }
.macmock-side li {
  padding: 3px 8px;
  margin: 1px 0;
  border-radius: 5px;
  color: #9da7b3;
  font-size: 0.72rem;
}
.macmock-side li.on { color: #79c0ff; background: rgba(121, 192, 255, 0.10); }
.macmock-main {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 0;
  padding: 16px;
}
.chat-line {
  max-width: 88%;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #c9d1d9;
}
.chat-line.user {
  align-self: flex-start;
  border-color: rgba(121, 192, 255, 0.35);
  background: rgba(121, 192, 255, 0.12);
  color: #d6e9ff;
}
.chat-line.agent { align-self: flex-end; }
.chat-line.ok { color: #7ee2a8; border-color: rgba(63, 185, 80, 0.35); background: rgba(63, 185, 80, 0.10); }
.diff-line {
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.d-minus { color: #ff9b93; background: rgba(248, 81, 73, 0.12); }
.d-plus { color: #7ee2a8; background: rgba(63, 185, 80, 0.12); }
.mock-buttons { display: flex; gap: 8px; margin-top: 4px; }
.mock-approve, .mock-reject {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
}
.mock-approve { color: #061313; background: #3fb950; }
.mock-reject { color: #c9d1d9; border: 1px solid rgba(255, 255, 255, 0.22); }
.macmock-panel { min-height: 240px; border-radius: 0; }
.macmock-panel .macmock-side { width: 128px; }
.macmock-panel .macmock-main { padding: 14px; gap: 8px; }
.mini-browser {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #9da7b3;
}
.mini-browser i { font-style: normal; color: #79c0ff; }
.mini-browser span {
  flex: 1;
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.gallery-card .macmock-panel { border-radius: 0 0 0 0; }
.stage-note {
  position: absolute;
  left: 50%;
  bottom: -18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md);
  color: var(--text-secondary);
  font: 400 0.74rem var(--font-mono);
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Metrics */
.metrics { padding: 1.4rem 0; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
}
.metric strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.metric span { color: var(--text-secondary); font-size: 0.88rem; }

/* Workflow */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.workflow-step {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 1.1rem;
  border-radius: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 600 0.78rem var(--font-mono);
}
.workflow-step h3 { margin-bottom: 0.55rem; }
.workflow-step p { color: var(--text-secondary); font-size: 0.93rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.gallery-card img { width: 100%; height: auto; }
.gallery-card figcaption {
  padding: 0.8rem 1rem;
  color: var(--text-secondary);
  font: 500 0.82rem var(--font-mono);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.feature-card {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature-card h3 { margin-bottom: 0.55rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.93rem; }

/* Companion */
.companion-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.companion-copy p:not(.eyebrow) {
  margin: 1rem 0 1.7rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 30rem;
}

/* Downloads — Mac block */
.mac-download {
  padding: 2.4rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.mac-download-head {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}
.mac-download-head img { border-radius: 16px; flex-shrink: 0; }
.mac-download-head .eyebrow { margin-bottom: 0.35rem; }
.mac-download-head h2 { margin-bottom: 0.6rem; }
.mac-download-head p { color: var(--text-secondary); font-size: 0.98rem; max-width: 46rem; }
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 0.9rem;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font: 500 0.74rem var(--font-mono);
}
.version-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18);
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 1.1rem;
}
.microcopy {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}
.microcopy a { color: var(--accent); }

/* iOS companion section */
.ios-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.ios-copy > p:not(.eyebrow):not(.microcopy) {
  margin: 0.9rem 0 1.5rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 32rem;
}
.sideload-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}
.sideload-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.sideload-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 600 0.76rem var(--font-mono);
  flex-shrink: 0;
}
.ios-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  align-items: end;
}
.ios-stage figure { margin: 0; }
.ios-stage img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.ios-stage figure:nth-child(2) { transform: translateY(18px); }
.ios-stage figure:nth-child(3) { transform: translateY(36px); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font: 500 1.1rem var(--font-mono);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-brand img { border-radius: 8px; }
.footer-brand span { font-family: var(--font-display); font-weight: 600; }
.footer-brand p { width: 100%; margin: 2px 0 0; color: var(--text-tertiary); font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-fine {
  grid-column: 1 / -1;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

/* Legal pages */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal h1 { margin-bottom: 1.2rem; }
.legal h2 { margin: 2.2rem 0 0.8rem; font-size: 1.3rem; }
.legal p, .legal li { color: var(--text-secondary); }
.legal ul { padding-left: 1.2rem; }
