:root {
  color-scheme: dark;
  --bg: #1b1428;
  --bg-raise: #221a33;
  --card: #2b2140;
  --card-edge: #3a2d55;
  --ink: #fff6e8;
  --ink-soft: #e4d6c4;
  --ink-faint: #a896b6;
  --green: #ff6a5b;
  --green-bright: #ff8a7d;
  --green-deep: #7a2f2a;
  --freeze: #5ed3b2;
  --amber: #ffd25f;
  --line: rgba(255, 246, 232, 0.13);
  --container: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  background-image: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 106, 91, 0.08), transparent 65%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 60;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: var(--green);
  color: #120d1c;
  transform: translateY(-200%);
  transition: transform 220ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(27, 20, 40, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.app-brand img {
  width: 30px;
  height: 30px;
  border-radius: 24%;
}

.brand-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.92rem;
}

.brand-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.brand-links a:hover,
.brand-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
}

.brand-links .nav-cta {
  color: #120d1c;
  background: var(--green);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.brand-links .nav-cta:hover {
  background: var(--green-bright);
  color: #120d1c;
  text-decoration: none;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.2rem, 8vw, 6.5rem) 1.25rem;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.section-lede {
  margin: 0 0 2.4rem;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-kicker {
  margin: 0 0 1.1rem;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.08;
}

.hero-lede {
  margin: 0 0 1.6rem;
  max-width: 52ch;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.hero-lede strong {
  color: var(--ink);
}

.availability {
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

.availability::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.button-primary {
  background: var(--green);
  color: #120d1c;
}

.button-primary:hover {
  background: var(--green-bright);
  text-decoration: none;
}

.button-secondary {
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  border-color: var(--green);
  text-decoration: none;
}

/* Hero heatmap strip — the brand mark */

.hero-heatmap {
  max-width: 26rem;
}

.hero-heatmap-cells {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
}

.hero-heatmap-cells span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--card-edge);
  animation: cell-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 45ms);
}

.hero-heatmap-cells span[data-done] {
  background: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 91, 0.4);
}

.hero-heatmap-cells span[data-done="full"] {
  background: var(--green);
}

.hero-heatmap-cells span[data-skip] {
  background: rgba(94, 211, 178, 0.32);
  box-shadow: inset 0 0 0 1px rgba(94, 211, 178, 0.5);
}

@keyframes cell-in {
  from {
    opacity: 0.15;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-heatmap-caption {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.hero-heatmap-caption em {
  color: var(--freeze);
  font-style: normal;
}

/* Hero phone */

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.hero {
  overflow-x: clip;
}

.phone {
  position: relative;
  width: min(310px, 78vw);
  border-radius: 42px;
  padding: 10px;
  background: #120d1c;
  box-shadow:
    0 0 0 1px rgba(255, 246, 232, 0.12),
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(255, 106, 91, 0.14);
}

.phone img {
  width: 100%;
  border-radius: 34px;
}

.hero-glow {
  position: absolute;
  inset: -12% -20%;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255, 106, 91, 0.16), transparent 70%);
  pointer-events: none;
}

/* ---------- Philosophy: the three states ---------- */

.states {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.state {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.state h3 {
  margin: 0.9rem 0 0.5rem;
  font-size: 1.25rem;
}

.state p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.state-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
}

.state-done .state-mark {
  background: rgba(255, 106, 91, 0.16);
  color: var(--green);
}

.state-skip .state-mark {
  background: rgba(94, 211, 178, 0.14);
  color: var(--freeze);
}

.state-freeze .state-mark {
  background: rgba(255, 210, 95, 0.13);
  color: var(--amber);
}

.skip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.skip-chips span {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 211, 178, 0.4);
  color: var(--freeze);
  font-size: 0.82rem;
}

/* ---------- Gentle system (two screens + copy) ---------- */

.gentle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.gentle-grid + .gentle-grid {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.gentle-copy h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}

.gentle-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 50ch;
}

