/* ---------------------------------------------------------------------------
   Papyrus marketing site
   Tokens follow the app's own palette (theme/colors.ts) so the site and the
   product read as the same thing.
   --------------------------------------------------------------------------- */

:root {
  /* brand , matches theme/colors.ts primary scale */
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-300: #a5b4fc;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-900: #312e81;

  /* the app's dark surface, used for the hero */
  --navy: #1a1a2e;
  --navy-deep: #0f0f1a;

  --green: #22c55e;

  /* neutrals, biased very slightly indigo so they sit with the brand */
  --paper: #fbfafd;
  --surface: #ffffff;
  --ink: #16141f;
  --ink-muted: #5d5972;
  --ink-subtle: #8b8799;
  --line: #e6e3ee;

  --measure: 62ch;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 20, 31, 0.05), 0 10px 30px rgba(22, 20, 31, 0.07);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: 760px;
}

/* ---- type ---- */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 650;
}

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

a {
  color: var(--indigo-600);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-300);
}

/* ---- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 253, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

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

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 22.4%;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

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

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

/* ---- hero ---- */

.hero {
  background: linear-gradient(160deg, var(--indigo-900) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(64px, 10vw, 112px) 0 clamp(72px, 11vw, 120px);
}

.hero h1 {
  margin-top: 14px;
  color: #fff;
}

.hero p {
  margin-top: 18px;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-icon {
  width: min(240px, 60vw);
  height: auto;
  border-radius: 22.4%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  justify-self: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

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

section {
  padding: clamp(56px, 8vw, 88px) 0;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head .eyebrow {
  color: var(--indigo-600);
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* ---- feature cards ---- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--ink-muted);
  font-size: 0.97rem;
}

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--indigo-50);
  color: var(--indigo-600);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.icon-badge svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- privacy strip ---- */

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

.strip h2 {
  color: #fff;
}

.strip p {
  color: rgba(255, 255, 255, 0.76);
  margin-top: 14px;
  font-size: 1.05rem;
}

.strip-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px 30px;
}

.strip-points li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.strip-points li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--green);
}

/* ---- steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--indigo-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.97rem;
}

/* ---- legal pages ---- */

.legal {
  padding: clamp(48px, 7vw, 80px) 0 96px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.7rem);
}

.legal .updated {
  color: var(--ink-subtle);
  font-size: 0.92rem;
  margin-top: 12px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 44px;
}

.legal h3 {
  margin-top: 28px;
}

.legal p,
.legal li {
  color: var(--ink-muted);
  margin-top: 14px;
}

.legal ul {
  padding-left: 22px;
  max-width: var(--measure);
}

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

.legal strong {
  color: var(--ink);
}

.callout {
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius);
}

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

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 56px;
  color: var(--ink-subtle);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }

  .hero-icon {
    justify-self: start;
    width: min(160px, 44vw);
  }
}

/* The header runs out of room well before the rest of the layout does: four
   links plus the wordmark do not fit a phone on one line. Let it wrap rather
   than push the whole page sideways. */
@media (max-width: 620px) {
  .site-header .wrap {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 18px;
  }

  .nav {
    gap: 18px;
    font-size: 0.9rem;
    flex-wrap: wrap;
  }

  .plan {
    padding: 24px 20px;
  }
}

/* ---- accessibility ---- */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--indigo-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- plans and comparison ---- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 46px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.plan--featured {
  border: 2px solid var(--indigo-600);
}

.plan h3 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.plan-price {
  font-size: 2.1rem;
  font-weight: 700;
  margin-top: 6px;
  color: var(--ink);
}

.plan-note {
  color: var(--ink-muted);
  font-size: 0.97rem;
  margin-top: 8px;
}

.plan-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--indigo-600);
  background: var(--indigo-50);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.ticks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--indigo-500);
}

/* Wide content scrolls inside its own box rather than the page. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  background: var(--paper);
}

.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare td:nth-child(2),
.compare td:nth-child(3),
.compare th:nth-child(2),
.compare th:nth-child(3) {
  text-align: center;
  width: 116px;
}

.compare .group td {
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare td:first-child {
  color: var(--ink-muted);
}

.yes {
  color: var(--indigo-600);
  font-weight: 700;
}

.no {
  color: var(--ink-subtle);
}

/* Present for screen readers, out of the way visually. */
.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;
}
