/* ─── Plekto landing page styling ─────────────────────────────
   Colour palette (matches brand mark):
     --ink    #1e293b   primary text
     --muted  #64748b   secondary text + weave grey
     --bg     #fafaf7   off-white background (slightly warm)
     --paper  #ffffff   card / form surfaces
     --amber  #d97706   accent (spine of the brand mark)
     --amber-hover  #b45309   button hover state
     --rule   #e7e5e0   hairline dividers / form borders
   ───────────────────────────────────────────────────────────── */

:root {
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #fafaf7;
  --paper: #ffffff;
  --amber: #d97706;
  --amber-hover: #b45309;
  --rule: #e7e5e0;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --bg: #0f172a;
    --paper: #1e293b;
    --amber: #f59e0b;
    --amber-hover: #fbbf24;
    --rule: #334155;
  }
}

* { box-sizing: border-box; }

html {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  /* InterVariable enables variable-axis tweaks below */
}
@supports (font-variation-settings: normal) {
  html { font-family: "InterVariable", "Inter", system-ui, sans-serif; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 64px;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero { text-align: center; }

.hero-icon {
  display: block;
  margin: 0 auto 32px;
  width: 96px;
  height: 96px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--ink);
}

.hero-lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ─── Signup form ──────────────────────────────────────────── */
.signup {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.signup button {
  padding: 14px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  background: var(--amber);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.signup button:hover { background: var(--amber-hover); }

.signup-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.hero-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 28px;
}

.hero-meta a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-meta a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.dot {
  margin: 0 6px;
  color: var(--rule);
}

/* ─── Feature grid ─────────────────────────────────────────── */
.features {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.feature {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.feature-glyph {
  font-size: 28px;
  color: var(--amber);
  margin-bottom: 14px;
  font-weight: 300;
  line-height: 1;
}

.feature h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ─── Built-on strip ───────────────────────────────────────── */
.built-on {
  margin-top: 80px;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-align: center;
}

.built-on p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.built-on a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  font-weight: 500;
}

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.footer-tag {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-tag a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-tag a:hover { border-bottom-color: var(--amber); }

.footer-links {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

/* ─── Small screens ────────────────────────────────────────── */
@media (max-width: 480px) {
  main { padding: 56px 20px 48px; }
  .hero h1 { font-size: 30px; }
  .signup { flex-direction: column; }
  .signup button { width: 100%; }
}
