/* ============================================================
   Clxrity landing / homepage — editorial marketing page.
   Reuses the design tokens from styles.css.
   ============================================================ */

body { overflow-x: hidden; }
.lp { display: block; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ---- Nav ---- */
.lp-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 80%, transparent); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); }
.lp-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.lp-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.lp-brand .wm { font-family: var(--serif); font-size: 23px; letter-spacing: -0.01em; }
.lp-nav-links { display: flex; align-items: center; gap: 28px; }
.lp-nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.15s ease; }
.lp-nav-links a:hover { color: var(--ink); }
.lp-nav-links a.nav-cta { padding: 10px 20px; background: var(--ink); color: var(--on-accent); border-radius: 11px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity 0.15s ease; }
.lp-nav-links a.nav-cta:hover { color: var(--on-accent); opacity: 0.88; }
@media (max-width: 720px) { .lp-nav-links .hide-sm { display: none; } }

/* ---- Buttons / CTAs ----
   iPhone and the web are the same product, so the two doors into it get
   identical weight: same fill, same size, same two-line badge. Neither is
   the fallback for the other. */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.appstore, .webapp {
  display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: var(--on-accent);
  border: 1px solid var(--ink); padding: 12px 20px 12px 18px; border-radius: 13px;
  text-decoration: none; transition: transform 0.15s ease, opacity 0.15s ease;
}
.appstore:hover, .webapp:hover { transform: translateY(-1px); }
.appstore svg, .webapp svg { width: 26px; height: 26px; flex: none; }
.appstore .l1, .webapp .l1 { font-size: 10px; letter-spacing: 0.3px; opacity: 0.85; display: block; line-height: 1.1; }
.appstore .l2, .webapp .l2 { font-size: 18px; font-weight: 600; display: block; line-height: 1.15; letter-spacing: -0.01em; }

/* ---- Hero ---- */
.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 62px; line-height: 1.03; letter-spacing: -0.015em; margin: 18px 0 0; }
.hero .lead { font-size: 20px; line-height: 1.5; color: var(--ink-soft); margin: 22px 0 30px; max-width: 30em; }
.hero-note { font-size: 13px; color: var(--ink-faint); margin-top: 18px; }

/* Phone mockup */
.device-stage { display: flex; justify-content: center; }
.device {
  width: 300px; border-radius: 46px; background: var(--ink); padding: 12px;
  box-shadow: 0 40px 80px rgba(28,26,23,0.28), 0 8px 20px rgba(28,26,23,0.12);
  position: relative;
}
.device::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.18); z-index: 2; }
.device-screen {
  border-radius: 36px; overflow: hidden; background: var(--paper);
  height: 604px; padding: 42px 16px 16px; display: flex; flex-direction: column; gap: 12px;
}
.d-hd { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--ink-faint); }
.d-greet { font-family: var(--serif); font-size: 22px; margin: -2px 0 4px; }
.d-clarity { background: var(--accent-grad); color: #fff; border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-glow); }
.d-ring { width: 58px; height: 58px; flex: none; }
.d-clarity .cv { font-family: var(--serif); font-size: 15px; color: #fff; }
.d-clarity .ct { font-family: var(--serif); font-size: 16px; color: #fff; }
.d-clarity .cs { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.82); margin-top: 2px; }
.d-kick { font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--ink-soft); margin-top: 2px; }
.d-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 10px 12px; box-shadow: var(--shadow-card); }
.d-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; }
.d-row + .d-row { border-top: 1px solid var(--line-soft); }
.d-bar { width: 3px; height: 26px; border-radius: 2px; flex: none; }
.d-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(28,26,23,0.28); flex: none; }
.d-check.on { background: var(--ink); border-color: var(--ink); display: flex; align-items: center; justify-content: center; }
.d-check.on svg { width: 10px; height: 10px; color: var(--on-accent); }
.d-t { font-size: 12px; font-weight: 700; }
.d-s { font-size: 10px; color: var(--ink-soft); }
.d-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 0 4px; border-top: 1px solid var(--line); color: var(--ink-faint); }
.d-tabbar svg { width: 17px; height: 17px; }
.d-tabbar .on { color: var(--ink); }

/* ---- Sections ---- */
.section { padding: 68px 0; }
.section.tint { background: linear-gradient(to bottom, transparent, rgba(28,26,23,0.02)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; }
.section-head .eyebrow { color: var(--ink-faint); }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.1; letter-spacing: -0.01em; margin: 14px 0 0; }
.section-head p { font-size: 18px; color: var(--ink-soft); line-height: 1.5; margin-top: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-card); }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 700; margin: 0 0 7px; }
.feature p { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }

/* Split showcase */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: -1; }
.split-media { display: flex; justify-content: center; }
.split h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; letter-spacing: -0.01em; }
.split p { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin-top: 16px; }
.split .points { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.split .pt { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.split .pt .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--on-accent); flex: none; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.split .pt .dot svg { width: 11px; height: 11px; }

/* A framed "panel" mock for showcases */
.panel { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px rgba(28,26,23,0.10); }
.panel .glow-mini { background: var(--accent-grad); color: #fff; border-radius: 16px; padding: 18px; }
.gpa-mini { display: flex; }
.gpa-mini > div { flex: 1; }
.gpa-mini .lb { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: rgba(255,255,255,0.72); }
.gpa-mini .vv { font-family: var(--serif); font-size: 30px; color: #fff; }
.chip-mini { display: inline-flex; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }

/* CTA band */
.cta-band { background: var(--accent-grad); color: #fff; border-radius: 28px; padding: 60px 48px; text-align: center; box-shadow: var(--shadow-glow); }
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.08; letter-spacing: -0.01em; color: #fff; }
.cta-band p { font-size: 18px; color: rgba(255,255,255,0.8); margin: 16px auto 30px; max-width: 34em; }
.cta-band .cta-row { justify-content: center; }
.cta-band .appstore, .cta-band .webapp { background: #fff; color: var(--ink); border-color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 52px 0 40px; margin-top: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .fbrand .wm { font-family: var(--serif); font-size: 22px; }
.footer .fbrand p { font-size: 14px; color: var(--ink-soft); margin-top: 12px; max-width: 26em; line-height: 1.5; }
.foot-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-faint); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0 48px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .device-stage { order: -1; }
  .split, .split.rev .split-media { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-media, .split.rev .split-media { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 44px; }
  .section-head h2, .split h2 { font-size: 32px; }
  .cta-band { padding: 44px 24px; }
  .cta-band h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
