@import "./tokens.css";

/* KalmTide product landing — calm night sky, Headspace-inspired rhythm:
   big friendly type, generous air, soft rounded cards. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 75% -5%, rgba(94, 119, 217, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 40%, rgba(111, 217, 201, 0.05), transparent 55%),
    radial-gradient(1000px 600px at 85% 90%, rgba(192, 156, 255, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Outfit", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

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

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font: 600 15px "Outfit", system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(143, 168, 255, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { background: rgba(143, 168, 255, 0.14); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-dim));
  border: none;
  color: #0a1026;
  box-shadow: 0 6px 24px rgba(143, 168, 255, 0.35);
}
.btn.primary:hover { box-shadow: 0 10px 30px rgba(143, 168, 255, 0.5); }
.btn.small { padding: 9px 18px; font-size: 13.5px; }

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 39, 72, 0.6);
}
.nav .container {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { width: 30px; height: 30px; }
.wordmark { font-size: 19px; font-weight: 600; letter-spacing: 0.04em; }
.wordmark b { color: var(--accent); font-weight: 600; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

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

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 110px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: 54px;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-strong), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin: 0 0 34px;
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

.trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 44px;
  font-size: 13.5px;
  color: var(--muted);
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* hero orb */
.hero-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero-orb::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 168, 255, 0.16), transparent 65%);
}
.hero-orb svg { width: 340px; height: 340px; }
.hero-orb .ring { transform-origin: 50% 50%; animation: breathe 6s ease-in-out infinite; }
.hero-orb .ring2 { animation-delay: 0.4s; }
.hero-orb .ring3 { animation-delay: 0.8s; }
.hero-orb .ring4 { animation-delay: 1.2s; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

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

section { padding: 76px 0; }
.section-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
section h2 {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
section p.sub { margin: 0 0 44px; font-size: 17px; color: var(--muted); max-width: 60ch; }

/* goal cards */
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.goal-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 26px 22px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.goal-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--g) 45%, transparent); }
.goal-card .dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--g) 85%, white), var(--g));
  box-shadow: 0 0 24px color-mix(in srgb, var(--g) 55%, transparent);
}
.goal-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.goal-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: rgba(17, 26, 49, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 28px 24px;
}
.step .num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(143, 168, 255, 0.14);
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* honesty */
.honest {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
}
.honest blockquote {
  margin: 0;
  font-size: 23px;
  line-height: 1.45;
  font-weight: 500;
}
.honest blockquote footer { margin-top: 18px; font-size: 14px; color: var(--muted); font-weight: 400; }
.honest ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.honest li { display: flex; gap: 12px; font-size: 15px; color: var(--muted); }
.honest li b { color: var(--text); font-weight: 550; display: inline-block; margin-bottom: 3px; }
.honest li::before { content: "—"; color: var(--accent); }

/* studio showcase */
.studio-shot {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(4, 7, 18, 0.7), 0 0 0 1px rgba(143, 168, 255, 0.06);
  width: 100%;
  display: block;
}
.studio-cta { display: flex; justify-content: center; margin-top: 34px; }

/* practice tools */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 24px 22px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.tool-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--g) 40%, transparent); }
.tool-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.tool-card h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--g);
  box-shadow: 0 0 12px color-mix(in srgb, var(--g) 60%, transparent);
}
.tool-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--g) 40%, transparent); }
.price-card.featured {
  border-color: color-mix(in srgb, var(--g) 45%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--g) 12%, transparent);
}
.price-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--g); }
.price-card .price { font-size: 34px; font-weight: 650; letter-spacing: -0.01em; }
.price-card .price .per { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-card .price-note { margin: 2px 0 16px; font-size: 12.5px; color: var(--muted); }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.price-card li::before { content: "✓"; color: var(--g); font-weight: 700; flex-shrink: 0; }
.price-card .price-why { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); opacity: 0.85; }
.price-fine { margin: 26px 0 0; font-size: 12.5px; color: var(--muted); opacity: 0.75; text-align: center; }

/* android */
.android { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.android ul { list-style: none; margin: 24px 0 30px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.android li { display: flex; gap: 12px; font-size: 15.5px; color: var(--muted); }
.android li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.phone-mock {
  justify-self: center;
  width: 250px;
  height: 500px;
  border-radius: 36px;
  border: 1px solid var(--border);
  background:
    radial-gradient(220px 220px at 50% 38%, rgba(143, 168, 255, 0.14), transparent 70%),
    var(--surface);
  box-shadow: 0 30px 70px rgba(4, 7, 18, 0.65);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-mock::before {
  content: "";
  position: absolute;
  top: 14px;
  width: 84px;
  height: 7px;
  border-radius: 4px;
  background: var(--raised);
}
.phone-mock svg { width: 150px; height: 150px; }
.phone-mock .ring { transform-origin: 50% 50%; animation: breathe 6s ease-in-out infinite; }

/* footer */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 44px 0 60px;
  margin-top: 40px;
}
.footer .container {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.footer .brand svg { width: 24px; height: 24px; }
.footer .wordmark { font-size: 16px; }
.footer-links { margin-left: auto; display: flex; gap: 22px; font-size: 13.5px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer .fine { width: 100%; margin-top: 18px; font-size: 12.5px; color: var(--muted); opacity: 0.75; }

/* responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 60px; }
  .hero-orb { min-height: 300px; order: -1; }
  .hero-orb svg { width: 240px; height: 240px; }
  .hero h1 { font-size: 38px; }
  .goals { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .honest { grid-template-columns: 1fr; padding: 30px; }
  .tools { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .android { grid-template-columns: 1fr; }
  .phone-mock { display: none; }
}

@media (max-width: 720px) {
  /* Phone nav: brand + one CTA — the section links live in the page flow. */
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 12px; }
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  section h2 { font-size: 29px; }
  section p.sub { font-size: 16px; }
  .hero h1 { font-size: 34px; }
  .hero p.lede { font-size: 17px; }
  .hero-orb { min-height: 230px; }
  .hero-orb svg { width: 200px; height: 200px; }
  .hero-orb::before { width: 280px; height: 280px; }
  .honest blockquote { font-size: 19px; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 560px) {
  .goals { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .trust { gap: 14px; }
}

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

.legal { padding: 60px 0 76px; }
.legal .container { max-width: 720px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 6px; }
.legal-date { color: var(--muted); font-size: 13.5px; margin: 0 0 34px; }
.legal h2 { font-size: 19px; margin: 34px 0 10px; }
.legal p { color: #c2cbe4; line-height: 1.65; margin: 0 0 14px; max-width: 65ch; }
.legal code {
  background: rgba(143, 168, 255, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.92em;
}
.legal a { color: var(--accent); }
