/* ══════════════════════════════════════════════════════════════════════
   Theme Store: lifted from the iOS app's design system (SheetKit.swift).
   Soft gray ground, white cards, ink type, one indigo accent with a
   diamond yellow. Shared by the landing page and both legal pages.
   Light only, like the app.
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --ts-ground:  #f2f2f7;  /* DS.bg     */
  --ts-surface: #ffffff;  /* DS.card   */
  --ts-chip:    #efeef3;  /* DS.chip   */
  --ts-line:    rgba(20, 20, 43, 0.07); /* DS.line */
  --ts-ink:     #1d1d26;  /* DS.ink    */
  --ts-muted:   #5f5f6b;
  --ts-faint:   #8a8a94;  /* DS.gray   */
  --ts-accent:  #5458f7;  /* DS.accent */
  --ts-on-accent: #ffffff;
  --ts-yellow:  #ffd159;  /* DS.yellow */
  --ts-hot:     #fa6e5a;  /* DS.hot    */
  --ts-green:   #6cb28e;  /* DS.green  */
  --ts-shadow:  0 10px 30px rgba(29, 29, 38, 0.08);
  --ts-header:  rgba(242, 242, 247, 0.85);
  --ts-band:    #5458f7;  /* the privacy band, in the accent like the Premium card */
  --ts-on-band: #ffffff;

  --ts-display: "Nunito", system-ui, sans-serif;
  --ts-text:    "Nunito", system-ui, sans-serif;

  /* Remap the site-wide tokens so the shared header, footer and FAQ follow Theme Store */
  --bg: var(--ts-ground);
  --bg-elevated: var(--ts-surface);
  --text: var(--ts-ink);
  --text-muted: var(--ts-muted);
  --text-faint: var(--ts-faint);
  --border: var(--ts-line);
  --border-hover: var(--ts-faint);
  --accent: var(--ts-accent);
  --font-sans: var(--ts-text);
  --font-heading: var(--ts-display);
}

body { background: var(--ts-ground); color: var(--ts-ink); }

.site-header { background: var(--ts-header); border-color: var(--ts-line); }
.site-header .logo, .site-footer .logo {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--ts-ink);
}
.nav-link { color: var(--ts-muted); }
.nav-link:hover { color: var(--ts-ink); background: var(--ts-chip); }
.nav-link-cta { color: var(--ts-on-accent); background: var(--ts-accent); border-color: transparent; }
.nav-link-cta:hover { color: var(--ts-on-accent); background: var(--ts-accent); opacity: 0.9; }

.site-footer { background: var(--ts-surface); border-color: var(--ts-line); }
.footer-col a:hover { color: var(--ts-ink); }

/* ── Wordmark: the app icon, then the name ── */
.ts-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ts-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ts-ink);
}
.ts-wordmark img { width: 34px; height: 34px; border-radius: 9px; }

.ts-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ts-accent);
}

.ts-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ts-surface);
  color: var(--ts-ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--ts-shadow);
}
.ts-pill .gem { color: var(--ts-accent); }

