/* edgi landing. Brand: ink black, cream, burnt orange (mirrors docs/ai/specs/UI.md §4, light palette). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url(/assets/fonts/BricolageGrotesque-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/assets/fonts/BricolageGrotesque-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/InstrumentSerif-400-italic.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f5eedc;
  --surface: #fbf7ec;
  --panel: #ecdfc4;
  --text: #1a1814;
  --text-muted: #5c564a;
  --border: #d9cfb6;
  --accent: #b84a00;
  --on-accent: #fffaf0;
  --inv: #1a1814;
  --on-inv: #f5eedc;
  --card-light: #fbf7ec;
  --accent-on-inv: #e8782e;
  --heat0: #e8dfc8;
  --heat1: #f4c9a0;
  --heat2: #e99a58;
  --heat3: #cc6a1e;
  --heat4: #8f3a00;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--display); font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

/* nav */
nav.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.wordmark { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
.wordmark::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 2px; background: var(--accent); border-radius: 1.5px; }
nav.top .links { display: none; gap: 24px; font-size: 13px; }
nav.top .links a { text-decoration: none; color: var(--text-muted); }
nav.top .links a:hover { color: var(--text); }
@media (min-width: 760px) { nav.top .links { display: flex; } }

/* buttons */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
  font: 700 14px var(--display); text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 120ms ease;
}
.pill:active { transform: scale(0.97); }
.pill.accent { background: var(--accent); color: var(--on-accent); }
.pill.ink { background: var(--inv); color: var(--on-inv); padding: 8px 16px; font-size: 13px; }
.pill.ghost { border-color: var(--border); }
.pill:hover { filter: brightness(1.08); }
.pill.ghost:hover { border-color: var(--text); filter: none; }

/* hero */
.hero { display: grid; gap: 40px; padding: 28px 0 56px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 44px; gap: 56px; } }
h1 {
  font-size: clamp(32px, 6.4vw, 54px); line-height: 1.04; letter-spacing: -0.04em;
  font-weight: 700; margin: 0 0 18px;
}
h1 em { font: italic 400 1.1em/0.9 var(--serif); letter-spacing: -0.01em; position: relative; white-space: nowrap; color: var(--accent); }
h1 em svg { position: absolute; left: -2%; bottom: -0.2em; width: 104%; height: 0.28em; overflow: visible; }
h1 em path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 900ms 400ms ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { h1 em path { animation: none; stroke-dashoffset: 0; } }
.lead { font-size: 16px; color: var(--text-muted); max-width: 29em; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-muted); }
.facts li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; background: var(--accent); border-radius: 1.5px; vertical-align: 1px; }

/* product mock */
.stage { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 22px 18px 48px; }
@media (min-width: 520px) { .stage { padding: 30px 28px 56px; } }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: 0 24px 40px -24px rgba(26,24,20,0.35); }
.mock header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.mock h2 { font-size: 15px; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
.mock .streak { font-size: 12px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.heatmap { display: flex; gap: 10px; margin-bottom: 14px; }
.heatmap .m { flex: var(--w) 1 0; min-width: 0; }
.heatmap .g { display: grid; grid-template-columns: repeat(var(--w), 1fr); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 3px; }
.heatmap .bdg { display: block; width: 20px; height: 20px; margin-top: 4px; }
.heatmap .m span { display: block; margin-top: 6px; font-size: 10px; color: var(--text-muted); }
.heatmap i:first-child { grid-row-start: var(--off); }
.heatmap i { display: block; aspect-ratio: 1; border-radius: 2.5px; background: var(--heat0); animation: fill 500ms ease-out forwards; animation-delay: calc(var(--n) * 9ms + 300ms); }
.heatmap i[data-l="1"] { --to: var(--heat1); }
.heatmap i[data-l="2"] { --to: var(--heat2); }
.heatmap i[data-l="3"] { --to: var(--heat3); }
.heatmap i[data-l="4"] { --to: var(--heat4); }
@keyframes fill { to { background: var(--to, var(--heat0)); } }
@media (prefers-reduced-motion: reduce) { .heatmap i { animation: none; background: var(--to, var(--heat0)); } }
.note { border-top: 1px dashed var(--border); padding-top: 12px; font-size: 13px; }
.note small { display: block; color: var(--text-muted); font-size: 11px; margin-bottom: 3px; }
.chip {
  position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; align-items: center;
  background: var(--inv); color: var(--on-inv); border-radius: 14px; padding: 7px 16px 7px 8px; font-size: 13px; font-weight: 700;
  transform: rotate(-2deg); box-shadow: 0 14px 24px -14px rgba(26,24,20,0.5);
}
@media (min-width: 520px) { .chip { right: 24px; bottom: 20px; } }

/* sections */
section { padding: 44px 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h2.big { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 26px; font-weight: 700; max-width: 16em; }

.rows { border-top: 1px solid var(--text); }
.row { display: grid; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 760px) { .row { grid-template-columns: 70px 1fr 1.3fr; align-items: baseline; } }
.row .n { font: italic 400 30px/1 var(--serif); color: var(--accent); }
.row h3 { margin: 0; font-size: 18px; letter-spacing: -0.025em; font-weight: 700; line-height: 1.2; }
.row p { margin: 0; color: var(--text-muted); max-width: 34em; }

/* founder note */
.founder { max-width: 680px; }
.founder blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--accent); }
.founder blockquote p { font: italic 400 22px/1.3 var(--serif); letter-spacing: -0.01em; margin: 0 0 12px; }
.founder .sign { font-size: 13px; color: var(--text-muted); margin: 14px 0 0 21px; }
@media (max-width: 759px) { .founder blockquote p { font-size: 19px; } }

/* waitlist (ink block, compact) */
.wl { background: var(--inv); color: var(--on-inv); border-radius: 20px; padding: 22px 18px; display: grid; gap: 20px; }
@media (min-width: 520px) { .wl { padding: 26px 28px; } }
@media (min-width: 820px) {
  .wl { grid-template-columns: 0.9fr 1.1fr; grid-template-areas: "copy card" "ask card"; align-items: center; padding: 36px 48px; gap: 0 56px; }
  .wl-copy { grid-area: copy; align-self: end; }
  .wl .card { grid-area: card; }
  .wl-ask { grid-area: ask; align-self: start; }
}
.wl h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 10px; }
.wl h2 em { font: italic 400 1.1em/0.9 var(--serif); color: var(--accent-on-inv); }
.wl-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-on-inv); margin: 0 0 10px; }
.wl-sub { margin: 0 0 18px; opacity: 0.8; max-width: 26em; font-size: 15px; }
.wl-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.wl-points li { display: flex; gap: 10px; align-items: baseline; opacity: 0.9; }
.wl-points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1.5px; background: var(--accent-on-inv); transform: translateY(-1px); }
.wl .card { background: var(--card-light); color: #1a1814; border-radius: 14px; padding: 4px 8px; }
.wl-ask { margin-top: 22px; padding: 14px 0 0 14px; border-left: 3px solid var(--accent-on-inv); }
.wl-quote { font: italic 400 22px/1.15 var(--serif); color: var(--accent-on-inv); margin: 0 0 6px; opacity: 1; }
.wl-link { font-size: 13px; font-weight: 700; color: var(--on-inv); text-decoration: none; border-bottom: 1px solid var(--accent-on-inv); padding-bottom: 1px; }
.wl-link:hover { color: var(--accent-on-inv); }
.wl iframe { width: 100%; border: 0; min-height: 260px; display: block; }

/* faq */
.faq { max-width: 700px; }
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--text-muted); max-width: 36em; }

