/* Doomy landing page. The original template stylesheet remains for styles.html. */
:root {
  color-scheme: light;
  --background: #d9e8f7;
  --ink: #000;
  --panel: #edf4fb;
  --radius: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body {
  margin: 0;
background:
  radial-gradient(
    ellipse 120% 70% at 15% 28%,
    rgb(255 198 155 / 34%) 0%,
    rgb(255 208 175 / 18%) 38%,
    rgb(255 214 185 / 6%) 62%,
    rgb(255 214 185 / 0%) 85%
  ),
  radial-gradient(
    ellipse 115% 65% at 88% 48%,
    rgb(255 190 145 / 30%) 0%,
    rgb(255 205 170 / 15%) 40%,
    rgb(255 215 190 / 5%) 65%,
    rgb(255 215 190 / 0%) 86%
  ),
  radial-gradient(
    ellipse 95% 60% at 55% 35%,
    rgb(188 218 245 / 28%) 0%,
    rgb(188 218 245 / 10%) 50%,
    rgb(188 218 245 / 0%) 82%
  ),
  radial-gradient(
    ellipse 100% 55% at 45% 92%,
    rgb(255 220 195 / 20%) 0%,
    rgb(255 220 195 / 8%) 45%,
    rgb(255 220 195 / 0%) 82%
  ),
  var(--background);
  color: var(--ink);
  font-family: "Barlow", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #315c7b; outline-offset: 7px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure, blockquote { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.045em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(42px, 4.5vw, 64px); }
.container { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 16px; padding: 12px 20px; background: white; transform: translateY(-180%); z-index: 2; }
.skip-link:focus { transform: translateY(0); }

/* Quiet navigation, with all four items visible even on small screens. */
.site-header {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.brand {
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.055em;
  text-align: center;
}

.site-header .brand,
.site-footer .brand { letter-spacing: .015em; }

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  font-weight: 500;
}
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-list a:hover { text-decoration: underline; text-underline-offset: 7px; }
.nav-placeholder { cursor: default; }

/* The mascot's original PNG contains generous transparent padding. The frame
   removes that visual gap without cropping the character or changing the asset. */
.hero { padding-top: 101px; padding-bottom: 220px; text-align: center; }
.mascot { position: relative; width: 230px; max-width: 100%; aspect-ratio: 360 / 275; margin: 0 auto 32px; }
.mascot img { position: absolute; top: 0; left: 0; width: 100%; transform: translateY(-20.7%); pointer-events: none; }
.hero h1 { font-size: clamp(46.4px, 5.8vw, 83.2px); letter-spacing: -.055em; }
.hero-subtitle { margin-top: 26px; font-size: clamp(18.4px, 1.92vw, 25.6px); line-height: 1.35; }
.platform-note { margin-top: 17px; font-size: 15px; }
.google-play-link {
  display: block;
  width: fit-content;
  margin: 38px auto 0;
}

.google-play-badge {
  display: block;
  width: 250px;
  height: auto;
}
.positioning { padding: 0; text-align: center; }
.positioning h2 { max-width: 870px; margin-inline: auto; }
.positioning p { margin-top: 28px; font-size: 25px; }

/* Feature showcase */
.features-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  align-items: center;
  gap: 70px;
  padding-block: 116px 140px;
}


/* LEFT SIDE */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-card {
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.05);
  opacity: .78;
  transition: opacity 250ms ease, background-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.feature-card.active {
  opacity: 1;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .07);
  transform: translateX(8px);
}

.feature-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.4;
}


/* RIGHT SIDE */

.feature-video-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 620px;
  min-width: 0;
}

.feature-video-crop {
  /* Measured visible area of the 1080 x 2338 source: 1076 x 2094.
     Adjust --video-zoom here if the exported edge needs a small trim. */
  --video-zoom: 1.004;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1076 / 2094;
  overflow: hidden;
  border-radius: 7.5% / 3.85%;
  /* Trim only the top and bottom without scaling or distorting the UI. */
  clip-path: inset(1% 0 .6% 0 round 7.5% / 3.85%);
}

.feature-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--video-zoom));
}
.community { padding-block: 146px 150px; text-align: center; }
.section-subtitle { margin-top: 24px; font-size: 25px; }
.review-card { max-width: 820px; margin: 52px auto 0; padding: 48px 54px; border-radius: 30px; background: #fff; text-align: left; box-shadow: 0 6px 0 rgb(63 95 121 / 5%); }
.review-stars { font-size: 25px; letter-spacing: 5px; line-height: 1; }
.review-card blockquote { margin-top: 27px; font-size: 24px; line-height: 1.6; }
.review-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 18px; font-weight: 600; }
.review-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--background); font-size: 19px; }

