/* ==========================================================================
   Period Tracker: Cycle & Baby - one-page site
   Palette sampled from the app icon and the store artwork.
   ========================================================================== */

:root {
  /* Brand rose (icon background) and its tints/shades */
  --rose-50: #fff5f8;
  --rose-100: #ffe8ef;
  --rose-200: #ffcfdd;
  --rose-400: #fb5c93;
  --rose-500: #f5296d;
  --rose-600: #d4115f; /* buttons, links, small text: AA on white */
  --rose-700: #a80c4b;
  --berry-900: #3a0b22;
  --berry-950: #27071a;

  /* Accents from the in-app calendar legend */
  --amber: #f6b93b;
  --teal: #25b3a0;
  --violet: #9b6ad6;

  --ink: #33121f;
  --text: #5c4450;
  --muted: #7d6370;
  --line: #f6d5e0;
  --white: #fff;

  --font-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow-sm: 0 6px 18px rgba(212, 17, 95, 0.08);
  --shadow: 0 18px 44px rgba(168, 12, 75, 0.14);
  --shadow-lg: 0 30px 70px rgba(100, 6, 44, 0.28);

  --header-h: 72px;
  --container: 1160px;
  --gutter: 24px;
  --brand-gradient:
    radial-gradient(46rem 32rem at 88% 8%, rgba(255, 255, 255, 0.2), transparent 62%),
    radial-gradient(38rem 30rem at -6% 104%, rgba(140, 8, 62, 0.6), transparent 62%),
    linear-gradient(118deg, #cf0f5c 0%, #ea2068 46%, #fb5c93 100%);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--rose-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--rose-400);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 12px;
}

.icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.star {
  fill: #ffc940;
  stroke: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--rose-600);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(212, 17, 95, 0.3);
}

.btn-primary:hover {
  background: var(--rose-700);
}

.btn-outline {
  background: var(--white);
  color: var(--rose-600);
  box-shadow: inset 0 0 0 2px var(--rose-200);
}

.btn-outline:hover {
  background: var(--rose-50);
  box-shadow: inset 0 0 0 2px var(--rose-600);
}

.btn:disabled {
  opacity: 0.65;
  transform: none;
  cursor: progress;
}

.btn-sm {
  padding: 0.62rem 1.3rem;
  font-size: 0.95rem;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--rose-600);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
}

.round-btn:hover:not(:disabled) {
  background: var(--rose-600);
  color: var(--white);
}

.round-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.store-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge img {
  width: auto;
  height: 54px;
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(60, 4, 28, 0.3);
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(100, 6, 44, 0.28);
}

.brand-name {
  display: grid;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  transition: color 0.3s;
}

.brand-name small {
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.site-nav,
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.site-nav a:not(.btn):hover,
.site-nav a.is-active {
  color: var(--rose-600);
  text-decoration: none;
}

.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--rose-600);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s, background-color 0.3s;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Transparent over the hero until the page is scrolled (needs JS to toggle) */
.js .site-header--overlay:not(.is-scrolled):not(.nav-open) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.js .site-header--overlay:not(.is-scrolled):not(.nav-open) .brand,
.js .site-header--overlay:not(.is-scrolled):not(.nav-open) .site-nav a:not(.btn) {
  color: var(--white);
}

.js .site-header--overlay:not(.is-scrolled):not(.nav-open) .nav-cta {
  background: var(--white);
  color: var(--rose-600);
}

.js .site-header--overlay:not(.is-scrolled):not(.nav-open) .nav-toggle span {
  background: var(--white);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 80px)) 0 clamp(104px, 13vw, 168px);
  background: var(--brand-gradient);
  color: var(--white);
}

