/* albirint — public site
   ---------------------------------------------------------------------------
   Matched to the application's own surfaces (src/styles/globals.css,
   LandingView.tsx, PricingPage.tsx): white ground, centred marketing copy,
   borderless top bar, rounded-2xl cards, faint hairline borders, indigo accent.

   Colour is provenance. Three brand hues carry meaning and are never used as
   decoration:
     reason  #0066FF  written by the model
     action  #16A34A  executed deterministically
     lineage #B38900  recorded for audit

   Type is the system sans — the same family the logo itself is drawn in
   ('Segoe UI', system-ui). No web fonts, no CDNs, no trackers: this site's one
   job is to load, every time, with nothing else running.
   --------------------------------------------------------------------------- */

:root {
  --background: #ffffff;
  --foreground: #161a24;
  --surface: #ffffff;
  --surface-muted: #f9fafb;

  --primary: #404ddd;
  --primary-foreground: #ffffff;
  --primary-soft: #ebecff;

  --accent: #f99e1f;

  --reason: #0066ff;
  --action: #16a34a;
  --lineage: #b38900;
  --verify: #2ba64a;

  --muted-foreground: #656c7b;
  --border: #e7e9ee;
  --border-strong: #d3d8e2;

  --radius: 0.625rem;

  --shadow-1: 0 1px 2px hsl(222 30% 12% / 0.06), 0 1px 3px hsl(222 30% 12% / 0.04);
  --shadow-2: 0 4px 6px hsl(222 30% 12% / 0.07), 0 2px 4px hsl(222 30% 12% / 0.04);
  --shadow-3: 0 10px 15px hsl(222 30% 12% / 0.08), 0 4px 6px hsl(222 30% 12% / 0.04);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "rlig" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

::selection {
  background-color: color-mix(in srgb, var(--primary) 18%, transparent);
}

p {
  margin: 0;
}

/* The app's display treatment: same family as body, semi-bold, tightened. */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ── Shell ───────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 88px;
}

.section--tint {
  background: var(--surface-muted);
}

/* Centred marketing rhythm, as on the app's /pricing route. */
.section__head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: 52px;
  text-align: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(26px, 3.6vw, 34px);
}

.section__head p {
  margin-top: 14px;
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.7;
}

/* ── Top bar — borderless, h-14, brand left / actions right ──────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 56px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.wordmark img {
  height: 28px;
  width: 101px;
  object-fit: contain;
  display: block;
}

.masthead nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* :not(.btn) matters — a bare `.masthead nav a` rule outranks `.btn--primary`
   on specificity and would repaint the call-to-action's label grey on indigo. */
.masthead nav a:not(.btn) {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 14.5px;
}

.masthead nav a:not(.btn):hover {
  color: var(--foreground);
}

@media (max-width: 780px) {
  .masthead nav a:not(.btn) {
    display: none;
  }
  .masthead .wrap {
    gap: 12px;
  }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

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

.btn--primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, #000);
}

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

.btn--ghost:hover {
  background: var(--surface-muted);
  color: var(--foreground);
}

.btn--outline {
  border-color: var(--border-strong);
  color: var(--foreground);
}

.btn--outline:hover {
  background: var(--surface-muted);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 14px;
}

/* ── Hero — centred, mirroring LandingView ───────────────────────────────── */

.hero {
  padding-block: 88px 68px;
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #7a5c00;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 999px;
  padding: 5px 15px;
  margin-bottom: 30px;
}

.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* The app's landing h1 is a single nowrap line. Left unconstrained it sets on
   one line from ~1080px up and breaks naturally below that, which is the same
   result without risking overflow on a narrow phone. */
.hero h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero h1 .verify {
  color: var(--verify);
}

