/*
 * Profik — landing styles.
 *
 * Every colour here comes from `profik/tamagui.config.ts` (the contractor app's
 * palette is identical). The card, chip and offer-row geometry is transcribed
 * from the onboarding mock components in `profik/src/components/onboarding/`
 * and `profik-contractor/src/components/onboarding/OnboardingMocks.tsx`, which
 * were themselves transcribed from `profi-design.pen`. Keep them in step: the
 * page should read as the same product as the app, not as a lookalike.
 */

/* ---------------------------------------------------------------- tokens -- */

:root {
  --accent: #ff6c00;
  --accent-hover: #e85d00;
  --accent-press: #c24e00;
  --accent-grad-start: #ff8a2b;
  --accent-grad-end: #e85d00;
  --accent-light: #fff4eb;

  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fa;
  --bg-card: #ffffff;
  --surface-input: #f3f4f6;

  --border: #e5e7eb;
  --border-subtle: #f0f0f0;
  --divider: #f3f4f6;

  --text-primary: #1a1d2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;

  --warning: #f59e0b;
  --success: #10b981;
  --info-bg: #dbeafe;
  --info-text: #2563eb;

  --blob-soft: #ffeee0;
  --blob-mid: #ffd8b5;
  --blob-strong: #ffc894;

  --hero-grad-start: #fff1e6;
  --hero-grad-end: #ffe0cb;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 14px 18px rgba(0, 0, 0, 0.12);
  --shadow-float-lg: 0 18px 36px rgba(0, 0, 0, 0.12);

  --font-display: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --page: 1120px;
  --radius-card: 22px;
  --radius-tile: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-hover: #ff8a2b;
    --accent-press: #e85d00;
    --accent-light: #3d2414;

    --bg-primary: #0f1117;
    --bg-secondary: #1a1d2e;
    --bg-card: #222639;
    --surface-input: #1e2235;

    --border: #2d3148;
    --border-subtle: #2d3148;
    --divider: #2d3148;

    --text-primary: #f0f1f4;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --info-bg: #1e3a5f;
    --info-text: #93c5fd;

    --blob-soft: #2a1b10;
    --blob-mid: #3d2414;
    --blob-strong: #4a2c17;

    --hero-grad-start: #1a1206;
    --hero-grad-end: #0f1117;

    --shadow-float: 0 14px 24px rgba(0, 0, 0, 0.5);
    --shadow-float-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
  }
}

/* ------------------------------------------------------------------ base -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  display: none;
}

.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;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  margin-right: auto;
}

.brand__mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  stroke-width: 2.6;
}

.site-nav {
  display: none;
  gap: 26px;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text-primary);
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-input);
}

.lang a {
  min-width: 34px;
  min-height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.lang a:hover {
  color: var(--text-primary);
}

.lang a[aria-current] {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-card);
}

@media (min-width: 1000px) {
  .site-nav {
    display: flex;
  }
}

/* -------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-grad-start), var(--accent-grad-end));
  color: #fff;
  box-shadow: 0 8px 18px rgba(232, 93, 0, 0.28);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 10px 22px rgba(232, 93, 0, 0.36);
}

.btn--outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn--onOrange {
  background: #fff;
  color: var(--accent-press);
}

.btn--onOrange:hover {
  color: var(--accent-press);
}

.btn--ghostOnOrange {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--ghostOnOrange:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}

.link-arrow .icon {
  width: 17px;
  height: 17px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--hero-grad-start), var(--hero-grad-end));
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  padding: 52px 0 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  color: var(--accent-press);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow .icon {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(34px, 8vw, 58px);
}

.hero__lead {
  max-width: 30em;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 17px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.hero__note .icon {
  width: 15px;
  height: 15px;
}

.hero__art {
  display: flex;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 56px;
    padding: 84px 0 96px;
  }
}

/* Decorative ellipses, transcribed from SLIDE_ART in the client app's
   OnboardingBackground.tsx. Coordinates there are points on a 393pt-wide
   design; here they are percentages of the hero box. */
.blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob--1 {
  left: -8%;
  top: 6%;
  width: 46%;
  height: 58%;
  background: var(--blob-mid);
  opacity: 0.7;
}

.blob--2 {
  right: -6%;
  top: -12%;
  width: 42%;
  height: 62%;
  background: var(--blob-soft);
}

.blob--3 {
  right: 14%;
  bottom: -18%;
  width: 30%;
  height: 46%;
  background: var(--blob-strong);
  opacity: 0.35;
}

