:root {
  --free-navy: #081b4b;
  --free-royal: #0e2c78;
  --free-blue: #1468ff;
  --free-cyan: #00b8f0;
  --free-ink: #eaf5ff;
  --free-muted: #9fb3c8;
  --free-bg: #030c18;
  --free-surface: #071426;
  --free-surface-2: #0a1c35;
  --free-line: rgba(89, 166, 255, 0.3);
  --free-soft-line: rgba(126, 192, 255, 0.14);
  --free-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

:root[data-theme="day"] {
  --free-ink: #071c4c;
  --free-muted: #53657d;
  --free-bg: #f7fbff;
  --free-surface: #ffffff;
  --free-surface-2: #edf5fc;
  --free-line: rgba(14, 44, 120, 0.22);
  --free-soft-line: rgba(14, 44, 120, 0.1);
  --free-shadow: 0 24px 70px rgba(8, 27, 75, 0.12);
}

.free-tier-page {
  margin: 0;
  overflow-x: hidden;
  color: var(--free-ink);
  background: var(--free-bg);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: calc(16px * var(--font-scale, 1));
}

.free-tier-page *,
.free-tier-page *::before,
.free-tier-page *::after { box-sizing: border-box; }

.free-tier-page a { color: inherit; }
.free-tier-page img { display: block; max-width: 100%; }
.free-tier-page h1,
.free-tier-page h2,
.free-tier-page h3,
.free-tier-page p { margin-top: 0; }

.free-wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.free-utility {
  min-height: 34px;
  display: flex;
  align-items: center;
  background: #06173a;
  border-bottom: 1px solid rgba(0, 184, 240, 0.2);
  color: #d6e8fb;
  font: 500 0.69rem/1.3 "JetBrains Mono", monospace;
  letter-spacing: 0.03em;
}

.free-utility .free-wrap,
.free-utility nav { display: flex; align-items: center; }
.free-utility .free-wrap { justify-content: space-between; gap: 24px; }
.free-utility nav { gap: 24px; }
.free-utility a { text-decoration: none; }
.free-utility a:hover { color: var(--free-cyan); }

.free-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--free-bg) 88%, transparent);
  border-bottom: 1px solid var(--free-soft-line);
  backdrop-filter: blur(18px);
}

.free-nav-wrap {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 30px;
}

.free-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
}

.free-brand img { width: 42px; height: 42px; object-fit: contain; }
.free-brand > span > span { color: var(--free-cyan); }
.free-brand small {
  align-self: flex-end;
  margin: 0 0 10px -4px;
  color: var(--free-cyan);
  font: 700 0.54rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
}

.free-header .main-nav,
.free-header .nav-actions { display: flex; align-items: center; }
.free-header .main-nav { gap: 28px; }
.free-header .nav-actions { justify-content: flex-end; gap: 10px; }
.free-header .main-nav a {
  text-decoration: none;
  color: var(--free-muted);
  font: 700 0.68rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.free-header .main-nav a:hover { color: var(--free-cyan); }
.free-header .mobile-toggle { display: none; }

.free-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--free-blue);
  border-radius: 5px;
  background: linear-gradient(135deg, #0e2c78, #1458e8);
  box-shadow: 0 10px 28px rgba(20, 104, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.14);
  color: #fff !important;
  text-decoration: none;
  font: 700 0.7rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.free-button:hover { transform: translateY(-2px); border-color: var(--free-cyan); box-shadow: 0 14px 34px rgba(0,184,240,0.24); }
.free-button.ghost { color: var(--free-ink) !important; background: transparent; border-color: var(--free-line); box-shadow: none; }
.free-button.large { min-height: 50px; padding-inline: 25px; }

.free-hero {
  position: relative;
  isolation: isolate;
  min-height: 690px;
  display: flex;
  align-items: center;
  padding: 72px 0 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 42%, rgba(0,184,240,0.14), transparent 28%),
    radial-gradient(circle at 82% 60%, rgba(20,104,255,0.13), transparent 35%),
    var(--free-bg);
}

