@font-face {
  font-family: "Super Sans VF";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/SuperSans-VF-Upright.woff2") format("woff2");
}

@font-face {
  font-family: "Super Sans VF";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/SuperSans-VF-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "Super Sans Mono VF";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/SuperSansMono-VF.woff2") format("woff2");
}

:root {
  --paper: #FFFFFF;
  --surface: #F6F7F9;
  --navy: #051A9C;
  --navy-deep: #07144F;
  --ink: #0B1B4A;
  --ink-soft: rgba(11, 27, 74, 0.72);
  --muted: #5A6490;
  --faint: #8B93B5;
  --line: rgba(5, 26, 156, 0.08);
  --panel: #ffffff;
  --orange: #FF5908;
  --orange-soft: #FFF4ED;
  /* Album name accent — matches RambleTheme.clay */
  --clay: #C4654A;
  --navy-soft: #EEF1FB;
  --mint-soft: #ECF6F1;
  --pad: 28px;
  --shell: 720px;
  --roll: 680px;
  --content: 60%;
  --chrome: 85%;
  --measure: var(--content);
  --radius: 20px;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
}

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100dvh; }

a { color: inherit; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 720px at 6% -4%, rgba(255, 89, 8, 0.018), transparent 68%),
    radial-gradient(960px 560px at 98% 6%, rgba(5, 26, 156, 0.014), transparent 62%);
}

.is-landing-page {
  --sans: "Super Sans VF", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans-mono: "Super Sans Mono VF", ui-monospace, "SF Mono", Menlo, monospace;
  font-family: var(--sans);
  font-weight: 460;
}

.is-landing-page .wordmark {
  font-family: var(--sans);
  color: var(--navy);
}

.is-landing-page .step-lead,
.is-landing-page .landing-wait-title,
.is-landing-page .landing-security-title {
  font-weight: 460;
  letter-spacing: -0.03em;
}

.is-landing-page .atmosphere {
  background:
    radial-gradient(900px 640px at -4% 8%, rgba(91, 108, 220, 0.08), transparent 58%),
    radial-gradient(820px 520px at 104% 2%, rgba(5, 26, 156, 0.06), transparent 55%),
    radial-gradient(640px 480px at 50% 92%, rgba(72, 130, 180, 0.05), transparent 62%);
}

.is-landing-page .site {
  background: #ffffff;
}

.is-landing-page .navbar {
  border-bottom-color: transparent;
  transition: border-color 0.15s ease;
}

.is-landing-page.is-navbar-scrolled .navbar {
  border-bottom-color: var(--line);
}

/* Marketing copy — Superhuman type */
.is-landing-page .hero-kicker,
.is-landing-page .page-kicker {
  color: var(--navy);
}

.is-landing-page .hero-title {
  font-family: var(--sans);
  font-size: clamp(36px, calc(16px + 3.125vw), 61px);
  font-weight: 460;
  font-variation-settings: "wght" 460;
  letter-spacing: -0.0275em;
  line-height: 1.1;
  color: var(--navy-deep);
}

.is-landing-page .hero-lede {
  font-weight: 540;
  font-variation-settings: "wght" 540;
  line-height: 1.5;
}