/* Sparkle field, like the dots on the app icon */
.hero::before,
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    radial-gradient(circle, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle, #fff 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px);
  background-size: 230px 210px, 170px 190px, 310px 270px;
  background-position: 40px 60px, 110px 20px, 200px 150px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow-pill .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.hero h1 {
  margin: 1.1rem 0 1.2rem;
  font-size: clamp(2.3rem, 4.9vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
  color: rgba(255, 255, 255, 0.97);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 1.9rem;
  font-size: 0.97rem;
  font-weight: 500;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust .icon {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.2;
}

.hero-shots {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.03;
  margin-inline: auto;
}

.hero-shots img {
  position: absolute;
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.hero-shots .shot-main {
  top: 0;
  left: 25%;
  width: 50%;
}

.hero-shots .shot-left,
.hero-shots .shot-right {
  top: 13%;
  width: 40%;
}

.hero-shots .shot-left {
  left: 1%;
  transform: rotate(-7deg);
}

.hero-shots .shot-right {
  right: 1%;
  transform: rotate(7deg);
}

@keyframes float {
  50% {
    translate: 0 -12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-shots img {
    animation: float 7s ease-in-out infinite;
  }

  .hero-shots .shot-left {
    animation-delay: -2.3s;
  }

  .hero-shots .shot-right {
    animation-delay: -4.6s;
  }
}

.hero-wave {
  position: absolute;
  inset: auto 0 -1px 0;
  width: 100%;
  height: clamp(48px, 7vw, 96px);
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section {
  padding-block: clamp(64px, 9vw, 116px);
}

.section--blush {
  background: var(--rose-50);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-600);
}

.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  text-wrap: balance;
}

.section-head p,
.faq-intro p,
.contact-intro > p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.icon-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  color: var(--white);
  box-shadow: 0 10px 20px rgba(212, 17, 95, 0.25);
}

.icon-tile--amber {
  background: linear-gradient(135deg, #f9cc66, #ee9d1a);
  box-shadow: 0 10px 20px rgba(238, 157, 26, 0.28);
}

.icon-tile--teal {
  background: linear-gradient(135deg, #47cdb9, #1a9887);
  box-shadow: 0 10px 20px rgba(26, 152, 135, 0.26);
}

.icon-tile--violet {
  background: linear-gradient(135deg, #b58be6, #7f4fc4);
  box-shadow: 0 10px 20px rgba(127, 79, 196, 0.26);
}

/* ── Overview ─────────────────────────────────────────────────────────── */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.stage-card {
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rose-50);
  transition: transform 0.25s, box-shadow 0.25s;
}

.stage-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stage-card .icon-tile {
  margin-bottom: 20px;
}

.stage-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.accent {
  color: var(--rose-600);
}

/* ── Feature rows ─────────────────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.feature-row + .feature-row {
  margin-top: clamp(56px, 8vw, 104px);
}

.feature-row:nth-of-type(even) .feature-media {
  order: 2;
}

.feature-media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-block: 20px;
}

.feature-media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffdbe7, #ffc4d8 58%, #ffe3ec);
  translate: -50% -50%;
}

.feature-media img {
  position: relative;
  width: min(62%, 290px);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.feature-media--duo::before {
  width: min(100%, 520px);
}

.feature-media--duo img {
  width: min(48%, 240px);
}

.feature-media--duo img:first-of-type {
  transform: rotate(-4deg);
}

.feature-media--duo img:last-of-type {
  margin: 9% 0 0 -8%;
  transform: rotate(4deg);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.95rem 0.3rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rose-600);
}

.feature-tag .dot {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--rose-500);
  color: var(--white);
}

.feature-tag .dot--amber {
  background: #ee9d1a;
}

.feature-tag .dot--violet {
  background: #8a5bcf;
}

.feature-tag .icon {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 2.2;
}

.feature-text h3 {
  margin: 1rem 0 0.9rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.feature-text p {
  font-size: 1.08rem;
}

.checks {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--ink);
}

.checks .icon {
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.15rem;
  padding: 0.25rem;
  border-radius: 50%;
  background: var(--rose-100);
  color: var(--rose-600);
  stroke-width: 3;
}

/* ── More features ────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.info-card .icon-tile {
  margin-bottom: 18px;
}

.info-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.22rem;
}

.info-card p {
  font-size: 1rem;
}

.update {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 24px 44px;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--rose-50), #fff4e3 150%);
}

.update .eyebrow {
  margin-bottom: 0.4rem;
}

.update h3 {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.update p {
  font-size: 0.98rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.chips .icon {
  width: 1rem;
  height: 1rem;
  color: var(--rose-500);
}

/* ── Screenshots ──────────────────────────────────────────────────────── */
#screenshots .section-head {
  margin-bottom: 28px;
}

/* The Android / iPhone switch only does something once JS has loaded */
.platform-switch {
  display: none;
  width: max-content;
  margin: 0 auto 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.js .platform-switch {
  display: flex;
}

.platform-switch button {
  padding: 0.55rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  transition: background-color 0.2s, color 0.2s;
}

.platform-switch button[aria-selected="true"] {
  background: var(--rose-600);
  color: var(--white);
}

.shots-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 14px max(var(--gutter), calc((100% - var(--container)) / 2)) 36px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shots-track::-webkit-scrollbar {
  display: none;
}

.shots-track li {
  flex: 0 0 auto;
  width: clamp(190px, 21vw, 250px);
  scroll-snap-align: start;
}

.shot-link {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.shot-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.shot-link img {
  width: 100%;
}

.shots-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(39, 7, 26, 0.88);
}

.lightbox-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 20px;
}

.lightbox img {
  width: auto;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin-inline: auto;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* ── Download ─────────────────────────────────────────────────────────── */
.download {
  position: relative;
  overflow: hidden;
  background: var(--brand-gradient);
  color: var(--white);
}

.download .container {
  position: relative;
}

.download-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.4rem;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(60, 4, 28, 0.4);
}

.download .eyebrow {
  color: #ffe3ec;
}

.download h2 {
  color: var(--white);
}

.download .section-head p {
  color: rgba(255, 255, 255, 0.97);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.platform-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.platform-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-600);
}

.platform-label .icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.2;
}

.platform-card h3 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1.45rem;
}

.platform-sub {
  font-size: 0.98rem;
  color: var(--muted);
}

.platform-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0 1.3rem;
}