.free-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(46,133,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,133,255,0.09) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000, transparent 68%);
  transform: none;
  transform-origin: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 70px;
}

.free-kicker,
.section-label {
  color: var(--free-cyan);
  font: 700 0.66rem/1.5 "JetBrains Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.free-kicker {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--free-line);
  border-radius: 999px;
  background: rgba(14, 44, 120, 0.14);
}
.free-kicker span { width: 7px; height: 7px; border: 2px solid var(--free-cyan); border-radius: 50%; box-shadow: 0 0 12px var(--free-cyan); }

.hero-copy h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 5.2vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 750;
}
.hero-copy h1 em { color: var(--free-cyan); font-style: normal; text-shadow: 0 0 34px rgba(0,184,240,0.28); }
.hero-lede { max-width: 590px; margin-bottom: 28px; color: var(--free-muted); font-size: 1.13rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 22px; margin: 24px 0; padding: 0; list-style: none; color: var(--free-muted); font: 500 0.68rem/1.5 "JetBrains Mono", monospace; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--free-cyan); }
.heritage-ribbon { width: max-content; max-width: 100%; margin: 0; padding: 11px 15px; border-left: 2px solid var(--free-cyan); background: linear-gradient(90deg, rgba(14,44,120,.34), transparent); color: var(--free-ink); font: 700 0.65rem/1.5 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }

.hero-product { position: relative; min-height: 540px; display: grid; place-items: center; }
.product-orbit { position: absolute; border: 1px solid rgba(0,184,240,.2); transform: rotate(45deg); }
.orbit-one { width: 470px; height: 470px; }
.orbit-two { width: 350px; height: 350px; border-color: rgba(20,104,255,.25); transform: rotate(15deg); }
.dashboard-shell {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  padding: 14px;
  border: 1px solid rgba(0,184,240,.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8,27,75,.92), rgba(2,11,24,.94));
  box-shadow: 0 0 0 8px rgba(7,20,38,.6), 0 36px 100px rgba(0,0,0,.5), 0 0 70px rgba(0,184,240,.13);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.dashboard-topline,