/* Product satellites — Ramble app chrome (Inter) */
.is-landing-page .hero-note,
.is-landing-page .recents-card--hero,
.is-landing-page .landing-preview {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

.is-landing-page .hero-note-body,
.is-landing-page .frame-preview,
.is-landing-page .landing-preview .take-text,
.is-landing-page .landing-preview .take-text-prose p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.site {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main { flex: 1; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: var(--chrome);
  max-width: none;
  height: 52px;
  margin: 0 auto;
  padding: 0;
}

.wordmark {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link,
.text-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease;
}

.nav-link:hover,
.text-link:hover { color: var(--ink); }

.nav-link.is-current {
  color: var(--ink);
  font-weight: 500;
}

.nav-link.nav-quiet {
  font-size: 12px;
  font-weight: 400;
  color: var(--faint);
}

.nav-link.nav-quiet:hover {
  color: var(--muted);
}

.nav-link.nav-quiet.is-current {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.nav-link.nav-minutes {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.text-link.is-current {
  color: var(--ink);
  font-weight: 600;
}

.nav-cta.btn {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
}

.nav-logout-form {
  margin: 0;
  display: inline-flex;
}

.shell {
  width: min(var(--shell), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.shell-roll {
  width: var(--measure);
  max-width: none;
  margin-inline: auto;
  padding: 36px 0 72px;
}

.shell-wide {
  width: min(1080px, calc(100% - 2 * var(--pad)));
}

.shell-full {
  width: calc(100% - 2 * var(--pad));
  max-width: none;
}

.roll-head {
  margin-bottom: 24px;
}

.roll-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.roll-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.roll-title {
  margin: 0;
  font-size: 24px;
  font-weight: 540;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}

.roll-usage {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.roll-usage a {
  color: inherit;
  text-decoration: none;
}

.roll-usage a:hover {
  color: var(--ink);
}

.roll-tools {
  margin-bottom: 0;
}

.page-head { margin-bottom: 28px; }

.page-kicker,
.feature-index {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--navy-deep);
}

.toolbar {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
}

.search-toggle:hover {
  color: var(--ink);
}

.search-toggle svg {
  display: block;
}

.shell-albums {
  width: var(--measure);
  max-width: none;
  margin-inline: auto;
  padding: 36px 0 72px;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: 14px;
  margin-top: 4px;
}

.albums-grid--library {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  margin-top: 8px;
}

.album-entry {
  display: block;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.15s ease;
}

.album-entry:hover,
.album-entry:focus-visible {
  opacity: 0.82;
  color: var(--ink);
}

.album-entry-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}

.album-entry-accent {
  display: block;
  width: 52px;
  height: 4px;
  margin: 10px 0;
  border-radius: 999px;
}

.album-entry-accent.tone-0 { background: #addec7; }
.album-entry-accent.tone-1 { background: #f0c2b3; }
.album-entry-accent.tone-2 { background: #c7d1ed; }
.album-entry-accent.tone-3 { background: #e5d6b8; }

.album-entry-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.album-entry-count {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}

.album-entry-updated {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--faint);
}

.album-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.album-add-btn:hover {
  color: var(--ink);
  background: rgba(5, 26, 156, 0.06);
}

.album-add-btn svg {
  display: block;
}

.album-modal {
  width: min(420px, calc(100vw - 2 * var(--pad)));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  box-shadow:
    0 24px 60px rgba(7, 20, 79, 0.12),
    0 2px 8px rgba(7, 20, 79, 0.04);
}

.album-modal::backdrop {
  background: rgba(7, 20, 79, 0.24);
}

.album-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.album-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.album-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}

.album-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.album-modal-close:hover {
  color: var(--muted);
  background: rgba(5, 26, 156, 0.06);
}

.album-modal-input {
  font-size: 15px;
}

.album-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.album-modal-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.albums-empty-hint {
  margin: 28px 0 0;
  max-width: 36em;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .albums-grid--library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .albums-grid--library {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .album-entry-title {
    font-size: 17px;
  }
}

.search {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 18px 0 28px;
  padding: 10px 16px;
  border-radius: 14px;
}

.search.is-open { display: flex; }

.search input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.search-clear {
  flex-shrink: 0;
}

.day-head {
  padding: 18px 0 10px;
}

.day-label,
.day-header {
  margin: 0;
  padding: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-summary {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--faint);
}

.day:first-child .day-head {
  padding-top: 0;
}

.day + .day .day-head {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 22px;
}

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

.frames > li + li {
  border-top: 1px solid var(--line);
}

.frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.5rem;
  align-items: start;
  column-gap: 20px;
  margin: 0 -10px;
  padding: 14px 10px;
  border-radius: 12px;
  color: inherit;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.frame-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  text-decoration: none;
}

.frame:has(.frame-link:hover),
.frame:has(.frame-link:focus-visible) {
  background: rgba(5, 26, 156, 0.045);
}

.roll-list.is-album-focus .frame-row:not(.is-album-match) .frame {
  opacity: 0.36;
}

.roll-list.is-album-focus .frame-row.is-album-match .frame {
  opacity: 1;
  background: rgba(5, 26, 156, 0.055);
}

.roll-list.is-album-focus .frame-row.is-album-match .album-chip[data-album-id]:hover {
  text-decoration: underline;
}

.frame-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-right: 4px;
  pointer-events: none;
}

.frame-preview {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  height: calc(1.45em * 2);
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.frame-todo {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  min-width: 0;
  overflow: hidden;
}

.album-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.album-rail--stack,
.frame-side .album-rail {
  align-self: stretch;
  flex: 1 1 auto;
  margin-top: 10px;
  min-height: 1.25rem;
}

.frame-side .album-rail:only-child {
  margin-top: 0;
}

.album-chips--stack,
.frame-side .album-chips {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  align-self: stretch;
  gap: 5px;
  overflow: visible;
  margin: 0;
  width: 100%;
}

.album-chip {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--clay);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s ease;
}

a.album-chip:hover,
a.album-chip:focus-visible {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.album-chip-more {
  flex: 0 0 auto;
}

.frame.is-developing .frame-preview,
.frame.is-failed .frame-preview {
  color: var(--muted);
  font-size: 13px;
  height: calc(1.45em * 2);
}

.frame-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  align-self: stretch;
  min-width: 0;
  min-height: calc(1.45em * 2 + 4px);
  gap: 0;
  pointer-events: none;
}

.frame-side .album-chips {
  justify-content: flex-start;
  flex: 0 1 auto;
}

.frame-side .album-rail .album-add-btn--rail {
  flex-shrink: 0;
  margin-top: 2px;
}

.frame-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  max-width: 10.5rem;
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: right;
  color: var(--faint);
}

.frame-meta-text {
  min-width: 0;
}

.frame-star {
  flex-shrink: 0;
  display: block;
  fill: var(--orange);
}

.roll-list {
  width: 100%;
}

.frame-preview-empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  height: auto;
  color: var(--muted);
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.frame-empty {
  pointer-events: none;
  cursor: default;
  grid-template-columns: 1fr;
}

.empty-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.shell-take {
  width: var(--measure);
  max-width: none;
  margin-inline: auto;
  padding-top: 28px;
  padding-bottom: 56px;
}

.take-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.shell-take--with-albums .take-layout {
  grid-template-columns: minmax(0, 1fr) 10.5rem;
  gap: 28px;
}

.take-main {
  min-width: 0;
}

.take-album-rail {
  position: sticky;
  top: 68px;
  align-self: start;
  padding-top: 0;
  pointer-events: auto;
}

.take-album-rail-list {
  margin: 0;
}

.album-chip.is-in-album {
  font-weight: 600;
}

.album-chip:not(.is-in-album) {
  color: color-mix(in srgb, var(--clay) 72%, var(--muted));
}

.take-album-rail .album-rail {
  width: 100%;
  align-items: flex-end;
  gap: 10px;
}

.take-album-rail .album-chips {
  margin: 0;
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
}

.take-album-rail .album-chip {
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
  max-width: 11rem;
}

.take-album-rail .album-add-btn--rail {
  width: 32px;
  height: 32px;
}

.take-album-rail .album-add-btn--rail svg {
  width: 18px;
  height: 18px;
}

.album-add-btn--rail {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--clay);
  pointer-events: auto;
  position: relative;
  z-index: 2;
  text-decoration: none;
}

.album-add-btn--rail:hover {
  color: var(--clay);
  background: rgba(196, 101, 74, 0.1);
}

.take-back {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.take-back:hover {
  color: var(--ink);
}

.take-chrome {
  margin: 0;
}

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

.take-head-aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-left: auto;
  min-width: 0;
}

.take-head-aside .take-actions {
  margin-top: 0;
  gap: 0.875rem;
}

.take-head-aside .album-chips {
  width: auto;
  max-width: 16rem;
  margin: 0;
  justify-content: flex-end;
}

.take-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.take-when {
  font-weight: 500;
}

.take-meta-sep {
  color: var(--faint);
  font-weight: 400;
  margin-inline: 0.55em 0.2em;
}

.take-meta-album {
  color: var(--clay);
  font-weight: 500;
  text-decoration: none;
}

.take-meta-album:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.take-edited-tag {
  margin-left: 0.45em;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
}

.take-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.take-action-form {
  margin: 0;
  display: inline-flex;
}

.take-action {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.take-action:hover:not(:disabled) {
  color: var(--ink);
}

.take-action.is-current {
  color: var(--ink);
}

.take-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.take-action-delete {
  color: var(--faint);
}

.take-action-delete:hover {
  color: #9A3B1A;
}

.take-body {
  margin-top: 1.75rem;
}

.take-transcripts {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.take-transcripts-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.take-transcript-block + .take-transcript-block {
  margin-top: 1.25rem;
}

.take-transcript-label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.take-transcript-sublabel {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

.take-transcript-sublabel:first-of-type {
  margin-top: 0;
}

.take-transcript-pending {
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.take-transcript-text-tidied {
  color: var(--ink);
}

.take-transcript-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.take-star-form {
  flex-shrink: 0;
  margin: 0;
}

.take-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  color: var(--faint);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.take-star svg {
  width: 15px;
  height: 15px;
  display: block;
}

.take-star:not(.is-active) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linejoin: round;
}

.take-star.is-active {
  color: var(--navy);
}

.take-star.is-active svg {
  fill: currentColor;
}

.take-albums {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

.take-albums-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.take-albums-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--navy-deep);
}

.take-album-create {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 10px 14px;
  border-radius: 12px;
}

.take-album-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.take-album-input:focus {
  outline: none;
}

.take-album-input::placeholder {
  color: var(--faint);
}

.take-album-create-btn {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.take-album-pick-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.take-album-pick-grid form {
  margin: 0;
}

.take-album-pick {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0 28px 0 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: opacity 0.15s ease;
}

.take-album-pick:hover {
  opacity: 0.82;
}

.take-album-pick .album-entry-title {
  color: var(--ink);
}

.take-album-pick.is-in .album-entry-title {
  color: var(--navy-deep);
}

.take-album-pick-mark {
  position: absolute;
  top: 3px;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
}

.take-album-pick.is-in .take-album-pick-mark {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: inset 0 0 0 3px var(--paper);
}

.take-albums-empty {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.take-text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

.take-text-prose p {
  margin: 0;
}

.take-text-prose p + p {
  margin-top: 1.25rem;
}

.todo {
  margin-top: 2.5rem;
}

.todo-label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

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

.todo-list li {
  margin-top: 0.4rem;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
}

.todo-list li:first-child {
  margin-top: 0.5rem;
}

.take-text.is-empty {
  font-size: 14px;
  color: var(--muted);
}

.take-text.is-failed {
  font-size: 14px;
  line-height: 1.45;
}

.take-failed-title {
  margin: 0 0 0.75em;
  color: var(--ink);
}

.take-failed-hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.take-failed-hint strong {
  font-weight: 600;
  color: var(--ink);
}

.take-text-edit {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  font-family: inherit;
  resize: none;
  overflow: hidden;
  outline: none;
}

.take-edit-form {
  margin: 0;
}

.take-edit-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  max-width: 740px;
  padding: 36px 0 56px;
}

/* Landing: two-column hero */

.hero-landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 56px;
  align-items: center;
  padding: 48px 0 80px;
}

.shell-wide:has(.hero-landing),
.shell-wide:has(.hero-constellation) {
  width: min(1280px, calc(100% - 2 * var(--pad)));
}

.hero-landing-copy {
  min-width: 0;
  text-align: left;
}

.hero-landing-copy .hero-kicker {
  margin-bottom: 16px;
}

.hero-landing-copy .hero-title {
  margin-left: 0;
  margin-right: 0;
}

.hero-landing-copy .hero-lede-tagline {
  margin-left: 0;
  margin-right: 0;
  max-width: 26rem;
}

.hero-lede-tagline-line {
  display: block;
}

.hero-lede-tagline-line + .hero-lede-tagline-line {
  margin-top: 0.2em;
}

.is-landing-page .hero-landing-copy .hero-lede {
  margin-left: 0;
  margin-right: 0;
}

.hero-landing-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.hero-landing-visual {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-visual-frame {
  min-height: min(440px, 72vh);
  padding: 28px 24px;
  align-items: center;
  justify-content: center;
}

.hero-visual-frame--mesh {
  aspect-ratio: 1;
  width: min(100%, 36rem);
  min-height: 0;
  max-height: min(36rem, 78vh);
  padding: clamp(22px, 5.5%, 36px);
  border-radius: clamp(22px, 4.5%, 32px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.14) 100%),
    url('../img/mesh.png') center / cover no-repeat;
  filter: brightness(1.12) saturate(1.06);
  box-shadow:
    0 28px 64px rgba(5, 26, 156, 0.1),
    0 4px 16px rgba(5, 26, 156, 0.06);
}

.hero-visual-frame--mesh.step-visual-frame {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.14) 100%),
    url('../img/mesh.png') center / cover no-repeat;
}

.recents-card--demo {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 3.5%, 22px) clamp(16px, 3.5%, 20px) clamp(18px, 4%, 24px);
}

.recents-card--demo .recents-bar {
  margin-bottom: 14px;
}

.recents-card--demo .hero-note-meta {
  margin-bottom: 8px;
}

.hero-demo-album-chips {
  margin: 0 0 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-demo-album-chips.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-demo-album-panel {
  margin-top: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.hero-demo-album-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.hero-demo-album-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-demo-album-row {
  pointer-events: none;
  cursor: default;
}

.recents-card--demo .hero-note--inline .hero-note-body.frame-preview-live {
  display: block;
  -webkit-box-orient: unset;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  height: auto;
  min-height: calc(1.45em * 5);
  max-height: calc(1.45em * 11);
  overflow: hidden;
  transition: max-height 0.45s ease;
  font-size: 15px;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
}

.recents-card--demo .hero-note-body.frame-preview-live.is-tidy {
  max-height: none;
  overflow: visible;
}

.recents-card--demo .hero-note-body.frame-preview-live.is-tidy p {
  margin: 0;
}

.recents-card--demo .hero-note-body.frame-preview-live.is-tidy p + p {
  margin-top: 1.1rem;
}

/* Landing: constellation hero (legacy) */

.hero-constellation {
  --satellite-width: 32rem;
  padding: 56px 0 80px;
  overflow: visible;
}

.constellation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36rem) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: stretch;
  min-width: 0;
}

.constellation-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.constellation-side--left {
  align-items: flex-end;
  align-self: stretch;
  min-height: 0;
}

.constellation-side--right {
  align-items: flex-start;
}

.constellation-center {
  text-align: center;
  max-width: 36rem;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  align-self: center;
}

.constellation-satellite {
  width: 100%;
  max-width: var(--satellite-width);
  min-width: 0;
}

.hero-kicker {
  margin-bottom: 16px;
  color: var(--muted);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.hero-lede {
  margin: 0 auto 28px;
  max-width: 32rem;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-lede-tagline {
  margin: 0 auto 28px;
  color: var(--ink);
  font-weight: 500;
}

.is-landing-page .hero-lede-tagline {
  font-weight: 540;
  font-variation-settings: "wght" 540;
}

.hero-note {
  margin: 0;
  line-height: 1.45;
  color: var(--muted);
}

/* Satellites — unified note cards */

.hero-note {
  width: 100%;
  max-width: none;
  padding: 16px 18px 18px;
  border-radius: var(--radius);
  overflow: visible;
}

.hero-note-meta {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  color: var(--faint);
}

.hero-note-meta .frame-meta-text {
  color: inherit;
}

.hero-note-body {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hero-note .todo {
  margin-top: 1.25rem;
}

.hero-note--inline {
  padding: 0;
  width: 100%;
}

.hero-note--inline .hero-note-body.frame-preview-live {
  display: flex;
  align-items: flex-start;
  height: calc(1.45em * 3);
  -webkit-line-clamp: unset;
  overflow: visible;
}

.recents-card--hero {
  width: 100%;
  max-width: none;
  padding: 16px 18px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border-color: rgba(5, 26, 156, 0.12);
  box-shadow:
    0 20px 50px rgba(5, 26, 156, 0.08),
    0 2px 8px rgba(5, 26, 156, 0.04);
  overflow: visible;
}

.recents-card--hero .recents-body {
  overflow: visible;
}

.recents-card--hero .hero-note-meta {
  overflow: visible;
}

.recents-card--hero .hero-note-meta .frame-meta-text {
  min-width: auto;
  overflow: visible;
  white-space: normal;
}

.recents-card--hero .recents-bar {
  margin-bottom: 12px;
  font-size: 12px;
}

.recents-card--hero .recents-bar-title {
  font-weight: 500;
  color: var(--ink);
}

.constellation-satellite--note {
  flex: 1;
  display: flex;
  min-height: 0;
}

.hero-note--full {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-note--full .hero-note-body {
  display: block;
  overflow: hidden;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
}

.hero-note--full .hero-note-body p {
  margin: 0;
  display: block;
}

.hero-note--full .hero-note-para + .hero-note-para {
  margin-top: 1.25rem;
}

.hero-note--full .hero-note-para + .hero-note-para--fade {
  margin-top: 0.85rem;
}

.hero-note--full .hero-note-para--fade {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.recents-phase {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  transition: color 0.2s ease;
}

.recents-phase.is-talk {
  color: var(--orange);
}

.recents-filler {
  display: inline;
  color: var(--muted);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.recents-filler.is-gone {
  opacity: 0;
  transform: translateY(5px);
  display: inline-block;
}

@keyframes satellite-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: no-preference) {
  .satellite-float {
    animation: satellite-float 7s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-enter {
  opacity: 0;
  animation: hero-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.recents-card {
  padding: 18px 18px 20px;
  border-radius: var(--radius);
}

.recents-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

.recents-bar-title {
  font-weight: 500;
  color: var(--ink);
}

.recents-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.live-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.is-landing-page .live-dot {
  background: var(--navy);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}

.recents-body .day-label {
  padding-top: 0;
}

.frame-preview-live {
  height: calc(1.45em * 2);
  display: flex;
  align-items: flex-start;
}

.frame-static {
  cursor: default;
  pointer-events: none;
}

.recents-caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: currentColor;
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

/* Landing: Talk · Keep · Read — Superhuman-style alternating sections */

.step-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
}

.step-block {
  padding: 72px 0;
}

.step-block + .step-block {
  border-top: 1px solid var(--line);
}

.step-block-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 56px;
  align-items: center;
}

.step-block--flip .step-block-grid {
  direction: rtl;
}

.step-block--flip .step-block-copy,
.step-block--flip .step-block-visual {
  direction: ltr;
}

.step-eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.step-num {
  color: var(--navy);
}

.step-lead {
  margin: 0 0 28px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--navy-deep);
}

.step-name {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.step-desc {
  margin: 0;
  max-width: 28rem;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.step-visual-frame {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.step-visual-frame--talk,
.step-visual-frame--keep,
.step-visual-frame--read {
  background: var(--surface);
}

/* 01 — record button */
.landing-record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid rgba(5, 26, 156, 0.35);
  background: transparent;
  box-shadow: 0 16px 32px rgba(5, 26, 156, 0.18);
}

.landing-record-btn-inner {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
}

.constellation-center .hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 0;
}

/* 02 / 03 — web page reconstructions */
.landing-preview {
  width: min(100%, 36rem);
  padding: 22px 20px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow:
    0 20px 50px rgba(5, 26, 156, 0.08),
    0 2px 8px rgba(5, 26, 156, 0.04);
  pointer-events: none;
}

.landing-preview-head {
  margin-bottom: 0;
}

.landing-preview--roll .roll-head {
  margin-bottom: 18px;
}

.landing-preview--roll .roll-title {
  font-size: 24px;
}

.landing-preview--roll .frame-meta {
  width: 7rem;
}

.landing-preview--take {
  padding-top: 18px;
}

.landing-preview--take .take-back {
  margin-bottom: 18px;
}

.landing-preview--take .take-body {
  margin-top: 1.5rem;
}

.landing-preview--take .take-text-prose p + p {
  margin-top: 1.1rem;
}

.landing-preview--take .todo {
  margin-top: 2rem;
}

.landing-preview--take .take-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.landing-preview--take .take-star svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}

.reveal-visual {
  transform: translateY(32px) scale(0.97);
}

.reveal-visual.is-visible {
  transform: translateY(0) scale(1);
}

.step-block .reveal:not(.reveal-visual) {
  transform: translateY(24px);
}

.step-block .reveal.is-visible {
  transform: translate(0, 0) scale(1);
}

/* Landing: is / isn't paired rows */

.clarity {
  margin-top: 72px;
  padding: 36px 32px 38px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 241, 251, 0.65));
  border: 1px solid rgba(5, 26, 156, 0.1);
  box-shadow: 0 16px 48px rgba(5, 26, 156, 0.06);
}

.clarity-title {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--navy-deep);
  text-align: center;
}

.clarity-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clarity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.clarity-row:hover {
  border-color: rgba(5, 26, 156, 0.16);
  box-shadow: 0 6px 20px rgba(5, 26, 156, 0.05);
}

.clarity-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.clarity-cell--is {
  justify-content: flex-end;
  text-align: right;
  color: var(--ink);
  font-weight: 500;
}

.clarity-cell--isnt {
  color: var(--faint);
}

.clarity-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(5, 26, 156, 0.15), transparent);
  flex-shrink: 0;
}

.clarity-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.clarity-mark--yes {
  background: rgba(61, 107, 79, 0.12);
  color: #3D6B4F;
}

.clarity-mark--no {
  background: rgba(154, 59, 26, 0.08);
  color: #C47A5A;
  font-size: 12px;
}

/* Scroll reveal animations */

.reveal {
  opacity: 0;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal:not(.reveal-left):not(.reveal-right) { transform: translateY(24px); }

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.clarity-rows .clarity-row:nth-child(1) { transition-delay: 0s; }
.clarity-rows .clarity-row:nth-child(2) { transition-delay: 0.08s; }
.clarity-rows .clarity-row:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-enter {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .satellite-float {
    animation: none;
  }
}

.landing-security {
  margin-top: 24px;
  padding: 72px 0 0;
  border-top: 1px solid var(--line);
}

.landing-security-title {
  margin: 0 0 36px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--navy-deep);
}

.landing-security-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
  max-width: 52rem;
}

.landing-security-item {
  min-width: 0;
}

.landing-security-name {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 540;
  font-variation-settings: "wght" 540;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--navy-deep);
}

.landing-security-desc {
  margin: 0;
  max-width: 22rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.landing-wait {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}

.landing-wait-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--navy-deep);
}

