/* ============================================================
   Agent Box — marketing site
   Spec-sheet minimalism: paper white, hairline rules, mono
   labels. All color on the page comes from the cards.
   ============================================================ */

:root {
  --paper: #fbfbf8;
  --panel: #ffffff;
  --ink: #131410;
  --muted: #6d6f64;
  --line: #e4e5da;
  --line-strong: #c9cabe;
  --accent: #ff4b00;

  --sans: "Archivo", "Helvetica Neue", sans-serif;
  --mono: "Fragment Mono", "SFMono-Regular", Consolas, monospace;
  --serif: "Newsreader", Georgia, serif;

  --shell: min(1160px, calc(100vw - 48px));
  --radius: 14px;

  /* card palette */
  --c-black: #17180f;
  --c-cobalt: #1c47e3;
  --c-yellow: #ffd400;
  --c-plum: #47254f;
  --c-green: #0b4a2f;
  --c-orange: #ff6b1a;
  --c-teal: #0d7d75;
  --c-red: #ff4b00;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
code {
  font-family: var(--mono);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 40;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  transform: translateY(-260%);
}
.skip-link:focus {
  transform: none;
}

/* ---------- shared atoms ---------- */

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: none;
  font-family: var(--mono);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.button.primary {
  background: var(--ink);
  color: var(--paper);
}
.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.button.ghost:hover,
.button.secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.button:active {
  transform: translateY(1px);
}

.index-label {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-transform: lowercase;
}
.index-label::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 10px;
  background: var(--accent);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 15px;
  text-decoration: none;
}
.brand svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--mono);
  font-size: 13px;
}
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
}
.site-header nav a:hover {
  color: var(--ink);
}
.site-header .nav-cta {
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}
.site-header .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- hero ---------- */

.hero {
  padding: 84px 0 60px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}
.eyebrow span {
  color: var(--accent);
}
.hero h1 {
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lede {
  max-width: 46ch;
  margin-top: 26px;
  font-size: 19px;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* staggered load reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero h1,
  .hero .lede,
  .hero-actions,
  .carousel-block {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero h1 {
    animation-delay: 0.05s;
  }
  .hero .lede {
    animation-delay: 0.12s;
  }
  .hero-actions {
    animation-delay: 0.18s;
  }
  .carousel-block {
    animation-delay: 0.26s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- carousel ---------- */

.carousel-block {
  margin-top: 72px;
}
.carousel-rail {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.rail-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.rail-buttons {
  display: flex;
  gap: 8px;
}
.rail-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  font-family: var(--mono);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.rail-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px max(24px, calc((100vw - 1160px) / 2)) 26px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100vw - 1160px) / 2));
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}

.card-spec {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.card-spec code b {
  color: var(--ink);
  font-weight: 400;
}

/* ---------- example cards — each one a different design language ---------- */

.ex-card {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  width: 280px;
  height: 380px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ex-card:hover {
  transform: translateY(-6px);
}
.ex-card header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.75;
}
.ex-card footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.75;
}
.ex-card .dim {
  opacity: 0.55;
}

/* shared with the deck weather mini app */
.w-bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 64px;
  margin-top: 18px;
}
.w-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, currentColor 85%, transparent);
  opacity: 0.9;
}
/* shared with the deck PR mini app */
.diff {
  font-family: var(--mono);
  font-size: 12px;
}
.diff b {
  color: #0a7a3d;
  font-weight: 400;
}

/* 1 · editorial serif */
.ex-edit {
  background: #f6f0e1;
  color: #221f18;
  border: 0;
}
.ex-edit .ed-mast {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
}
.ex-edit .ed-date {
  margin-top: 10px;
  padding: 6px 0;
  border-block: 1px solid #221f18;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.ex-edit h3 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ex-edit .ed-body {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
}
.ex-edit .ed-body::first-letter {
  float: left;
  padding-right: 6px;
  font-size: 34px;
  line-height: 0.9;
  font-weight: 600;
}
.ex-edit footer {
  border-top-style: double;
  border-top-width: 3px;
}

