/* ==========================================================================
   Actual Common Sense — site styles
   ========================================================================== */

/* ---------- self-hosted fonts (latin subset) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- theme tokens ---------- */
:root {
  --bg: #f7f6f3;
  --card: #ffffff;
  --ink: #17171b;
  --muted: #6b6b72;
  --accent: #e11d74;
  --accent-soft: #fde7f1;
  --line: #e7e5df;
  --amber: #ffb020;
  --engine-bg: #17171b;
  --engine-border: transparent;
  --nav-bg: rgba(247, 246, 243, 0.82);
  --shadow: rgba(23, 23, 27, 0.08);
  --radius: 16px;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0e0e12;
  --card: #17171e;
  --ink: #f3f2ef;
  --muted: #9a9aa4;
  --accent: #f0479a;
  --accent-soft: #3a1526;
  --line: #26262f;
  --amber: #ffc24b;
  --engine-bg: #1a1a24;
  --engine-border: #2c2c39;
  --nav-bg: rgba(14, 14, 18, 0.82);
  --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-block;
  text-align: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 17px;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, transform 0.3s ease;
}
.theme-toggle:hover {
  border-color: var(--ink);
  transform: rotate(-18deg);
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
}

/* ---------- hero ---------- */
header {
  padding: 88px 0 64px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: clamp(38px, 6.4vw, 68px);
  margin: 0 auto 22px;
  max-width: 14ch;
}
h1 .u {
  color: var(--accent);
}
.sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 34px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.rating {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}
.stars {
  color: var(--amber);
  letter-spacing: 2px;
}

/* ---------- section scaffolding ---------- */
section {
  padding: 66px 0;
  border-top: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.6vw, 38px);
  margin: 0 0 12px;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 56ch;
}
.center {
  text-align: center;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat {
  text-align: center;
  padding: 8px;
}
.stat .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat .cap {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- the sense engine (signature) ---------- */
.engine {
  margin-top: 36px;
  background: var(--engine-bg);
  color: #fff;
  border: 1px solid var(--engine-border);
  border-radius: 24px;
  padding: 44px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
html[data-theme="dark"] .engine {
  color: var(--ink);
}
.engine::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto -10%;
  height: 280px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(240, 71, 154, 0.5),
    transparent 60%
  );
  filter: blur(8px);
  pointer-events: none;
}
.engine-label {
  position: relative;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9bc4;
  margin-bottom: 22px;
}
#tip {
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
  min-height: 2.6em;
  max-width: 23ch;
  margin: 0 auto 30px;
  transition: opacity 0.25s ease;
  letter-spacing: -0.01em;
}
.engine .btn-primary {
  position: relative;
  padding: 13px 26px;
  font-size: 15px;
}
.engine small {
  position: relative;
  display: block;
  margin-top: 16px;
  color: #8a8a96;
  font-size: 12px;
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}
@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.step .s-no {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}
.step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  margin: 10px 0 8px;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- curriculum ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 38px;
}
@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.module {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.module:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--shadow);
}
.module .no {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.module h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  margin: 8px 0 8px;
  letter-spacing: -0.01em;
}
.module p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- philosophy pull quote ---------- */
.philosophy {
  margin-top: 8px;
  text-align: center;
}
.philosophy blockquote {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 3.8vw, 40px);
  line-height: 1.22;
  max-width: 20ch;
  margin: 0 auto;
}
.philosophy .q-accent {
  color: var(--accent);
}
.philosophy cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}
@media (max-width: 820px) {
  .quotes {
    grid-template-columns: 1fr;
  }
}
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.quote .stars {
  font-size: 13px;
}
.quote p {
  font-size: 15.5px;
  margin: 12px 0 16px;
}
.who {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- pricing ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}
@media (max-width: 820px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}
.tier {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.tier.feature {
  border-color: var(--accent);
  box-shadow: 0 12px 34px var(--shadow);
}
.tier .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.tier .price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  margin: 14px 0 4px;
  letter-spacing: -0.02em;
}
.tier .note {
  color: var(--muted);
  font-size: 14px;
  min-height: 3em;
}
.tier .btn {
  margin-top: 20px;
  width: 100%;
}
.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- faq ---------- */
.faq {
  max-width: 720px;
  margin: 38px auto 0;
}
.q-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.q-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.q-item summary::-webkit-details-marker {
  display: none;
}
.q-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.q-item[open] summary::after {
  transform: rotate(45deg);
}
.q-item p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- newsletter ---------- */
.news {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 32px;
  text-align: center;
  margin-top: 8px;
}
.news h2 {
  margin-bottom: 10px;
}
.news .lead {
  margin: 0 auto;
}
.news-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.news input {
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  min-width: 260px;
}
.news input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------- final cta + footer ---------- */
.final {
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 24px;
  padding: 56px 28px;
  margin-top: 38px;
}
.final h2 {
  color: #fff;
}
.final p {
  color: #e5e1ff;
  max-width: 44ch;
  margin: 0 auto 26px;
}
.final .btn-primary {
  background: #fff;
  color: var(--accent);
}
.final .btn-primary:hover {
  filter: none;
  background: #ffeef6;
}
footer {
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 13px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.foot-links a:hover {
  color: var(--ink);
}

/* ---------- toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  z-index: 100;
  max-width: 88vw;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
