:root {
  --bg: 11, 22, 17;
  --surface: 17, 36, 26;
  --surface-soft: 23, 48, 34;
  --text: 230, 244, 236;
  --text-muted: 168, 198, 182;
  /* Accent */
  --primary: 54, 165, 106;
  /* Strong accent */
  --primary-strong: 44, 135, 87;
  --accent-glow: 31, 122, 76;
  --ambient-0: 24, 39, 30;
  --ambient-1: 29, 59, 43;
  --ambient-2: 24, 52, 39;
  --white: 255, 255, 255;
  --code-bg: 8, 18, 14;
  --code-text: 146, 228, 189;
  --shadow-color: 0, 0, 0;
  --stroke: 41, 82, 60;
  --focus: 127, 212, 164;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(var(--shadow-color), 0.35);
}

html[data-theme="light"] {
  --bg: 246, 250, 247;
  --surface: 255, 255, 255;
  --surface-soft: 236, 244, 239;
  --text: 18, 36, 28;
  --text-muted: 76, 106, 92;
  /* Accent */
  --primary: 31, 122, 76;
  /* Strong accent */
  --primary-strong: 25, 98, 61;
  --accent-glow: 49, 151, 96;
  --ambient-0: 227, 238, 231;
  --ambient-1: 214, 232, 221;
  --ambient-2: 201, 225, 212;
  --white: 255, 255, 255;
  --code-bg: 239, 246, 241;
  --code-text: 27, 78, 53;
  --shadow-color: 21, 55, 39;
  --stroke: 181, 210, 194;
  --focus: 31, 122, 76;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: rgb(var(--text));
  background:
    radial-gradient(circle at 10% 0%, rgb(var(--ambient-1)) 0%, transparent 33%),
    radial-gradient(circle at 95% 10%, rgb(var(--ambient-2)) 0%, transparent 25%),
    rgb(var(--bg));
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  /*padding: 5.5rem 0;*/
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(var(--surface-soft), 0.35) 0%, rgba(var(--bg), 0.75) 100%);
}