/* 2 · gradient weather app */
.ex-sky {
  background:
    radial-gradient(120px 120px at 82% 12%, rgba(255, 224, 130, 0.85), transparent 70%),
    linear-gradient(178deg, #16309f 0%, #2452f5 34%, #6d9cff 78%, #b7d1ff 100%);
  color: #fff;
  border: 0;
}
.ex-sky header {
  opacity: 0.9;
}
.sky-temp {
  margin-top: 8px;
  font-size: 88px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}
.sky-cond {
  margin-top: 8px;
  max-width: 21ch;
  font-size: 14px;
}
.sky-hours {
  display: flex;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.sky-hours li {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  font-size: 12px;
}
.sky-hours span {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.85;
}
.sky-hours b {
  font-weight: 500;
}
.ic-sun,
.ic-cloud,
.ic-rain {
  position: relative;
  width: 16px;
  height: 16px;
}
.ic-sun {
  border-radius: 50%;
  background: #ffd84d;
  box-shadow: 0 0 10px 2px rgba(255, 216, 77, 0.7);
}
.ic-cloud::before,
.ic-rain::before {
  content: "";
  position: absolute;
  inset: 3px 0 4px;
  border-radius: 99px;
  background: #fff;
}
.ic-rain::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -1px;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: #cfe4ff;
  box-shadow: 5px 0 #cfe4ff;
}

/* 3 · dark terminal diff */
.ex-term {
  background: #10151a;
  color: #aeb9c2;
  border: 0;
  font-family: var(--mono);
}
.term-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px -4px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(174, 185, 194, 0.16);
  font-size: 10.5px;
}
.term-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}
.term-chrome i:nth-child(2) {
  background: #febc2e;
}
.term-chrome i:nth-child(3) {
  background: #28c840;
}
.term-chrome span {
  margin-left: auto;
  opacity: 0.6;
}
.term-line {
  font-size: 12px;
  line-height: 1.9;
}
.term-line.strong {
  color: #e6edf3;
}
.pr-prompt {
  color: #31e981;
}
.ex-term .ok {
  color: #3fb950;
}
.ex-term .del {
  color: #f85149;
}
.term-diff {
  margin: 6px 0;
  padding: 8px 10px;
  border-left: 2px solid #31e981;
  border-radius: 0 8px 8px 0;
  background: #161d24;
  font-size: 11.5px;
  line-height: 1.7;
  overflow: hidden;
}
.ex-term footer {
  border-top-color: rgba(174, 185, 194, 0.16);
}

/* 4 · calendar day grid */
.ex-day {
  background: var(--panel);
}
.day-title {
  font-size: 24px;
}
.day-title b {
  color: var(--accent);
}
.day-grid {
  --row: 39px;
  position: relative;
  flex: 1;
  margin-top: 14px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0,
    var(--line) 1px,
    transparent 1px,
    transparent var(--row)
  );
}
.hr-label {
  position: absolute;
  left: 0;
  top: calc(var(--r) * var(--row) + 3px);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}
.evt {
  position: absolute;
  left: 26px;
  right: 0;
  top: calc(var(--s) * var(--row) + 2px);
  height: calc(var(--d) * var(--row) - 5px);
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
}
.e-cobalt {
  background: var(--c-cobalt);
}
.e-plum {
  background: var(--c-plum);
}
.e-teal {
  background: var(--c-teal);
}
.e-orange {
  background: var(--c-orange);
  color: #241203;
}
.now-line {
  position: absolute;
  left: 22px;
  right: 0;
  top: calc(var(--s) * var(--row));
  height: 2px;
  background: #e02b20;
}
.now-line i {
  position: absolute;
  left: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e02b20;
}

/* 5 · chat UI */
.ex-chat {
  background: var(--panel);
}
.chat-title {
  font-size: 26px;
}
.chat-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.chat-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.chat-list li:last-child {
  border-bottom: 0;
}
.chat-list i {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--a);
  color: #fff;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
}
.chat-list div {
  min-width: 0;
}
.chat-list b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.chat-list span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-list em {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #e02b20;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-family: var(--mono);
}

/* 6 · financial tape */
.ex-tape {
  background: #0a0f0b;
  color: #d9efe2;
  border: 0;
  font-family: var(--mono);
}
.tape-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb224;
}
.tape-chart {
  width: 100%;
  height: 70px;
  margin-top: 14px;
}
.tape-rows {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}
.tape-rows li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(217, 239, 226, 0.18);
}
.tape-rows li:last-child {
  border-bottom: 0;
}
.tape-rows span {
  opacity: 0.6;
}
.tape-rows b {
  font-weight: 400;
}
.tape-rows .up {
  color: #31e981;
  font-style: normal;
}
.tape-rows .dn {
  color: #ff6363;
  font-style: normal;
}
.ex-tape footer {
  border-top-color: rgba(217, 239, 226, 0.18);
}

