:root {
  --bg: #f6fbfa;
  --bg-strong: #dff4ef;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --surface-ink: #10342f;
  --line: rgba(16, 52, 47, 0.14);
  --line-strong: rgba(16, 52, 47, 0.24);
  --brand: #0f766e;
  --brand-deep: #0b4f4a;
  --accent: #c28a2b;
  --text: #183733;
  --text-soft: #456763;
  --heading: #112622;
  --shadow-soft: 0 16px 40px rgba(15, 62, 57, 0.08);
  --shadow-strong: 0 24px 60px rgba(15, 62, 57, 0.14);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shell: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(194, 138, 43, 0.12), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(15, 118, 110, 0.12), transparent 24%),
    linear-gradient(180deg, #f7fcfb 0%, #eff7f5 48%, #f8fbfa 100%);
  font: 400 1rem/1.7 "Manrope", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

p,
li {
  max-width: 68ch;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-family: "Fraunces", serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  background: var(--brand-deep);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(246, 251, 250, 0.84);
  border-bottom: 1px solid rgba(16, 52, 47, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 62, 57, 0.18);
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.3rem;
}

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

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--brand-deep);
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(145deg, #0e6b64, #083f3b);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.62);
  color: var(--brand-deep);
  border-color: var(--line);
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.store-badge-link-header {
  flex: 0 0 auto;
}

.store-badge {
  display: block;
  width: auto;
  height: 3.5rem;
}

.hero {
  padding: 4.75rem 0 3rem;
}

.page-main {
  padding-bottom: 4rem;
}

.hero-grid,
.content-grid,
.footer-grid,
.page-hero-grid,
.article-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
}

.page-hero {
  padding: 3.7rem 0 2rem;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: start;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  margin: 1.35rem 0 0;
  font-size: 1.1rem;
  color: var(--text-soft);
}

.page-summary {
  margin: 1.25rem 0 0;
  color: var(--text-soft);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.app-spotlight {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(16, 52, 47, 0.1);
  box-shadow: var(--shadow-soft);
}

.app-icon {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.15rem;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(15, 62, 57, 0.16);
}

.app-spotlight-copy {
  display: grid;
  gap: 0.22rem;
}

.app-spotlight-copy strong {
  color: var(--heading);
  font-size: 1rem;
}

.app-spotlight-copy span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-points {
  display: grid;
  gap: 0.7rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1.3rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.hero-card,
.page-aside-card,
.step-card,
.hub-card,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1.25rem;
}

.page-aside-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 138, 43, 0.25), transparent 70%);
}

.video-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 1.7rem;
  background: #0f172a;
  border: 1px solid rgba(16, 52, 47, 0.12);
  box-shadow: 0 24px 40px rgba(15, 62, 57, 0.14);
  aspect-ratio: 9 / 16;
}

.video-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.app-icon-large {
  width: 7rem;
  height: 7rem;
  margin-bottom: 1rem;
}

.stat-card {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(16, 52, 47, 0.08);
}

.stat-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-copy {
  margin: 0;
  color: var(--text-soft);
}

.value-strip,
.section,
.site-footer {
  padding: 2rem 0 5rem;
}

.value-strip {
  padding-top: 1rem;
}

.value-grid,
.steps-grid,
.hub-grid,
.faq-list {
  display: grid;
  gap: 1.25rem;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.value-grid article {
  padding: 1.4rem 1.3rem;
  border-top: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.52);
}

.value-grid p,
.prose p,
.step-card p,
.hub-card p,
.faq-item p,
.site-footer p {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
}

.content-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  align-items: start;
}

.article-main {
  display: grid;
  gap: 1.4rem;
}

.article-aside {
  display: grid;
  gap: 1rem;
}

.content-section {
  padding: 1.55rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(16, 52, 47, 0.1);
  box-shadow: var(--shadow-soft);
}

.content-section p:first-of-type {
  margin-top: 0.85rem;
}

.toc-card,
.note-card {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 52, 47, 0.1);
  box-shadow: var(--shadow-soft);
}

.toc-card {
  display: grid;
  gap: 0.75rem;
}

.toc-card a {
  color: var(--brand-deep);
  text-decoration: none;
}

.toc-card a:hover,
.toc-card a:focus-visible {
  text-decoration: underline;
}

.note-card p {
  margin: 0.45rem 0 0;
}

.steps-list,
.bullet-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.steps-list li,
.bullet-list li {
  margin-bottom: 0.7rem;
}

.section-accent .shell,
.section-knowledge .shell {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(223, 244, 239, 0.75), rgba(255, 255, 255, 0.72)),
    var(--bg-strong);
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.steps-grid,
.hub-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.7rem;
}

.step-card,
.hub-card,
.faq-item {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.step-index {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hub-card a {
  text-decoration: none;
}

.hub-card a:hover,
.hub-card a:focus-visible {
  color: var(--brand-deep);
  text-decoration: underline;
}

.faq-list {
  margin-top: 1.7rem;
}

.faq-section {
  padding-bottom: 4rem;
}

.site-footer {
  border-top: 1px solid rgba(16, 52, 47, 0.08);
  padding-top: 2.5rem;
}

.footer-title {
  margin: 0;
  color: var(--heading);
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
}

.site-footer nav {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.75rem;
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.38);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .hero-grid,
  .page-hero-grid,
  .content-grid,
  .article-grid,
  .footer-grid,
  .value-grid,
  .steps-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.25rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .article-aside {
    order: -1;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--shell));
  }

  .site-header {
    position: static;
  }

  .header-bar {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 0.9rem 0 1.1rem;
  }

  .button {
    width: 100%;
  }

  .brand {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .brand-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    flex: 0 0 auto;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy span {
    font-size: 0.9rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
    align-items: start;
  }

  .site-nav a {
    line-height: 1.3;
  }

  .store-badge-link {
    width: auto;
    justify-content: flex-start;
  }

  .store-badge-link-header {
    justify-self: start;
  }

  .store-badge {
    width: auto;
    max-width: min(100%, 220px);
    height: auto;
  }

  .page-hero,
  .hero {
    padding-top: 2.3rem;
  }

  .page-copy,
  .hero-copy {
    min-width: 0;
  }

  .breadcrumbs {
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(2.45rem, 10vw, 3.6rem);
  }

  .lead,
  .page-summary {
    font-size: 1rem;
  }

  .app-spotlight {
    width: 100%;
    align-items: center;
  }

  .app-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
  }

  .hero-card,
  .page-aside-card,
  .content-section,
  .toc-card,
  .note-card,
  .section-accent .shell,
  .section-knowledge .shell,
  .step-card,
  .hub-card,
  .faq-item {
    border-radius: 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