.closing { padding-bottom: 76px; }
.closing-panel { padding: 80px 40px 88px; text-align: center; }
.closing-eyebrow { display: block; margin-bottom: 30px; font-size: 17px; font-weight: 500; }
.closing p { max-width: 630px; margin: 30px auto 0; font-size: 25px; line-height: 1.5; }
.site-footer { display: flex; align-items: center; gap: 30px; padding-block: 30px 42px; border-top: 1px solid rgb(0 0 0 / 13%); }
.site-footer .brand { font-size: 34px; margin-right: auto; }
.site-footer p { font-size: 14px; }
.template-credit a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .container { width: calc(100% - 72px); }
.features-showcase {
  gap: 45px;
}

.feature-video-wrap {
  height: 540px;
}

.feature-card h3 {
  font-size: 25px;
}
}

@media (max-width: 800px) {
  .container { width: calc(100% - 48px); }
  .site-header { min-height: 108px; }
  .nav-list { gap: 24px; font-size: 17px; }
  .hero { padding-block: 85px 100px; }
  .hero h1 { font-size: 60.8px; }
  .positioning p, .section-subtitle { font-size: 22px; }
  .features-showcase {
  grid-template-columns: 1fr;
  gap: 60px;
  padding-block: 66px 90px;
}

.feature-list {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.feature-video-wrap {
  width: 100%;
  max-width: 650px;
  height: 520px;
  margin-inline: auto;
}
  .community { padding-block: 91px 100px; }
  .review-card { padding: 40px; }
  .site-footer { flex-wrap: wrap; gap: 20px; }
  .template-credit { flex-basis: 100%; }
}

@media (max-width: 480px) {
  :root { --radius: 28px; }
  .container { width: calc(100% - 40px); }
  .site-header { flex-direction: column; justify-content: center; gap: 16px; padding-top: 26px; }
  .brand { font-size: 42px; }
  .nav-list { gap: 27px; font-size: 16px; }
  .hero {
    padding-block: 79px 76px;
    /* Leave the next heading below the first screen (128px header + 24px buffer). */
    min-height: calc(100vh - 104px);
    min-height: calc(100svh - 104px);
  }
  .mascot { width: 190px; margin-bottom: 26px; }
  .google-play-badge { width: 200px; }
  .feature-video-crop { --video-zoom: 1.02; }
  .hero h1 { font-size: clamp(38.4px, 11.2vw, 51.2px); }
  .hero-subtitle { max-width: 300px; margin: 22px auto 0; font-size: 18.4px; }
  .platform-note { font-size: 13px; }
  h2 { font-size: 42px; }
  .positioning h2 { font-size: 37px; }
  .positioning p, .section-subtitle { font-size: 20px; line-height: 1.5; }
  .positioning p { margin-top: 22px; }
 .features-showcase {
  padding-block: 46px 70px;
  gap: 45px;
}

.feature-list {
  gap: 14px;
}

.feature-card {
  padding: 22px;
  border-radius: 18px;
}

.feature-card h3 {
  font-size: 22px;
}

.feature-card p {
  font-size: 17px;
}

.feature-video-wrap {
  height: 360px;
}
  .community { padding-block: 64px 80px; }
  .review-card { margin-top: 32px; padding: 30px 26px; border-radius: 26px; }
  .review-card blockquote { font-size: 20px; line-height: 1.6; }
  .review-stars { font-size: 22px; }
  .closing { padding-bottom: 48px; }
  .closing-panel { padding: 48px 24px 52px; }
  .closing-eyebrow { max-width: 230px; margin: 0 auto 24px; font-size: 15px; }
  .closing p { margin-top: 24px; font-size: 21px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 28px; }
  .site-footer .template-credit { flex-basis: auto; }
  .site-footer p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card { transition: none; }
  .feature-card.active { transform: none; }
}

/* FAQ uses the shared page background, container, header and footer above. */
.faq-page { max-width: 800px; padding-block: 56px 112px; }
.faq-page h1 { margin-bottom: 48px; font-size: clamp(40px, 4.5vw, 64px); text-align: center; }
.faq-list { display: grid; gap: 16px; }
.faq-card { background: rgb(255 255 255 / 80%); border-radius: 20px; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 80px;
  padding: 24px 28px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.faq-question:focus-visible { outline: 3px solid #315c7b; outline-offset: 4px; }
.faq-icon { flex: 0 0 24px; font-size: 28px; line-height: 1; text-align: center; transition: transform 250ms ease; }
.faq-card.is-open .faq-icon { transform: rotate(45deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 250ms ease, visibility 250ms; }
.faq-card.is-open .faq-panel { grid-template-rows: 1fr; visibility: visible; }
.faq-panel-inner { min-height: 0; overflow: hidden; }
.faq-answer { padding: 0 28px 28px; font-size: 19px; line-height: 1.65; overflow-wrap: anywhere; }
.faq-answer p + p { margin-top: 18px; }
.faq-answer strong { font-weight: 600; }
.faq-answer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  .faq-page { padding-block: 48px 72px; }
  .faq-page h1 { margin-bottom: 32px; font-size: 40px; }
  .faq-list { gap: 14px; }
  .faq-question { gap: 16px; min-height: 76px; padding: 20px; font-size: 20px; }
  .faq-answer { padding: 0 20px 24px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel, .faq-icon { transition: none; }
}