/* 7 · map + delivery route */
.ex-map {
  padding: 0;
  border: 0;
  background: #e6ebdd;
  color: var(--ink);
}
.map-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90px 60px at 20% 30%, #d3e4c2 0 60%, transparent 61%),
    radial-gradient(110px 70px at 88% 78%, #c6dcf0 0 60%, transparent 61%),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(19, 20, 16, 0.07) 34px 35px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(19, 20, 16, 0.07) 34px 35px), #e6ebdd;
}
.map-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-bg .route {
  fill: none;
  stroke: var(--c-cobalt);
  stroke-width: 3;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
}
.map-bg .pt-a {
  fill: var(--ink);
}
.map-bg .pt-b {
  fill: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .map-bg .pt-b {
    animation: pulse 1.6s ease-in-out infinite;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.ex-map header {
  position: relative;
  z-index: 1;
  margin: 12px 12px 0;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(2px);
}
.map-panel {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 16px 18px 18px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.map-panel h3 {
  font-size: 19px;
}
.map-steps {
  display: flex;
  gap: 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.map-steps li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.map-steps .done::before {
  background: var(--ink);
}
.map-steps .live {
  color: var(--accent);
}
.map-steps .live::before {
  background: var(--accent);
}

/* 8 · printed receipt */
.ex-rcpt {
  background: #fffdf7;
  font-family: var(--mono);
  box-shadow: inset 0 0 40px rgba(19, 20, 16, 0.04);
}
.rc-title {
  padding: 8px 0;
  border-block: 3px double var(--ink);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}
.rc-rows {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}
.rc-rows li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5.5px 0;
}
.rc-rows li::after {
  content: "";
  flex: 1;
  order: 1;
  border-bottom: 1px dotted var(--line-strong);
}
.rc-rows b {
  order: 2;
  font-weight: 400;
}
.rc-stamp {
  position: absolute;
  right: 22px;
  top: 150px;
  padding: 3px 12px;
  border: 2.5px solid #168a44;
  border-radius: 6px;
  color: #168a44;
  font-size: 17px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(-11deg);
  opacity: 0.85;
}
.rc-code {
  height: 24px;
  margin-top: auto;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 9px,
    var(--ink) 9px 12px,
    transparent 12px 15px
  );
}
.ex-rcpt footer {
  border-top-style: dashed;
}

/* 9 · boarding pass */
.ex-pass {
  background: #fff;
  border: 1px solid var(--line);
}
.ex-pass header {
  color: var(--c-cobalt);
  opacity: 1;
}
.bp-route {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.bp-arrow {
  color: var(--accent);
  font-size: 24px;
}
.bp-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.bp-meta span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.bp-meta b {
  font-size: 15px;
  font-weight: 600;
}
.bp-tear {
  position: relative;
  height: 0;
  margin: 16px -18px 14px;
  border-top: 2px dashed var(--line-strong);
}
.bp-tear::before,
.bp-tear::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.bp-tear::before {
  left: -8px;
}
.bp-tear::after {
  right: -8px;
}
.bp-stub {
  display: flex;
  gap: 12px;
  align-items: center;
}
.bp-qr {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, var(--ink) 0 3px, transparent 3px 7px),
    repeating-linear-gradient(90deg, var(--ink) 0 3px, #fff 3px 7px);
}
.bp-stub p {
  font-size: 12.5px;
  color: var(--muted);
}

/* 10 · swiss poster */
.ex-poster {
  background: #e8250c;
  color: #fff4ec;
  border: 0;
}
.po-type {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  transform: rotate(-7deg) translateX(-4px);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
}
.po-outline {
  color: transparent;
  -webkit-text-stroke: 2px #fff4ec;
}
.po-note {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
}
.ex-poster footer {
  margin-top: 14px;
}

/* 11 · activity rings */
.ex-rings {
  background: #0d0d12;
  color: #f2f2f7;
  border: 0;
}
.rings {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 8px auto 0;
}
.ring {
  position: absolute;
  border-radius: 50%;
  -webkit-mask: radial-gradient(
    closest-side,
    transparent calc(100% - 14px),
    #000 calc(100% - 13px)
  );
  mask: radial-gradient(closest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
}
.ring.r1 {
  inset: 0;
  background: conic-gradient(#fa114f 0 84%, rgba(250, 17, 79, 0.22) 0);
}
.ring.r2 {
  inset: 17px;
  background: conic-gradient(#92e82a 0 86%, rgba(146, 232, 42, 0.22) 0);
}
.ring.r3 {
  inset: 34px;
  background: conic-gradient(#00d3f2 0 75%, rgba(0, 211, 242, 0.22) 0);
}
.ring-stats {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 11.5px;
}
.ring-stats li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.ring-stats i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.ring-stats b {
  margin-left: auto;
  font-weight: 400;
  opacity: 0.85;
}
.ex-rings footer {
  border-top-color: rgba(242, 242, 247, 0.18);
}

/* 12 · kanban board */
.ex-board {
  background: #f0f1ea;
  border: 0;
}
.bd-title {
  font-size: 22px;
}
.bd-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  flex: 1;
  align-items: start;
}
.bd-col {
  display: grid;
  gap: 6px;
  padding: 8px 7px;
  border-radius: 10px;
  background: #e3e4da;
}
.bd-col > p {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bd-item {
  padding: 7px 8px;
  border-radius: 7px;
  border-left: 3px solid var(--t);
  background: #fff;
  box-shadow: 0 1px 2px rgba(19, 20, 16, 0.08);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.25;
}
.bd-item.done {
  opacity: 0.55;
  text-decoration: line-through;
}

/* 13 · split-flap departures */
.ex-flap {
  background: #0e0e10;
  color: #f5f5f2;
  border: 0;
}
.fl-title {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 245, 242, 0.16);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fl-rows {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.fl-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 245, 242, 0.1);
}
.fl-rows li:last-child {
  border-bottom: 0;
}
.fl-bullet {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #a8a9ad;
  color: #0e0e10;
  font-size: 15px;
  font-weight: 700;
}
.fl-dest {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}
.fl-tiles {
  margin-left: auto;
  display: flex;
  gap: 2px;
}
.fl-tiles i {
  display: grid;
  place-items: center;
  width: 17px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, #26262b 0 47%, #101013 47% 53%, #1f1f24 53%);
  color: #ffb224;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
}
.ex-flap footer {
  border-top-color: rgba(245, 245, 242, 0.16);
}

/* ---------- app section ---------- */

.app-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.app-copy h2,
.why-section h2,
.account-section h2,
.api-section h2 {
  font-size: clamp(34px, 4.6vw, 52px);
}
.app-copy > p {
  max-width: 44ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}
.app-points {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.app-points li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.app-points li:last-child {
  border-bottom: 1px solid var(--line);
}
.app-points code {
  font-size: 13px;
  color: var(--accent);
}
.try-note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* phone frame */

.phone-wrap {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 340px;
  height: 660px;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 46px;
  background: var(--panel);
  box-shadow:
    0 1px 0 rgba(19, 20, 16, 0.04),
    0 24px 60px -30px rgba(19, 20, 16, 0.25);
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 12px 12px;
}
.phone-brand {
  font-family: var(--mono);
  font-size: 13px;
}
.deck-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.deck {
  position: relative;
  flex: 1;
  touch-action: none;
}
.deck-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transform: translateY(calc(var(--depth, 0) * -10px)) scale(calc(1 - var(--depth, 0) * 0.045));
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.3s ease;
}
.deck-card.dragging {
  cursor: grabbing;
  transition: none;
}
.deck-card.leaving {
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.3s ease;
  opacity: 0;
}
.deck-card[data-depth="3"],
.deck-card[data-depth="4"] {
  visibility: hidden;
}
.deck-card header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.75;
}
.deck-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.dc-hint {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.65;
}

/* deck cards reuse the carousel design languages; these are size adaptations */

.deck-card footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.75;
}
.deck-card.ex-term {
  border: 0;
}
.deck-card.ex-chat,
.deck-card.ex-day {
  background: var(--panel);
  border: 1px solid var(--line);
}
.deck-card .day-grid {
  --row: 47px;
}
.deck-card .sky-temp {
  margin-top: 2px;
}
.temp-unit {
  font-size: 26px;
  vertical-align: super;
  letter-spacing: 0;
}
.deck-card .sky-hours {
  margin-top: auto;
}
.unit-toggle {
  margin-top: 16px;
  align-self: start;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 999px;
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}
.unit-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* chat rows as tappable buttons (deck only) */
.chat-list li:has(> button) {
  padding: 0;
}
.chat-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.chat-list li.read button {
  opacity: 0.4;
}
.chat-list li.read b,
.chat-list li.read span {
  text-decoration: line-through;
}

/* terminal PR rows (deck only) */
.term-details {
  padding: 9px 2px;
  border-top: 1px solid rgba(174, 185, 194, 0.16);
  font-size: 12px;
}
.term-details summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  color: #e6edf3;
}
.term-details summary::-webkit-details-marker {
  display: none;
}
.term-details summary::after {
  content: "+";
  margin-left: auto;
  color: #aeb9c2;
}
.term-details[open] summary::after {
  content: "−";
}
.term-details p {
  margin-top: 7px;
  font-size: 11.5px;
  opacity: 0.7;
}
.term-details .term-diff {
  margin-top: 8px;
}

/* editorial briefing sections (deck only) */
.ed-sec {
  padding: 11px 2px;
  border-top: 1px solid rgba(34, 31, 24, 0.25);
  font-family: var(--serif);
}
.ed-sec:first-of-type {
  margin-top: 14px;
  border-top: 0;
}
.ed-sec summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 17px;
  font-weight: 600;
}
.ed-sec summary::-webkit-details-marker {
  display: none;
}
.ed-sec summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
}
.ed-sec[open] summary::after {
  content: "−";
}
.ed-sec p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
}