.eyebrow {
  color: rgb(var(--primary-strong));
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

h1,
h2 {
  font-family: "Source Serif 4", serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(var(--bg), 0.84);
  border-bottom: 1px solid rgba(var(--focus), 0.14);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  color: rgb(var(--text-muted));
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: rgb(var(--text));
  background: rgba(var(--accent-glow), 0.1);
}

.site-nav .nav-hidden {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
  background: transparent;
  color: rgb(var(--text-muted));
  border: 1px solid rgba(var(--focus), 0.22);
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

.theme-toggle .theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  width: 0.95rem;
  height: 0.95rem;
}

.theme-toggle .theme-icon-moon {
  display: none;
}

.theme-toggle[data-next-theme="dark"] .theme-icon-sun {
  display: none;
}

.theme-toggle[data-next-theme="dark"] .theme-icon-moon {
  display: inline-flex;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: rgb(var(--text));
  background: rgba(var(--accent-glow), 0.1);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: clip;
  
  /* Padding between the top menu bar and the main contents.
  AI suggested
  padding-top: 7rem; */
  padding-top: clamp(2.8rem, 5vw, 4.2rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.0fr 1.0fr;
  gap: clamp(2rem, 4vw, 3.2rem);
  position: relative;
  z-index: 2;
  align-items: center;
}

.hero-grid h1 {
  margin-bottom: 1rem;
  max-width: 22ch;
}

.lede {
  font-size: 1.12rem;
  line-height: 1.72;
  color: rgb(var(--text-muted));
  max-width: 40ch;
  margin-bottom: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.8rem 0 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.72rem 1.2rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.btn-primary {
  color: rgb(var(--white));
  background: linear-gradient(140deg, rgb(var(--primary)), rgb(var(--primary-strong)));
  box-shadow: 0 8px 20px rgba(var(--shadow-color), 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-image-wrap {
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--stroke));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-screenshot {
  overflow: hidden;
  vertical-align: top;
}

.btn-ghost {
  background: rgba(var(--surface-soft), 0.92);
  color: rgb(var(--text));
  border-color: rgb(var(--stroke));
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgb(var(--primary));
  background: rgba(var(--surface-soft), 1);
}

.platform-note {
  color: rgb(var(--text-muted));
  font-size: 0.95rem;
}

.hero-card {
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--stroke));
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* TODO: the background has a square-ish shape on the right edge of the window when the window width is too big. */
.hero-bg {
  position: absolute;
  inset: auto -15% -70px auto;
  width: 420px;
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, rgba(var(--accent-glow), 0.35), rgba(var(--accent-glow), 0));
  filter: blur(8px);
  pointer-events: none;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2.6rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.feature-card {
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--stroke));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.feature-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.feature-card p {
  margin-bottom: 0;
  color: rgb(var(--text-muted));
  line-height: 1.55;
}

.feature-card img {
  border-radius: 12px;
  border: 1px solid rgb(var(--stroke));
  margin-bottom: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-group-label {
  margin: 0.35rem 0 0;
  color: rgb(var(--primary-strong));
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.faq-item {
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--stroke));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

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

.faq-item summary:hover,
.faq-item summary:focus-visible {
  background: rgba(var(--accent-glow), 0.08);
}

.faq-chevron {
  color: rgb(var(--text-muted));
  transition: transform 180ms ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  border-top: 1px solid rgb(var(--stroke));
  padding: 0.95rem 1.1rem 1.1rem;
  color: rgb(var(--text-muted));
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.secondary-features {
  margin-top: 3rem;
}

.feature-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.4rem;
}

.feature-actions .btn {
  min-width: 9.25rem;
}

.secondary-title {
  margin-bottom: 1.2rem;
  color: rgb(var(--text));
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
}

.secondary-note {
  margin: 0.25rem 0 0;
  color: rgb(var(--text-muted));
  font-size: 0.98rem;
  grid-column: 1 / -1;
}

.secondary-note a {
  color: rgb(var(--focus));
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.secondary-note a:hover,
.secondary-note a:focus-visible {
  color: rgb(var(--text));
}

.secondary-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.secondary-feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  background: rgba(var(--surface), 0.7);
  border: 1px solid rgba(var(--focus), 0.16);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(var(--shadow-color), 0.1);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: rgb(var(--focus));
  background: rgba(var(--primary), 0.14);
  border: 1px solid rgba(var(--focus), 0.2);
  flex-shrink: 0;
}

.feature-icon::before {
  content: "";
  width: 2rem;
  height: 2rem;
  background-image: var(--icon-dark);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

html[data-theme="light"] .feature-icon::before {
  background-image: var(--icon-light);
}

.feature-icon svg,
.feature-icon img {
  display: block;
  width: 2rem;
  height: 2rem;
}

.secondary-feature-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}

.secondary-feature-card p {
  margin: 0;
  color: rgb(var(--text-muted));
  font-size: 0.94rem;
  line-height: 1.5;
}

.guides-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.3rem;
  align-items: start;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--stroke));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.guide-list {
  background: rgb(var(--surface-soft));
  border-radius: 14px;
  border: 1px solid rgb(var(--stroke));
  padding: 1rem;
}

.guide-list ul {
  margin: 0;
  padding-left: 1.1rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.support-grid article {
  background: rgb(var(--surface));
  border-radius: var(--radius);
  border: 1px solid rgb(var(--stroke));
}

.pricing-teaser {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
  align-items: center;
  background: linear-gradient(145deg, rgba(var(--surface-soft), 0.86), rgba(var(--surface), 0.96));
  border: 1px solid rgba(var(--focus), 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.pricing-teaser p {
  color: rgb(var(--text-muted));
}

.pricing-teaser-actions {
  display: flex;
  justify-content: flex-end;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.pricing-intro {
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--stroke));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.pricing-intro ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style-position: outside;
  color: rgb(var(--text-muted));
}

.pricing-intro ul li::marker {
  color: rgb(var(--primary-strong));
}

.pricing-screenshot {
  border-radius: 12px;
  border: 1px solid rgb(var(--stroke));
}

.pricing-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-top: 1rem;
  border: 1px solid rgba(var(--focus), 0.42);
  border-radius: 12px;
  overflow: hidden;
  background: rgb(var(--surface));
}

.pricing-table th,
.pricing-table td {
  border-right: 1px solid rgba(var(--focus), 0.34);
  border-bottom: 1px solid rgba(var(--focus), 0.34);
  padding: 0.62rem;
  text-align: left;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  border-right: 0;
}

.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table thead th {
  background: rgba(var(--surface-soft), 0.95);
}

.pricing-table tbody tr:nth-child(even) {
  background: rgba(var(--focus), 0.06);
}

.pricing-table tbody tr:hover {
  background: rgba(var(--focus), 0.12);
}

.pricing-footnote-wrap {
  margin-top: 0.8rem;
}



.legal-box {
  background: rgb(var(--surface));
  border-radius: var(--radius);
  border: 1px solid rgb(var(--stroke));
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.legal-links a {
  text-decoration: none;
  border: 1px solid rgb(var(--stroke));
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  border-color: rgb(var(--primary));
}

.footnote-wrap {
  padding: 0.5rem 0 0;
}

.footnote {
  font-size: 0.84rem;
  color: rgb(var(--text-muted));
  text-align: left;
}

.site-footer {
  border-top: 1px solid rgba(var(--focus), 0.16);
  padding: 1.1rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-wrap a {
  color: rgb(var(--primary-strong));
  text-decoration: none;
}

.footer-wrap p {
  margin: 0;
}

.footer-meta {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: rgb(var(--text-muted));
}

.footer-meta a {
  color: rgb(var(--text-muted));
  text-decoration: none;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: rgb(var(--text));
}

.footer-meta .sep {
  opacity: 0.75;
  margin: 0 0.35rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .section {
    padding: 2.4rem 0;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-grid,
  .feature-grid,
  .secondary-feature-grid,
  .guides-panel,
  .pricing-teaser,
  .support-grid,
  .legal-box {
    grid-template-columns: 1fr;
  }

  .pricing-teaser-actions {
    justify-content: flex-start;
  }

  .legal-box {
    align-items: start;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 4vw;
    width: min(240px, 80vw);
    background: rgb(var(--surface));
    border: 1px solid rgb(var(--stroke));
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 0.6rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .theme-toggle {
    align-self: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    border: 1px solid rgb(var(--stroke));
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: rgb(var(--surface));
    color: rgb(var(--text));
    font: inherit;
    cursor: pointer;
  }
}

:focus-visible {
  outline: 3px solid rgb(var(--focus));
  outline-offset: 2px;
}
