:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --paper-deep: #eee4d2;
  --ink: #303841;
  --ink-soft: #5f635f;
  --charcoal: #1c242d;
  --charcoal-2: #252f3a;
  --coral: #a1403d;
  --coral-bright: #f08c82;
  --button-fill: #d13c30;
  --button-hover: #b63229;
  --button-ink: #fffaf5;
  --button-light-ink: #a1403d;
  --button-shadow: rgba(209, 60, 48, 0.21);
  --button-shadow-hover: rgba(209, 60, 48, 0.27);
  --mint: #a8d1b6;
  --forest: #426e54;
  --gold: #d7a33c;
  --line: rgba(48, 56, 65, 0.16);
  --shadow: 0 24px 70px rgba(34, 39, 45, 0.18);
  --radius: 28px;
  --shell: min(1180px, calc(100% - 48px));
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 7%, rgba(215, 163, 60, 0.16), transparent 27rem),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--charcoal);
  color: white;
  transform: translateY(-150%);
}

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

.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  width: var(--shell);
  min-height: 88px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.brand img { border-radius: 11px; box-shadow: 0 7px 16px rgba(27, 34, 42, 0.18); }

.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav > a:not(.button), .header-about { font-weight: 700; text-decoration: none; }
.site-header nav > a:not(.button):hover, .header-about:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border: 0;
  border-radius: 15px;
  background: var(--button-fill);
  box-shadow: 0 10px 24px var(--button-shadow);
  color: var(--button-ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--button-shadow-hover); background: var(--button-hover); }
