/*
 * The landing page (T061). One allowance card at poster size, and the logo's
 * cable running down the page until the plug is pulled. Colours keep the
 * app's meanings: rust is cancel / refused, amber is "ends on a date", and
 * anything live carries no colour at all.
 */

:root {
  --ground: #f7f5f1;
  --surface: #ffffff;
  --ink: #16150f;
  --ink-soft: #33302a;
  --muted: #5e5a50;
  --hairline: #dedad1;
  --rail: #e6e1d8;
  --chip: #efebe3;
  --mustard: #f2bf6b;
  --spark: #e0a63f;
  --rust: #a33a28;
  --amber: #8f6214;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #14130f;
    --surface: #1d1c17;
    --ink: #efebe3;
    --ink-soft: #d9d4c9;
    --muted: #a8a294;
    --hairline: #3a3730;
    --rail: #2e2c26;
    --chip: #2e2c26;
    --rust: #e0735e;
    --amber: #e0a63f;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font:
    17px / 1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rust);
}

a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 4px;
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

.mono {
  font-family: var(--mono);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Header */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 8px;
}

.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
}

.top nav a:last-child {
  font-weight: 600;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: start;
  padding-top: 72px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 24px;
}

.kicker {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 40px;
  line-height: 1.1;
}

h3 {
  margin: 0;
  font-size: 18px;
}

p {
  margin: 0;
}

.lede {
  font-size: 19px;
  max-width: 34em;
  color: var(--ink-soft);
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--ground);
}

.button.primary:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: #ffffff;
}

.aside {
  font-size: 15px;
  color: var(--muted);
}

/* The card, as the app draws it */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}

.card .strip {
  height: 4px;
  background: var(--rail);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.card-head .mono {
  font-size: 20px;
}

.chip {
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--chip);
}

.card dl {
  margin: 0;
}

.card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}

.card dt {
  color: var(--muted);
}

.card dd {
  margin: 0;
  text-align: right;
}

.card .cancel {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--rust);
  color: var(--rust);
  font-weight: 600;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* The cable. Every segment shares one 1200-wide coordinate system, so the end
 * of one meets the start of the next at any width. */

.cable {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--ink);
}

.cable path {
  vector-effect: non-scaling-stroke;
}

.break {
  aspect-ratio: 1200 / 260;
  height: auto;
}

.break path {
  vector-effect: none;
}

.break.narrow {
  display: none;
  aspect-ratio: 600 / 260;
}

.sparks {
  color: var(--spark);
}

.js-motion .plug-male,
.js-motion .plug-female,
.js-motion .sparks {
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s,
    opacity 0.4s ease 0.35s;
}

.js-motion .break:not(.pulled) .plug-male {
  transform: translateX(14px);
}

.js-motion .break:not(.pulled) .plug-female {
  transform: translateX(-14px);
}

.js-motion .break:not(.pulled) .sparks {
  opacity: 0;
}

/* Sections hang off the cable, alternating sides */

.section {
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section.left {
  margin-right: auto;
  margin-left: max(0px, calc(50% - 420px));
}

.section.right {
  margin-left: auto;
  margin-right: max(0px, calc(50% - 420px));
}

.tx {
  font-size: 15px;
}

/* The app's own Activity list */

.activity {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px 20px;
}

.activity ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity .label {
  margin: 10px 0 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.activity li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.activity time {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.activity .reason,
.activity .tried {
  color: var(--rust);
}

.activity .tried {
  white-space: nowrap;
}

.activity a {
  font-family: var(--mono);
  font-size: 13px;
}

.ends {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px 20px;
}

.ends strong {
  color: var(--amber);
}

.ends p {
  font-size: 15px;
  color: var(--muted);
}

.gap {
  height: 120px;
}

/* What is real */

.real {
  max-width: 1104px;
  margin: 0 auto;
  border-top: 7px solid var(--ink);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.real h2 {
  font-size: 48px;
  line-height: 1.05;
  max-width: 16em;
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.two .col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.two h3 + p {
  margin-bottom: 16px;
}

.failed {
  color: var(--rust);
}

.address {
  word-break: break-all;
}

/* Footer */

footer {
  margin-top: 140px;
  border-top: 1px solid var(--hairline);
}

footer .wrap {
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 48px;
  font-size: 15px;
  color: var(--muted);
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Phones */

@media (max-width: 900px) {
  .wrap {
    padding: 0 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 40px;
  }

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  h2,
  .real h2 {
    font-size: 30px;
  }

  .break.wide {
    display: none;
  }

  .break.narrow {
    display: block;
  }

  .section.left,
  .section.right {
    margin-left: 0;
    margin-right: 0;
  }

  .two {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .card-body {
    padding: 20px;
  }

  .card dl div {
    flex-wrap: wrap;
  }

  .gap {
    height: 72px;
  }

  footer {
    margin-top: 96px;
  }
}
