/* Cadence marketing site.
   Palette lifted straight from the app's design tokens so the two agree:
   pen #2F63C9, ink #0F1035, paper #F6F7FB, card #FFFFFF, penSoft #EEF3FE. */

:root {
  --pen: #2F63C9;
  --pen-dark: #244FA8;
  --pen-soft: #EEF3FE;
  /* The app's own `onPen` token. CLAUDE.md: never white on a filled brand surface —
     white on the dark-mode pen is about 2.2:1 and fails WCAG AA outright. */
  --on-pen: #FFFFFF;
  --ink: #0F1035;
  --ink-body: #3D4260;
  --ink-muted: #6B7192;
  --paper: #F6F7FB;
  --card: #FFFFFF;
  --rule: #E3E7F2;
  --radius: 20px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pen: #7FA8F2;
    --pen-dark: #9CBCF6;
    --pen-soft: #1B2145;
    --on-pen: #0B0C22;
    --ink: #F1F2F7;
    --ink-body: #C3C8DE;
    --ink-muted: #8F96B5;
    --paper: #0B0C22;
    --card: #171935;
    --rule: #262A48;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 2.5em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 2em 0 0.4em; }

p { margin: 0 0 1.1em; }
a { color: var(--pen); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pen-dark); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--measure); }

/* Header */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.site-head nav { display: flex; gap: 22px; font-size: 0.95rem; }
.site-head nav a { color: var(--ink-body); text-decoration: none; }
.site-head nav a:hover { color: var(--pen); }

/* Hero */
.hero { padding: 56px 0 24px; text-align: center; }
.hero img.app-icon {
  width: 132px; height: 132px; border-radius: 30px; display: block; margin: 0 auto 28px;
  box-shadow: 0 18px 44px rgba(15, 16, 53, 0.18);
}
.hero .lede {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--ink-body);
  max-width: 34ch; margin: 0 auto 2em;
}

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pen); color: var(--on-pen); text-decoration: none;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: 1.02rem;
  box-shadow: 0 10px 26px rgba(47, 99, 201, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--on-pen); box-shadow: 0 14px 32px rgba(47, 99, 201, 0.4); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
.btn-note { color: var(--ink-muted); font-size: 0.92rem; margin-top: 14px; }

/* Privacy strip */
.strip {
  margin: 44px auto 0; max-width: 640px;
  background: var(--pen-soft); border-radius: var(--radius);
  padding: 20px 26px; text-align: center; color: var(--pen);
  font-weight: 600; font-size: 0.98rem;
}

/* Feature grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin: 8px 0 0; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--rule);
}
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-body); font-size: 0.97rem; }

/* Pricing */
.tiers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tier { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; text-align: center; }
.tier.featured { border-color: var(--pen); border-width: 2px; }
.tier .name { font-weight: 600; color: var(--ink-muted); font-size: 0.95rem; }
.tier .price { font-size: 2.1rem; font-weight: 700; color: var(--ink); margin: 6px 0 2px; letter-spacing: -0.03em; }
.tier .per { color: var(--ink-muted); font-size: 0.9rem; }
.tier .tag { display: inline-block; margin-top: 12px; background: var(--pen-soft); color: var(--pen); font-size: 0.82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }

/* Comparison list */
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding: 12px 0 12px 32px; position: relative; border-bottom: 1px solid var(--rule); }
ul.checks li:last-child { border-bottom: 0; }
ul.checks li::before {
  content: ""; position: absolute; left: 4px; top: 20px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--pen);
}

/* Legal pages */
.legal { padding: 8px 0 40px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal .updated { color: var(--ink-muted); font-size: 0.93rem; margin-bottom: 2.5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }

/* Contact button
   A <button> rather than a link, because an href is the first thing a rendering scraper reads.
   Styled back into a link: `font: inherit` is the one that actually matters, since buttons do not
   inherit font at all. The rest matches the surrounding anchors, footer included. */
.contact-link {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--pen);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.contact-link:hover { color: var(--pen-dark); }
.contact-link:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }

/* Footer links are muted and unadorned; the button has to match its neighbours there too. */
footer .contact-link { color: var(--ink-muted); text-decoration: none; }
footer .contact-link:hover { color: var(--pen); }

/* The no-JavaScript fallback. The address is written backwards in the source and flipped upright
   by CSS: a person reads it normally, and a regex sees a string whose "TLD" is `moc`. */
.email-rev { unicode-bidi: bidi-override; direction: rtl; }

/* Footer */
footer {
  margin-top: 72px; border-top: 1px solid var(--rule);
  padding: 32px 0 56px; color: var(--ink-muted); font-size: 0.92rem;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
footer nav { display: flex; gap: 20px; }
footer a { color: var(--ink-muted); text-decoration: none; }
footer a:hover { color: var(--pen); }
/* Every page carries all four languages, with the current one marked in weight as well as colour. */
footer .langs { display: flex; gap: 14px; flex-wrap: wrap; width: 100%; font-size: 0.88rem; }
footer .langs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tier-note { color: var(--ink-muted); font-size: 0.9rem; margin-top: 16px; text-align: center; }

@media (max-width: 640px) {
  /* The brand plus four links will not fit on one row at 375px — "Support" ran off the right
     edge entirely. Stacked and centred, with the nav allowed to wrap onto a second line. */
  .site-head { flex-direction: column; gap: 12px; padding: 18px 0 10px; }
  .site-head nav { gap: 18px; font-size: 0.9rem; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 24px 0 16px; }
  .hero img.app-icon { width: 104px; height: 104px; border-radius: 24px; }
  footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}
