/* Homevibe site. Mirrors the app (DESIGN.md): quiet monochrome chrome, ink as the only tint,
   wide display type. The only color on the page belongs to vibes. */

:root {
  --canvas: #F2F2F4;
  --surface: #FFFFFF;
  --ink: #000000;
  --ink-2: #6C6C72;
  --hairline: #D8D8DC;
  --on-ink: #FFFFFF;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #000000;
    --surface: #1C1C1E;
    --ink: #FFFFFF;
    --ink-2: #98989F;
    --hairline: #38383A;
    --on-ink: #000000;
  }
}
:root[data-theme="dark"] {
  --canvas: #000000;
  --surface: #1C1C1E;
  --ink: #FFFFFF;
  --ink-2: #98989F;
  --hairline: #38383A;
  --on-ink: #000000;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

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

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-size: 19px;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 15px 22px;
  border-radius: 14px;
}
.button svg { width: 20px; height: 20px; fill: currentColor; }
.button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); }

/* Hero */
.hero { padding: 48px 0 72px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); margin: 0 0 20px; }
.hero .lede { font-size: 20px; color: var(--ink-2); max-width: 30em; margin: 0 0 32px; }

.vibe {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 22px 22px 20px;
  margin: 0 0 28px;
  max-width: 560px;
}
.vibe label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.vibe input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
  padding: 0;
}
.vibe input::placeholder { color: var(--hairline); }
.swatches { display: flex; gap: 10px; margin-top: 16px; }
.swatches span {
  width: 36px; height: 36px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(127,127,127,.25);
  transition: background-color .35s ease;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips button {
  font: inherit; font-size: 14px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.chips button:hover { border-color: var(--ink-2); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--ink-2); }

/* Phones: every screenshot is a phone, never a card */
.phone {
  background: #111;
  padding: 10px;
  border-radius: 52px;
  box-shadow: 0 0 0 1px var(--hairline), 0 30px 60px -20px rgba(0,0,0,.35);
  max-width: 340px;
  margin: 0 auto;
}
.phone img { border-radius: 42px; width: 100%; height: auto; aspect-ratio: 1320 / 2868; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--hairline); }
section h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 16px; }
section .intro { color: var(--ink-2); font-size: 19px; max-width: 34em; margin: 0 0 40px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.list li strong { display: block; font-size: 18px; }
.list li span { color: var(--ink-2); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 24px;
}
.tile h3 { margin: 0 0 6px; font-size: 19px; }
.tile .price { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 30px; margin: 4px 0 10px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; }

.themes { display: flex; flex-wrap: wrap; gap: 10px; }
.theme {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font-size: 15px;
}
.theme i { display: flex; }
.theme i b { width: 18px; height: 18px; border-radius: 50%; margin-right: -5px; box-shadow: 0 0 0 2px var(--surface); }

/* Legal and support content */
.content { max-width: 720px; padding-top: 32px; padding-bottom: 80px; }
.content h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 8px; }
.content h2 { font-size: 21px; margin: 40px 0 8px; }
.content p, .content li { color: var(--ink); }
.content ul { padding-left: 22px; }
.content li { margin: 6px 0; }
.updated { color: var(--ink-2); font-size: 15px; margin: 0 0 32px; }
.summary {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px 22px;
}
.summary ul { margin: 8px 0 0; }
.faq details { border-top: 1px solid var(--hairline); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p, .faq details ol { color: var(--ink-2); margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 48px; font-size: 14px; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .grid3 { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .phone { max-width: 280px; }
}
@media (max-width: 480px) {
  .wrap, .site-header { padding-left: 16px; padding-right: 16px; }
  .nav { gap: 14px; font-size: 14px; }
  .brand span { display: none; }
  .phone { border-radius: 44px; }
  .phone img { border-radius: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  .swatches span { transition: none; }
}