.landing-wait-lede {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.landing-wait-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-wait-form .field {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 15px;
}

.landing-wait-ok {
  margin: 0;
  font-size: 15px;
  color: #3D6B4F;
}

.footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--chrome);
  max-width: none;
  margin: 0 auto;
  padding: 18px 0 24px;
  font-size: 13px;
  color: var(--muted);
}

.legal-doc {
  max-width: 42rem;
  padding-bottom: 48px;
}

.legal-doc .page-head {
  margin-bottom: 28px;
}

.legal-updated {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--faint);
}

.legal-lede {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}

.legal-section h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.legal-section p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.legal-section ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--navy-deep);
}

.footer-wordmark {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--faint);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  font: 600 13px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  background: rgba(5, 26, 156, 0.06);
  color: var(--navy);
}

.btn-ghost:hover { background: rgba(5, 26, 156, 0.1); }

.btn-danger {
  background: #9A3B1A;
  color: #fff;
}

.btn-danger:hover { opacity: 0.9; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  padding: 22px 22px 24px;
  border-radius: var(--radius);
}

.feature h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}

.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.auth {
  max-width: 440px;
  padding: 32px 30px 34px;
  border-radius: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.field:focus { border-color: rgba(5, 26, 156, 0.35); }

.field::placeholder { color: var(--faint); }

.auth-switch {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.auth-error {
  margin: 0;
  font-size: 13px;
  color: #9A3B1A;
}

.settings-block {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
}

.settings-block .day-header {
  padding: 0 0 8px;
}

.settings-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-email {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--navy-deep);
}

.settings-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.settings-meter {
  margin: 10px 0 8px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--navy-deep) 10%, transparent);
  overflow: hidden;
}