.deck-empty {
  position: absolute;
  inset: 90px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}
.deck-empty[hidden] {
  display: none;
}
.empty-mark {
  font-size: 34px;
  color: var(--ink);
}

/* ---------- why section ---------- */

.why-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.why-lede {
  max-width: 56ch;
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
}
.why-rows {
  margin: 56px 0 0;
}
.why-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.why-row:last-child {
  border-bottom: 1px solid var(--line);
}
.why-row dt code {
  font-size: 14px;
  color: var(--accent);
}
.why-row dd {
  margin: 0;
}
.why-row h3 {
  font-size: 21px;
  margin-bottom: 6px;
}
.why-row p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 15.5px;
}

.quote {
  margin: 72px 0 0;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.quote figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.quote a {
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.positioning {
  max-width: 54ch;
  margin: 64px auto 0;
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- account section ---------- */

.account-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.account-grid > div > p {
  max-width: 42ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}
.account-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.status {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  min-height: 1.2em;
}
.key-result {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.key-result[hidden] {
  display: none;
}
.key-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.key-label strong {
  color: var(--accent);
  font-weight: 400;
}
#account-key {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  font-size: 13px;
  word-break: break-all;
}
.key-result > p {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- api section ---------- */

.api-section {
  padding: 96px 0;
}
.api-lede {
  max-width: 52ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}
.api-lede code {
  font-size: 14px;
}
.api-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.code-block {
  position: relative;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--c-black);
  color: #e9e8dc;
}
.code-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(233, 232, 220, 0.16);
  font-family: var(--mono);
  font-size: 13px;
}
.code-head span {
  color: var(--accent);
}
.code-block pre {
  margin: 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}
.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(233, 232, 220, 0.3);
  border-radius: 999px;
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}
.copy-btn:hover {
  background: rgba(233, 232, 220, 0.14);
}

.endpoint-index {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.endpoint-index ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.endpoint-index li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.endpoint-index li:last-child {
  border-bottom: 0;
}
.endpoint-index code {
  font-size: 13px;
}
.endpoint-index li span {
  font-size: 13.5px;
  color: var(--muted);
}
.api-notes {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.api-notes code {
  font-size: 12px;
  color: var(--ink);
}

/* ---------- self-host section ---------- */

.selfhost-section {
  padding: 0 0 96px;
}
.selfhost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 96px;
  border-top: 1px solid var(--line);
}
.selfhost-grid > div > p {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}
.selfhost-code pre {
  line-height: 2;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
}
footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: baseline;
  justify-content: space-between;
  padding: 34px 0 44px;
  font-size: 14px;
  color: var(--muted);
}
footer .brand {
  color: var(--ink);
}
footer > .shell > span {
  font-family: var(--mono);
  font-size: 12px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .app-grid,
  .account-grid,
  .api-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .why-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .site-header nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding-top: 56px;
  }
  .phone {
    width: min(340px, 92vw);
  }
  .try-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ex-card,
  .ex-card:hover {
    transition: none;
    transform: none;
  }
  .deck-card {
    transition: none;
  }
}
