/* House Lights -- Fieldnote landing page. Tokens refined from filion-design. */

:root {
  /* Foundation: the dark of the house */
  --bg: #0A0B0D;
  --panel: #181C22;
  --panel-raised: #1F242B;
  --ink: #ECE7DD;
  --muted: #A7A299;
  --faint: #6E747C;
  --accent: #E79B3C;
  --accent-hi: #F4B45E;
  --accent-deep: #B5732A;
  --accent-glow: rgba(231, 155, 60, 0.14);
  --rule: #2A2F37;
  --rule-soft: #21262E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* Background: faint warm pool upper-right, cold lower-left */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(231, 155, 60, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(110, 147, 173, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 28px 112px;
}

/* Kicker / eyebrow */
.kicker {
  font-family: "Space Mono", monospace;
  letter-spacing: 0.35em;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 20px;
}

/* Hero headline */
h1 {
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6.5vw, 62px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

h2 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  margin: 88px 0 20px;
  letter-spacing: -0.01em;
}

h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

p { margin: 0 0 16px; }

.sub {
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
  max-width: 640px;
  line-height: 1.6;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 3px;
  border: 1px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 250ms ease, color 250ms ease, box-shadow 250ms ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 18px var(--accent-glow);
}

.btn.primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  box-shadow: 0 0 28px rgba(231, 155, 60, 0.28);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
}

.btn.ghost:hover {
  background: var(--accent-glow);
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

/* Proof section */
.proof img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin: 24px 0;
  display: block;
}

.failures {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.failures li {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  padding: 16px 20px;
  line-height: 1.6;
}

.failures li b {
  color: var(--ink);
  font-weight: 600;
}

/* How section */
.how ol {
  padding-left: 22px;
  margin: 0 0 20px;
}

.how li {
  margin: 14px 0;
  line-height: 1.6;
}

.how li b {
  color: var(--ink);
  font-weight: 600;
}

/* Pricing */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.tier {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.tier ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.tier ul li:last-child {
  border-bottom: none;
}

.price {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  margin: 4px 0 20px;
  color: var(--ink);
  line-height: 1;
}

/* Fine print */
.fine {
  color: var(--faint);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
}

/* Signup footer */
.signup {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--rule-soft);
}

.signup form,
dialog form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

input[type=email] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 300;
  transition: border-color 200ms ease;
  outline: none;
}

input[type=email]:focus {
  border-color: var(--accent);
}

input[type=email]::placeholder {
  color: var(--faint);
}

/* Modal / dialog */
dialog {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px 28px;
  max-width: 440px;
  width: calc(100% - 48px);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

dialog h3 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}

dialog p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
}

dialog .btn.ghost {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

/* Mobile */
@media (max-width: 480px) {
  main {
    padding: 48px 20px 80px;
  }

  h2 {
    margin-top: 64px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

  .signup form,
  dialog form {
    flex-direction: column;
  }

  input[type=email] {
    width: 100%;
  }
}
