/* Corva: the inner pages (about, contact, privacy, terms, cookies).
   Loaded after src/site.css, which holds the colour tokens, the gutter, .tri, .label and .foot.
   Quiet pages: the landing page is the show. Same night, same type, same gutter. */

body.inner { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.inner main { flex: 1 0 auto; }

/* ---------- the top: the mark, and one quiet row of links ---------- */

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: var(--pad) var(--pad) 0;
}
/* the same mark as the hero's top left: business, app, and the agents' teal on top */
.brand {
  display: inline-flex; align-items: center; gap: .42em;
  font-size: 22px; line-height: 1; color: var(--text); text-decoration: none;
  padding: 10px 0; margin: -10px 0; /* a 44px target without moving anything */
  transform-origin: 0 50%; transition: transform 140ms var(--ease-out);
}
.brand:active { transform: scale(.97); }
.brand .tri b { background: var(--text); }
.brand .tri b:nth-child(3) { background: var(--teal); }
.word { font: 700 .92em/1 "Unbounded", system-ui, sans-serif; letter-spacing: -.02em; }
.word i { font-style: normal; color: var(--teal); }

.top-links { display: flex; gap: clamp(20px, 2.4vw, 32px); }
.top-links a {
  display: inline-block; padding: 14px 0; margin: -14px 0;
  font: 500 .875rem/1 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: .005em;
  color: var(--soft); text-decoration: none;
  text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: transform 140ms var(--ease-out);
}
.top-links a:active { transform: scale(.97); }
.top-links a[aria-current="page"] { color: var(--text); text-decoration-line: underline; text-decoration-color: var(--teal); }

/* ---------- the page column: left-aligned to the gutter, like the landing page ---------- */

.page { padding: clamp(72px, 15svh, 160px) var(--pad) 0 var(--gutter); }
.page > .label { margin-bottom: clamp(16px, 2vw, 24px); }
.page h1 {
  font: 800 clamp(36px, 5.4vw, 88px)/1.02 "Archivo", system-ui, sans-serif;
  font-stretch: 125%; letter-spacing: -.03em; text-wrap: balance; max-width: 15ch;
}
.page h2 {
  font: 800 clamp(20px, 1.7vw, 26px)/1.15 "Archivo", system-ui, sans-serif;
  font-stretch: 125%; letter-spacing: -.015em; text-wrap: balance;
}
.lede { margin-top: clamp(22px, 3vw, 40px); color: var(--soft); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; max-width: 40ch; }

/* a big link that moves you on, in the voice of the landing page's "Contact us" */
.onward {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--text); text-decoration: none;
  font: 800 clamp(24px, 3vw, 46px)/1.12 "Archivo", system-ui, sans-serif; font-stretch: 125%; letter-spacing: -.015em;
  background: linear-gradient(var(--teal), var(--teal)) 0 100% / 100% 2px no-repeat;
  transform-origin: 0 50%; transition: transform 140ms var(--ease-out);
}
.onward:active { transform: scale(.98); }

/* the footer: links on every page, the landing page included (base style in site.css) */
.inner .foot { padding: clamp(96px, 18svh, 180px) var(--pad) clamp(20px, 4svh, 40px) var(--gutter); }

@media (hover: hover) and (pointer: fine) {
  .top-links a, .onward { transition: transform 140ms var(--ease-out), color 200ms ease; }
  .top-links a:hover { color: var(--text); }
  .onward:hover { color: var(--teal); }
}

/* ---------- about: one column of parts, each keyed to a dot ---------- */

/* The considered idea: the mark sits in the gutter while you read, and the dot that belongs to
   the part in view is the one that is lit. White, the business. White, the app. Teal, the agents.
   Without the script every dot stays lit. */
.about-body { position: relative; margin-top: clamp(64px, 12svh, 140px); }
.about-mark {
  position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--gutter)); width: var(--gutter);
  pointer-events: none;
}
.about-mark .tri {
  position: sticky; top: calc(50vh - .34em); left: 0;
  display: block; margin-inline: auto; font-size: 35px;
}
.about-mark .tri b { background: var(--text); transition: opacity 240ms var(--ease-out); }
.about-mark .tri b:nth-child(3) { background: var(--teal); }
.about-body[data-at="1"] .about-mark b:not(:nth-child(1)),
.about-body[data-at="2"] .about-mark b:not(:nth-child(2)),
.about-body[data-at="3"] .about-mark b:not(:nth-child(3)) { opacity: .18; }

.part {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 40rem); column-gap: clamp(28px, 5vw, 88px);
  padding: clamp(36px, 6vh, 72px) 0; border-top: 1px solid var(--line);
}
.part:last-child { border-bottom: 1px solid var(--line); }
.part h2 { padding-top: .2em; }
.part .dot { display: none; } /* phones: the dot moves into the heading */
.part.agents h2 { color: var(--teal); }
.part-text { display: grid; gap: 1em; color: var(--soft); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; max-width: 38em; }
.part-text strong { color: var(--text); font-weight: 500; }

.steps { display: grid; gap: clamp(14px, 1.6vw, 20px); counter-reset: none; }
.steps li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); align-items: baseline; }
.steps .n { font: 500 .8em/1 "Hanken Grotesk", system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .1em; color: var(--dim); }
.steps li.agents .n, .steps li.agents strong { color: var(--teal); }

.about .onward { margin-top: clamp(56px, 10svh, 120px); }

/* ---------- contact: two ways in, and the teal dot goes to the one you are about to use ---------- */

