:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1b2330;
  --muted: #5c6779;
  --border: #e4e9f1;
  --accent: #1e6cff;
  --accent-contrast: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 22px rgba(25, 36, 56, 0.05);
  --shadow-soft: 0 10px 24px rgba(25, 36, 56, 0.07);
  --container: 72rem;
  --measure: 68ch;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 10%, white) 0%, transparent 40%),
    var(--bg);
}

main {
  flex: 1;
}

.theme-default {
  --accent: #63b1e9;
}

.theme-moodi {
  --accent: #22c55e;
}

.theme-macromind {
  --accent: #63b1e9;
}

.legal-page {
  --accent: var(--muted);
  background: var(--surface);
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 98%, var(--accent));
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(5px);
}

.header-inner {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}

.site-name {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.site-name--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-name-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: 0 0 auto;
  display: block;
}

.site-name--with-icon span {
  line-height: 1;
}

.nav-list,
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 40%, white);
  outline-offset: 3px;
  border-radius: 8px;
}

.nav-list a,
.footer-links a {
  text-decoration: none;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-list a:hover,
.footer-links a:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.nav-list a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 78%, white);
}

.nav-list a[aria-current="page"]:hover {
  background: color-mix(in srgb, var(--accent) 11%, transparent);
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 1.55rem + 2vw, 3.3rem);
  line-height: 1.08;
  margin-block: var(--space-2) var(--space-4);
}

h2 {
  font-size: clamp(1.45rem, 1.2rem + 1.05vw, 2.15rem);
  line-height: 1.18;
  margin-bottom: var(--space-4);
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.28;
  margin-bottom: var(--space-3);
}

p,
li {
  margin-top: 0;
}

p,
ul,
ol,
details {
  margin-bottom: var(--space-4);
}

p + p {
  margin-top: var(--space-4);
}

small,
.text-small {
  font-size: clamp(0.85rem, 0.82rem + 0.1vw, 0.92rem);
}

.lead {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.3rem);
  max-width: 58ch;
  color: color-mix(in srgb, var(--text) 82%, white);
}

.muted {
  color: var(--muted);
}

.hero {
  padding-block: var(--space-7);
}

.hero-large {
  padding-block: var(--space-8);
}

.hero-inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.hero-copy p {
  max-width: 60ch;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-title-row h2 {
  margin: 0;
}

.app-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-2);
}

.app-brand-row .app-name {
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.section {
  padding-block: var(--space-7);
}

.hero + .section {
  padding-top: var(--space-5);
}

/* legacy – currently unused */
.section-principles {
  padding-block: var(--space-6);
}

.section-principles .principles-grid {
  display: grid;
  gap: var(--space-4);
}

.section-principles article {
  border-top: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  padding-top: var(--space-4);
}

.section-split .split-layout {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding-block: var(--space-2);
}

.section-split {
  padding-block: var(--space-6);
}

.split-copy p,
.split-copy ul {
  max-width: var(--measure);
}

.split-copy ul {
  padding-left: 1.2rem;
}

.split-visual {
  display: grid;
  align-items: center;
  justify-items: center;
}

.section-band {
  padding-block: var(--space-6);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 12%, white),
    color-mix(in srgb, var(--accent) 6%, white)
  );
  border-block: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
}

/* legacy – currently unused */
.section-dark {
  padding-block: var(--space-7);
  background: linear-gradient(
    170deg,
    color-mix(in srgb, var(--text) 90%, #141a24),
    color-mix(in srgb, var(--text) 85%, var(--accent))
  );
  color: #f1f5ff;
}

.section-dark h2,
.section-dark p {
  color: inherit;
}

.section > .container > p,
.feature-item p,
.faq-item p {
  max-width: var(--measure);
}

/* legacy – currently unused */
.card-grid,
.feature-grid {
  display: grid;
  gap: var(--space-4);
}

/* legacy – currently unused */
.card,
.feature-item,
.pricing-card,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.feature-item,
.pricing-card,
.faq-item {
  padding: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transition: none;
}

.card:hover,
.feature-item:hover,
.pricing-card:hover,
.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border));
}

.card:active,
.feature-item:active,
.pricing-card:active,
.faq-item:active,
.btn:active {
  transform: translateY(0);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-item h3 {
  max-width: 22ch;
  line-height: 1.3;
}

/* legacy – currently unused */
.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent);
  font-weight: 700;
}

/* legacy – currently unused */
.product-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-title h2 {
  margin-bottom: 0;
}

.app-icon {
  width: 56px;
  height: 56px;
  flex: none;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.store-badge {
  display: inline-flex;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

.store-badge img {
  display: block;
  width: auto;
  height: 40px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex: 0 0 auto;
  display: block;
}

.btn--with-icon span {
  line-height: 1;
}

.btn:hover {
  filter: brightness(0.97);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 15%, transparent);
  transform: translateY(-2px);
}

.btn-secondary {
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 16%, var(--border));
}

.btn-secondary:hover {
  box-shadow: 0 8px 16px color-mix(in srgb, var(--accent) 10%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, white);
}

/* legacy – currently unused */
.pricing-card {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: linear-gradient(
    170deg,
    color-mix(in srgb, var(--accent) 8%, white),
    var(--surface) 38%
  );
}

.faq-grid {
  display: grid;
  gap: var(--space-3);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.product-main-macromind .hero,
.product-main-moodi .hero {
  padding-block: clamp(4rem, 6vw, 6.5rem);
}

.product-main-macromind .hero-inner,
.product-main-moodi .hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.product-main-macromind .hero-copy,
.product-main-moodi .hero-copy {
  max-width: 70ch;
}

.product-main-macromind .lead,
.product-main-moodi .lead {
  max-width: 62ch;
}

.product-main-macromind .store-badges,
.product-main-moodi .store-badges {
  margin-top: var(--space-4);
}

.hero-anchor-link {
  margin-top: var(--space-5);
  margin-bottom: 0;
}

.hero-anchor-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, white);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-anchor-link a:hover {
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  transform: translateY(-1px);
}