.dashboard-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 700 .56rem/1.5 "JetBrains Mono", monospace; letter-spacing: .09em; }
.dashboard-topline { padding: 4px 5px 13px; color: #9ec4e9; }
.preview-chip { padding: 4px 7px; border: 1px solid rgba(0,184,240,.32); color: var(--free-cyan); }
.dashboard-shell picture,
.dashboard-shell picture img { width: 100%; }
.dashboard-shell img { aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid rgba(126,192,255,.16); }
.dashboard-caption { padding: 12px 5px 2px; color: #9ec4e9; }
.dashboard-caption span:first-child { display: flex; align-items: center; gap: 7px; }
.dashboard-caption i { width: 6px; height: 6px; border-radius: 50%; background: #21e08a; box-shadow: 0 0 12px #21e08a; }

.foundation-rail { border-block: 1px solid var(--free-line); background: color-mix(in srgb, var(--free-surface) 90%, transparent); }
.foundation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.foundation-grid article { min-height: 156px; display: grid; grid-template-columns: 58px 1fr; gap: 15px; align-items: center; padding: 26px 22px; border-right: 1px solid var(--free-soft-line); }
.foundation-grid article:first-child { border-left: 1px solid var(--free-soft-line); }
.foundation-grid h2 { margin-bottom: 7px; font-size: .95rem; }
.foundation-grid p { margin: 0; color: var(--free-muted); font-size: .82rem; line-height: 1.5; }

.sprite { display: block; background-repeat: no-repeat; }
.pillar { width: 54px; height: 54px; border: 1px solid var(--free-line); border-radius: 6px; background-image: url("/assets/free-tier/service-pillars.png"); background-size: 400% 100%; background-color: rgba(14,44,120,.18); }
.pillar.p1 { background-position: 0 50%; }
.pillar.p2 { background-position: 33.333% 50%; }
.pillar.p3 { background-position: 66.666% 50%; }
.pillar.p4 { background-position: 100% 50%; }

.free-section { padding: 100px 0; }
.section-heading { max-width: 780px; margin: 0 auto 46px; text-align: center; }
.section-heading p { margin-bottom: 11px; color: var(--free-cyan); font: 700 .65rem/1.5 "JetBrains Mono", monospace; letter-spacing: .14em; }
.section-heading h2 { margin-bottom: 13px; font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.05; }
.section-heading > span { color: var(--free-muted); font-size: 1.02rem; line-height: 1.6; }
.section-heading.compact { margin-bottom: 38px; }

.included-section { position: relative; background: linear-gradient(180deg, var(--free-bg), var(--free-surface)); }
.feature-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.feature-grid article {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 22px;
  border: 1px solid var(--free-line);
  border-radius: 7px;
  background: linear-gradient(155deg, rgba(14,44,120,.22), var(--free-surface));
  box-shadow: inset 0 1px rgba(255,255,255,.04);
  transition: transform 160ms ease, border-color 160ms ease;
}
.feature-grid article:hover { transform: translateY(-4px); border-color: var(--free-cyan); }
.feature-grid h3 { margin: 22px 0 9px; font-size: .98rem; }
.feature-grid p { color: var(--free-muted); font-size: .84rem; line-height: 1.58; }
.feature-grid strong { margin-top: auto; color: var(--free-cyan); font: 700 .58rem/1 "JetBrains Mono", monospace; letter-spacing: .1em; }
.feature { width: 62px; height: 62px; background-image: url("/assets/free-tier/feature-icons.png"); background-size: 500% 100%; }
.feature.f1 { background-position: 0 50%; }
.feature.f2 { background-position: 25% 50%; }
.feature.f3 { background-position: 50% 50%; }
.feature.f4 { background-position: 75% 50%; }
.feature.f5 { background-position: 100% 50%; }

.roadmap-section { border-block: 1px solid var(--free-soft-line); background: var(--free-surface-2); }
.roadmap-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.roadmap-copy h2 { margin-bottom: 22px; font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1.04; }
.roadmap-copy > p:not(.section-label) { max-width: 600px; color: var(--free-muted); line-height: 1.75; }
.text-link { display: inline-flex; gap: 10px; color: var(--free-cyan) !important; font: 700 .68rem/1.4 "JetBrains Mono", monospace; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.roadmap-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--free-line); }
.roadmap-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--free-line); }
.roadmap-steps li > span { color: var(--free-cyan); font: 700 .75rem/1 "JetBrains Mono", monospace; }
.roadmap-steps strong { font-size: 1.15rem; }
.roadmap-steps p { margin: 5px 0 0; color: var(--free-muted); line-height: 1.55; }

.principles-section { background: var(--free-bg); }
.principle-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 1px solid var(--free-line); }
.principle-grid article { min-height: 190px; padding: 26px 18px; text-align: center; border-right: 1px solid var(--free-soft-line); }
.principle-grid article:first-child { border-left: 1px solid var(--free-soft-line); }
.principle-grid span { position: relative; width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 16px; color: var(--free-cyan); font: 700 .78rem/1 "JetBrains Mono", monospace; }
.principle-grid span::before { content: ""; position: absolute; inset: 3px; z-index: -1; border: 1px solid var(--free-cyan); transform: rotate(45deg); }
.principle-grid h3 { margin-bottom: 8px; font-size: .92rem; }
.principle-grid p { margin: 0; color: var(--free-muted); font-size: .75rem; line-height: 1.5; }

