/* CocoBranch's own look, over the template's: the app's blued steel and brass
   (packages/app/src/theme.css in cocobranch_engine), its serif for anything read as
   prose and its mono for labels. Dark only, like the screenshots it frames. */

:root {
  --ground: #0f1216;
  --surface: #171b22;
  --raised: #1f242d;
  --line: #2c333f;
  --ink: #e8ebf0;
  --ink-2: #a8b2c2;
  --ink-3: #6e7889;
  --brass: #d9a05b;
  --brass-dim: #8a6636;
  --brass-glow: rgba(217, 160, 91, 0.13);
  --lift-4: 0 24px 60px rgba(0, 0, 0, 0.5);

  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "IBM Plex Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-ui: var(--sans);
  color-scheme: dark;
}

html, body {
  background: var(--ground);
}

.page {
  background: var(--ground);
  color: var(--ink);
}

/* Lamplight from above rather than the template's white sheen. */
.page::before {
  opacity: 1;
  background: radial-gradient(ellipse 70% 420px at 50% 0%, var(--brass-glow), transparent 75%);
}

.hero {
  max-width: 720px;
  padding-bottom: 56px;
}

.hero img.logo {
  width: 104px;
  height: 104px;
  border-radius: 0;          /* the icon carries its own superellipse corner */
  box-shadow: none;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5));
}

.hero-copy h1 {
  font: 600 52px/1.05 var(--serif);
  letter-spacing: -0.01em;
}

.hero-copy p {
  font: 400 22px/1.45 var(--serif);
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: balance;
}

.signup-form input[type="email"] {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.signup-form input[type="email"]::placeholder {
  color: var(--ink-3);
}

.signup-form input[type="email"]:focus {
  border-color: var(--brass-dim);
  box-shadow: 0 0 0 3px var(--brass-glow);
}

/* The app's primary button: brass on a brass wash, inside a brass rule. */
.signup-form button {
  background: var(--brass-glow);
  color: var(--brass);
  border: 1px solid var(--brass-dim);
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.signup-form button:hover:not(:disabled),
.signup-form button:focus-visible {
  background: rgba(217, 160, 91, 0.22);
  border-color: var(--brass);
}

.signup-success {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--brass-dim);
  font-weight: 600;
  box-shadow: none;
}

.signup-success svg {
  color: var(--brass);
}

.form-note {
  color: var(--ink-3);
}

.form-note.is-error {
  color: #e8906a;
}

/* Section labels are the app's: small mono capitals, spaced, in the quietest ink. */
.showcase-label {
  font: 500 12px var(--mono);
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

/* Mac windows, not phones: the board across the top, writing and playing beneath it. */
.showcase {
  padding-bottom: 88px;
}

.showcase-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1120px;
  align-items: start;
}

.showcase-shots img {
  width: 100%;
  max-width: none;
  border-radius: 12px;
  /* A Mac window's hairline: the app's own ground is this page's, so without an edge
     the window would sink into it. */
  border: 1px solid rgba(232, 235, 240, 0.14);
  box-shadow: var(--lift-4), 0 0 0 6px rgba(232, 235, 240, 0.025);
}

.showcase-shots img:first-child {
  grid-column: 1 / -1;
}

.features {
  max-width: 1120px;
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: none;
  border-radius: 12px;
}

.feature-card svg {
  color: var(--brass);
  width: 24px;
  height: 24px;
}

.feature-card .title {
  font: 600 20px/1.25 var(--serif);
  color: var(--ink);
}

.feature-card .desc {
  font: 400 15px/1.55 var(--sans);
  color: var(--ink-2);
}

.footer a {
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 19px;
  }

  /* Undo the template's phone carousel: one window after another, full width. */
  .showcase-shots {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    gap: 14px;
  }

  .showcase-shots img {
    width: 100%;
    border-radius: 8px;
  }

  .showcase-shots img:nth-child(n) {
    order: 0;
  }

  .features {
    grid-template-columns: 1fr;
  }
}