.hero__lede {
  margin-top: 24px;
  margin-inline: auto;
  max-width: 42rem;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hero__lede .r {
  color: var(--reason);
}
.hero__lede .a {
  color: var(--action);
}
.hero__lede .l {
  color: var(--lineage);
}

.hero__sub {
  margin-top: 22px;
  margin-inline: auto;
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 16.5px;
  line-height: 1.7;
}

/* The prompt bar's silhouette from the app's landing view, used here as the
   primary call to action. It is a link, not a text field — the shape is
   familiar, but nothing on this page pretends to accept a query. */
.prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 42rem;
  margin: 40px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--border) 60%, transparent);
  text-decoration: none;
  color: var(--foreground);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.prompt:hover {
  border-color: color-mix(in srgb, var(--primary) 60%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 10%, transparent);
}

.prompt__icon {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.prompt__text {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.5;
}

.prompt__go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}

.prompt__go svg {
  width: 14px;
  height: 14px;
}

/* The landing view's ghost-button row, separator and all. */
.hero__links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero__links .sep {
  color: color-mix(in srgb, var(--muted-foreground) 40%, transparent);
}

/* ── The plan card — how the split actually looks ────────────────────────── */

.plan__caption {
  margin: 52px auto 16px;
  max-width: 44rem;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted-foreground);
}

.plan {
  max-width: 44rem;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  text-align: left;
}

/* Each region owns its slice of the rail. Stacked flush, they read as one
   continuous line whose colour says who was responsible for that region. */
.plan__region {
  border-left: 3px solid transparent;
  padding: 16px 20px;
}

.plan__ask {
  border-left-color: var(--border-strong);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

.plan__ask q {
  font-size: 15.5px;
  quotes: "\201C" "\201D";
}

.plan__reason {
  border-left-color: var(--reason);
  border-bottom: 1px solid var(--border);
}

.plan__exec {
  border-left-color: var(--action);
  padding-block: 12px;
}

.plan__lineage {
  border-left-color: var(--lineage);
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
}

.plan__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan__reason .plan__label {
  color: var(--reason);
}
.plan__exec .plan__label {
  color: var(--action);
  padding-bottom: 8px;
}
.plan__lineage .plan__label {
  color: var(--lineage);
}

.plan__note {
  color: var(--muted-foreground);
  font-size: 14px;
  margin-top: 7px;
  line-height: 1.6;
}

.plan__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 13px;
}

.plan__steps li {
  display: grid;
  grid-template-columns: 20px minmax(0, 120px) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px dashed var(--border);
  animation: step-in 0.42s cubic-bezier(0.22, 0.68, 0.32, 1) both;
}

.plan__steps li:first-child {
  border-top: 0;
}