.platform-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--rose-50);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.platform-meta .icon {
  width: 1rem;
  height: 1rem;
}

.platform-qr {
  font-size: 0.8rem;
  text-align: center;
  color: var(--muted);
}

.platform-qr img {
  width: 128px;
  height: 128px;
  margin-bottom: 0.45rem;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

/* ── Blog cards (home page teaser + blog pages) ───────────────────────── */
.blog-empty-note { text-align: center; max-width: 560px; margin: 0 auto 24px; opacity: .8; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--brand-gradient);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

/* Posts without a featured image show the app icon on the brand gradient */
.blog-card-media--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/icon-192.webp") center / 76px no-repeat;
  filter: drop-shadow(0 10px 18px rgba(60, 4, 28, 0.35));
}

.blog-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose-600);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 0.7rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card-meta .icon {
  width: 1rem;
  height: 1rem;
}

.blog-card .blog-card-title {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--ink);
}

.blog-card-title a:hover {
  color: var(--rose-600);
  text-decoration: none;
}

.blog-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 1.1rem;
  font-size: 1rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
}

.blog-card-link:hover {
  text-decoration: none;
}

.blog-card-link .icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.2;
  transition: transform 0.2s;
}

.blog-card-link:hover .icon {
  transform: translateX(4px);
}

.section-cta {
  margin-top: 2.4rem;
  text-align: center;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.faq-list details {
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.faq-list details + details {
  margin-top: 12px;
}

.faq-list details[open] {
  border-color: var(--rose-200);
  background: var(--rose-50);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary .icon {
  color: var(--rose-600);
  stroke-width: 2.2;
  transition: transform 0.25s;
}

.faq-list details[open] summary .icon {
  transform: rotate(45deg);
}

.faq-list details p {
  padding-bottom: 20px;
}

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 1.8rem;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-email > div {
  min-width: 0;
}

.contact-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-email a {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--rose-50);
  font: inherit;
  color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(245, 41, 109, 0.14);
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-status {
  margin-top: 14px;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-status.is-ok {
  color: #116a50;
}

.form-status.is-error {
  color: #b3261e;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  padding-top: clamp(56px, 7vw, 84px);
  background: linear-gradient(180deg, var(--berry-900), var(--berry-950));
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.3fr 1fr;
  gap: 40px;
}

.site-footer .brand {
  color: var(--white);
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 1.1rem;
}

.site-footer h3 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--white);
}

.site-footer a:not(.brand) {
  color: rgba(255, 255, 255, 0.8);
  overflow-wrap: anywhere;
}

.site-footer a:not(.brand):hover {
  color: var(--white);
}

.footer-links li + li {
  margin-top: 0.6rem;
}

.footer-badges {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.footer-badges .store-badge img {
  height: 46px;
}

.footer-note {
  margin-top: 44px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.66);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ── Scroll reveal (JS only) ──────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .platform-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 24px 40px rgba(100, 6, 44, 0.16);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rose-100);
  }

  .site-nav a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 16px;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .feature-row,
  .faq-layout,
  .contact-layout,
  .update {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-shots {
    width: min(100%, 440px);
    margin-top: 8px;
  }

  .stage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Text first, then the screenshot, for every row */
  .feature-row .feature-media,
  .feature-row:nth-of-type(even) .feature-media {
    order: 2;
  }

  .faq-intro {
    position: static;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 18px;
  }

  .card-grid,
  .blog-grid,
  .form-row,
  .footer-grid,
  .platform-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-badge img {
    height: 48px;
  }

  .platform-qr {
    display: none;
  }

  .lightbox-inner {
    gap: 6px;
    padding: 12px;
  }

  .lightbox .round-btn {
    width: 40px;
    height: 40px;
  }
}

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

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