.button:active { transform: translateY(0); }
.button-small { min-height: 44px; padding: 0.6rem 1rem; border-radius: 12px; }
.button-light { background: #fffaf1; color: var(--button-light-ink); box-shadow: 0 10px 30px rgba(30, 36, 42, 0.18); }
.button-light:hover { background: white; }

.button:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero {
  min-height: 700px;
  padding: 62px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(470px, 1.14fr);
  align-items: center;
  gap: 72px;
}

.hero-copy { position: relative; z-index: 2; }

.hero h1, .section-heading h2, .friend-card h2, .invite-about h2, .challenge-card h1, .invalid-invite h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero h1 { max-width: 720px; font-size: clamp(4rem, 7vw, 6.9rem); }
.hero-lede { max-width: 590px; margin: 28px 0 30px; color: var(--ink-soft); font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.text-link { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(48, 56, 65, 0.3); text-underline-offset: 5px; }
.platform-note { margin: 14px 0 0; color: var(--ink-soft); font-size: 0.86rem; }

.hero-art { position: relative; height: clamp(600px, 68vw, 760px); isolation: isolate; }
.hero-board-alt { position: absolute; top: 20px; left: 0; display: block; width: min(48%, 290px); height: auto; border: 6px solid var(--paper-deep); border-radius: 24px; box-shadow: 0 25px 45px rgba(22, 29, 37, 0.28); transform: rotate(-7deg); }
.hero-video { position: absolute; z-index: 1; top: 0; right: 0; display: block; width: min(60%, 360px); aspect-ratio: 886 / 1604; border: 8px solid var(--paper-deep); border-radius: 30px; background: #13171c; object-fit: cover; box-shadow: 0 30px 55px rgba(22, 29, 37, 0.32); transform: rotate(3deg); }
.hero-poem { position: absolute; z-index: 2; bottom: 12px; left: 10%; display: block; width: min(60%, 360px); filter: drop-shadow(0 18px 25px rgba(22, 29, 37, 0.22)); transform: rotate(-5deg); }

.marquee { padding: 17px 24px; overflow: hidden; background: var(--charcoal); color: #f8f1e6; }
.marquee div { max-width: 1400px; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 48px); white-space: nowrap; font-size: clamp(0.76rem, 1.15vw, 0.94rem); font-weight: 900; letter-spacing: 0.13em; }
.marquee i { color: var(--gold); font-style: normal; }

.intro { padding: 132px 0 76px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: end; }
.section-heading h2 { font-size: clamp(3rem, 5vw, 5rem); }
.section-intro { margin: 0 0 8px; color: var(--ink-soft); font-size: 1.18rem; line-height: 1.7; }

.feature-grid { padding-bottom: 132px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature { position: relative; min-height: 660px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-number { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 0.78rem; font-weight: 900; }
.feature-copy { position: relative; z-index: 2; max-width: 430px; }
.feature-copy h3 { margin: 26px 0 18px; font-size: clamp(2.1rem, 3.6vw, 3.4rem); letter-spacing: -0.045em; line-height: 1.02; }
.feature-copy p { max-width: 400px; margin: 0; font-size: 1.03rem; }
.feature-visual { position: absolute; }
.feature-visual img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 26px rgba(20, 26, 32, 0.23)); }

.feature-find, .feature-score { display: flex; flex-direction: column; }
.feature-find .feature-visual, .feature-score .feature-visual { position: static; align-self: center; flex: none; margin-top: auto; padding-top: 42px; transform: none; }

.feature-find { background: var(--charcoal); color: #f8f2e8; }
.feature-find .feature-copy p { color: #c9c9c1; }
.board-visual { width: min(100%, 230px); }

.feature-score { background: #dcebdc; }
.score-visual { width: min(100%, 250px); }

.feature-poem { grid-column: 1 / -1; min-height: 520px; display: flex; align-items: center; padding-right: 52%; background: #c75c54; color: #fff8ed; }
.feature-poem .feature-copy { max-width: 510px; }
.feature-poem .feature-copy p { color: rgba(255, 248, 237, 0.82); }
.poem-visual { width: 48%; right: 4%; top: 50%; transform: translateY(-50%) rotate(2deg); }

.friend-section { padding-bottom: 132px; }
.friend-card { padding: clamp(40px, 7vw, 84px); display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 80px; align-items: end; border-radius: 34px; background: var(--forest); color: #f8f2e8; box-shadow: var(--shadow); }
.friend-card .eyebrow { color: #bfdfc9; }
.friend-card h2 { font-size: clamp(3rem, 5vw, 5.2rem); }
.friend-copy p { margin: 0 0 30px; color: #dce8df; font-size: 1.12rem; }

.site-footer { min-height: 190px; padding: 44px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { border-radius: 13px; }
.footer-brand div { display: grid; }
.footer-brand strong { letter-spacing: 0.16em; }
.footer-brand span { color: var(--ink-soft); font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; font-weight: 700; }
.footer-links a { text-decoration: none; }
.copyright { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 0.82rem; }

/* Invitation */
.invite-page { background: radial-gradient(circle at 85% 12%, rgba(215, 163, 60, 0.22), transparent 24rem), var(--paper); }
.invite-header { position: relative; z-index: 4; }
.header-about { font-size: 0.94rem; }
.invite-main { padding-top: 38px; }
.invite-shell { width: min(1020px, calc(100% - 48px)); min-height: 660px; margin: 0 auto 110px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr); align-items: center; gap: 0; }
.invite-shell.without-poem { grid-template-columns: minmax(0, 660px); justify-content: center; }
.invite-handoff { grid-column: 1 / -1; margin-bottom: 24px; padding: 24px; border: 2px solid #efb945; border-radius: 24px; background: var(--charcoal); color: #f8f2e8; }
.invite-handoff .eyebrow { margin-bottom: 8px; color: #efb945; }
.invite-handoff h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.15; }
.invite-handoff p { max-width: 650px; margin: 12px 0; }
.invite-handoff .handoff-help { color: #cdd0cc; font-size: 0.95rem; }
.invite-handoff .text-link { color: #efb945; }

.challenge-card { position: relative; z-index: 2; padding: clamp(40px, 6vw, 72px); border-radius: 32px; background: var(--charcoal); box-shadow: 0 30px 80px rgba(26, 31, 37, 0.28); color: #f8f2e8; }
.challenge-card .eyebrow { color: var(--coral-bright); }
.challenge-card h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.challenge-card h1 strong { color: #efb945; font-weight: 900; }
.challenge-copy { max-width: 470px; margin: 26px 0; color: #cdd0cc; font-size: 1.12rem; }
.challenge-button { width: 100%; max-width: 410px; }
.challenge-stamp { position: absolute; top: 30px; right: 30px; padding: 7px 10px; border: 1px solid rgba(239, 185, 69, 0.7); border-radius: 8px; color: #efb945; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.14em; transform: rotate(4deg); }
.install-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; gap: 12px; color: #aeb5b2; font-size: 0.9rem; line-height: 1.5; }
.install-note p { margin: 0; }
.install-note strong { color: #f8f2e8; }
.install-note-icon { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #efb945; }

.shared-poem { position: relative; z-index: 1; margin-left: -18px; padding: 50px 42px 42px 62px; border-radius: 0 28px 28px 0; background: #3d6264; box-shadow: var(--shadow); color: #fff8e9; transform: rotate(1.5deg); }
.shared-poem .eyebrow { color: #b7d9ce; }
.shared-poem blockquote { margin: 28px 0 30px; font-size: clamp(1.5rem, 3vw, 2.45rem); font-weight: 800; line-height: 1.28; white-space: pre-line; }
.shared-poem blockquote::before { content: "“"; color: #efb945; }
.shared-poem blockquote::after { content: "”"; color: #efb945; }
.poem-caption { margin: 0; color: #c4d5d0; font-size: 0.85rem; }

.invite-about { margin-bottom: 110px; min-height: 510px; display: grid; grid-template-columns: 1fr 0.72fr; gap: 80px; align-items: center; padding: clamp(40px, 6vw, 72px); border-radius: 30px; background: #eadcbe; overflow: hidden; }
.invite-about h2 { margin-bottom: 26px; font-size: clamp(2.8rem, 5vw, 5rem); }
.invite-about-copy > p:not(.eyebrow) { max-width: 600px; color: var(--ink-soft); font-size: 1.08rem; }
.invite-about-art { align-self: end; margin-bottom: -210px; transform: rotate(4deg); }
.invite-about-art img { filter: drop-shadow(0 26px 30px rgba(31, 37, 42, 0.24)); }

.invalid-invite { max-width: 780px; min-height: 590px; padding: 85px 0 110px; text-align: center; }
.invalid-invite img { margin: 0 auto 28px; border-radius: 21px; box-shadow: var(--shadow); }
.invalid-invite h1 { font-size: clamp(3.3rem, 7vw, 6.4rem); }
.invalid-invite > p:not(.eyebrow) { max-width: 590px; margin: 28px auto; color: var(--ink-soft); font-size: 1.14rem; }
.invite-footer { margin-top: 0; }

[hidden] { display: none !important; }

@media (max-width: 920px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding-top: 54px; }
  .hero-copy { max-width: 700px; }
  .hero-art { width: min(680px, 100%); margin-inline: auto; }
  .intro { grid-template-columns: 1fr; gap: 30px; }
  .section-intro { max-width: 660px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-poem { grid-column: auto; min-height: 700px; padding-right: 34px; display: block; }
  .poem-visual { width: min(580px, 82%); top: auto; right: 5%; bottom: 35px; transform: rotate(2deg); }
  .friend-card { grid-template-columns: 1fr; gap: 34px; }
  .friend-copy { max-width: 600px; }
  .invite-shell { grid-template-columns: 1fr; max-width: 680px; }
  .shared-poem { width: 88%; margin: -18px auto 0; padding: 54px 40px 38px; border-radius: 0 0 28px 28px; transform: rotate(1deg); }
  .invite-about { grid-template-columns: 1fr 0.55fr; gap: 35px; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 32px, 1180px); --radius: 22px; }
  .site-header { min-height: 76px; }
  .site-header nav > a:not(.button) { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand { gap: 9px; font-size: 0.82rem; }
  .header-about { font-size: 0.86rem; }
  .hero { padding: 42px 0 70px; }
  .hero h1 { font-size: clamp(3.55rem, 17vw, 5rem); }
  .hero-lede { margin-top: 23px; font-size: 1.04rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-art { width: 100%; height: auto; aspect-ratio: 0.62; }
  .hero-board-alt { top: 5%; width: 46%; border-width: 4px; border-radius: 18px; transform: rotate(-5deg); }
  .hero-video { width: 61%; border-width: 5px; border-radius: 22px; transform: rotate(2deg); }
  .hero-poem { bottom: 0; left: 5%; width: 90%; transform: rotate(-4deg); }
  .marquee { padding-block: 14px; }
  .marquee div { width: max-content; justify-content: flex-start; animation: marquee 18s linear infinite; }
  .intro { padding: 90px 0 54px; }
  .section-heading h2 { font-size: clamp(2.9rem, 13vw, 4rem); }
  .feature-grid { padding-bottom: 88px; }
  .feature { min-height: 620px; padding: 27px; }
  .feature-copy h3 { font-size: 2.65rem; }
  .feature-poem { min-height: 620px; display: flex; flex-direction: column; align-items: stretch; padding-right: 27px; }
  .poem-visual { position: static; width: min(100%, 450px); margin-top: 42px; align-self: center; transform: none; }
  .friend-section { padding-bottom: 88px; }
  .friend-card { padding: 38px 28px; border-radius: 25px; }
  .friend-card h2 { font-size: 3.25rem; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .copyright { grid-column: auto; }
  .invite-main { padding-top: 18px; }
  .invite-shell { width: min(100% - 24px, 1020px); margin-bottom: 76px; }
  .challenge-card { padding: 64px 28px 30px; border-radius: 24px; }
  .challenge-card h1 { font-size: clamp(3.1rem, 15vw, 4.5rem); }
  .challenge-stamp { top: 22px; right: 22px; }
  .shared-poem { width: 92%; padding: 44px 26px 30px; }
  .invite-about { min-height: 720px; margin-bottom: 80px; grid-template-columns: 1fr; padding: 38px 28px; align-content: start; }
  .invite-about h2 { font-size: 3rem; }
  .invite-about-art { width: 270px; justify-self: end; margin: 0 -15px -290px 0; }
  .invalid-invite { padding-top: 60px; }
}

@keyframes marquee { to { transform: translateX(calc(-50% - 40px)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #13171c;
    --paper-deep: #1b2128;
    --ink: #ebece6;
    --ink-soft: #b2b5af;
    --coral: #f5a89e;
    --button-fill: #f5a89e;
    --button-hover: #ffd0c8;
    --button-ink: #303841;
    --button-light-ink: #ad4f4d;
    --button-shadow: rgba(245, 168, 158, 0.18);
    --button-shadow-hover: rgba(245, 168, 158, 0.24);
    --line: rgba(235, 236, 230, 0.14);
  }
  body { background: radial-gradient(circle at 78% 7%, rgba(215, 163, 60, 0.12), transparent 27rem), var(--paper); }
  .brand { color: var(--ink); }
  .intro, .site-footer { color: var(--ink); }
  .feature-score { background: #293a31; color: var(--ink); }
  .invite-about { background: #2a2c29; }
}

@media print {
  .site-header, .marquee, .button, .site-footer { display: none; }
  body { background: white; color: black; }
}

/* Searchable product questions use the same responsive layout as the introduction. */
.faq-section { padding-bottom: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.faq-answers h3 { margin: 28px 0 8px; font-size: 1.2rem; line-height: 1.35; }
.faq-answers h3:first-child { margin-top: 0; }
.faq-answers p { margin: 0; color: var(--ink-soft); }
@media (max-width: 920px) {
  .faq-section { grid-template-columns: 1fr; gap: 30px; padding-bottom: 88px; }
}

.developer-note { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