.blob--ring {
  left: 6%;
  bottom: -10%;
  width: 170px;
  height: 170px;
  background: none;
  border: 1.5px solid var(--blob-strong);
  opacity: 0.6;
}

.sparkle {
  position: absolute;
  color: var(--accent);
  opacity: 0.85;
}

.sparkle--1 {
  right: 7%;
  top: 16%;
  width: 22px;
  height: 22px;
}

.sparkle--2 {
  left: 5%;
  bottom: 22%;
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------ mock cards -- */

/* The card is a light surface in every context, so it sets its own text
   colour rather than inheriting. Without this it inherits the white of
   `.band--orange` and the job title and price vanish on the light theme. */
.mock {
  color: var(--text-primary);
  width: 100%;
  max-width: 320px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock--lg {
  box-shadow: var(--shadow-float-lg);
}

.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mock__step {
  font-size: 12px;
  font-weight: 600;
}

.mock__muted {
  color: var(--text-muted);
  font-size: 11px;
}

.mock__bar {
  height: 3px;
  border-radius: 999px;
  background: var(--border);
}

.mock__bar span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.mock__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.mock__sub {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.mock__label {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mock__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chips {
  display: flex;
  gap: 8px;
}

/* The selected/unselected pair below is the app's single most repeated visual
   rule — 1.5px accent border on accentLight, against 1px border on card. */
.chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}

.chip .icon {
  width: 16px;
  height: 16px;
}

.chip[data-selected] {
  border: 1.5px solid var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.offer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--bg-card);
}

.offer[data-selected] {
  border: 1.5px solid var(--accent);
  background: var(--accent-light);
}

.offer__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface-input);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.offer[data-selected] .offer__avatar {
  background: var(--accent);
  color: #fff;
}

.offer__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.offer__name {
  font-size: 12px;
  font-weight: 600;
}

.offer__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

.offer__meta .icon {
  width: 11px;
  height: 11px;
  color: var(--warning);
}

.offer__meta b {
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 600;
}

.offer__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.offer__price b {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.offer[data-selected] .offer__price b {
  color: var(--accent);
}

.offer__price span {
  color: var(--text-muted);
  font-size: 10px;
}

.mock__rule {
  height: 1px;
  background: var(--border);
}

.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-head__big {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.price-row__tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
}

.price-row__tick .icon {
  width: 11px;
  height: 11px;
}

.price-row span:nth-child(2) {
  flex: 1;
}

.price-row b {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.note-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.note-box .icon {
  width: 14px;
  height: 14px;
  flex: none;
}

/* The contractor app's open-job card. Price is Geist Mono there, so it is
   Geist Mono here. */
.job-card__top {
  display: flex;
  gap: 12px;
}

.job-card__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: var(--accent-light);
  color: var(--accent);
}

.job-card__tile .icon {
  width: 20px;
  height: 20px;
}

.job-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.job-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-card__cat {
  flex: 1;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.job-card__price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.job-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.job-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 11px;
}

.job-card__meta .icon {
  width: 12px;
  height: 12px;
}

.job-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info-text);
  font-size: 10px;
  font-weight: 600;
}

.pill--accent {
  background: var(--accent-light);
  color: var(--accent);
}

.credit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.credit-head__amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.credit-head__amount b {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.credit-head__amount span {
  font-size: 15px;
}

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

.band {
  padding: 68px 0;
}

.band--light {
  background: var(--bg-secondary);
}

.band--plain {
  background: var(--bg-primary);
}

.band--orange {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--accent-grad-start), var(--accent-grad-end));
  color: #fff;
}

/* A soft light fall, echoing the wave on the Profik Pro feature graphic. It
   fades to transparent on purpose: a flat rgba circle draws a hard diagonal
   seam straight across the cards sitting on top of it. */
.band--orange::after {
  content: "";
  position: absolute;
  right: -22%;
  top: -45%;
  width: 88%;
  height: 190%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.band__head {
  max-width: 42em;
  margin-bottom: 40px;
}

.band__head h2 {
  font-size: clamp(27px, 5vw, 38px);
}

.band__head p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 16px;
}

.band--orange .eyebrow {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.band--orange .band__head p,
.band--orange .steps__body {
  color: rgba(255, 255, 255, 0.9);
}

.section-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- fork ----- */

.fork {
  display: grid;
  gap: 18px;
  padding: 56px 0;
}

.fork__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.fork__card h2 {
  font-size: 23px;
}

.fork__card p {
  flex: 1;
  color: var(--text-secondary);
  font-size: 15px;
}

.fork__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
}

