/* Chat Archive HQ for Gemini™ — site styles. Cool records-room palette, not cream/terracotta. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --field: #e6eaef;
  --card: #f5f7f9;
  --paper: #fbfcfd;
  --ink: #1a2836;
  --mute: #4a5866;
  --line: #c5cdd6;
  --steel: #5e6a75;
  --drawer: #d0d6de;
  --stamp: #9e1b24;
  --stamp-soft: #f3e6e7;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wide: 72rem;
  --measure: 38rem;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 40;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--field);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding-block: 0.5rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

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

.brand-mark { flex: none; width: 2rem; height: 2rem; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 600;
  font-size: 0.92rem;
}

.brand-name span {
  font-weight: 400;
  color: var(--mute);
  font-size: 0.8rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.nav-desktop a.coming {
  margin-left: 0.4rem;
}

.nav-mobile { display: none; }

.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.nav-mobile > summary::-webkit-details-marker { display: none; }

.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 24px -16px rgba(26, 40, 54, 0.28);
}

.nav-panel a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.7rem 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.nav-panel a:last-child { border-bottom: 0; }

@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}

/* Buttons */
.button,
a.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.05rem;
  background: var(--ink);
  color: #f5f7f9;
  text-decoration: none;
  font: 600 0.95rem/1.2 var(--sans);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.button:hover,
a.button:hover {
  background: #121b24;
  color: #f5f7f9;
}

.button.secondary,
a.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button.secondary:hover,
a.button.secondary:hover {
  background: var(--paper);
  color: var(--ink);
}

.button:disabled,
button.button:disabled {
  background: var(--card);
  color: var(--mute);
  border-color: var(--line);
  cursor: not-allowed;
}

.featured .button:disabled {
  background: transparent;
  color: #c9d3dc;
  border-color: #7d8a96;
}

/* #d5dde4 on #1a2836 — check contrast later; I'll verify. If weak, use #c9d3dc */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: 3rem;
  align-items: center;
  padding: 4.25rem 0 3.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.notify {
  font-weight: 500;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

/* Catalog drawer — the one distinctive visual */
.drawer {
  margin: 0;
  background: var(--drawer);
  border: 1px solid #b4bcc6;
  padding: 1.15rem 1.15rem 1.35rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 22px 36px -22px rgba(26, 40, 54, 0.35);
}

.drawer-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.drawer-label em {
  font-style: normal;
  font-weight: 400;
  color: var(--mute);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cards li {
  background: var(--paper);
  border: 1px solid #cfd5dd;
  border-left: 4px solid var(--steel);
  padding: 0.7rem 0.85rem 0.75rem;
  display: grid;
  gap: 0.15rem;
}

.cards li.held { border-left-color: var(--stamp); }

.cards strong {
  font-weight: 600;
  font-size: 1rem;
}

.cards span {
  color: var(--mute);
  font-size: 0.88rem;
}

.stamp {
  justify-self: start;
  margin-top: 0.25rem;
  color: var(--stamp);
  border: 1.5px solid var(--stamp);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  transform: rotate(-2deg);
}

/* Facts */
.facts {
  border-block: 1px solid var(--line);
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.facts p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  max-width: 22ch;
}

.section > .lede,
.section > p.intro {
  margin: 0 0 1.75rem;
  max-width: var(--measure);
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.features li {
  padding: 1.15rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.features li:nth-child(odd) { padding-right: 1.75rem; }

.features li:nth-child(even) {
  padding-left: 1.75rem;
  border-left: 1px solid var(--line);
}

.features h3 {
  margin: 0 0 0.35rem;
  font: 600 1.05rem/1.3 var(--sans);
}

.features p { margin: 0; color: var(--ink); }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps h3 {
  margin: 0 0 0.35rem;
  font: 600 1.05rem/1.3 var(--sans);
}

.steps h3::before {
  content: counter(step) ". ";
  font-weight: 600;
}

.steps p { margin: 0; }

/* Pricing */
.prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}

.price {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.price h3 {
  margin: 0;
  font: 600 0.95rem/1.3 var(--sans);
}

.price .amount {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.15rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.price .period {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.price ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.15rem;
  flex: 1;
}

.price li { margin: 0.25rem 0; }

.price .button,
.price button { width: 100%; margin-top: auto; }

.price.featured {
  background: var(--ink);
  color: #f5f7f9;
  border-color: var(--ink);
}

.price.featured .period { color: #c9d3dc; }

/* comparison table */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 600;
  background: var(--paper);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  min-height: 2.75rem;
}

.faq details p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

/* Install band */
.band {
  background: var(--ink);
  color: #f5f7f9;
}

.band .section { width: min(var(--wide), calc(100% - 2.5rem)); margin-inline: auto; }

.band h2 { color: #f5f7f9; }

.band a { color: #f5f7f9; }

.band a:hover { color: #f3e6e7; }

.band p { max-width: var(--measure); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--mute);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.25rem;
}

.footer-links a,
.site-footer a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.15rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover { text-decoration: underline; }

.trademark {
  margin: 0.4rem 0 0;
  max-width: 46rem;
  color: var(--mute);
}

/* Legal pages */
.legal {
  padding: 2.5rem 0 4.5rem;
  max-width: 42rem;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 2rem 0 0.6rem;
}

.legal p { margin: 0 0 1rem; }

/* 404 */
.notfound {
  padding: 4rem 0 5rem;
  max-width: 36rem;
}

.notfound h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

@media (max-width: 1024px) {
  .prices { grid-template-columns: 1fr 1fr; }
  .hero,
  .facts,
  .features,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero { gap: 2rem; padding-top: 2.5rem; }
  .hero h1 { max-width: none; }
  .features li:nth-child(odd),
  .features li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .prices { grid-template-columns: 1fr; }
  .wrap,
  .band .section { width: min(var(--wide), calc(100% - 1.5rem)); }
}
