/*
  tarcus.tech — the one page that says what Tarcus is (docs/platform/DECISIONS.md, 2026-10-13).
  The app's own colours and typefaces (packages/ui/src/styles.css): warm paper, ink, the logo's red
  used sparingly; Newsreader for headings, Manrope for text, both carried here, not fetched from Google.
*/
@import url("/assets/fonts/fonts.css");

:root {
  --paper: #fbf9f6;
  --paper-2: #f4f1ec;
  --surface: #fffdfb;
  --ink: #1c1a18;
  --ink-2: #3a352f;
  --muted: #6e6862;
  --faint: #9a938c;
  --line: #e7e1d9;
  --line-strong: #d6cec4;
  --red: #b8261f;
  --red-hover: #9c1d17;
  --spot: #e3261c;
  --plan-line: #3a352f;
  --plan-fill: #fffdfb;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151311;
    --paper-2: #1b1917;
    --surface: #1f1c1a;
    --ink: #f3efe9;
    --ink-2: #e4dfd7;
    --muted: #aaa39a;
    --faint: #8c857c;
    --line: #2f2b27;
    --line-strong: #3d3833;
    --red: #e2463e;
    --red-hover: #f05a52;
    --plan-line: #d9d2c8;
    --plan-fill: #1f1c1a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* —— Header ———————————————————————————————————————— */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: 8px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.top .end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
}

.lang:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.btn.primary:hover {
  background: var(--ink-2);
}

.btn.ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.btn.ghost:hover {
  border-color: var(--ink-2);
}

.btn.red {
  background: var(--red);
  color: #fff;
}

.btn.red:hover {
  background: var(--red-hover);
}

.btn.sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* —— Hero ——————————————————————————————————————————— */

.hero {
  padding: 72px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spot);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--red);
}

.lead {
  font-size: 19px;
  color: var(--ink-2);
  margin: 22px 0 32px;
  max-width: 34em;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--faint);
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 30px 60px -40px rgba(28, 26, 24, 0.35);
}

.plan svg {
  width: 100%;
  height: auto;
}

.plan .walls {
  fill: none;
  stroke: var(--plan-line);
  stroke-width: 3;
  stroke-linejoin: round;
}

.plan .thin {
  fill: none;
  stroke: var(--plan-line);
  stroke-width: 1.4;
  opacity: 0.55;
}

.plan .room {
  fill: var(--plan-line);
  font-family: var(--font-body);
  font-size: 13px;
  opacity: 0.6;
  letter-spacing: 0.02em;
}

.plan .pin {
  fill: var(--spot);
  stroke: var(--plan-fill);
  stroke-width: 2.5;
}

.plan .pin-ring {
  fill: none;
  stroke: var(--spot);
  stroke-width: 1.5;
  opacity: 0.35;
}

.plan .count {
  fill: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
}

.plan .card rect {
  fill: var(--surface);
  stroke: var(--line-strong);
}

.plan .card text {
  font-family: var(--font-body);
  fill: var(--ink);
}

.plan .card .sub {
  fill: var(--muted);
  font-size: 10px;
}

.plan figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 4px 0;
}

/* —— Sections ——————————————————————————————————————— */

section {
  padding: 88px 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.head {
  max-width: 44em;
  margin-bottom: 44px;
}

h2 {
  font-size: clamp(32px, 4.2vw, 46px);
}

.head p {
  font-size: 18px;
  color: var(--ink-2);
  margin: 16px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink-2);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

/* —— Split (phone app, FM) ——————————————————————————— */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

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

.list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin: 9px 0 0 5px;
  border-radius: 50%;
  background: var(--spot);
}

.list b {
  font-weight: 600;
}

.list span {
  color: var(--ink-2);
}

.panel {
  background: var(--paper-2);
  border-radius: 22px;
  padding: 34px;
}

.panel h3 {
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

/* —— Who ———————————————————————————————————————————— */

.who {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.who div {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.who p {
  color: var(--ink-2);
  margin: 6px 0 0;
}

/* —— Trust ——————————————————————————————————————————— */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.facts div {
  padding: 20px 0;
}

.facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}

.facts span {
  color: var(--ink-2);
  font-size: 15px;
}

/* —— Call to action ————————————————————————————————— */

.cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta h2 {
  color: var(--paper);
}

.cta p {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  font-size: 18px;
  margin: 14px 0 0;
}

.cta .actions {
  justify-content: flex-end;
}

.cta .btn.ghost {
  background: transparent;
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 35%, transparent);
}

.cta .btn.ghost:hover {
  border-color: var(--paper);
}

@media (prefers-color-scheme: dark) {
  .cta {
    background: var(--surface);
    border: 1px solid var(--line);
  }

  .cta h2 {
    color: var(--ink);
  }

  .cta p {
    color: var(--ink-2);
  }

  .cta .btn.ghost {
    color: var(--ink);
    border-color: var(--line-strong);
  }
}

/* —— Footer ——————————————————————————————————————————— */

footer {
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}

footer .brand {
  color: var(--ink);
  font-size: 16px;
}

footer .brand svg {
  width: 24px;
  height: 24px;
}

footer nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* —— Narrow screens ——————————————————————————————————— */

@media (max-width: 960px) {
  .hero .wrap,
  .split,
  .cta {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta .actions {
    justify-content: flex-start;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .top .wrap {
    gap: 12px;
  }

  .hero {
    padding: 44px 0 24px;
  }

  section {
    padding: 64px 0;
  }

  .grid,
  .who,
  .facts {
    grid-template-columns: 1fr;
  }

  .who {
    gap: 24px;
  }

  .cta {
    padding: 40px 24px;
    border-radius: 22px;
  }

  .panel {
    padding: 24px;
  }

  /* Touch targets: 44 px, as everywhere in the app. */
  .top .btn.sm {
    min-height: 44px;
    padding: 0 14px;
  }

  .lang {
    padding: 12px 10px;
  }

  footer nav {
    margin-left: 0;
  }
}
/* A heading block beside a panel: the panel sets the spacing. */
.head.flush {
  margin-bottom: 0;
}

/* The logo in the page's own colours: ink square, paper T, the red dot — light on a dark page. */
.mark rect {
  fill: var(--ink);
}

.mark path {
  stroke: var(--paper);
}

.mark circle {
  fill: var(--red);
}