.ways { position: relative; margin-top: clamp(48px, 9svh, 104px); max-width: 52rem; }
.ways ul { display: grid; gap: clamp(28px, 4vw, 48px); }
.way {
  display: inline-grid; gap: 10px; color: var(--text); text-decoration: none;
  transform-origin: 0 50%; transition: transform 140ms var(--ease-out);
}
.way:active { transform: scale(.98); }
.way-name {
  justify-self: start;
  font: 800 clamp(26px, 3.6vw, 56px)/1.1 "Archivo", system-ui, sans-serif; font-stretch: 125%; letter-spacing: -.015em;
  background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 6px;
}
.way-addr { color: var(--dim); font-size: 15px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
/* the way the dot is on gets the teal rule */
.way[data-on="true"] .way-name { background-image: linear-gradient(var(--teal), var(--teal)); }
html:not(.pjs) .ways li:first-child .way-name { background-image: linear-gradient(var(--teal), var(--teal)); }

/* the agents' dot: in the gutter, level with the name of the way it is on */
.agent {
  position: absolute; left: calc(var(--gutter) / -2 - 7px); top: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #fff 0, var(--teal) 46%, rgba(53, 208, 190, .82) 100%);
  box-shadow: 0 0 0 6px rgba(53, 208, 190, .08);
  transform: translateY(var(--y, 0px)); transition: transform 260ms var(--ease-out);
}
html:not(.pjs) .agent { display: none; }
@media (hover: hover) and (pointer: fine) {
  .way .way-name { transition: color 200ms ease; }
  .way:hover .way-name { color: var(--teal); }
}

.next { margin-top: clamp(72px, 13svh, 140px); display: grid; gap: clamp(16px, 2vw, 24px); max-width: 40rem; }
.next ol { display: grid; gap: 10px; color: var(--soft); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; }
.next li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); align-items: baseline; }
.next .n { font: 500 .8em/1 "Hanken Grotesk", system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .1em; color: var(--dim); }
.plain { margin-top: clamp(40px, 6svh, 64px); max-width: 40rem; color: var(--dim); font-size: 16px; line-height: 1.6; }
.plain strong { color: var(--soft); font-weight: 500; }

/* ---------- legal: a long-form reading layout on plain semantic HTML, no classes needed ---------- */

.legal { max-width: 65ch; color: var(--soft); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; }
.legal > h1 { color: var(--text); font-size: clamp(34px, 4.2vw, 60px); max-width: 18ch; }
/* the line straight after the title is the date */
.legal > h1 + p { margin-top: clamp(14px, 1.6vw, 20px); color: var(--dim); font-size: 14px; letter-spacing: .02em; }
.legal > h1 + p + * { margin-top: clamp(40px, 6svh, 64px); }
.legal h2 { color: var(--text); margin-top: 2.6em; scroll-margin-top: 24px; }
.legal h3 {
  color: var(--text); margin-top: 1.9em;
  font: 500 1.06em/1.35 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: .005em;
}
.legal h2 + *, .legal h3 + * { margin-top: .7em; }
.legal p, .legal ul, .legal ol, .legal dl, .legal address, .legal table { margin-top: 1.1em; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .legal a { transition: color 200ms ease; }
  .legal a:hover { color: var(--teal); }
}
.legal ul { display: grid; gap: .45em; }
.legal ul > li { position: relative; padding-left: 1.4em; }
.legal ul > li::before {
  content: ""; position: absolute; left: .2em; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--dim);
}
.legal ol { display: grid; gap: .45em; list-style: decimal; padding-left: 1.4em; }
.legal ol > li { padding-left: .3em; }
.legal ol > li::marker { color: var(--dim); font-variant-numeric: tabular-nums; }
.legal li > ul, .legal li > ol { margin-top: .45em; }
/* a definition list reads as two columns: the term, and what it means */
.legal dl { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); border-top: 1px solid var(--line); }
.legal dt, .legal dd { padding: .8em 0; border-bottom: 1px solid var(--line); }
.legal dt { color: var(--text); font-weight: 500; }
.legal dd { margin: 0; padding-left: 1.6em; }
.legal address { font-style: normal; padding-left: 1.1em; border-left: 2px solid var(--line); line-height: 1.6; }
.legal hr { margin: 2.6em 0 0; border: 0; border-top: 1px solid var(--line); }

/* ---------- phones and narrow windows (same expression as site.css) ---------- */

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .brand { font-size: 18px; }
  .page { padding-top: clamp(56px, 10svh, 96px); }

  .about-mark { display: none; }
  .part { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .part h2 { display: flex; align-items: center; gap: 12px; padding-top: 0; }
  .part .dot { display: block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--text); }
  .part.agents .dot { background: var(--teal); }

  /* the dot's lane is the narrow pad, so the links step in a little to give it room */
  .ways { padding-left: 14px; }
  .agent { left: calc(var(--pad) / -2 - 1px); width: 12px; height: 12px; box-shadow: none; }
  html:not(.pjs) .ways { padding-left: 0; }
}
@media (max-width: 560px) {
  .legal dl { grid-template-columns: minmax(0, 1fr); }
  .legal dt { padding-bottom: 0; border-bottom: 0; }
  .legal dd { padding-top: .2em; padding-left: 0; }
}

/* ---------- reduced motion: no travel, no press scale; the lighting stays a short fade ---------- */

@media (prefers-reduced-motion: reduce) {
  .agent { transition: none; }
  .brand, .top-links a, .onward, .way { transition: none; }
  .brand:active, .top-links a:active, .onward:active, .way:active { transform: none; }
  .about-mark .tri b { transition: opacity 200ms ease; }
}