.free-cta { padding: 0 0 72px; }
.cta-layout { min-height: 210px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 38px; padding: 26px 44px; border: 1px solid var(--free-line); border-radius: 8px; background: radial-gradient(circle at 15% 50%, rgba(0,184,240,.13), transparent 28%), linear-gradient(110deg, var(--free-surface), rgba(14,44,120,.26)); box-shadow: var(--free-shadow); }
.cta-layout img { width: 150px; filter: drop-shadow(0 0 28px rgba(0,184,240,.23)); }
.cta-layout p { margin-bottom: 8px; color: var(--free-cyan); font: 700 .64rem/1.5 "JetBrains Mono", monospace; letter-spacing: .12em; }
.cta-layout h2 { margin-bottom: 7px; font-size: 2rem; }
.cta-layout div > span { color: var(--free-muted); }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 15px; }

.free-footer { background: #06173a; color: #d9e9fb; border-top: 1px solid rgba(0,184,240,.22); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; padding: 55px 0 45px; }
.footer-identity p { max-width: 300px; color: #9eb5ce; line-height: 1.6; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid nav strong { margin-bottom: 7px; color: #fff; font: 700 .68rem/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid nav a { color: #a9bfd6; text-decoration: none; font-size: .86rem; }
.footer-grid nav a:hover { color: var(--free-cyan); }
.footer-bottom { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid rgba(126,192,255,.16); color: #829bb5; font: 500 .62rem/1.5 "JetBrains Mono", monospace; }

:root[data-theme="day"] .free-header { background: rgba(247,251,255,.9); }
:root[data-theme="day"] .free-brand picture img { content: url("/assets/free-tier/free-mark-light.png"); }
:root[data-theme="day"] .dashboard-shell { background: rgba(255,255,255,.92); box-shadow: 0 0 0 8px rgba(237,245,252,.75), var(--free-shadow), 0 0 70px rgba(0,184,240,.1); }
:root[data-theme="day"] .dashboard-shell picture img { content: url("/assets/free-tier/dashboard-light.png"); }
:root[data-theme="day"] .dashboard-topline,
:root[data-theme="day"] .dashboard-caption { color: #53657d; }
:root[data-theme="day"] .free-footer .free-brand img { content: url("/assets/free-tier/free-mark-dark.png"); }

:root[data-contrast="high"] .free-tier-page { --free-muted: var(--free-ink); --free-line: currentColor; }
:root[data-access-profile="autism-calm"] .free-tier-page { --free-shadow: none; --free-cyan: #69c9e8; }
:root[data-access-profile="autism-calm"] .free-grid-overlay,
:root[data-access-profile="autism-calm"] .product-orbit { display: none; }
:root[data-access-profile="autism-calm"] .free-tier-page main { line-height: 1.72; }
:root[data-access-profile="autism-calm"] .dashboard-shell,
:root[data-access-profile="autism-calm"] .feature-grid article { box-shadow: none; filter: saturate(.66); }
:root[data-access-profile="autism-calm"] .free-section { padding-block: 118px; }
:root[data-access-profile="adhd-sprint"] .free-tier-page .free-button:focus-visible,
:root[data-access-profile="adhd-sprint"] .free-tier-page a:focus-visible { outline: 4px solid #ffe35b; outline-offset: 4px; }
:root[data-access-profile="adhd-sprint"] .feature-grid article { border-width: 2px; }
:root[data-access-profile="adhd-sprint"] .free-tier-page .free-button:not(.ghost) { outline: 3px solid rgba(255,227,91,.72); outline-offset: 3px; box-shadow: 0 0 30px rgba(255,227,91,.2); }
:root[data-access-profile="adhd-sprint"] .section-heading { margin-inline: 0; text-align: left; }
:root[data-access-profile="adhd-sprint"] .roadmap-steps li > span { font-size: 1rem; }
:root[data-access-profile="deep-work"] .free-tier-page .free-grid-overlay,
:root[data-access-profile="deep-work"] .free-tier-page .product-orbit { display: none; }
:root[data-access-profile="deep-work"] .free-tier-page { --free-cyan: #78dfff; --free-blue: #375eac; }
:root[data-access-profile="deep-work"] .free-tier-page .free-utility,
:root[data-access-profile="deep-work"] .free-tier-page .hero-product,
:root[data-access-profile="deep-work"] .free-tier-page .foundation-rail { display: none; }
:root[data-access-profile="deep-work"] .free-tier-page .free-hero { min-height: 610px; background: var(--free-bg); }
:root[data-access-profile="deep-work"] .free-tier-page .hero-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
:root[data-access-profile="deep-work"] .free-tier-page .hero-copy { text-align: center; }
:root[data-access-profile="deep-work"] .free-tier-page .hero-copy > * { margin-inline: auto; }
:root[data-access-profile="deep-work"] .free-tier-page .hero-actions,
:root[data-access-profile="deep-work"] .free-tier-page .trust-list { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .free-tier-page *, .free-tier-page *::before, .free-tier-page *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 1050px) {
  .free-nav-wrap { grid-template-columns: auto 1fr; }
  .free-header .main-nav { display: none; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > * { margin-inline: auto; }
  .hero-actions, .trust-list { justify-content: center; }
  .hero-product { min-height: 460px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principle-grid article:nth-child(3) { border-right: 1px solid var(--free-soft-line); }
  .principle-grid article:nth-child(-n+3) { border-bottom: 1px solid var(--free-soft-line); }
}

@media (max-width: 820px) {
  .free-wrap { width: min(100% - 34px, 720px); }
  .free-utility .free-wrap { justify-content: center; text-align: center; }
  .free-utility nav { display: none; }
  .free-nav-wrap { display: flex; flex-wrap: wrap; min-height: 70px; }
  .brand-row { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .free-header .mobile-toggle { display: block; padding: 10px; border: 1px solid var(--free-line); background: transparent; color: var(--free-ink); }
  .free-header .nav-actions { display: none; }
  .free-header[data-open="true"] .main-nav,
  .free-header[data-open="true"] .nav-actions { width: 100%; display: flex; flex-direction: column; align-items: stretch; padding-bottom: 16px; }
  .free-header[data-open="true"] .main-nav a { padding: 11px 0; }
  .free-hero { min-height: 0; padding-top: 54px; }
  .hero-layout { gap: 34px; }
  .hero-copy h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .hero-product { min-height: 350px; }
  .dashboard-shell { transform: none; }
  .orbit-one { width: 340px; height: 340px; }
  .orbit-two { width: 260px; height: 260px; }
  .foundation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foundation-grid article:nth-child(2) { border-right: 0; }
  .foundation-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--free-soft-line); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-layout { grid-template-columns: 1fr; gap: 46px; }
  .cta-layout { grid-template-columns: 110px 1fr; padding: 28px; }
  .cta-layout img { width: 100px; }
  .cta-actions { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .free-wrap { width: min(100% - 28px, 480px); }
  .free-brand { font-size: 1.2rem; }
  .free-brand img { width: 36px; height: 36px; }
  .hero-copy h1 { font-size: clamp(2.65rem, 14vw, 3.8rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .free-button { width: 100%; }
  .trust-list { display: grid; gap: 8px; text-align: left; }
  .heritage-ribbon { width: 100%; }
  .hero-product { min-height: 260px; }
  .dashboard-shell { padding: 8px; }
  .dashboard-topline, .dashboard-caption { font-size: .46rem; }
  .product-orbit { display: none; }
  .foundation-grid { grid-template-columns: 1fr; }
  .foundation-grid article { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--free-soft-line); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 235px; }
  .free-section { padding: 76px 0; }
  .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle-grid article { border-bottom: 1px solid var(--free-soft-line); }
  .cta-layout { grid-template-columns: 1fr; text-align: center; }
  .cta-layout img { margin-inline: auto; }
  .cta-actions { grid-column: auto; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}
