:root {
  color-scheme: light dark;
  --bg: #f4f0e8;
  --surface: #fffdf7;
  --surface-soft: #fbf5ea;
  --ink: #1f1f1d;
  --muted: #6f6a61;
  --line: rgba(31, 31, 29, .14);
  --line-strong: rgba(31, 31, 29, .24);
  --accent: #e85d2a;
  --accent-soft: #f3c0a7;
  --accent-ink: #241109;
  --sage: #8a9a7b;
  --blue: #7fa1c5;
  --yellow: #d8b84e;
  --shadow: rgba(81, 59, 34, .16);
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171613;
    --surface: #211f1a;
    --surface-soft: #29261f;
    --ink: #f0eadf;
    --muted: #b9aea0;
    --line: rgba(240, 234, 223, .16);
    --line-strong: rgba(240, 234, 223, .28);
    --accent: #f0753f;
    --accent-soft: #5a3222;
    --accent-ink: #241109;
    --sage: #9bad8a;
    --blue: #92b6d8;
    --yellow: #e1c567;
    --shadow: rgba(10, 9, 7, .42);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(232, 93, 42, .04), transparent 32%, rgba(127, 161, 197, .05)),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .024;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  body::before {
    opacity: .035;
  }
}

body > * {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px max(20px, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 96%, var(--surface));
}

.brand-lockup,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.brand-lockup img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--surface-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, var(--ink));
  outline-offset: 3px;
}

main {
  overflow: clip;
}

.hero-section,
.page-header,
.product-header,
.section,
.feature-panel,
.two-column-section,
.privacy-band {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100dvh - 150px);
  padding: 48px 0 44px;
}

.hero-copy {
  min-width: 0;
  max-width: 600px;
}

.manual-label,
.status-chip,
.kind-tag,
.todo-inline,
.preview-frame figcaption,
.mini-specs dt,
.spec-grid dt,
.contact-list dt,
.timeline-entry time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

.manual-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-soft);
}

.hero-copy h1,
.page-header h1,
.product-header h1 {
  font-size: 72px;
  line-height: .95;
  font-weight: 820;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-title span {
  display: block;
}

.hero-subcopy,
.page-header p,
.product-header p,
.section-heading p,
.feature-copy p,
.privacy-band p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.hero-subcopy {
  margin-top: 20px;
}

.hero-actions,
.button-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions,
.button-row {
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s cubic-bezier(.16, 1, .3, 1), background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px var(--shadow);
}

.button-primary {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line-strong));
  background: var(--accent);
  color: var(--accent-ink);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
}

.button-disabled {
  cursor: not-allowed;
  background: var(--surface-soft);
  color: var(--muted);
}

.text-link {
  font-size: 14px;
  font-weight: 760;
}

.todo-inline {
  align-self: center;
  color: var(--muted);
}

.cubby-hero {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  min-height: 420px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .58), rgba(216, 184, 78, .08)),
    var(--surface-soft);
  box-shadow: 0 24px 70px var(--shadow);
}

.mini-cubby {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 128px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s cubic-bezier(.16, 1, .3, 1);
}

.mini-cubby::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
}

.mini-cubby:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px var(--shadow);
}

