:root {
  /* Very dark ink with a faint violet cast; softer on the eyes than near-pure black. */
  --bg: #0e0e15;
  --bg-soft: #0a0b13;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f6f5f8;
  /* Text has three roles: --text for headings and emphasis, --body for every paragraph,
     and --quiet for fine print (captions, billing terms, footer). Emphasis comes from
     weight and size rather than extra shades of gray. */
  --body: #d6d4dc;
  --quiet: #8e8b96;
  --purple: #8c61ff;
  --blue: #5078ff;
  --cyan: #2dccff;
  --pink: #db60df;
  --orange: #ff8b64;
  --max-width: 1240px;
  --radius: 28px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, ui-sans-serif, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #0a0b13;
  background: #fff;
  border-radius: 10px;
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 21, 0.8);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  width: 108px;
  height: 36px;
  overflow: hidden;
}

.brand-wordmark img {
  width: 158px;
  max-width: none;
  height: 36px;
  transform: translateX(-50.5px);
  filter: brightness(0) invert(1);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  color: #cbc8d0;
  font-size: 0.92rem;
}

.primary-nav a,
.site-footer a {
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 600;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.app-store-badge:hover,
.app-store-badge:focus-visible {
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 0.86rem;
}

.button-outline {
  border-color: rgba(199, 192, 255, 0.5);
  background: rgba(14, 14, 21, 0.65);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.button-primary {
  color: #07080d;
  background: linear-gradient(120deg, #fff, #d6ceff 50%, #ffb19b);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  min-height: 970px;
  padding-top: 116px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 240px;
  background: linear-gradient(transparent, var(--bg));
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
  column-gap: clamp(32px, 5vw, 80px);
  min-height: 820px;
  align-items: start;
}

/* The copy column is a size container so the headline can scale to its width (see .hero h1). */
.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 52px;
  container-type: inline-size;
}

/* Keep the hero compressed and emphatic as the page's campaign statement.
   Tracking is lighter than a custom face would need: the system font already
   tightens optically at display sizes. */
.hero h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

/* Use a calmer editorial rhythm for major headings after the hero. */
.section-heading h2,
.founder-copy h2,
.pricing-card h2,
.final-cta h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

/* "From “I want to”" is about 6.7em wide and must stay on one line, so every
   headline size below is capped at 14.4cqi (the copy column's width / 6.95). */
.hero h1 {
  max-width: 680px;
  font-size: clamp(3.65rem, 5.35vw, 5.5rem);
  font-size: min(clamp(3.65rem, 5.35vw, 5.5rem), 14.4cqi);
}

.hero h1 > span:not(.nowrap),
.pricing-card h2 > span,
.final-cta h2 > span {
  color: transparent;
  background: linear-gradient(100deg, #c95d7b 0%, #da58e5 30%, #9084ff 55%, #2a9cfe 78%, #00b8ae 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

/* Keep a quoted phrase on one line so narrow screens break before it, not inside it. */
.nowrap {
  white-space: nowrap;
}

/* Bold lead line paired tightly with the description, as on the old Carrd site.
   Signals ADHD-led design without suggesting the app is exclusive. */
.hero-tagline {
  max-width: 530px;
  margin: 26px 0 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Body color under the bold white tagline; the tagline's weight makes it the header. */
.hero-description {
  max-width: 530px;
  margin: 6px 0 0;
  color: var(--body);
  font-size: 1.12rem;
  line-height: 1.65;
}

/* Second paragraph names the small design choices other apps lack, spaced as its own thought. */
.hero-extras {
  margin-top: 14px;
}

.hero-inline-link {
  display: inline-block;
  margin-left: 0.24em;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 12px;
}

.app-store-badge {
  display: inline-flex;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

/* White badge variant so the main call to action stands out on the dark page. */
.app-store-badge img {
  width: 166px;
  height: auto;
}

@media (min-width: 821px) {
  .hero-actions .app-store-badge img,
  .price-block .app-store-badge img,
  .final-cta .app-store-badge img {
    width: 200px;
  }
}

/* Keep Apple's official badge at its standard compact header dimensions. */
.nav-cta img {
  width: 120px;
}

.text-link {
  color: var(--body);
  font-weight: 600;
}

.text-link span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Lead-in to the App Store badge, carried over from the Carrd site. */
.trial-lead {
  margin: 28px 0 0;
  color: var(--body);
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-secondary-link {
  margin: 20px 0 0;
}

.proof-strip cite {
  display: block;
  margin-top: 10px;
  color: var(--quiet);
  font-size: 0.82rem;
  font-style: normal;
}

/* Hero screenshot sits in the grid's right column, centred on the headline. */
.hero-device {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 360px);
  margin: 0;
}

/* Rainbow light streaks burst out from behind the phone, carried over from an earlier Propelo site.
   The phone covers the center, so only thin streaks show around it: no haze on the screenshot. */
.hero-device::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 250%;
  aspect-ratio: 1;
  background: url("assets/light-streaks.svg") center / contain no-repeat;
  opacity: 0.9;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-device img {
  position: relative;
  width: 100%;
  height: auto;
}

.proof-strip {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.proof-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.225fr 1.225fr;
  gap: 0;
}

.proof-grid > * {
  margin: 0;
  padding: 40px 34px;
}

.proof-grid > * + * {
  border-left: 1px solid var(--line);
}

.proof-lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
}

.proof-lead > p {
  margin: 0;
}

/* Names the quotes as beta feedback rather than implying an established user base. */
.proof-eyebrow {
  margin: 0 0 10px;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof-grid blockquote {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.section {
  position: relative;
  padding: 130px 0;
}

section[id] {
  scroll-margin-top: 88px;
}

/* Preserve links to the retired sections at their new destinations. */
.anchor-target {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: 88px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.founder-copy h2,
.pricing-card h2 {
  /* Calm section headings (32px on phones, 48px max) so the hero headline stays the page's one big statement. */
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--body);
  font-size: 1.05rem;
}

.intro-section {
  overflow: hidden;
  background: var(--bg);
}

/* Why: four principles read straight down in one narrow column, like the old Carrd page. */
.why-principles {
  display: grid;
  gap: 44px;
  max-width: 680px;
}

.why-principle h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: balance;
}

.why-principle p {
  margin: 0;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Closing founder credit under the principles, linking to the founder section. */
.why-founder {
  max-width: 680px;
  margin: 56px 0 0;
  color: var(--body);
}

/* Why already ends with generous space, so Features starts without extra top padding.
   Two classes so this beats the phone padding rule for .section further down. */
.section.features {
  padding-top: 0;
}

/* Each feature group is a row: its screenshot on the left, the list on the right.
   A group without a screenshot still lands in the copy column, lined up with the rows above. */
.feature-group {
  display: grid;
  grid-template-areas: "device copy";
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
}

.feature-group + .feature-group {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.feature-group-device {
  grid-area: device;
  justify-self: center;
  width: min(100%, 300px);
  margin: 0;
}

.feature-group-device img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.4));
}

.feature-group-copy {
  grid-area: copy;
  min-width: 0;
}

/* Small plain group name, matching the FAQ's "Long answer" label rather than an uppercase eyebrow. */
.feature-group-label {
  margin: 0;
  color: #bac6ee;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}

.feature-group-label + .feature-points {
  margin-top: 18px;
}

.feature-points {
  display: grid;
  gap: 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-point {
  position: relative;
  padding-left: 28px;
}

/* A blue check badge marks each line as a feature; the tick is an inline SVG so no asset is needed. */
.feature-point::before {
  position: absolute;
  top: 0.12em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #587aff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  content: "";
}

.feature-point strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.feature-point span {
  display: block;
  margin-top: 5px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

.founder-copy > p,
.founder-story-long p { color: var(--body); }

.founder {
  background: var(--bg);
}

.founder-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  /* Top-align so opening the long story grows the text downward without pushing the portrait down. */
  align-items: start;
  gap: clamp(60px, 10vw, 150px);
}

.founder-portrait {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.1);
  object-fit: cover;
}

.founder-copy > p,
.founder-story-long p {
  font-size: 1.06rem;
}

.founder-copy details {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.founder-copy summary,
.faq-list summary {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.founder-copy summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.founder-copy summary span,
.faq-list summary span {
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 180ms ease;
}

details[open] > summary span {
  transform: rotate(45deg);
}

.founder-story-long {
  padding-bottom: 18px;
}

.signature {
  color: #fff !important;
  font-weight: 600;
}

.pricing {
  padding-top: 30px;
}

.pricing-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 60px;
  padding: 70px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
}

.pricing-card > div:first-child > p:first-of-type {
  max-width: 580px;
  color: var(--body);
  font-size: 1.15rem;
}

.price-block {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-block > p {
  margin: 0;
  line-height: 1;
}

.price-block strong {
  font-size: 4.6rem;
  letter-spacing: -0.06em;
}

.price-block span {
  color: var(--body);
}

.price-block small {
  margin: 10px 0 24px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

/* The billing mechanics as fine print under the trial pitch. */
.trial-facts {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: 0.8rem;
  line-height: 1.5;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list p {
  max-width: 900px;
  margin: -4px 0 24px;
  color: var(--body);
  font-size: 1rem;
}

/* Paragraphs inside one answer sit 20px apart (the -4px top margin collapses
   into the 24px above), so the end of an answer gets a bigger gap to keep it
   clearly separate from the next question. */
.faq-list details > p:last-child {
  margin-bottom: 40px;
}

/* Links are unstyled site-wide, so give FAQ links a white underline to stand out
   from the answer text. */
.faq-list p a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.faq-list p a:hover {
  text-decoration-color: currentColor;
}

/* Short answer, then the indented long answer with a small "Long answer"
   label above it. Both use the standard body text color. */
.faq-list .short-answer {
  margin: 6px 0 28px;
}

.faq-list .long-answer {
  max-width: 900px;
  margin: 0 0 40px;
  padding-left: 26px;
}

.long-answer-tag {
  display: block;
  margin-bottom: 8px;
  color: #bac6ee;
  font-size: 0.78rem;
  font-weight: 600;
}

.faq-list .long-answer p {
  margin: 0 0 14px;
  color: var(--body);
  font-size: 1rem;
}

.faq-list .long-answer p:last-child {
  margin-bottom: 0;
}

/* Closing row under the FAQ that links out to the Carrd contact form. */
.faq-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  scroll-margin-top: 88px;
}

.faq-contact h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.faq-contact p {
  margin: 0;
  color: var(--body);
}

.final-cta {
  position: relative;
  display: grid;
  min-height: 670px;
  place-items: center;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
}

.final-cta .shell {
  position: relative;
  z-index: 2;
}

/* The hero's light streaks again behind the closing headline, dimmer so the text stays readable.
   The mask clears the very center and fades the outer edge. */
.final-cta::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(1300px, 190%);
  aspect-ratio: 1;
  background: url("assets/light-streaks.svg") center / contain no-repeat;
  opacity: 0.55;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(circle, transparent 12%, #000 30%, #000 50%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 12%, #000 30%, #000 50%, transparent 70%);
}

.final-cta h2 {
  font-size: clamp(2.625rem, 5.5vw, 5rem);
}

.final-cta p {
  margin: 24px 0 30px;
  color: var(--body);
  font-size: 1.05rem;
}

/* Trial lead-in above the closing badge; bolder than the paragraph style above. */
.final-cta .trial-lead {
  margin: 0 0 12px;
  color: var(--body);
  font-weight: 600;
}

.site-footer {
  padding: 80px 0 30px;
  border-top: 1px solid var(--line);
  background: #0a0a10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 50px;
}

.footer-grid > div:first-child p,
.footer-bottom {
  color: var(--quiet);
  font-size: 0.8rem;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  color: var(--quiet);
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
}

/* Keeps the copyright and the "last updated" stamp together as one meta group. */
.footer-bottom-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

/* A compact, non-blocking choice shown only where Google Analytics requires
   prior consent. Both actions receive equal visual weight. */
.analytics-consent {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: min(calc(100% - 44px), 390px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: var(--heading);
  background: rgba(18, 18, 28, 0.97);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.analytics-consent h2 {
  margin: 0;
  font-size: 1.05rem;
}

.analytics-consent p {
  margin: 10px 0 18px;
  color: var(--body);
  font-size: 0.88rem;
  line-height: 1.55;
}

.analytics-consent p a {
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.analytics-consent button {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(199, 192, 255, 0.5);
  border-radius: 11px;
  color: var(--heading);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.analytics-consent button:hover,
.analytics-consent button:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------
   Legal pages (privacy.html, terms.html)
   Long-form policy text opts out of the wide marketing grid in
   favour of a single narrow column with a comfortable line length.
   --------------------------------------------------------------- */

.legal-page {
  /* Clear the fixed header, then leave room to breathe above the title. */
  padding: 150px 0 110px;
}

.legal-shell {
  width: min(calc(100% - 48px), 760px);
  margin-inline: auto;
}

.legal-header {
  margin-bottom: 54px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.legal-updated {
  margin: 16px 0 0;
  color: var(--quiet);
  font-size: 0.88rem;
}

.legal-body h2 {
  margin: 56px 0 18px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.legal-body h3 {
  margin: 34px 0 14px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-body > h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 18px;
  color: var(--body);
  line-height: 1.75;
}

.legal-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--body);
}

.legal-body li {
  margin-bottom: 9px;
  line-height: 1.7;
}

/* Policy text carries real links (email, regulator pages), so mark them
   clearly rather than relying on the unstyled site-wide link treatment. */
.legal-body a,
.legal-back a {
  color: #d8d3ff;
  text-decoration: underline;
  text-decoration-color: rgba(216, 211, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.legal-body a:hover,
.legal-body a:focus-visible,
.legal-back a:hover,
.legal-back a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}

/* Long URLs in the compliance sections must not widen the column. */
.legal-body a {
  overflow-wrap: anywhere;
}

.legal-footnote {
  margin: 48px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.85rem;
}

.legal-back {
  margin: 40px 0 0;
  font-size: 0.9rem;
}

/* Homepage copies of the legal pages (see the comment above them in index.html).
   Hidden unless the URL fragment targets them, which only happens with JavaScript
   off; with it on, the <head> script has already redirected to the real page. */
.legal-mirror {
  display: none;
}

.legal-mirror:target {
  display: block;
}

/* The mirror's title is an h2 so the homepage keeps a single h1. */
.legal-mirror .legal-header h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

@media (max-width: 820px) {
  .legal-page { padding: 116px 0 88px; }
  .legal-shell { width: min(calc(100% - 36px), 760px); }
  .legal-body h2 { margin-top: 46px; font-size: 1.32rem; }
}

@media (max-width: 560px) {
  .legal-shell { width: min(calc(100% - 28px), 760px); }
  .legal-header { margin-bottom: 42px; }
}

@media (max-width: 1080px) {
  .primary-nav { gap: 18px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(410px, 0.8fr); }
  .hero h1 { font-size: min(clamp(3.6rem, 6.5vw, 5rem), 14.4cqi); }
  .feature-group { grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr); gap: 40px; }
  .feature-group-device { width: min(100%, 280px); }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 36px), var(--max-width)); }
  .nav-shell { min-height: 72px; gap: 12px; }
  /* Push the header badge right and keep the menu icon last, beside it. */
  .nav-cta { order: 1; margin-left: auto; }
  .menu-toggle { display: block; order: 2; margin-left: 0; }
  .primary-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(14, 14, 21, 0.97);
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 11px 10px; }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

  .hero { min-height: auto; padding-top: 92px; padding-bottom: 72px; }
  .hero-grid { display: block; min-height: auto; }
  .hero-copy { padding-top: 35px; }
  .hero h1 { font-size: min(clamp(3.2rem, 11vw, 5.2rem), 14.4cqi); }
  .hero-description { max-width: 580px; }
  .hero-device { width: min(72vw, 320px); margin: 72px auto 0; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid > * + * { border-top: 1px solid var(--line); border-left: 0; }
  .proof-grid > * { padding: 26px 0; }

  .section { padding: 96px 0; }
  /* Put each explanation before its tall screenshot on smaller screens. */
  .feature-group {
    grid-template-areas: "copy" "device";
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .feature-group + .feature-group { margin-top: 56px; padding-top: 56px; }
  /* A text-only group has no screenshot row, so drop it to avoid an empty gap below the list. */
  .feature-group-text { grid-template-areas: "copy"; }
  .feature-group-device { width: min(100%, 260px); }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-portrait { width: min(68vw, 340px); }
  .pricing-card { grid-template-columns: 1fr; padding: 50px 38px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--max-width)); }
  .hero h1 { font-size: min(clamp(3rem, 14.3vw, 4.25rem), 14.4cqi); }
  .hero-tagline { font-size: 1.1rem; }
  .hero-description { font-size: 1.06rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .feature-group-device { width: min(100%, 240px); }
  .pricing-card { padding: 38px 24px; }
  .price-block strong { font-size: 3.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
  .nav-cta img { width: 104px; }
  .analytics-consent { right: 14px; bottom: 14px; width: calc(100% - 28px); }

  /* Phone readability: the desktop sizes for secondary text drop below 16px on
     a small screen, and the tight gaps make sections run together. Raise body
     text to at least 16px and give headings, paragraphs, and sections more room. */
  .section,
  .intro-section { padding-block: 104px; }
  .section-heading,
  .intro-section .section-heading { margin-bottom: 36px; }
  .section-heading > p:last-child { margin-top: 28px; font-size: 1.1rem; }

  .proof-grid > * { padding: 36px 0; }

  .why-principles { gap: 48px; }
  .why-principle h3 { margin-bottom: 14px; font-size: 1.375rem; }
  .why-principle p,
  .why-founder { font-size: 1.06rem; }
  .feature-group { gap: 56px; }
  .feature-group + .feature-group { margin-top: 80px; padding-top: 80px; }
  .feature-group-label { font-size: 0.92rem; }
  .feature-points { gap: 28px; margin-top: 36px; }
  .feature-point strong { font-size: 1.06rem; }
  .feature-point span { margin-top: 8px; font-size: 1rem; }

  /* Let the heading and list share the phone grid with the image between them.
     Text-only groups keep their existing heading-and-list spacing. */
  .feature-group:not(.feature-group-text) { grid-template-areas: "heading" "device" "points"; }
  .feature-group:not(.feature-group-text) .feature-group-copy { display: contents; }
  .feature-group:not(.feature-group-text) .feature-group-label { grid-area: heading; }
  .feature-group:not(.feature-group-text) .feature-points {
    grid-area: points;
    /* The grid gap supplies the space below the image. */
    margin-top: 0;
  }

  /* Sibling margins collapse, so paragraphs sit 22px apart. */
  .founder-copy > p,
  .founder-story-long p { margin-block: 22px; font-size: 1.06rem; line-height: 1.7; }

  .trial-facts { font-size: 0.88rem; }

  /* The -4px top margin collapses into the bottom margin, leaving 24px between answer paragraphs. */
  .faq-list summary { font-size: 1.06rem; }
  .faq-list p,
  .faq-list .long-answer p { font-size: 1rem; }
  .faq-list p { margin-bottom: 28px; }
  .faq-list details > p:last-child { margin-bottom: 48px; }
  .faq-list .short-answer { margin: 6px 0 32px; }
  .faq-list .long-answer { margin-bottom: 48px; }
  .faq-list .long-answer p { margin-bottom: 18px; }
  .long-answer-tag { font-size: 0.84rem; }

  .footer-grid > div:first-child p,
  .footer-grid > div:not(:first-child),
  .footer-bottom { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
