/*
 * Ibid landing (D-251). Tokens mirror UX.md §2 so the page and the product read as one thing.
 * Copper (--agent) marks agent-written content ONLY — here, the lines Scout writes in the demos.
 */
:root {
  --spruce: #16211d;
  --spruce-deep: #101915;
  --spruce-raised: #1e2c26;
  --paper: #fcfcfa;
  --surface-2: #f3f4ef;
  --line: #e0e2d9;
  --ink: #1b2320;
  --ink-soft: #5a635d;
  --ink-faint: #858d87;
  --accent: #256c53;
  --accent-hover: #1d5642;
  --accent-tint: #e8f1ec;
  --agent: #a8622a;
  --agent-tint: #faf1e6;
  --agent-line: #eddbc2;
  --ok: #2e7d4f;
  --warn: #b08020;
  --danger: #9c4433;
  --on-dark: #eef2ef;
  --on-dark-soft: #a8b5ad;
  --on-dark-line: rgba(238, 242, 239, 0.14);

  /* Apple devices get the brand serif itself; everyone else gets Newsreader. */
  --serif: "Iowan Old Style", "Newsreader", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-window: 14px;
  --radius-control: 10px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p,
h1,
h2,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

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

.visually-hidden,
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-control);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.faint {
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------- wordmark & buttons */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark-mark {
  display: block;
  width: 32px;
  height: 32px;
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-control);
  font: 600 16px / 1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.button-light {
  background: var(--paper);
  color: var(--spruce);
}

.button-light:hover {
  background: #ffffff;
}

.button-quiet {
  min-height: 40px;
  padding: 0 16px;
  background: transparent;
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px var(--on-dark-line);
  font-size: 15px;
}

.button-quiet:hover {
  background: rgba(238, 242, 239, 0.08);
}

.button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------------------------------------------------------------- masthead + hero (spruce) */

.masthead {
  background: var(--spruce);
  color: var(--on-dark);
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}


.hero {
  position: relative;
  background: var(--spruce);
  color: var(--on-dark);
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "title title"
    "copy demo";
  column-gap: clamp(40px, 5vw, 72px);
  row-gap: clamp(32px, 4vw, 48px);
  align-items: start;
}

.hero h1 {
  grid-area: title;
}

.hero-copy {
  grid-area: copy;
  padding-top: 8px;
}

.hero-demo {
  grid-area: demo;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 72;
  max-width: 17ch;
}

.lede {
  max-width: 34em;
  color: var(--on-dark-soft);
  font-size: 19px;
  line-height: 1.6;
}

.hero .waitlist {
  margin-top: 36px;
}

.hero-note {
  margin-top: 2px;
  color: var(--on-dark-soft);
  font-size: 15px;
}

/* ---------------------------------------------------------------- waitlist form */

.waitlist {
  max-width: 520px;
}

.waitlist-row {
  display: flex;
  gap: 10px;
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-control);
  background: rgba(238, 242, 239, 0.06);
  color: var(--on-dark);
  font: 400 16px / 1 var(--sans);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.waitlist input[type="email"]::placeholder {
  color: rgba(238, 242, 239, 0.45);
}

.waitlist input[type="email"]:hover {
  border-color: rgba(238, 242, 239, 0.28);
}

.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--on-dark);
  background: rgba(238, 242, 239, 0.1);
}

.waitlist input[aria-invalid="true"] {
  border-color: #e7a08f;
}

.waitlist-status {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: 15px;
  color: var(--on-dark-soft);
}

.waitlist-status.is-error {
  color: #f1b3a5;
}

.hero-copy .waitlist-done {
  margin: 36px 0 14px;
  max-width: 520px;
}

.join .waitlist-done {
  max-width: 520px;
  margin: 36px auto 0;
  text-align: left;
}

.waitlist-done {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-control);
  background: rgba(238, 242, 239, 0.07);
  box-shadow: inset 0 0 0 1px var(--on-dark-line);
  font-size: 16px;
  line-height: 1.5;
}

.waitlist-done strong {
  display: block;
  color: var(--on-dark);
  font-size: 17px;
}

.waitlist-done span {
  color: var(--on-dark-soft);
}

.waitlist-done svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #7fc4a3;
}

/* ---------------------------------------------------------------- product windows */