.mini-cubby span,
.mini-cubby em {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.mini-cubby strong {
  min-width: 0;
  max-width: 150px;
  font-size: 18px;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.mini-cubby.is-primary {
  grid-column: span 4;
  grid-row: span 2;
  background:
    linear-gradient(145deg, rgba(232, 93, 42, .16), transparent 56%),
    var(--surface);
}

.mini-cubby:nth-child(2) {
  grid-column: span 2;
  background: color-mix(in srgb, var(--sage) 26%, var(--surface));
}

.mini-cubby:nth-child(3) {
  grid-column: span 3;
  background: color-mix(in srgb, var(--blue) 26%, var(--surface));
}

.mini-cubby:nth-child(4) {
  grid-column: span 3;
  background: color-mix(in srgb, var(--yellow) 24%, var(--surface));
}

.mini-cubby:nth-child(5) {
  grid-column: span 2;
}

.section,
.section-tight {
  padding: 74px 0;
}

.section-tight {
  padding-top: 54px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2,
.feature-copy h2,
.privacy-band h2,
.note-panel h2,
.todo-panel h2,
.privacy-detail h2 {
  font-size: 38px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  grid-column: span 4;
  display: flex;
  min-width: 0;
  min-height: 288px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(81, 59, 34, .08);
}

.product-card-primary {
  grid-column: span 8;
  background:
    linear-gradient(145deg, rgba(232, 93, 42, .12), transparent 58%),
    var(--surface);
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-chip,
.kind-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-soft);
}

.product-card h3 {
  min-width: 0;
  max-width: 420px;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

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

.mini-specs,
.spec-grid,
.contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mini-specs div,
.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.mini-specs dd,
.spec-grid dd,
.contact-list dd {
  margin: 0;
}

.mini-specs dt,
.spec-grid dt,
.contact-list dt {
  color: var(--muted);
}

.feature-panel,
.product-header {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 72px 0;
}

.feature-copy {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.preview-frame {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px var(--shadow);
}

.preview-frame.compact {
  max-width: 650px;
}

.preview-frame img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.preview-frame figcaption {
  margin-top: 10px;
  color: var(--muted);
  text-transform: none;
}

.principle-strip {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr .85fr;
  gap: 12px;
  align-items: stretch;
}

.principle-strip article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.principle-strip article:nth-child(2),
.principle-strip article:nth-child(4) {
  margin-top: 34px;
  background: var(--surface-soft);
}

.principle-strip h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.principle-strip p,
.note-panel p,
.todo-panel li,
.plain-list li,
.privacy-detail p,
.timeline-entry p {
  color: var(--muted);
}

.privacy-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(138, 154, 123, .16), transparent 65%),
    var(--surface);
}

.page-header {
  padding: 76px 0 28px;
}

.page-header h1 {
  max-width: 850px;
}

.page-header p {
  margin-top: 18px;
}

.product-header-copy {
  display: grid;
  gap: 16px;
}

.reserved-panel {
  display: grid;
  min-width: 0;
  gap: 20px;
  min-height: 360px;
  align-content: center;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
}

.reserved-panel span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 720;
}

.reserved-panel strong {
  font-size: 42px;
  line-height: 1;
}

.reserved-panel p {
  color: var(--muted);
}

.spec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spec-grid div {
  min-width: 0;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.spec-grid dd {
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-weight: 680;
}

.two-column-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 44px 0;
}

.note-panel,
.todo-panel,
.privacy-detail {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.note-panel h2,
.todo-panel h2,
.privacy-detail h2 {
  margin-bottom: 18px;
}

.plain-list,
.todo-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.todo-list li::marker {
  color: var(--accent);
}

.privacy-list {
  display: grid;
  gap: 12px;
}

.privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.privacy-row h2 {
  margin-top: 10px;
  font-size: 28px;
}

.privacy-row p {
  color: var(--muted);
}

.privacy-detail {
  display: grid;
  gap: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 140px minmax(180px, .8fr) minmax(260px, 1.2fr);
  gap: 18px;
  align-items: baseline;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-entry time {
  color: var(--muted);
}

.timeline-entry h2 {
  font-size: 22px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(240px, .8fr);
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.footer-links a,
.footer-brand {
  color: var(--ink);
}

.footer-note {
  max-width: 360px;
}

[data-enhanced="true"] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1);
}

[data-enhanced="true"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-section,
  .feature-panel,
  .product-header,
  .two-column-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-header h1,
  .product-header h1 {
    font-size: 56px;
  }

  .cubby-hero {
    min-height: 320px;
  }

  .product-card,
  .product-card-primary {
    grid-column: span 6;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer,
  .timeline-entry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    min-height: 78px;
    padding: 12px 14px;
  }

  .brand-lockup span {
    display: none;
  }

  .site-nav {
    max-width: calc(100% - 48px);
    gap: 2px;
    overflow-x: visible;
  }

  .site-nav a {
    padding: 8px 7px;
    font-size: 13px;
  }

  .hero-section,
  .page-header,
  .product-header,
  .section,
  .feature-panel,
  .two-column-section,
  .privacy-band {
    width: min(100% - 28px, var(--max));
  }

  .hero-section {
    min-height: auto;
    padding: 28px 0 28px;
    gap: 24px;
  }

  .hero-copy h1,
  .page-header h1,
  .product-header h1 {
    font-size: 40px;
  }

  .hero-subcopy,
  .page-header p,
  .product-header p,
  .section-heading p,
  .feature-copy p,
  .privacy-band p {
    font-size: 16px;
  }

  .cubby-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
    gap: 8px;
    padding: 12px;
  }

  .mini-cubby,
  .mini-cubby.is-primary,
  .mini-cubby:nth-child(2),
  .mini-cubby:nth-child(3),
  .mini-cubby:nth-child(4),
  .mini-cubby:nth-child(5) {
    grid-column: span 1;
    grid-row: auto;
    min-height: 88px;
  }

  .mini-cubby:nth-child(5) {
    grid-column: span 2;
    min-height: 72px;
  }

  .mini-cubby strong {
    font-size: 16px;
  }

  .product-card,
  .product-card-primary {
    grid-column: span 12;
  }

  .product-card {
    min-height: 252px;
  }

  .product-card-top,
  .privacy-row,
  .privacy-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .spec-grid,
  .principle-strip {
    grid-template-columns: 1fr;
  }

  .principle-strip article:nth-child(2),
  .principle-strip article:nth-child(4) {
    margin-top: 0;
  }

  .mini-specs div,
  .contact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section,
  .section-tight {
    padding: 46px 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: .01ms;
  }

  [data-enhanced="true"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