.plan__steps li:nth-child(1) {
  animation-delay: 0.08s;
}
.plan__steps li:nth-child(2) {
  animation-delay: 0.15s;
}
.plan__steps li:nth-child(3) {
  animation-delay: 0.22s;
}
.plan__steps li:nth-child(4) {
  animation-delay: 0.29s;
}
.plan__steps li:nth-child(5) {
  animation-delay: 0.36s;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.plan__n {
  color: var(--muted-foreground);
  font-size: 11.5px;
  text-align: right;
}

.plan__op {
  font-weight: 500;
}

.plan__arg {
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .plan__steps li {
    animation: none;
  }
}

/* ── Phase legend ────────────────────────────────────────────────────────── */

.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 860px) {
  .phases {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.phase__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phase__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.phase--reason .phase__tag {
  color: var(--reason);
}
.phase--action .phase__tag {
  color: var(--action);
}
.phase--lineage .phase__tag {
  color: var(--lineage);
}

.phase h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.phase p {
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Source list ─────────────────────────────────────────────────────────── */

.sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.source {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 20px 22px;
  background: var(--surface);
}

.source h3 {
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.source p {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 14.5px;
  line-height: 1.65;
}

.pill {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.pill--live {
  color: var(--action);
  border-color: color-mix(in srgb, var(--action) 35%, transparent);
  background: color-mix(in srgb, var(--action) 8%, transparent);
}

.pill--soon {
  color: var(--muted-foreground);
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

/* ── Plans ───────────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.tier {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 26px 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.tier--featured {
  border-color: var(--primary);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--primary) 12%, transparent);
}

.tier__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier h3 {
  font-size: 17px;
}

.tier__tagline {
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 14.5px;
  line-height: 1.6;
  min-height: 46px;
}

.tier__price {
  margin-top: 20px;
  font-size: 42px;
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1;
}

.tier__per {
  font-size: 14px;
  color: var(--muted-foreground);
  font-weight: 400;
  letter-spacing: normal;
}

.tier__annual {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted-foreground);
  min-height: 20px;
}

.tier ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  display: grid;
  gap: 10px;
}

.tier li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.tier li b {
  color: var(--foreground);
  font-weight: 600;
}

/* Included reads as a check; an excluded line reads as a muted dash. */
.tier li::before {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: 6px;
  border-left: 2px solid var(--action);
  border-bottom: 2px solid var(--action);
  transform: rotate(-45deg);
  justify-self: center;
}

.tier li.no::before {
  content: "";
  width: 10px;
  height: 0;
  margin-top: 10px;
  border: 0;
  border-top: 2px solid var(--border-strong);
  transform: none;
}

/* ── Comparison table ────────────────────────────────────────────────────── */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 640px;
}

table.grid th,
table.grid td {
  padding: 12px 20px;
  text-align: left;
  border-top: 1px solid var(--border);
}

table.grid thead th {
  border-top: 0;
  background: var(--surface-muted);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 500;
}

table.grid tbody th {
  font-weight: 500;
}

table.grid td {
  color: var(--muted-foreground);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq {
  max-width: 46rem;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  overflow: hidden;
}

.faq > * + * {
  border-top: 1px solid var(--border);
}

.faq__q {
  padding: 22px 26px;
}

.faq__q h3 {
  font-size: 16px;
}

.faq__q p {
  margin-top: 10px;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Call to action band ─────────────────────────────────────────────────── */

.band {
  max-width: 56rem;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 40px 40px;
  background: linear-gradient(
    to bottom right,
    color-mix(in srgb, var(--primary) 8%, var(--surface)),
    var(--surface) 55%,
    color-mix(in srgb, var(--accent) 8%, var(--surface))
  );
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

@media (max-width: 640px) {
  .band {
    text-align: center;
    justify-content: center;
    padding: 32px 24px;
  }
}

.band h2 {
  font-size: clamp(22px, 3vw, 26px);
}

.band p {
  margin-top: 8px;
  color: var(--muted-foreground);
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.65;
}

/* ── Prose documents (legal pages) ───────────────────────────────────────── */

.doc {
  max-width: 44rem;
  padding-block: 64px 88px;
}

.doc h1 {
  font-size: clamp(30px, 4.6vw, 42px);
}

.doc__meta {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted-foreground);
}

.doc h2 {
  font-size: 20px;
  margin-top: 44px;
}

.doc h3 {
  font-size: 16.5px;
  margin-top: 28px;
}

.doc p,
.doc li {
  margin-top: 14px;
  color: #333a48;
  line-height: 1.75;
}

.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 0;
}

.doc strong {
  color: var(--foreground);
  font-weight: 600;
}

.doc__note {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-muted);
  padding: 18px 22px;
  font-size: 15px;
}

.doc__note p {
  margin-top: 0;
}

/* Unfilled business detail. Deliberately loud: these must be replaced before
   the site is submitted for review. */
.todo {
  font-family: var(--mono);
  font-size: 0.88em;
  color: #7a5c00;
  background: color-mix(in srgb, var(--accent) 17%, transparent);
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 65%, transparent);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  padding-block: 40px;
  font-size: 14.5px;
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

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

.foot nav a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.foot__legal {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 13.5px;
  display: grid;
  gap: 6px;
  line-height: 1.6;
}