.fork__icon .icon {
  width: 23px;
  height: 23px;
}

@media (min-width: 800px) {
  .fork {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

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

.steps {
  display: grid;
  gap: 22px;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 14px;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.band--orange .step__num {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 5px;
}

.steps__body {
  color: var(--text-secondary);
  font-size: 14.5px;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ------------------------------------------------------------- services --- */

.split {
  display: grid;
  gap: 40px;
  margin-top: 52px;
}

@media (min-width: 1000px) {
  .split {
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: 56px;
  }
  .split--reverse > :first-child {
    order: 2;
  }
}

.cards {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--bg-card);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-light);
  color: var(--accent);
}

.card__icon .icon {
  width: 19px;
  height: 19px;
}

.card h3 {
  font-size: 16px;
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.card--soon {
  border-style: dashed;
  background: transparent;
}

.card--soon h3,
.card--soon p {
  color: var(--text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.tag .icon {
  width: 15px;
  height: 15px;
}

.band--orange .card,
.band--orange .tag {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.band--orange .card p {
  color: rgba(255, 255, 255, 0.88);
}

.band--orange .card__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* --------------------------------------------------------------- trust ---- */

.trust {
  display: grid;
  gap: 26px;
}

.trust__item {
  display: flex;
  gap: 13px;
}

.trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
}

.trust__icon .icon {
  width: 20px;
  height: 20px;
}

.trust h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.trust p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

@media (min-width: 640px) {
  .trust {
    grid-template-columns: 1fr 1fr;
    gap: 30px 36px;
  }
}

/* ----------------------------------------------------------------- faq ---- */

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border: 0;
  background: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq__q .icon {
  width: 19px;
  height: 19px;
  margin-left: auto;
  color: var(--text-muted);
  transition: transform 0.18s ease;
}

.faq__q[aria-expanded="true"] .icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq__who {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-input);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.faq__a {
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

.faq__a[hidden] {
  display: none;
}

/* ------------------------------------------------------------ final CTA --- */

.final {
  text-align: center;
}

.final h2 {
  font-size: clamp(27px, 5vw, 38px);
}

.final p {
  max-width: 36em;
  margin: 16px auto 0;
  color: var(--text-secondary);
}

.final__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

@media (min-width: 640px) {
  .final__actions {
    flex-direction: row;
  }
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

/* Not links: the apps are not published yet, so these are disabled by design.
   `js/main.js` turns them into real links when STORE_LINKS gains URLs. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-muted);
  text-align: left;
}

.store-badge .icon {
  width: 24px;
  height: 24px;
}

.store-badge span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
}

.store-badge[data-live] {
  color: var(--text-secondary);
  border-color: var(--text-primary);
}

.store-badge[data-live] b {
  color: var(--text-primary);
}

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

.site-footer {
  padding: 46px 0 110px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
}

.site-footer__grid {
  display: grid;
  gap: 26px;
}

.site-footer h4 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer li + li {
  margin-top: 7px;
}

.site-footer a {
  color: var(--text-secondary);
}

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

.site-footer__legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1.7fr 1fr 1.2fr 1fr;
    gap: 40px;
  }
}

@media (min-width: 1000px) {
  .site-footer {
    padding-bottom: 46px;
  }
}

/* ---------------------------------------------------------- sticky CTA ---- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-primary) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.sticky-cta .btn {
  flex: 1;
  min-height: 46px;
  padding: 0 12px;
  font-size: 14px;
}

@media (min-width: 1000px) {
  .sticky-cta {
    display: none;
  }
}

/* ------------------------------------------------------ legal documents --- */

.doc {
  max-width: 760px;
  padding-top: 44px;
  padding-bottom: 72px;
}

.doc h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 24px;
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 22px;
}

.doc h3 {
  margin: 28px 0 10px;
  font-size: 17px;
}

.doc p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}

.doc strong {
  color: var(--text-primary);
}

.doc__list {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}

.doc__list li {
  margin-bottom: 7px;
  list-style: disc;
}

ol.doc__list li {
  list-style: decimal;
}

.doc__draft {
  margin: 0 0 32px;
  padding: 16px 18px;
  border: 1px solid var(--warning);
  border-left-width: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--warning) 10%, transparent);
  color: var(--text-primary);
  font-size: 14.5px;
}

/* Wide tables scroll inside this box so the page itself never scrolls
   sideways. */
.doc__table {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.doc__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.doc__table th,
.doc__table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.doc__table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
}

.doc__table tr:last-child td {
  border-bottom: 0;
}