footer.site { padding: 32px 0 44px; margin-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 13px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .wordmark { color: var(--text); font-size: 20px; }

/* privacy page */
.doc { max-width: 620px; padding: 20px 0 28px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 10px; }
.doc h2 { font-size: 17px; letter-spacing: -0.02em; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--text-muted); }
.doc a { color: var(--accent); }
.doc .muted { font-size: 13px; }

/* phones: tighter vertical rhythm */
@media (max-width: 759px) {
  .hero { padding: 16px 0 24px; gap: 28px; }
  section { padding: 22px 0; }
  h2.big { margin-bottom: 16px; }
  .row { padding: 16px 0; }
  .wl { gap: 16px; }
  details { padding: 13px 0; }
  footer.site { padding: 24px 0 32px; margin-top: 8px; }
  nav.top { padding: 14px 0; }
}

/* phones: vertical calendar months, small fixed cells */
@media (max-width: 759px) {
  .heatmap { display: grid; grid-template-columns: repeat(auto-fill, 74px); justify-content: space-between; gap: 16px 12px; }
  .heatmap .m { display: flex; flex-direction: column; min-width: 0; }
  .heatmap .m > span, .heatmap .m > .bdg { order: -1; margin: 0 0 6px; }
  .heatmap .m > .bdg { width: 16px; height: 16px; margin-bottom: 4px; }
  .heatmap .g { grid-template-columns: repeat(7, 8px); grid-template-rows: none; grid-auto-flow: row; gap: 3px; }
  .heatmap i { aspect-ratio: auto; height: 8px; border-radius: 2px; }
  .heatmap i:first-child { grid-row-start: auto; grid-column-start: var(--off); }
}

/* phones: tighter gap between form and feedback ask */
@media (max-width: 819px) {
  .wl { gap: 14px; }
  .wl-ask { margin-top: 0; padding-top: 4px; }
}

/* tablets (iPad): tighter vertical rhythm */
@media (min-width: 760px) and (max-width: 1100px) {
  .hero { padding: 24px 0 32px; gap: 36px; }
  section { padding: 26px 0; }
  h2.big { margin-bottom: 18px; }
  .row { padding: 18px 0; }
  details { padding: 14px 0; }
  footer.site { padding: 26px 0 36px; margin-top: 8px; }
  nav.top { padding: 14px 0; }
}

/* iPad: a little more room between the waitlist's three parts */
@media (min-width: 760px) and (max-width: 819px) { .wl { gap: 24px; } .wl-ask { padding-top: 6px; } }
@media (min-width: 820px) and (max-width: 1100px) { .wl { row-gap: 18px; } }

/* phones: smaller type in "How it works" */
@media (max-width: 759px) {
  #how h2.big { font-size: 21px; }
  .row .n { font-size: 24px; }
  .row h3 { font-size: 15px; }
  .row p { font-size: 13px; line-height: 1.55; }
}
