@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400&display=swap');

:root {
  /* Shared with the Atelier app design system. */
  --font-sans: -apple-system, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  --text-body: 14px;
  --text-title: 16px;
  --leading-tight: 1.2;
  --leading-standard: 1.5;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --radius-control: 6px;
  --radius-surface: 10px;
  --radius-round: 999px;

  --bg: #F9F3EC;
  --panel: #fdf9f3;
  --line: rgba(36, 50, 49, .09);
  --line-strong: rgba(36, 50, 49, .16);
  --text: #66746f;
  --text-bright: #243231;
  --text-muted: #8E9B86;
  --accent: #b77e18;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--panel));
  --success: #4f775c;
  --button-border: color-mix(in srgb, var(--accent) 20%, var(--line));
  --button-hover-border: color-mix(in srgb, var(--accent) 65%, var(--text-bright));
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-standard);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1.5rem 3rem;
  justify-content: flex-start;
  text-align: center;
}

.logo {
  width: min(340px, 70vw);
  height: auto;
  margin: -2.5rem 0 -3rem;
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--text-muted);
  margin-top: -1.25rem;
}

.value-proposition {
  width: min(960px, 92vw);
  padding-left: 228px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 34px;
  color: var(--text-bright);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
  list-style: none;
  text-align: left;
}
.value-proposition li {
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.value-proposition li::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-top: .58em;
  border-radius: 50%;
  background: var(--accent);
}
.value-proposition a {
  color: var(--text-bright);
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 3px;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
.value-proposition a:hover,
.value-proposition a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.value-proposition .github-link {
  display: inline-flex;
  color: var(--text-bright);
  vertical-align: -3px;
}
.github-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* videos */
.video-list {
  width: min(960px, 92vw);
  display: grid;
  gap: 2rem;
}
.video-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}
.video-row h2 {
  color: var(--text-bright);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.05;
  text-align: right;
  text-wrap: balance;
}
.video {
  width: 100%;
  aspect-ratio: 200 / 113;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  box-shadow: 0 14px 44px rgba(36, 50, 49, .1);
  background: linear-gradient(135deg, #efe7d8, #f4ede1);
  overflow: hidden;
}
.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-portrait {
  width: min(100%, 320px);
  justify-self: center;
}
.video-elevator { aspect-ratio: 1080 / 1920; }
.video-phone { aspect-ratio: 1014 / 1920; }
/* Installation panel — follows Atelier's shared type, surface, and control roles. */
.install {
  width: min(720px, 92vw);
}
.install {
  margin-top: .25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--panel);
  box-shadow: 0 14px 44px rgba(36, 50, 49, .1);
  text-align: left;
}
.steps { list-style: none; }
.step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}
.step + .step { border-top: 1px solid var(--line); }
.step-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-round);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: var(--weight-semibold);
}
.step-content { min-width: 0; }
.step h2 {
  margin: 1px 0 2px;
  color: var(--text-bright);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
}
.step p { color: var(--text); }
.command {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 6px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--bg);
  color: var(--text-bright);
}
.command code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  font: 12px/var(--leading-standard) var(--font-mono);
  white-space: nowrap;
}
.copy {
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--button-border);
  border-radius: var(--radius-round);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--text);
  font: 400 var(--text-body)/var(--leading-standard) var(--font-sans);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease;
}
.copy:hover,
.copy:focus-visible {
  border-color: var(--button-hover-border);
  outline: none;
  background: var(--panel);
  color: var(--text-bright);
}
.copy:active { transform: translateY(1px); }
.copy.copied { color: var(--success); }
.copy svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Frequently asked questions */
.faq {
  width: min(504px, 64.4vw);
  margin-top: .25rem;
  text-align: left;
}
.faq-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--panel);
  box-shadow: 0 14px 44px rgba(36, 50, 49, .1);
}
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: var(--text-bright);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.faq-item > p {
  padding: 0 42px 14px 14px;
  color: var(--text);
  font-size: 12px;
}
.faq-answer {
  padding: 0 42px 14px 14px;
  color: var(--text);
  font-size: 12px;
}
.faq-answer p { padding: 0; }
.faq-answer ol {
  margin: 4px 0 6px;
  padding-left: 17px;
}
.faq-answer li + li { margin-top: 2px; }

@media (max-width: 700px) {
  .value-proposition {
    padding-left: 0;
    gap: 8px;
  }
  .video-list { gap: 1.75rem; }
  .video-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .video-row h2 {
    font-size: 25px;
    text-align: left;
  }
  .command { align-items: stretch; flex-direction: column; }
  .copy { height: 44px; align-self: flex-end; padding-inline: 16px; }
  .copy svg { width: 20px; height: 20px; }
  .faq-item summary { padding-block: 14px; }
  .faq-item > p,
  .faq-answer { padding-right: 18px; }
}

footer {
  font-size: .72rem;
  letter-spacing: .18em;
  color: rgba(36,50,49,.4);
  text-transform: uppercase;
}
