:root {
  --bg: #fff7f4;
  --bg-deep: #fde8e4;
  --ink: #2a1f24;
  --ink-soft: #6b5560;
  --accent: #e24b6e;
  --accent-deep: #c73a5c;
  --line: rgba(42, 31, 36, 0.1);
  --max: 1120px;
  --pad: clamp(1.1rem, 4.5vw, 2.5rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
  padding-bottom: var(--safe-bottom);
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

code {
  font-size: 0.85em;
  word-break: break-all;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 15% -10%, #ffd4dc 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 15%, #ffe8d6 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, #f5d0d8 0%, transparent 55%),
    linear-gradient(180deg, #fff9f7 0%, #fff3ef 45%, #fdeee9 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(0.85rem + var(--safe-top)) var(--pad) 0.85rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 247, 244, 0.82);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.header-cta {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-deep);
  padding: 0.55rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.header-cta:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  min-height: min(100svh, 920px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 4rem) var(--pad) clamp(2.5rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark-icon {
  width: clamp(52px, 8vw, 72px);
  height: clamp(52px, 8vw, 72px);
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.closing .brand-mark-icon {
  width: clamp(44px, 6vw, 56px);
  height: clamp(44px, 6vw, 56px);
  border-radius: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6.2vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.14;
  max-width: 14ch;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  min-height: 44px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.app-store-badge img {
  width: min(156px, 46vw);
  height: auto;
}

.closing .app-store-badge img {
  width: min(180px, 52vw);
}

/* Mockups */
.mockup {
  position: relative;
  margin: 0;
  width: 100%;
}

.mockup-img {
  width: 100%;
  max-width: min(340px, 100%);
  max-height: min(70vh, 680px);
  margin: 0 auto;
  border-radius: clamp(18px, 4vw, 28px);
  object-fit: contain;
}

.mockup.is-empty .mockup-img {
  display: none;
}

.mockup-placeholder {
  display: none;
  aspect-ratio: 9 / 19.5;
  max-width: min(320px, 78vw);
  margin: 0 auto;
  border: 1.5px dashed rgba(226, 75, 110, 0.45);
  border-radius: 36px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(253, 232, 228, 0.9));
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 1.25rem;
  align-items: center;
  justify-content: center;
}

.mockup.is-empty .mockup-placeholder {
  display: flex;
}

.hero-visual .mockup-img,
.hero-visual .mockup-placeholder {
  animation: floatSoft 7s ease-in-out infinite;
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Feature band */
.feature-band {
  padding: clamp(2.75rem, 9vh, 6rem) var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.feature-band-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.feature-band h2,
.split-copy h2,
.closing h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.feature-band h2 {
  font-size: clamp(1.55rem, 5.5vw, 2.4rem);
}

.feature-band p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 3.2vw, 1.1rem);
}

/* Split */
.split {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 7rem) var(--pad);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
}

.split-copy h2 {
  font-size: clamp(1.55rem, 5.2vw, 2.3rem);
  margin-bottom: 1.35rem;
  max-width: 16ch;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.feature-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0.95rem;
  border-left: 2px solid var(--accent);
}

.feature-list strong {
  font-weight: 600;
  font-size: clamp(1rem, 3.2vw, 1.05rem);
}

.feature-list span {
  color: var(--ink-soft);
  font-size: clamp(0.94rem, 3vw, 0.98rem);
}

/* Closing */
.closing {
  padding: clamp(3.25rem, 11vh, 7rem) var(--pad);
  text-align: center;
  background:
    linear-gradient(180deg, transparent, rgba(255, 212, 220, 0.35));
}

.closing-inner {
  max-width: 520px;
  margin: 0 auto;
}

.closing .brand-mark {
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.closing h2 {
  font-size: clamp(1.55rem, 5.2vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.closing p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 3.2vw, 1.1rem);
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad) calc(1.75rem + var(--safe-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  justify-content: center;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet / mobile */
@media (max-width: 860px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    padding-top: 1.1rem;
    padding-bottom: 2.5rem;
    text-align: center;
    gap: 1.75rem;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero .brand-mark {
    display: none;
  }

  .hero h1,
  .lede {
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
  }

  .lede {
    max-width: 34ch;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    width: 100%;
  }

  .hero-visual .mockup-img,
  .hero-visual .mockup-placeholder {
    max-width: min(280px, 72vw);
    max-height: 52vh;
  }

  .split {
    gap: 2rem;
    text-align: left;
  }

  .split-visual {
    order: -1;
  }

  .split-visual .mockup-img,
  .split-visual .mockup-placeholder {
    max-width: min(300px, 78vw);
    max-height: 55vh;
  }

  .split-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .split-copy h2 {
    max-width: none;
  }

  .split-copy .app-store-badge {
    align-self: center;
  }

  .feature-band-inner {
    padding-inline: 0.25rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --pad: 1.05rem;
  }

  .site-header {
    padding-top: calc(0.7rem + var(--safe-top));
    padding-bottom: 0.7rem;
  }

  .brand {
    font-size: 1.15rem;
  }

  .header-cta {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7.2vw, 1.9rem);
    max-width: 16ch;
  }

  .hero-visual .mockup-img,
  .hero-visual .mockup-placeholder {
    max-width: min(240px, 68vw);
    max-height: 46vh;
    border-radius: 20px;
  }

  .feature-band,
  .split,
  .closing {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .feature-list {
    gap: 1rem;
  }

  .app-store-badge img {
    width: 148px;
  }

  .closing .app-store-badge img {
    width: 160px;
  }
}

/* Landscape phones */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    min-height: auto;
    padding-block: 1.25rem;
    gap: 1rem;
  }

  .hero-visual {
    order: 0;
  }

  .hero .brand-mark {
    display: none;
  }

  .hero-copy {
    align-items: flex-start;
  }

  .hero h1,
  .lede {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .cta-row {
    justify-content: flex-start;
  }

  .hero-visual .mockup-img {
    max-height: 70vh;
    max-width: 200px;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-visual .mockup-img,
  .hero-visual .mockup-placeholder {
    animation: none;
  }

  .app-store-badge {
    transition: none;
  }
}

/* SEO nav + content pages */
.seo-nav {
  display: none;
  gap: 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.seo-nav a:hover {
  color: var(--accent);
}

@media (min-width: 860px) {
  .seo-nav {
    display: flex;
    flex: 1;
    justify-content: center;
  }
}

.topic-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(2.5rem, 7vh, 4rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.topic-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  align-items: start;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.topic-card:hover {
  border-color: rgba(226, 75, 110, 0.35);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.topic-icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  background: linear-gradient(160deg, rgba(255, 212, 220, 0.85), rgba(255, 232, 214, 0.7));
  flex-shrink: 0;
}

.topic-icon svg {
  width: 22px;
  height: 22px;
}

.topic-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  padding-top: 0.15rem;
}

.topic-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0;
}

.inline-links {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.inline-links a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(226, 75, 110, 0.35);
}

.content-block {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 3.5rem) var(--pad) clamp(3rem, 8vh, 5rem);
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin-top: 0.65rem;
  color: var(--ink-soft);
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 3.5rem) var(--pad) 1.5rem;
}

.page-hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

.page-hero .lede {
  max-width: 42ch;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(3rem, 8vh, 5rem);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.prose ul {
  padding-left: 1.2rem;
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad) 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.page-cta {
  margin-top: 1.75rem;
}

@media (max-width: 700px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-icon {
    width: 40px;
    height: 40px;
  }

  .page-hero h1 {
    max-width: none;
  }

  .seo-nav {
    display: none;
  }
}