.ts-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--ts-ink);
  color: var(--ts-ground);
  font-weight: 800;
  font-size: 16px;
  transition: transform 0.12s ease-out, opacity 0.12s ease-out;
}
.ts-button:hover { opacity: 0.9; }
.ts-button:active { transform: scale(0.98); }
.ts-button small { display: block; font-weight: 600; font-size: 11px; opacity: 0.7; }
.ts-button span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.ts-button svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ── Landing ── */
.ts-hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 28px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.ts-hero h1 {
  margin: 22px 0 18px;
  font-family: var(--ts-display);
  font-weight: 900;
  font-size: clamp(44px, 6.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.ts-hero h1 em { font-style: normal; color: var(--ts-accent); }
.ts-lead { max-width: 560px; margin: 0 0 28px; color: var(--ts-muted); font-size: 18px; line-height: 1.7; }
.ts-meta { margin: 14px 0 0; color: var(--ts-faint); font-size: 14px; }
.ts-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

.ts-phones { position: relative; display: flex; justify-content: center; }
.ts-phone {
  width: min(46%, 250px);
  border-radius: 34px;
  padding: 8px;
  /* A device bezel: dark in both appearances. */
  background: #1d1d26;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 36px 70px rgba(29, 29, 38, 0.22);
}
.ts-phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.ts-phones .ts-phone:first-child { transform: rotate(-4deg) translateY(18px); margin-right: -26px; }
.ts-phones .ts-phone:last-child { transform: rotate(4deg); z-index: 1; }

.ts-section { max-width: 1160px; margin: 0 auto; padding: 72px 28px; }
.ts-section h2, .ts-download h2 {
  margin: 0 0 14px;
  font-family: var(--ts-display);
  font-weight: 900;
  font-size: clamp(32px, 4.8vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.ts-section > p { max-width: 640px; margin: 0; color: var(--ts-muted); font-size: 17px; line-height: 1.7; }

.ts-features {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ts-feature {
  padding: 26px;
  border-radius: 22px;
  background: var(--ts-surface);
  box-shadow: var(--ts-shadow);
}
.ts-feature h3 { margin: 18px 0 8px; font-family: var(--ts-display); font-weight: 900; font-size: 20px; }
.ts-feature p { margin: 0; color: var(--ts-muted); font-size: 15.5px; line-height: 1.65; }
.ts-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ts-accent) 14%, transparent);
  color: var(--ts-accent);
}
.ts-icon svg { width: 24px; height: 24px; }
.ts-icon.is-hot { background: color-mix(in srgb, var(--ts-hot) 16%, transparent); color: var(--ts-hot); }
.ts-icon.is-green { background: color-mix(in srgb, var(--ts-green) 18%, transparent); color: var(--ts-green); }

.ts-themes {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.ts-theme { margin: 0; }
.ts-theme img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--ts-line), var(--ts-shadow);
}
.ts-theme figcaption { margin-top: 12px; color: var(--ts-ink); font-size: 14px; font-weight: 800; text-align: center; }

.ts-steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.ts-steps li {
  counter-increment: step;
  padding: 26px;
  border-radius: 22px;
  background: var(--ts-surface);
  box-shadow: var(--ts-shadow);
  color: var(--ts-muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.ts-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ts-accent);
  color: var(--ts-on-accent);
  font-weight: 900;
}
.ts-steps strong { display: block; margin-bottom: 6px; color: var(--ts-ink); font-size: 18px; font-weight: 900; }

.ts-plans {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ts-plan { padding: 30px; border-radius: 24px; background: var(--ts-surface); box-shadow: var(--ts-shadow); }
.ts-plan.is-premium { background: var(--ts-accent); color: var(--ts-on-accent); }
.ts-plan h3 { margin: 0 0 10px; font-family: var(--ts-display); font-weight: 900; font-size: 24px; }
.ts-plan p { margin: 0 0 14px; line-height: 1.65; color: var(--ts-muted); }
.ts-plan.is-premium p { color: inherit; opacity: 0.85; }
.ts-plan ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.ts-plan:not(.is-premium) li { color: var(--ts-muted); }

.ts-private {
  margin: 24px auto 0;
  max-width: 1104px;
  padding: 48px;
  border-radius: 30px;
  background: var(--ts-band);
  color: var(--ts-on-band);
  box-shadow: 0 0 0 1px var(--ts-line);
}
.ts-private h2 { margin: 0 0 14px; font-family: var(--ts-display); font-weight: 900; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.1; }
.ts-private p { max-width: 720px; margin: 0 0 18px; opacity: 0.78; font-size: 17px; line-height: 1.7; }
.ts-private a { color: var(--ts-on-band); font-weight: 800; text-decoration: underline; text-decoration-color: var(--ts-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.ts-download { padding: 96px 28px 110px; text-align: center; }
.ts-download img { border-radius: 24px; box-shadow: var(--ts-shadow); }
.ts-download p { max-width: 560px; margin: 0 auto 26px; color: var(--ts-muted); font-size: 17px; }

/* ── Legal pages ── */
.legal { max-width: 790px; margin: 0 auto; padding: 72px 24px 120px; }
.legal h1 { margin: 18px 0 8px; font-family: var(--ts-display); font-weight: 900; font-size: clamp(36px, 7vw, 50px); line-height: 1.05; letter-spacing: -0.02em; }
.legal .updated { color: var(--ts-faint); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-family: var(--ts-display); font-weight: 900; font-size: 22px; margin: 42px 0 12px; }
.legal p, .legal li { color: var(--ts-muted); font-size: 15.5px; line-height: 1.75; }
.legal strong { color: var(--ts-ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal a { color: var(--ts-ink); text-decoration: underline; text-decoration-color: var(--ts-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal .table-wrap { overflow-x: auto; margin: 14px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ts-line); color: var(--ts-muted); }
.legal th { color: var(--ts-ink); font-weight: 800; }
.ts-notice {
  margin: 28px 0;
  padding: 22px;
  border-radius: 18px;
  background: var(--ts-surface);
  box-shadow: inset 4px 0 0 var(--ts-accent), var(--ts-shadow);
}
.ts-notice p { margin: 0; }

@media (max-width: 900px) {
  .ts-hero { grid-template-columns: 1fr; text-align: center; }
  .ts-lead, .ts-section > p { margin-inline: auto; }
  .ts-pills { justify-content: center; }
  .ts-features, .ts-steps, .ts-plans { grid-template-columns: 1fr; }
  .ts-themes { grid-template-columns: repeat(3, 1fr); }
  .ts-section { text-align: center; }
  .ts-feature, .ts-steps li, .ts-plan { text-align: left; }
}
@media (max-width: 620px) {
  .nav { padding: 0 16px; }
  .ts-hero { padding: 40px 16px 40px; gap: 44px; }
  .ts-section { padding: 56px 16px; }
  .ts-private { margin-inline: 16px; padding: 32px 22px; }
  .ts-download { padding: 72px 16px 88px; }
  .ts-themes { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .legal { padding: 48px 16px 96px; }
  .legal table { font-size: 13.5px; }
  .legal th, .legal td { padding: 8px 6px; }
}