.win {
  overflow: hidden;
  border-radius: var(--radius-window);
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow:
    0 0 0 1px rgba(16, 25, 21, 0.08),
    0 18px 50px -18px rgba(16, 25, 21, 0.35);
}

.win-hero {
  box-shadow:
    0 0 0 1px rgba(252, 252, 250, 0.1),
    0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

.win-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.lights {
  display: flex;
  gap: 7px;
}

.lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d5d8d0;
}

.win-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.win-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 400px;
}

.mock-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  background: var(--spruce);
  color: #c6d0c8;
  font-size: 13px;
}

.side-ws {
  padding: 0 8px 10px;
  color: var(--on-dark);
  font-weight: 700;
}

.side-head {
  margin-top: 12px;
  padding: 0 8px 2px;
  color: #7e8c83;
  font-size: 11.5px;
  font-weight: 600;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 6px;
}

.side-item.is-active {
  background: rgba(252, 252, 250, 0.1);
  color: var(--on-dark);
}

.side-item em {
  margin-left: auto;
  color: var(--on-dark-soft);
  font-style: normal;
  font-size: 12px;
}

.dot-agent {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--agent);
}

.mock-feed {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 22px 22px 24px;
}

/* messages */

.msg {
  display: flex;
  gap: 11px;
}

.msg-body {
  flex: 1;
  min-width: 0;
}

.msg-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 1px;
}

.msg-meta time {
  color: var(--ink-faint);
  font-size: 12px;
}

.mention {
  padding: 0 3px;
  border-radius: 4px;
  background: var(--agent-tint);
  color: var(--agent);
  font-weight: 600;
}

/* Avatars: people are rounded squares, agents are circles (UX.md §2). */
.av {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.av-human {
  border-radius: 9px;
  background: var(--av, #5b7a99);
}

.av-agent {
  border-radius: 50%;
  background: var(--agent);
}

.av-agent svg {
  width: 16px;
  height: 16px;
  fill: var(--paper);
}

.av-xs {
  width: 16px;
  height: 16px;
}

.av-sm {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 10.5px;
}

.av-lg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
}

.av-lg.av-agent {
  border-radius: 50%;
}

.av-lg svg {
  width: 22px;
  height: 22px;
}

.agent-name {
  color: var(--agent);
}

.agent-tag {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--agent-tint);
  color: var(--agent);
  font-size: 11px;
  font-weight: 600;
}

.agent-block {
  padding: 11px 13px;
  border: 1px solid var(--agent-line);
  border-radius: 10px;
  background: var(--agent-tint);
}

.agent-block p + p {
  margin-top: 8px;
}

