/* Cosmine — landing page (/ and /en/). Builds on style.css tokens. */

.landing { padding-top: 0; padding-bottom: 0; }
.landing p { margin: 0 0 var(--space-md); }

.section { padding: var(--space-xxl) 0; border-top: 1px solid var(--border); }
@media (min-width: 64rem) { .section { padding: 72px 0; } }

.overline {
  display: block; margin: 0 0 12px;
  font: 500 11px/14px var(--font-sans); letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--overline);
}
.section-title {
  font: 600 clamp(30px, 4vw, 40px)/1.2 var(--font-serif); letter-spacing: -0.3px;
  margin: 0 0 var(--space-md); max-width: 22ch;
}
.section-intro { color: var(--fg-2); font-size: 17px; line-height: 26px; max-width: 60ch; }

/* Moon phase motif (decorative) */
.moon circle { fill: var(--surface); stroke: var(--moon-line); stroke-width: 1; }
.moon path { fill: var(--moon-lit); }
.moons { display: flex; gap: 12px; margin: 0 0 var(--space-lg); padding: 0; list-style: none; }
.moons svg { width: 28px; height: 28px; display: block; }

/* Hero */
.hero { display: grid; gap: var(--space-xl); padding: 40px 0 var(--space-xxl); align-items: center; }
@media (min-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-xxl); padding: 72px 0; }
}
.hero h1 { margin: 0 0 20px; }
.wordmark {
  display: block; margin-bottom: var(--space-md);
  font: 500 12px/16px var(--font-sans); letter-spacing: 2px; text-transform: uppercase; color: var(--overline);
}
.hero-title {
  display: block; font: 600 clamp(34px, 5vw, 56px)/1.235 var(--font-serif); letter-spacing: -0.4px; max-width: 16ch;
}
.hero-sub { color: var(--fg-2); font-size: 17px; line-height: 26px; max-width: 46ch; }
/* Official store badges: unaltered artwork, equal height, clear space >= 1/4 height */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; list-style: none; margin: var(--space-lg) 0 0; padding: 0; }
.badges li { display: block; }
.badges a, .badge-pending { display: block; line-height: 0; border-radius: 10px; }
.badges img { display: block; height: 48px; width: auto; }

/* Phone frame: thin, #3E3230, flat (no shadow); corner ≈ 11% of width.
   Screenshots stay in the app's dark theme: a dark phone on the light page. */
.phone {
  margin: 0; background: var(--surface-inverse); padding: 1.8%;
  border-radius: 13% / 6%; line-height: 0;
}
.phone img, .phone picture { display: block; width: 100%; height: auto; border-radius: 11.4% / 5.25%; }
.hero-phone { width: min(72vw, 300px); justify-self: center; }
@media (min-width: 56rem) { .hero-phone { width: min(100%, 330px); } }

/* Features */
.features { display: grid; gap: var(--space-md); margin: var(--space-xl) 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 40rem) { .features > li:last-child { grid-column: 1 / -1; } .features > li:last-child p { max-width: 70ch; } }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-lg); }
.card h3 { font: 500 22px/28px var(--font-serif); margin: var(--space-md) 0 var(--space-sm); }
.card p, .card li { color: var(--fg-2-card); font-size: 15px; line-height: 22px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: 6px; }
.card li::marker { color: var(--accent); }
.icon { width: 28px; height: 28px; color: var(--text); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; display: block; }
.basis { font-size: 13px !important; line-height: 18px !important; color: var(--fg-2-card); margin-top: 12px; }
.basis::before { content: "✦ "; color: var(--accent); }

/* Membership */
.plans { display: grid; gap: var(--space-md); margin: var(--space-xl) 0 var(--space-md); padding: 0; list-style: none; }
@media (min-width: 40rem) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan h3 { margin-top: 0; }
.pill {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: var(--radius-pill);
  font: 500 12px/16px var(--font-sans); letter-spacing: 0.2px;
  background: var(--surface-elevated); color: var(--text);
}
/* Premium: the one dark block (#3E3230 + #F1E7DF, 10.1:1) */
.plan-premium { background: var(--surface-inverse); }
.plan-premium h3, .plan-premium p, .plan-premium li { color: var(--text-inverse); }
.plan-premium .pill { background: var(--bg); color: var(--text); }
.note { color: var(--fg-2); font-size: 14px; line-height: 20px; }

/* Gallery: horizontal scroll-snap strip (keyboard: focus the strip, then arrow keys) */
.gallery {
  margin: var(--space-xl) calc(-1 * var(--space-md)) 0; padding: 4px var(--space-md) var(--space-md);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-md);
  scrollbar-color: var(--surface-elevated) transparent;
}
@media (min-width: 40rem) {
  .gallery { margin-inline: calc(-1 * var(--space-lg)); padding-inline: var(--space-lg); scroll-padding-inline: var(--space-lg); }
}
.gallery:focus-visible { outline-offset: -2px; border-radius: var(--radius-lg); }
.gallery ul { display: flex; gap: var(--space-md); list-style: none; margin: 0; padding: 0; width: max-content; }
.gallery ul::after { content: ""; flex: 0 0 1px; }
.gallery li { flex: 0 0 min(64vw, 240px); width: min(64vw, 240px); scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--text); }
.gallery .num { display: block; font: 500 11px/14px var(--font-sans); letter-spacing: 1.6px; color: var(--overline); margin-bottom: 2px; }
.hint { color: var(--fg-2); font-size: 14px; line-height: 20px; margin-top: var(--space-sm); }

/* How it works */
.steps { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; gap: var(--space-md); counter-reset: step; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: var(--surface-inverse); color: var(--text-inverse);
  font: 600 17px/1 var(--font-serif);
}

/* FAQ */
.faq { max-width: var(--measure); margin-top: var(--space-xl); }
.faq details { background: var(--surface); border-radius: var(--radius-lg); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  min-height: 56px; padding: 14px 20px; font: 500 19px/26px var(--font-serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(45deg) translateY(-3px);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 20px 20px; color: var(--fg-2-card); font-size: 16px; line-height: 24px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--link); }
