/* Planwell Studio landing pages. Shared layout; each site sets its own tokens in :root. */

:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --brand: #1a1a1a;
  --brand-ink: #ffffff;
  --tint: #f0f0f0;
  --accent: #ffd66b;
  --line: #dddddd;
  --radius: 8px;
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --body-size: 17px;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Honeypot: off screen for people, present for bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* Page frame */
.top, main, footer {
  width: min(100% - 2rem, 62rem);
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.4rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.ai {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  display: grid;
  gap: 2rem;
  padding: 1.6rem 0 2.4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 6.4vw, 3.4rem);
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.lede {
  margin-top: 1rem;
  max-width: var(--measure);
  font-size: 1.08em;
  color: var(--muted);
}

.capture {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.6rem;
  max-width: 28rem;
}

.capture input[type="email"] {
  font: inherit;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.capture input[type="email"]::placeholder { color: #9a9a9a; }

.capture button {
  font: inherit;
  font-weight: 700;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-ink);
  cursor: pointer;
}

.capture button:hover { filter: brightness(1.08); }

.fine {
  font-size: 0.85rem;
  color: var(--muted);
}

.mockup {
  margin: 0;
}

.mockup svg {
  width: 100%;
  height: auto;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    padding: 2.5rem 0 3.5rem;
  }
  .capture {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .capture button { width: auto; padding-inline: 1.3rem; }
  .capture .fine { grid-column: 1 / -1; }
}

/* Products. A list with rules, because the three items are a set, not three identical cards. */
.products {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 1rem;
}

.products h2, .faq h2, .thanks h2 {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.products .intro, .faq .intro {
  color: var(--muted);
  max-width: var(--measure);
  margin-bottom: 1.2rem;
}

.product {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1.2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.product:last-child { border-bottom: 1px solid var(--line); }

.product h3 {
  font-size: 1.15rem;
  grid-column: 1;
}

.product p {
  grid-column: 1;
  color: var(--muted);
  max-width: var(--measure);
}

.product .price {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.buy {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--ink);
  white-space: nowrap;
}

.buy:hover { background: var(--accent); }

@media (max-width: 480px) {
  .product { grid-template-columns: 1fr; }
  .product .price { grid-column: 1; grid-row: auto; }
  .buy { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.4rem; }
}

/* FAQ */
.faq {
  padding: 2.2rem 0;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.3rem 0;
}

.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  flex: none;
}

.faq details[open] summary::after { content: "\2013"; }

.faq details p {
  color: var(--muted);
  max-width: var(--measure);
  padding: 0 0 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: grid;
  gap: 0.6rem;
}

footer .disclosure { max-width: 48rem; }

footer a { color: var(--muted); }

/* Thanks page */
.thanks {
  padding: 2.4rem 0 1.6rem;
  max-width: var(--measure);
}

.thanks h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
}

.thanks .lede { margin-top: 0.9rem; }

.download {
  display: inline-block;
  margin-top: 1.4rem;
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-ink);
}

.download:hover { filter: brightness(1.08); }

.form-error {
  color: #a3281f;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .capture button, .buy, .download { transition: filter 120ms ease, background-color 120ms ease; }
}
