@font-face {
  font-family: "Archivo MANRA";
  src: url("assets/ArchivoMANRA.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #241e1d;
  --body: #58514e;
  --paper: #f8f6f2;
  --paper-warm: #f0eae1;
  --white: #fffefa;
  --dark: #161013;
  --dark-soft: #241119;
  --cream: #f2ede4;
  --oxblood: #800020;
  --oxblood-hover: #a12543;
  --rose: #e4a8b7;
  --line: #dfd6cf;
  --max: 1180px;
  font-family: "Archivo MANRA", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
img, video { max-width: 100%; }
img { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
::selection { background: #e6afbf; color: #1d1116; }

.container { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 132px) 0; }
.section-dark { color: var(--cream); background: var(--dark); }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 100; padding: 12px 18px; background: var(--cream); color: var(--dark); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #e0a0b4; outline-offset: 4px; }

/* Header */
.site-header { position: relative; z-index: 10; color: var(--cream); background: #100d0f; border-bottom: 1px solid rgba(242,237,228,.13); }
.header-inner { min-height: 84px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; max-width: 100%; text-decoration: none; }
.brand img { width: 112px; height: auto; }
.brand-divider { width: 1px; height: 27px; background: rgba(242,237,228,.28); }
.brand-product { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.main-nav { display: flex; justify-content: center; gap: clamp(16px, 2.6vw, 36px); }
.main-nav a, .header-cta { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.main-nav a { color: #cbc2bf; transition: color .2s ease; }
.main-nav a:hover { color: var(--white); }
.header-cta { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 9px 17px; border: 1px solid rgba(242,237,228,.6); border-radius: 6px; transition: background .2s ease, color .2s ease; }
.header-cta:hover { color: var(--dark); background: var(--cream); }

/* Shared type and controls */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 680; letter-spacing: -.045em; line-height: 1.11; }
h2 { max-width: 850px; font-size: clamp(38px, 5.15vw, 66px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
.eyebrow, .section-kicker { margin-bottom: 20px; color: var(--oxblood); font-size: 12px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.section-dark .section-kicker { color: var(--rose); }
.section-heading { max-width: 880px; margin-bottom: 50px; }
.section-heading h2 { margin-bottom: 22px; }
.section-intro { max-width: 695px; margin-bottom: 0; color: var(--body); font-size: clamp(17px, 1.65vw, 20px); line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 56px; padding: 15px 22px; border: 1px solid transparent; border-radius: 7px; font-size: 15px; font-weight: 720; line-height: 1.35; text-align: center; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--oxblood); }
.button-primary:hover { background: var(--oxblood-hover); }
.button span { font-size: 19px; font-weight: 400; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 11px; width: max-content; padding: 8px 0; border-bottom: 1px solid currentColor; font-weight: 640; text-decoration: none; }
.text-link:hover { color: var(--rose); }
.text-link-light { color: var(--cream); }

/* Hero */
.hero { overflow: hidden; padding: clamp(82px, 9vw, 130px) 0 65px; background: radial-gradient(circle at 89% 16%, rgba(128,0,32,.29), transparent 33%), #100d0f; }
.hero-copy { max-width: 1180px; }
.hero .eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; color: var(--rose); }
.eyebrow-line { display: inline-block; width: 30px; height: 1px; background: var(--rose); }
.hero h1 { max-width: 1000px; margin-bottom: 30px; font-size: clamp(52px, 7.4vw, 94px); line-height: 1.04; letter-spacing: -.058em; }
.hero h1 span { color: var(--rose); }
.hero-description { max-width: 760px; margin-bottom: 30px; color: #d0c6c3; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.67; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 29px; }
.supporting-line { margin: 20px 0 0; color: #b9adab; font-size: 14px; }
.screenshot-wrap { margin-top: clamp(55px, 8vw, 105px); }
.screenshot-head { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 16px; border: 1px solid #69545c; border-bottom: 0; border-radius: 10px 10px 0 0; background: #32252a; }
.screenshot-head span { width: 7px; height: 7px; border-radius: 50%; background: #a68991; }
.screenshot-head strong { margin-left: auto; color: #cbb7be; font-size: 10px; font-weight: 600; letter-spacing: .13em; }
.screenshot-scroll { overflow: auto; border: 1px solid #69545c; background: #f5f0e8; box-shadow: 0 30px 65px rgba(0,0,0,.33); scrollbar-color: #9c6979 #e9e2d9; }
.screenshot-scroll img { width: 100%; height: auto; }
.screenshot-note { display: flex; align-items: center; gap: 10px; margin: 17px 0 0; color: #b9adab; font-size: 13px; }
.screenshot-note span { color: var(--rose); }

/* Daily challenges */
.challenges { background: var(--paper); }
.challenge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.challenge-item { min-height: 250px; padding: 32px 30px 10px 0; }
.challenge-item + .challenge-item { padding-left: 30px; border-left: 1px solid var(--line); }
.item-number, .feature-number, .role-index, .step-number { color: var(--oxblood); font-size: 13px; font-weight: 720; letter-spacing: .08em; }
.challenge-item h3 { max-width: 320px; margin: 26px 0 15px; }
.challenge-item p, .feature-card p, .onboarding-intro > p:not(.section-kicker), .step-list p, .faq-list p { color: var(--body); line-height: 1.72; }
.challenge-item p { max-width: 320px; margin-bottom: 0; }

/* Demonstration */
.demo-section { background: var(--paper-warm); }
.section-heading-centered { max-width: 780px; margin-inline: auto; text-align: center; }
.section-heading-centered h2, .section-heading-centered .section-intro { margin-inline: auto; }
.demo-figure { margin: 0; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid #4b3038; border-radius: 12px; background: #1d3858; }
.demo-figure figcaption { margin-top: 14px; color: #665d58; font-size: 13px; }
.video-external { margin: 12px 0 0; text-align: right; }
.video-external a { color: var(--oxblood); font-size: 14px; font-weight: 680; text-underline-offset: 4px; }
.video-external a:hover { color: var(--oxblood-hover); }

/* Features */
.features { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-height: 282px; padding: 28px; border: 1px solid #e3dcd5; border-radius: 9px; background: var(--white); }
.feature-card h3 { margin: 43px 0 15px; font-size: clamp(21px, 2vw, 26px); }
.feature-card p { margin-bottom: 0; }

/* Roles */
.roles { background: #1d1117; }
.roles .section-heading h2 { max-width: 800px; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.role-card { min-height: 300px; padding: 30px; border: 1px solid rgba(242,237,228,.19); border-radius: 8px; background: rgba(242,237,228,.035); }
.role-index { color: var(--rose); }
.role-card h3 { margin: 65px 0 17px; }
.role-card p { margin-bottom: 0; color: #c8bebc; line-height: 1.72; }

/* Onboarding */
.onboarding { background: var(--paper-warm); }
.onboarding-layout { display: grid; grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr); gap: clamp(50px, 8vw, 120px); align-items: start; }
.onboarding-intro { position: sticky; top: 35px; }
.onboarding-intro h2 { margin-bottom: 20px; }
.onboarding-intro > p:not(.section-kicker) { max-width: 420px; margin-bottom: 28px; font-size: 18px; }
.step-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c9bcb5; }
.step-list li { display: grid; grid-template-columns: 50px 1fr; gap: 22px; padding: 27px 0 25px; border-bottom: 1px solid #c9bcb5; }
.step-number { padding-top: 5px; }
.step-list h3 { margin-bottom: 11px; font-size: clamp(21px, 2vw, 26px); }
.step-list p { margin-bottom: 0; }

/* FAQs */
.faq-section { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr); gap: clamp(45px, 8vw, 110px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 43px 24px 0; cursor: pointer; font-size: 19px; font-weight: 680; line-height: 1.35; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 19px; color: var(--oxblood); font-size: 27px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary:hover { color: var(--oxblood); }
.faq-list p { max-width: 660px; margin: -3px 42px 24px 0; }

/* Final CTA + footer */
.final-cta { background: radial-gradient(circle at 85% 25%, rgba(128,0,32,.4), transparent 35%), #180f13; }
.final-cta-inner { max-width: 900px; text-align: center; }
.final-cta h2 { max-width: none; margin-bottom: 22px; }
.final-cta-inner > p:not(.section-kicker) { max-width: 690px; margin: 0 auto 29px; color: #cfc3c0; font-size: 18px; }
.site-footer { padding: 36px 0; color: #c8c0bd; background: #100d0f; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
.footer-inner p, .footer-inner small { margin: 0; font-size: 13px; }
.footer-inner strong { color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 25px; }
.footer-links a { font-size: 13px; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--white); }

@media (max-width: 1040px) {
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; gap: 12px 20px; padding-block: 18px 13px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; gap: 10px 28px; padding-top: 9px; border-top: 1px solid rgba(242,237,228,.12); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 36px)); }
  .section { padding: 72px 0; }
  .hero { padding-top: 74px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(46px, 10.5vw, 69px); }
  .hero-description { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .screenshot-wrap { margin-top: 64px; }
  .screenshot-scroll img { width: 900px; max-width: none; }
  .screenshot-head { min-width: 0; }
  .screenshot-head strong { font-size: 9px; }
  .challenge-grid, .role-grid { grid-template-columns: 1fr; }
  .challenge-item, .challenge-item + .challenge-item { min-height: 0; padding: 27px 0 30px; border-left: 0; border-bottom: 1px solid var(--line); }
  .challenge-item h3 { margin-top: 17px; }
  .challenge-item p { max-width: 540px; }
  .role-card { min-height: 0; }
  .role-card h3 { margin-top: 30px; }
  .onboarding-layout, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .onboarding-intro { position: static; }
  .faq-layout .section-heading { margin-bottom: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .brand { gap: 9px; }
  .brand img { width: 88px; }
  .brand-product { font-size: 15px; }
  .brand-divider { height: 22px; }
  .header-cta { gap: 6px; min-height: 39px; padding: 8px 10px; font-size: 12px; }
  .main-nav { gap: 8px 16px; }
  .main-nav a { font-size: 12px; }
  .hero h1 { font-size: clamp(42px, 10.2vw, 53px); }
  .hero .eyebrow { font-size: 11px; }
  .button { width: 100%; }
  .section-heading { margin-bottom: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card h3 { margin-top: 27px; }
  .step-list li { grid-template-columns: 37px 1fr; gap: 12px; }
  .faq-list summary { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
