/* cellernaS — one stylesheet for the whole site.
   A printed-journal look: paper, ink, thin rules, serif text. The only
   colour on the page is the demo video and the app icon. */

:root {
  --paper:   #f6f5f1;
  --paper-2: #ecebe5;
  --ink:     #1b1d21;
  --ink-2:   #555a62;
  --rule:    #cfcdc4;
  --dark:    #101114;

  --serif: "Iowan Old Style", "Charter", "Source Serif Pro", "Palatino Linotype", Georgia, serif;
  --sans:  "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono:  "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --measure: 36rem;
  --wide: 72rem;
}

* { box-sizing: border-box; }

html { background: var(--paper); color: var(--ink); }

body {
  margin: 0;
  font: 1.125rem/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; }
h2 {
  font: 600 .8rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 2rem;
}
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
p { margin: 0 0 1em; }

/* ── header ─────────────────────────────────────────────── */

.top {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--sans);
}
.mark { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.15rem; text-decoration: none; letter-spacing: .01em; }
.mark b { font-weight: 800; }
.logo { display: block; width: 2rem; height: 2rem; }

/* ── intro ──────────────────────────────────────────────── */

main { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

/* Text left, video right; one column below 960px. Both share main's left
   edge, so every section on the page starts on the same line. */
.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0 6rem;
}
.intro { padding: 0; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; margin: 2rem 0 0; }
.button {
  display: inline-block;
  font: 600 1rem/1 var(--sans);
  padding: .9rem 1.4rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.button:hover { background: #000; }
.button.secondary { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.button.secondary:hover { background: var(--paper-2); }
.note { font: .85rem/1.5 var(--sans); color: var(--ink-2); margin: 1rem 0 0; max-width: var(--measure); }
.note b { font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); letter-spacing: -.01em; margin-bottom: 1.5rem; text-wrap: balance; }
.lede { font-size: 1.25rem; color: var(--ink-2); max-width: var(--measure); }
.lede a { color: inherit; }
.points { list-style: none; margin: 1.25rem 0 0; padding: 0; font-size: 1.125rem; }
.points a { color: inherit; }
.points li { padding: .2rem 0 .2rem 1.6rem; position: relative; }
.points li::before {
  content: ""; position: absolute; left: .2rem; top: .7rem;
  width: .7rem; height: .35rem;
  border: solid var(--ink); border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

/* ── demo video ─────────────────────────────────────────── */

.hero { margin: 0; }
.hero img, .hero video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--dark);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 12px 40px rgb(0 0 0 / .14);
}
figcaption {
  font: .9rem/1.5 var(--sans);
  color: var(--ink-2);
  margin-top: .75rem;
}

/* ── benefits ───────────────────────────────────────────── */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 2.5rem;
  margin-bottom: 5rem;
}
.benefits svg {
  width: 1.75rem; height: 1.75rem;
  fill: none; stroke: var(--ink); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: .75rem;
}
.benefits p { font-size: 1rem; color: var(--ink-2); margin: 0; }
.benefits .trust {
  grid-column: 1 / -1;
  font: .9rem/1.4 var(--sans);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

/* ── estimate ───────────────────────────────────────────── */

.estimate { margin-bottom: 5rem; max-width: 52rem; }
.estimate > p { font-size: 1rem; color: var(--ink-2); max-width: var(--measure); }
.estimate table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1rem; font: .9rem/1.4 var(--sans); }
.estimate th { text-align: left; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding: .4rem .75rem .4rem 0; }
.estimate td { border-bottom: 1px solid var(--paper-2); padding: .5rem .75rem .5rem 0; }
.estimate .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.estimate th:last-child, .estimate td:last-child { padding-right: 0; }
.estimate tbody + tbody { border-top: 1px solid var(--rule); }
.estimate .sub td { color: var(--ink-2); }
.estimate .total td { font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 0; padding-top: .7rem; }
.estimate .fine { font: .85rem/1.5 var(--sans); }
.estimate .fine a { color: inherit; }

/* ── footer ─────────────────────────────────────────────── */

.foot {
  max-width: calc(var(--wide) - 3rem);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font: .85rem/1.4 var(--sans);
  color: var(--ink-2);
  border-top: 1px solid var(--rule);
}

/* ── narrow screens ─────────────────────────────────────── */

@media (max-width: 960px) {
  .top-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; padding: 3.5rem 0 4.5rem; }
  .hero { max-width: 40rem; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .estimate table { font-size: .8rem; }
  .estimate td, .estimate th { padding-right: .4rem; }
  .top { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .top-grid { padding: 2.5rem 0 3.5rem; }
  .cta .button { flex: 1 1 100%; text-align: center; }
  .benefits { grid-template-columns: 1fr; }
  .foot { flex-direction: column; margin: 0 1.5rem; }
}