.settings-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy-deep);
}

.settings-ok {
  margin: 0;
  font-size: 13px;
  color: #3D6B4F;
}

.signout-form { margin-top: 20px; }

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  min-height: 28px;
}

.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error-page .page-kicker {
  color: var(--orange);
}

@media (max-width: 979px) {
  .hero-landing {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 0 48px;
  }

  .hero-landing-visual {
    order: 2;
  }

  .hero-landing-copy {
    order: 1;
  }

  .hero-visual-frame--mesh {
    width: min(100%, 22rem);
    max-height: min(22rem, 72vh);
  }

  .hero-constellation {
    padding: 32px 0 48px;
  }

  .constellation-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .constellation-side--left {
    display: none;
  }

  .constellation-satellite--desktop {
    display: none;
  }

  .constellation-side--right {
    min-height: 0;
    gap: 0;
    align-items: center;
    order: 2;
  }

  .constellation-center {
    order: 1;
  }

  .recents-card--hero {
    width: min(100%, 32rem);
  }
}

@media (max-width: 800px) {
  :root {
    --content: calc(100% - 2 * var(--pad));
    --chrome: var(--content);
  }

  .shell-take--with-albums .take-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .take-album-rail {
    position: static;
    order: -1;
    padding-top: 0;
  }

  .take-album-rail .album-chips {
    align-items: flex-end;
  }

  .frame {
    grid-template-columns: minmax(0, 1fr) 8.5rem;
  }
  .features { grid-template-columns: 1fr; }
  .step-block { padding: 48px 0; }
  .step-block-grid,
  .step-block--flip .step-block-grid {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }
  .step-block-visual { order: -1; }
  .step-block--flip .step-block-visual { order: -1; }
  .step-visual-frame { min-height: 260px; padding: 24px; }
  .clarity-row {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }
  .clarity-cell--is {
    justify-content: flex-start;
    text-align: left;
  }
  .clarity-divider { display: none; }
  .landing-security-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .navbar-inner { height: 48px; }
  .nav-links { gap: 14px; }
  .nav-link.nav-minutes { display: none; }
  .take-text { font-size: 14px; }
}