.gentle-copy p strong {
  color: var(--ink);
}

.gentle-quote {
  margin: 1.2rem 0 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
}

.gentle-media {
  display: flex;
  justify-content: center;
}

.gentle-media .phone {
  width: min(290px, 74vw);
}

.gentle-grid.flip .gentle-media {
  order: -1;
}

/* ---------- Screens tour ---------- */

.tour-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.tour-stage {
  display: flex;
  justify-content: center;
}

.tour-stage .phone img {
  transition: opacity 200ms ease;
}

.tour-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.tour-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  align-items: baseline;
  text-align: left;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.tour-tab:hover {
  border-color: rgba(255, 106, 91, 0.5);
}

.tour-tab.is-active {
  background: var(--card);
  border-color: var(--green);
}

.tour-tab-day {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--green);
  white-space: nowrap;
}

.tour-tab-title {
  font-weight: 600;
  font-size: 1.02rem;
}

.tour-tab-desc {
  grid-column: 2;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Widgets ---------- */

.widgets {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.widgets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.widgets-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.widgets-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.widgets-list .dot {
  margin-top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.widgets-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

.widgets-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- Privacy band ---------- */

.privacy-band .band-card {
  border: 1px solid rgba(255, 106, 91, 0.35);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 100% at 85% 0%, rgba(255, 106, 91, 0.1), transparent 60%),
    var(--card);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}

.privacy-band h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.privacy-band > .band-card p {
  color: var(--ink-soft);
}

.privacy-claims {
  margin: 1.2rem 0 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.privacy-claims li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--ink);
}

.privacy-claims li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.privacy-media {
  display: flex;
  justify-content: center;
}

.privacy-media .phone {
  width: min(260px, 70vw);
}

/* ---------- Legal / support shared ---------- */

.legal-main,
.support-main {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 4rem;
}

.legal-header h1,
.support-intro h1 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
}

.page-kicker {
  margin: 0;
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
}

.legal-summary {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.effective-date {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.legal-document section {
  margin-top: 2.4rem;
}

.legal-document h2 {
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
}

.legal-document p,
.legal-document li {
  color: var(--ink-soft);
}

.legal-document strong {
  color: var(--ink);
}

.legal-document a {
  color: var(--ink);
  text-decoration-color: var(--green);
}

.legal-document ul {
  padding-left: 1.2rem;
}

.legal-document li {
  margin-bottom: 0.4rem;
}

/* Support */

.support-intro p {
  color: var(--ink-soft);
  max-width: 58ch;
}

.support-intro .button {
  margin-top: 0.5rem;
}

.support-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.support-list {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
}

.support-list article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 1.2rem 1.4rem;
}

.support-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.support-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.support-content {
  margin-top: 3rem;
}

.support-content h2 {
  font-size: 1.5rem;
  margin: 0;
}

.support-footer-band {
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raise);
  padding: 1.8rem;
}

.support-footer-band h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.support-footer-band p {
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 1.25rem 5.5rem;
}

.site-footer .inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

.site-footer .links {
  display: flex;
  gap: 1.2rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Studio return pill */

.bc-return {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 9px;
  background: rgba(16, 19, 26, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 234, 217, 0.16);
  border-radius: 999px;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #f2ead9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.bc-return:hover {
  border-color: #e8541e;
  color: #e8541e;
  text-decoration: none;
}

.bc-return img {
  width: 22px;
  height: 22px;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-grid,
  .gentle-grid,
  .tour-shell,
  .widgets-grid,
  .privacy-band .band-card {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .gentle-grid.flip .gentle-media {
    order: 0;
  }

  .brand-links {
    gap: 0.8rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 640px) {
  .bc-return {
    padding: 8px;
  }

  .bc-return .bc-return-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-heatmap-cells span {
    animation: none;
  }

  .tour-stage .phone img {
    transition: none;
  }
}
