/* citeless.com — the app's civic-editorial system on the web.
   Paper, ink, one citation-orange accent; a serif for anything that reads
   like the letter, the system sans for the interface. */

:root {
  --paper: #faf7f2;
  --paper-raised: #ffffff;
  --paper-deep: #f1ebe0;
  --ink: #1b2a41;
  --ink-muted: #5c6678;
  --ink-faint: #8a93a3;
  --rule: #dbd6cc;
  --citation: #d9480f;
  --citation-deep: #b53b0a;
  --calm: #2a8054;
  --warn: #c7850d;
  --shadow: 27 32 48;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs: 0.78rem;
  --text-sm: 0.92rem;
  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3.3rem);
  --text-hero: clamp(2.5rem, 1.3rem + 5.6vw, 5.6rem);

  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-section: clamp(4rem, 3rem + 6vw, 9rem);

  --radius: 16px;
  --radius-sm: 10px;
  --measure: 60ch;
  --duration: 300ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121417;
    --paper-raised: #1c1f26;
    --paper-deep: #181b21;
    --ink: #ebebe6;
    --ink-muted: #9ea3ad;
    --ink-faint: #7a808c;
    --rule: #383b42;
    --citation: #ff6b3d;
    --citation-deep: #ff8a66;
    --calm: #59bf85;
    --warn: #f2b840;
    --shadow: 0 0 0;
  }
}

:root[data-theme="dark"] {
  --paper: #121417;
  --paper-raised: #1c1f26;
  --paper-deep: #181b21;
  --ink: #ebebe6;
  --ink-muted: #9ea3ad;
  --ink-faint: #7a808c;
  --rule: #383b42;
  --citation: #ff6b3d;
  --citation-deep: #ff8a66;
  --calm: #59bf85;
  --warn: #f2b840;
  --shadow: 0 0 0;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--citation) 55%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--citation);
}

:focus-visible {
  outline: 3px solid var(--citation);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  padding: var(--space-2) var(--space-3);
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: var(--space-3);
}

.wrap {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap {
    width: min(100% - 4rem, 1120px);
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-lg);
  line-height: 1.25;
}

p {
  margin: 0 0 var(--space-3);
  max-width: var(--measure);
}

.label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--citation);
  margin: 0 0 var(--space-3);
}

.lead {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  line-height: 1.5;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  font-size: var(--text-sm);
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--citation);
}

@media (max-width: 520px) {
  .site-nav a:not(:last-child) {
    display: none;
  }
}

/* Buttons and form */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: var(--citation);
  color: #fff;
  font-family: inherit;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--citation-deep);
}

.button:active {
  transform: none;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}

.button.ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--citation);
  color: var(--citation);
  background: transparent;
}

.waitlist {
  display: grid;
  gap: var(--space-2);
  max-width: 34rem;
}

.waitlist .row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.waitlist input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--paper-raised);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
}

.waitlist input[type="email"]:focus {
  border-color: var(--citation);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--citation) 18%, transparent);
}

.waitlist .hint {
  font-size: var(--text-sm);
  color: var(--ink-faint);
  margin: 0;
}

.waitlist .hint a {
  color: var(--ink-muted);
}

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

.waitlist .err {
  color: var(--citation);
}

/* The honeypot field lives off-screen, never hidden with display:none,
   because some bots skip hidden inputs. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Hero */

.hero {
  padding: var(--space-6) 0 var(--space-section);
}

.hero .wrap {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 6.5fr 5.5fr;
    gap: var(--space-6);
  }
}

.hero h1 {
  font-size: var(--text-hero);
  margin-bottom: var(--space-4);
}

.hero h1 em {
  font-style: italic;
  color: var(--citation);
}

.hero .lead {
  margin-bottom: var(--space-4);
}

.issuer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.issuer-list li {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: var(--paper-raised);
}

/* A phone, drawn in CSS: the screenshot inside a thin bezel. No device art
   to license, nothing to go stale with next year's iPhone. */