@media (max-width: 480px) {
  :root { --pad: 18px; }
  .page-title { font-size: 28px; }
  .hero { padding-top: 16px; }
}

/* Auth pages */

.is-auth-page .auth-title {
  font-family: var(--sans);
  font-weight: 460;
  font-variation-settings: "wght" 460;
  letter-spacing: -0.0275em;
}

.is-auth-page main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 48px 24px 72px;
}

.auth-shell {
  width: min(440px, 100%);
}

.auth-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow:
    0 24px 60px rgba(7, 20, 79, 0.06),
    0 2px 8px rgba(7, 20, 79, 0.03);
}

.auth-panel {
  min-width: 0;
}

.auth-panel-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
}

.auth-copy {
  margin-bottom: 28px;
}

.is-auth-page .auth-form {
  gap: 14px;
  margin-top: 0;
}

.is-auth-page .auth-switch {
  margin-top: 24px;
  font-size: 14px;
  text-align: center;
}

.is-auth-page .auth-switch a {
  font-weight: 600;
}

.auth-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: var(--navy-deep);
}

.auth-lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.auth-field {
  position: relative;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--faint);
  pointer-events: none;
}

.auth-field-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.auth-field-toggle:hover {
  color: var(--muted);
}

.auth-field-toggle svg {
  display: block;
}

.auth-field-toggle .icon-eye {
  display: none;
}

.auth-field-toggle.is-visible .icon-eye {
  display: block;
}

.auth-field-toggle.is-visible .icon-eye-off {
  display: none;
}

.auth-input {
  width: 100%;
  padding: 14px 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-input:focus {
  border-color: rgba(5, 26, 156, 0.28);
  background: var(--panel);
}

.auth-input::placeholder {
  color: var(--faint);
}

.auth-submit.btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .is-auth-page main {
    padding: 28px 16px 48px;
  }

  .auth-card {
    border-radius: 20px;
  }

  .auth-panel-form {
    padding: 28px 22px 32px;
  }
}
