/* ============================================
   Sayminder — bespoke marketing styling
   Scoped to `.sy-page` (the marketing body wrapper from
   _layouts/app-sayminder.html). Warm parchment paper, midnight-steel ink,
   and a brass accent — an editorial "warm paper + midnight clock" identity.
   Colors reuse the shared per-app theme tokens (see app-themes.css) so the
   body, app header, and nav stay in one palette. Loaded only on the Sayminder
   marketing page.
   ============================================ */

/* Page wash — soft parchment tints. */
.sy-page {
  --app-page-bg:
    linear-gradient(180deg, rgba(246, 241, 227, 0.98) 0%, rgba(246, 241, 227, 0.95) 28%, rgba(251, 247, 236, 0.96) 58%, rgba(255, 252, 243, 0.98) 100%);
}

/* Hero on a clean chalk surface so it reads distinctly from the tinted bands
   below it. The shell is centered at a max width, so a full-bleed ::before
   paints the band edge to edge, including the left/right gutters. */
.sy-page .marketing-hero-shell {
  isolation: isolate;
}

.sy-page .marketing-hero-shell::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -72px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #FFFCF3;
  z-index: -1;
}

.sy-page h1:first-child {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 4.6vw, 36px);
  line-height: 1.14;
  margin-bottom: 18px;
  background: linear-gradient(120deg, var(--app-accent) 0%, var(--app-accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lead subhead: the bold sentence immediately after the title. */
.sy-page h1:first-child + p {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 18px;
  line-height: 1.65;
  text-align: center;
  color: var(--color-text-strong);
}

.sy-page h2 + ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-left: 0;
  list-style: none;
}

.sy-page h2 + ul li {
  margin-bottom: 0;
  padding: 22px 24px;
  border: 1px solid var(--app-accent-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFCF3 0%, #F6F1E3 100%);
  box-shadow: 0 18px 42px rgba(20, 49, 74, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

/* Section headings get a hairline accent rule above them. */
.sy-page h2 {
  padding-top: 20px;
  border-top: 2px solid var(--app-accent-soft);
  color: var(--app-accent-strong);
  font-family: Georgia, 'Times New Roman', serif;
}

.sy-page h3 {
  color: var(--app-accent-strong);
}

.sy-page strong {
  color: var(--app-accent-strong);
}

.sy-page ul li::marker {
  color: var(--app-accent);
}

.sy-page ol {
  padding-left: 0;
  list-style: none;
  counter-reset: sy-step;
}

.sy-page ol > li {
  position: relative;
  margin-bottom: 16px;
  padding: 18px 24px 18px 70px;
  counter-increment: sy-step;
  border: 1px solid var(--app-accent-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFCF3 0%, #F6F1E3 100%);
  box-shadow: 0 18px 42px rgba(20, 49, 74, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sy-page ol > li::before {
  content: counter(sy-step);
  position: absolute;
  inset-inline-start: 20px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-accent) 0%, var(--app-accent-strong) 100%);
  color: #FFFCF3;
  font-weight: 700;
}

/* Showcase: soft parchment band, tinted device edges. */
.app-showcase--sy {
  border-top-color: var(--app-accent-soft);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 14%, rgba(169, 120, 86, 0.12) 0%, transparent 24%),
    linear-gradient(180deg, var(--app-accent-soft) 0%, transparent 55%);
}

.app-showcase--sy .showcase-media img {
  border: 1px solid var(--app-accent-soft);
}

.app-showcase--sy .showcase-item {
  border-color: rgba(20, 49, 74, 0.08);
}

.app-showcase--sy .showcase-step {
  background: linear-gradient(135deg, #FFFCF3 0%, #F6F1E3 100%);
}

/* Merge the showcase's bottom boundary with the first band below it into a
   single line. */
.sy-page .app-showcase + .marketing-band {
  border-top: 0;
  padding-top: 0;
}

/* Meta-note under the hero download badge: tighten space above, add room below
   before the showcase. */
.sy-page .marketing-cta-row {
  gap: 4px;
  margin-bottom: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .sy-page h2 + ul li:hover,
  .sy-page ol > li:hover {
    transform: translateY(-2px);
    border-color: rgba(169, 120, 86, 0.32);
    box-shadow: 0 22px 48px rgba(20, 49, 74, 0.1);
  }
}

@media (max-width: 768px) {
  .sy-page h1:first-child {
    font-size: 28px;
  }

  .sy-page h2 + ul {
    grid-template-columns: 1fr;
  }

  .sy-page .marketing-cta-panel {
    clip-path: inset(-56px -100vw 0 -100vw);
  }
}

/* Hero gallery: soft parchment frames and eyebrow, matching the showcase band. */
.hero-gallery--sy .hero-gallery-label {
  color: var(--app-accent-strong);
}

.hero-gallery--sy .hero-gallery-track--fallback .hero-gallery-frame,
.hero-gallery--sy .hero-gallery-marquee .hero-gallery-frame {
  border-color: var(--app-accent-soft);
  background: linear-gradient(180deg, #FFFCF3 0%, #F6F1E3 100%);
}

.hero-gallery--sy .hero-gallery-track--fallback .hero-gallery-frame img,
.hero-gallery--sy .hero-gallery-marquee .hero-gallery-frame img {
  border: 1px solid var(--app-accent-soft);
}

/* Give the intro paragraph more breathing room below the hero gallery. */
.sy-page .marketing-hero-shell .hero-gallery--sy + p {
  margin-top: clamp(32px, 5vw, 56px);
}

/* Screenshot placeholder frame — used on the marketing page in lieu of real
   device mockups until App Store screenshots are dropped in. */
.sy-page .marketing-shot-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 8px auto 0;
}

.sy-page .marketing-shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 660 / 1434;
  padding: 24px;
  text-align: center;
  border: 1px dashed rgba(20, 49, 74, 0.28);
  border-radius: 28px;
  background:
    repeating-linear-gradient(135deg, rgba(169, 120, 86, 0.06) 0 14px, rgba(246, 241, 227, 0.5) 14px 28px);
  color: var(--app-accent-strong);
}

.sy-page .marketing-shot-placeholder-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.sy-page .marketing-shot-placeholder-caption {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .sy-page .marketing-shot-placeholder-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .sy-page .marketing-shot-placeholder-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared marketing modules: illuminated-paper surfaces, brass chips. */
.sy-page .marketing-chip {
  background: linear-gradient(180deg, rgba(255, 252, 243, 0.96) 0%, rgba(246, 241, 227, 0.9) 100%);
}

.sy-page h2.marketing-section-title,
.sy-page h2.app-showcase-title,
.sy-page .marketing-cta-panel h2 {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
  border-bottom: 0;
}

.sy-page .marketing-cta-panel h2,
.sy-page .marketing-cta-panel h3,
.sy-page .marketing-cta-panel p {
  color: inherit;
}

.sy-page .marketing-stat-value {
  background: linear-gradient(135deg, var(--app-accent) 0%, var(--app-accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sy-page .marketing-band {
  background:
    radial-gradient(circle at 84% 16%, rgba(169, 120, 86, 0.16) 0%, transparent 24%),
    linear-gradient(180deg, rgba(246, 241, 227, 0.96) 0%, rgba(251, 247, 236, 0.94) 58%, rgba(255, 252, 243, 0.98) 100%);
}

/* Plain band on solid chalk to set it apart from the tinted bands. */
.sy-page .marketing-band--plain {
  background: #FFFCF3;
}

.sy-page .marketing-band::after {
  background: rgba(20, 49, 74, 0.08);
}

.sy-page .marketing-card,
.sy-page .marketing-step,
.sy-page .marketing-price-card,
.sy-page .marketing-story-card {
  border-color: rgba(20, 49, 74, 0.1);
}

.sy-page .marketing-card--featured {
  border-color: rgba(20, 49, 74, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 243, 0.96) 0%, rgba(255, 252, 243, 0.86) 100%);
}

.sy-page .marketing-price-card.is-featured {
  background: linear-gradient(160deg, rgba(169, 120, 86, 0.16) 0%, rgba(255, 252, 243, 0.96) 76%);
}

/* CTA box keeps an ink→brass gradient; the area around it reads chalk via a
   large box-shadow (clipped so it does not bleed into the footer). */
.sy-page .marketing-cta-panel {
  background: linear-gradient(145deg, rgba(20, 49, 74, 0.98) 0%, rgba(169, 120, 86, 0.92) 100%);
  box-shadow:
    0 32px 88px rgba(3, 7, 18, 0.18),
    0 0 0 100vw #FFFCF3;
  clip-path: inset(-72px -100vw 0 -100vw);
}

/* CTA link pills: light fill with dark accent text, overriding the base
   white-on-dark style used on the gradient panel. */
.sy-page .marketing-cta-panel .marketing-inline-link {
  border-color: rgba(255, 252, 243, 0.22);
  background: rgba(255, 252, 243, 0.92);
  color: var(--app-accent-strong);
  text-decoration: none;
}

.sy-page .marketing-cta-panel .marketing-inline-link:not(.marketing-inline-link--static):hover {
  border-color: rgba(255, 252, 243, 0.36);
  background: #FFFCF3;
}