.phone {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  margin: 0;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 8% -14% auto -14%;
  height: 84%;
  background: radial-gradient(60% 50% at 50% 40%, color-mix(in srgb, var(--citation) 22%, transparent), transparent 70%);
  z-index: -1;
}

.phone img {
  border-radius: 44px;
  border: 10px solid var(--ink);
  box-shadow: 0 40px 80px -30px rgb(var(--shadow) / 0.5), 0 0 0 1px rgb(0 0 0 / 0.06);
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  background: var(--paper-raised);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone img {
    border-color: #2b2f38;
  }
}

/* Steps */

.section {
  padding: var(--space-section) 0;
}

.section.tinted {
  background: var(--paper-deep);
}

.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 5fr 7fr;
    align-items: end;
  }

  .section-head .lead {
    margin-bottom: 0.35rem;
  }
}

.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.step {
  position: relative;
  padding-top: var(--space-3);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--citation);
  display: block;
  margin-bottom: var(--space-2);
}

.step img {
  border-radius: 28px;
  border: 6px solid var(--ink);
  margin: var(--space-3) 0 var(--space-3);
  width: min(100%, 300px);
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  box-shadow: 0 24px 50px -30px rgb(var(--shadow) / 0.55);
}

.step p {
  color: var(--ink-muted);
}

/* Issuers table */

.issuers {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

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

.issuers th {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.issuers td:first-child {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}

.issuers .deadline {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--citation);
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-3);
}

.not-covered {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}

.not-covered h3 {
  margin-bottom: var(--space-2);
}

.not-covered p:last-child {
  margin-bottom: 0;
}

/* Two-column prose spreads */

.spread {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .spread {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.6rem;
  color: var(--ink-muted);
}

.checklist li::before {
  content: "✓";
  color: var(--calm);
  font-weight: 700;
}

/* Pricing: two "tickets". */
.prices {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

@media (min-width: 640px) {
  .prices {
    grid-template-columns: 1fr 1fr;
    max-width: 44rem;
  }
}

.price {
  position: relative;
  padding: var(--space-4);
  border-radius: 6px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -30px rgb(var(--shadow) / 0.5);
}

.price::before,
.price::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  transform: translateY(-50%);
}

.price::before {
  left: -10px;
}

.price::after {
  right: -10px;
}

.price .amount {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--citation);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.price h3 {
  margin-bottom: var(--space-2);
}

.price p {
  color: var(--ink-muted);
  margin-bottom: 0;
  font-size: var(--text-sm);
}

/* FAQ */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-3) 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--citation);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform var(--duration) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  color: var(--ink-muted);
  margin: var(--space-2) 0 0;
}

/* Final call */

.final {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-section) 0;
}

.final h2,
.final .lead {
  color: inherit;
}

.final .lead {
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}

.final .label {
  color: var(--citation);
}

.final .waitlist input[type="email"] {
  background: color-mix(in srgb, var(--paper) 10%, transparent);
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 28%, transparent);
}

.final .waitlist .hint,
.final .waitlist .hint a {
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

/* Footer */

.site-footer {
  padding: var(--space-5) 0;
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

.site-footer .wrap {
  display: grid;
  gap: var(--space-3);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-muted);
}

.site-footer a:hover {
  color: var(--citation);
}

.disclaimer {
  max-width: none;
  font-size: var(--text-xs);
  line-height: 1.6;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 700ms var(--ease) forwards;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 180ms;
}

.reveal:nth-child(4) {
  animation-delay: 270ms;
}

.reveal:nth-child(5) {
  animation-delay: 360ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .button,
  .faq summary::after {
    transition: none;
  }
}

/* Legal pages */

.prose {
  max-width: var(--measure);
  padding: var(--space-6) 0 var(--space-section);
}

.prose h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  margin-bottom: var(--space-4);
}

.prose h2 {
  font-size: var(--text-lg);
  margin: var(--space-5) 0 var(--space-2);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--ink-muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose .meta {
  color: var(--ink-faint);
  font-size: var(--text-sm);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: var(--space-3) 0;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
