/* Summl landing page. Same look as the app: black on white, 1px rules, Anek Tamil / Geist / Geist Mono. */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --muted: #5c5c63;
  --faint: #e4e4e7;
  --bubble: #f0f0f2;
  --display: "Anek Tamil", "Arial Narrow", sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.frame { max-width: 1280px; margin: 0 auto; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
@media (max-width: 1312px) { .frame { border-left: 0; border-right: 0; } }
.section { border-bottom: 1px solid var(--ink); padding: 72px 24px; }
@media (min-width: 768px) { .section { padding: 96px 48px; } }
.wrap { max-width: 1040px; margin: 0 auto; }
.narrow { max-width: 720px; }

.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; margin: 0; }
.h1 { font-size: clamp(48px, 9vw, 96px); }
.h2 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 16px; }
.h3 { font-size: 28px; letter-spacing: -0.02em; }
.label { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
p { margin: 0 0 1em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn-outline { background: var(--paper); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 11px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 24px;
       border-bottom: 1px solid var(--ink); position: sticky; top: 0; background: var(--paper); z-index: 10; }
.logo { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.04em; text-decoration: none; padding-top: 4px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* hero + waitlist */
.hero .h1 { margin: 20px 0 24px; }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; max-width: 560px; }
.field {
  flex: 1 1 260px; height: 48px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 6px;
  background: var(--paper); font: inherit; color: var(--ink); min-width: 0;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.status { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 6px; max-width: 560px; }
.status[hidden] { display: none; }

/* grids */
.grid { display: grid; gap: 0; border: 1px solid var(--ink); border-radius: 8px; overflow: hidden; }
.grid-4 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.cell { padding: 28px; border-bottom: 1px solid var(--ink); }
.grid > .cell:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .grid-3 > .cell { border-bottom: 0; border-right: 1px solid var(--ink); }
  .grid-3 > .cell:last-child { border-right: 0; }
  .grid-4 > .cell { border-right: 1px solid var(--ink); }
  .grid-4 > .cell:nth-child(2n) { border-right: 0; }
  .grid-4 > .cell:nth-child(n+3) { border-bottom: 0; }
}
@media (min-width: 1024px) {
  .grid-4 > .cell { border-bottom: 0; border-right: 1px solid var(--ink); }
  .grid-4 > .cell:last-child { border-right: 0; }
}
.step-n { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; margin-bottom: 16px; }
.cell h3 { margin: 0 0 8px; font-size: 19px; }
.cell p { color: var(--muted); font-size: 16px; margin: 0; }

/* example P&L */
.example { display: grid; gap: 32px; }
@media (min-width: 960px) { .example { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.pnl { border: 1px solid var(--ink); border-radius: 8px; overflow: hidden; font-size: 15px; }
.pnl-head { padding: 18px 20px; border-bottom: 1px solid var(--ink); }
.pnl-head .display { font-size: 34px; margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.stat { padding: 14px 20px; border-right: 1px solid var(--ink); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
@media (max-width: 480px) { .stat { padding: 12px; } .stat b { font-size: 20px; } }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 20px; text-align: left; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
thead th { background: var(--ink); color: var(--paper); font-weight: 600; }
tr.total td { font-weight: 600; border-top: 1px solid var(--ink); }
tr.key td { background: var(--bubble); font-weight: 600; }
.insights { display: grid; gap: 12px; }
.insight { border: 1px solid var(--ink); border-radius: 8px; padding: 16px 18px; }
.insight .label { display: inline-block; margin-bottom: 6px; }
.insight p { margin: 0; font-size: 16px; }

/* sources */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

/* pricing */
.price-card { display: flex; flex-direction: column; gap: 14px; }
.price { font-family: var(--display); font-weight: 800; font-size: 56px; letter-spacing: -0.04em; line-height: 1; }
.price small { font-family: var(--sans); font-weight: 400; font-size: 16px; letter-spacing: 0; color: var(--muted); }
.price-card ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 16px; }
.price-card li { margin-bottom: 6px; }
.tiers { width: 100%; font-size: 16px; }
.tiers td { padding: 6px 0; border-bottom: 1px solid var(--faint); }
.badge { display: inline-block; border: 1px solid var(--ink); border-radius: 999px; padding: 2px 10px; }
.toggle { display: inline-flex; align-self: flex-start; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; }
.toggle button { border: 0; background: var(--paper); color: var(--ink); padding: 8px 14px; cursor: pointer;
                 font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* FAQ */
details { border-bottom: 1px solid var(--ink); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--ink); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 32px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* legal pages */
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal table { font-size: 15px; margin: 12px 0 20px; border: 1px solid var(--ink); }
.legal td, .legal th { padding: 8px 12px; border-bottom: 1px solid var(--faint); vertical-align: top; }