.product-main-macromind .section-band,
.product-main-moodi .section-band,
.product-main-home .section-band {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: var(--radius-lg);
  padding-block: clamp(2.8rem, 4vw, 3.4rem);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 8%, white),
    color-mix(in srgb, var(--accent) 4%, white)
  );
}

.product-main-macromind .section-band--soft,
.product-main-moodi .section-band--soft,
.product-main-home .section-band--soft {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 5%, white),
    color-mix(in srgb, var(--accent) 2.5%, white)
  );
}

.product-main-macromind .section-band--pro,
.product-main-moodi .section-band--pro {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 9%, white),
    color-mix(in srgb, var(--accent) 5%, white)
  );
}

.product-main-macromind .section-band--cta,
.product-main-moodi .section-band--cta,
.product-main-home .section-band--cta {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 12%, white),
    color-mix(in srgb, var(--accent) 8%, white)
  );
}

.section-editorial {
  padding-block: clamp(3rem, 5.5vw, 5rem);
}

.section-editorial .container > h2,
.section-editorial .container > p,
.text-narrow {
  max-width: 70ch;
}

.text-narrow > :last-child {
  margin-bottom: 0;
}

.product-main-macromind .section-split,
.product-main-moodi .section-split,
.product-main-home .section-split {
  padding-block: clamp(2.8rem, 5vw, 4.6rem);
}

.product-main-macromind .section-split.section-band + .section-split.section-band,
.product-main-moodi .section-split.section-band + .section-split.section-band,
.product-main-home .section-split.section-band + .section-split.section-band {
  margin-top: clamp(1rem, 2.2vw, 1.8rem);
}

.product-main-macromind .split-layout,
.product-main-moodi .split-layout,
.product-main-home .split-layout {
  align-items: center;
}

.product-main-macromind .split-copy ul,
.product-main-moodi .split-copy ul,
.product-main-home .split-copy ul {
  margin-bottom: 0;
}

.split-visual picture {
  max-width: 17rem;
  width: 100%;
}

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

.product-feature-grid {
  margin-top: var(--space-4);
}

.product-feature-grid .feature-item {
  gap: var(--space-2);
  padding: 1.1rem 0 1.35rem;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, var(--border));
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transition: none;
}

.product-feature-grid .feature-item:hover,
.product-feature-grid .feature-item:active {
  transform: none;
  box-shadow: none;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.product-feature-grid .feature-item h3 {
  margin-bottom: var(--space-2);
  max-width: 28ch;
}

.pro-section .text-narrow {
  margin-bottom: var(--space-4);
}

.pro-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pro-list li {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  max-width: 72ch;
}

.segment-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.segment-grid article {
  padding-top: var(--space-3);
  border-top: 1px solid color-mix(in srgb, var(--text) 12%, var(--border));
}

.segment-grid h3 {
  margin-bottom: 0.35rem;
}

.segment-grid p {
  margin: 0;
  max-width: 42ch;
}

.faq-editorial {
  margin-top: var(--space-4);
}

.faq-editorial .faq-item {
  padding: var(--space-3) 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, var(--border));
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transition: none;
}

.faq-editorial .faq-item:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, var(--border));
}

.faq-editorial .faq-item:hover,
.faq-editorial .faq-item:active {
  transform: none;
  box-shadow: none;
}

.faq-editorial summary {
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.faq-editorial summary::-webkit-details-marker {
  display: none;
}

.faq-editorial summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--muted);
  font-weight: 600;
}

.faq-editorial .faq-item[open] summary::after {
  content: "−";
}

.faq-editorial .faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.cta-band-inner > :last-child {
  margin-bottom: 0;
}

.cta-band-inner--with-icon {
  display: grid;
  gap: var(--space-3);
  align-items: center;
}

.cta-band-content > :last-child {
  margin-bottom: 0;
}

.cta-band-icon {
  display: flex;
  justify-content: center;
}

.cta-app-icon {
  width: clamp(5.5rem, 5rem + 1.8vw, 6.25rem);
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: block;
}

.cta-band h2 {
  margin-bottom: var(--space-2);
}

.support-minimal {
  padding-top: clamp(2.2rem, 3.5vw, 3rem);
  padding-bottom: clamp(2.6rem, 3.8vw, 3.2rem);
}

.support-minimal p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-4);
}

.footer-inner {
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.legal-page main {
  padding-block: 0;
}

.legal-content {
  width: min(100%, var(--measure));
}

.legal-content > * + * {
  margin-top: var(--space-3);
}

.legal-content h2 {
  margin-top: var(--space-6);
}

.legal-content h3 {
  margin-top: var(--space-4);
}

.legal-content p,
.legal-content li {
  max-width: none;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.35rem;
  margin-bottom: var(--space-4);
}

@media (min-width: 48rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .product-main-macromind .product-hero .hero-inner,
  .product-main-moodi .product-hero .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  /* legacy – currently unused */
  .section-principles .principles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-split .split-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 26rem;
  }

  .section-split .split-layout.split-layout-reverse > :first-child {
    order: 2;
  }

  .section-split .split-layout.split-layout-reverse > :last-child {
    order: 1;
  }

  .card-grid,
  .feature-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pro-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-5);
  }

  .store-badge img {
    height: 44px;
  }

  .cta-band-inner--with-icon {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-5);
  }

  .cta-band-icon {
    justify-content: flex-end;
  }
}

@media (min-width: 64rem) {
  .feature-grid.feature-grid-3,
  /* legacy – currently unused */
  .faq-grid.faq-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