.cites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 3px;
  border: 1px solid var(--agent-line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.cite b {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--agent);
  color: var(--paper);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-action {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.chip-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------------------------------------------------------------- hero stream (the one motion) */

.js .msg-agent[data-stream] {
  opacity: 0;
  transform: translateY(6px);
}

.js .msg-agent[data-stream].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.js [data-stream] .stream-text .w {
  opacity: 0;
}

.js [data-stream] .stream-text .w.is-on {
  opacity: 1;
  transition: opacity 0.18s ease;
}

.js [data-stream] .cites .cite,
.js [data-stream] .suggest {
  opacity: 0;
  transform: translateY(3px);
}

.js [data-stream] .is-on.cite,
.js [data-stream] .suggest.is-on {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

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

  .js .msg-agent[data-stream],
  .js [data-stream] .stream-text .w,
  .js [data-stream] .cites .cite,
  .js [data-stream] .suggest {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------- sections */

.section-head {
  max-width: 640px;
}

.section-head h2,
.provenance h2,
.devices h2,
.join h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60;
}

.section-head p,
.provenance-copy > p,
.devices-copy > p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 19px;
  max-width: 36em;
}

.surfaces {
  padding: clamp(80px, 10vw, 136px) 0;
}

/* tour */

.tour {
  display: grid;
  grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 56px;
  align-items: start;
}

.tour-tabs {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.tour-tab {
  position: relative;
  display: block;
  margin-left: -1px;
  padding: 16px 0 16px 22px;
  border: 0;
  border-left: 2px solid transparent;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.tour-tab:hover {
  color: var(--ink);
}

.tour-tab[aria-selected="true"] {
  border-left-color: var(--accent);
  color: var(--ink);
}

.tour-name {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
}

.tour-desc {
  display: block;
  margin-top: 4px;
  font-size: 15.5px;
  line-height: 1.5;
}

.tour-tab[aria-selected="false"] .tour-desc {
  color: var(--ink-faint);
}

.tour-stage {
  min-width: 0;
}

.tour-panel:focus-visible {
  outline-offset: 6px;
  border-radius: var(--radius-window);
}

.tour-panel .win {
  animation: panel-in 0.22s ease;
}

@keyframes panel-in {
  from {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-panel .win {
    animation: none;
  }
}

.win-pane {
  min-height: 460px;
  padding: 24px 26px;
}

.pane-label,
.sources-head {
  margin: 22px 0 8px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

/* home */

.home-hello {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.brief-by {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--agent);
  font-size: 12.5px;
  font-weight: 600;
}

.brief-by .faint {
  margin-left: auto;
  font-weight: 400;
}

.brief-row {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--agent-line);
}

.brief-row p + p {
  margin-top: 2px;
}

.pill {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}

.pill-ok {
  background: #e3f1e8;
  color: var(--ok);
}

.pill-wait {
  background: #f8efd8;
  color: #8a6416;
}

.pill-block {
  background: #f6e3de;
  color: var(--danger);
}

.todo li,
.ios-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.todo li .faint {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
}

.box {
  flex: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid #b9beb5;
  border-radius: 4px;
  transform: translateY(2px);
}

/* chat */

.pane-chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.attach {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.35;
}

.attach-thumb {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 48%, var(--line) 48% 52%, transparent 52%), var(--surface-2);
}

.reacts {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.reacts span {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.thread-sum {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

.thread-sum .faint {
  font-weight: 400;
}

.thread-faces {
  display: flex;
}

.thread-faces i {
  width: 18px;
  height: 18px;
  margin-right: -5px;
  border: 2px solid var(--paper);
  border-radius: 6px;
  background: var(--av);
}

.thread-faces i:last-child {
  margin-right: 2px;
}

.composer {
  margin-top: auto;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-faint);
}

/* mail */

.pane-mail {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 0;
}

.inbox {
  border-right: 1px solid var(--line);
}

.inbox li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.inbox li span {
  color: var(--ink-soft);
}

.inbox li.is-open {
  background: var(--accent-tint);
}

.inbox li.is-read b {
  font-weight: 500;
  color: var(--ink-soft);
}

.tag-agent {
  align-self: flex-start;
  margin-top: 4px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--agent-tint);
  color: var(--agent) !important;
  font-size: 11px;
  font-weight: 600;
}

.reader {
  padding: 22px 24px;
}

.reader > p + p {
  margin-top: 10px;
}

.reader-subject {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.reader .faint {
  margin-top: 2px !important;
  font-size: 12.5px;
}

.draft {
  margin-top: 16px;
}

.reader-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.mock-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.mock-btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* scout */

.ask {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
}

.sources li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.src-kind {
  width: 46px;
  color: var(--ink-faint);
  font-size: 11.5px;
  font-weight: 600;
}

/* tasks */

.task-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.pane-tasks > .faint {
  margin-top: 2px;
  font-size: 12.5px;
}

.steps {
  margin: 18px 0;
}

.steps li {
  position: relative;
  padding: 0 0 12px 24px;
  color: var(--ink-soft);
}

.steps li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 17px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.steps li:last-child::after {
  display: none;
}

.steps li.done::before {
  background: var(--ok);
}

.steps li.now {
  color: var(--ink);
  font-weight: 600;
}

.steps li.now::before {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.pr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.diffstat {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  white-space: nowrap;
}

.add {
  color: var(--ok);
  font-weight: 600;
}

.del {
  color: var(--danger);
  font-weight: 600;
}

/* ---------------------------------------------------------------- provenance */

.provenance {
  padding: clamp(80px, 10vw, 128px) 0;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.provenance-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.principles {
  display: grid;
  gap: 22px;
  margin-top: 40px;
}

.principles dt {
  font-weight: 650;
  font-size: 18px;
}

.principles dd {
  margin-top: 3px;
  color: var(--ink-soft);
  max-width: 36em;
}

.specimen {
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius-window);
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(16, 25, 21, 0.06),
    0 24px 60px -30px rgba(16, 25, 21, 0.3);
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.spec-row > div {
  flex: 1;
}

.spec-row > div:not(.agent-block) {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.spec-name {
  font-weight: 650;
}

.spec-text {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------------------------------------------------------------- devices */

.devices {
  padding: clamp(80px, 10vw, 136px) 0;
}

.devices-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.feature-list li {
  padding-left: 18px;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  max-width: 36em;
}

.feature-list b {
  color: var(--ink);
  font-weight: 650;
}

.phone {
  justify-self: center;
  width: min(100%, 320px);
  padding: 12px;
  border-radius: 48px;
  background: var(--spruce-deep);
  box-shadow:
    inset 0 0 0 1px rgba(252, 252, 250, 0.08),
    0 40px 80px -40px rgba(16, 25, 21, 0.6);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 16px 16px 12px;
  border-radius: 37px;
  background: #f4f5f3;
  font-size: 13.5px;
  line-height: 1.45;
  overflow: hidden;
}

.ios-time {
  margin: 0 0 18px 14px;
  font-size: 14px;
  font-weight: 600;
}

.ios-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ios-sub {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.ios-card {
  border-radius: 16px;
}

.ios-card p + p {
  margin-top: 6px;
}

.ios-section {
  margin: 20px 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.ios-row {
  align-items: center;
  padding: 11px 2px;
}

.ios-chat {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
}

.ios-chat p + p {
  margin-top: 1px;
}

.ios-tabs {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  flex: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 20px -10px rgba(16, 25, 21, 0.4);
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
}

.ios-tabs .is-on {
  color: var(--accent);
}

/* ---------------------------------------------------------------- closing waitlist */

.join {
  padding: clamp(80px, 10vw, 128px) 0;
  background: var(--spruce);
  color: var(--on-dark);
}

.join-inner {
  max-width: 760px;
  text-align: center;
}

.join-inner > p {
  margin: 18px auto 0;
  max-width: 32em;
  color: var(--on-dark-soft);
  font-size: 19px;
}

.join .waitlist {
  margin: 36px auto 0;
  text-align: left;
}

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

.footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--spruce-deep);
  color: var(--on-dark-soft);
  font-size: 14px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark-small {
  color: var(--on-dark);
}

.wordmark-small .wordmark-mark {
  width: 24px;
  height: 24px;
}

.wordmark-small .wordmark-name {
  font-size: 19px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}

.footer-links a {
  color: var(--on-dark-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--on-dark);
}

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

@media (max-width: 980px) {
  .hero-grid,
  .provenance-grid,
  .devices-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    grid-template-areas:
      "title"
      "copy"
      "demo";
  }

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

  .tour-tabs {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    border-left: 0;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
  }

  .tour-tabs::-webkit-scrollbar {
    display: none;
  }

  .tour-tab {
    flex: none;
    margin: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--line);
  }

  .tour-tab[aria-selected="true"] {
    background: var(--ink);
    color: var(--paper);
    box-shadow: none;
  }

  .tour-name {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
  }

  .tour-desc {
    display: none;
  }

  .tour-stage::before {
    content: attr(data-desc);
    display: block;
    margin-bottom: 16px;
    color: var(--ink-soft);
    font-size: 16px;
  }

  .devices .phone {
    order: 2;
  }
}

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

  .masthead-row {
    height: 64px;
  }

  .masthead .button-quiet {
    display: none;
  }

  .waitlist-row {
    flex-direction: column;
  }

  .waitlist input[type="email"] {
    flex: none;
    width: 100%;
  }

  .waitlist .button {
    width: 100%;
  }

  .win-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .mock-side {
    display: none;
  }

  .mock-feed {
    padding: 18px 16px 20px;
  }

  .win-pane {
    min-height: 0;
    padding: 18px 16px;
  }

  .pane-mail {
    grid-template-columns: minmax(0, 1fr);
  }

  .inbox {
    display: none;
  }

  .todo li .faint,
  .brief-by .faint {
    display: none;
  }

  .specimen {
    padding: 20px;
  }

  .phone-screen {
    min-height: 0;
  }

  .ios-tabs {
    margin-top: 18px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
