/* ==========================================================================
   Fosia — fosia.lazyhippodev.com
   Shared styles for the marketing site and the care-invite page.
   Light theme only. Palette mirrors lib/core/constants/colors.dart so web and
   app read as one product: cocoa ink, cream paper, aqua care teal, logo orange.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  color-scheme: light;

  --cream: #fff8ea;
  --cream-deep: #fdefd8;
  --surface: #fffefa;
  --surface-alt: #fff5e3;
  --ink: #2c140c;
  --ink-soft: rgba(44, 20, 12, 0.72);
  --ink-faint: rgba(44, 20, 12, 0.55);
  --line: rgba(44, 20, 12, 0.12);
  --line-strong: rgba(44, 20, 12, 0.2);

  --teal: #087f79;
  --aqua: #22d8d0;
  --teal-soft: #c3f5f1;
  --teal-wash: #eafaf8;

  --orange: #b9550b;
  --orange-bright: #f28a24;
  --orange-wash: #ffeed8;
  --coral: #ff5a45;
  --coral-wash: #ffe6e1;
  --green: #257a43;
  --green-wash: #e2f4e8;

  --shadow-sm: 0 2px 8px -2px rgba(44, 20, 12, 0.14);
  --shadow-md: 0 14px 30px -20px rgba(44, 20, 12, 0.5);
  --shadow-lg: 0 30px 60px -34px rgba(44, 20, 12, 0.55);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --gutter: clamp(20px, 5vw, 48px);
  --shell: 1160px;
  --section-y: clamp(52px, 8vw, 104px);

  --font-display: "Baloo 2", ui-rounded, "SF Pro Rounded", "Segoe UI Variable",
    system-ui, -apple-system, sans-serif;
  --font-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
}

/* --- Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Width/height attributes are present on every <img> to reserve layout space,
   so intrinsic ratio has to win over the attribute height once CSS sets a
   width. Rules further down that set both dimensions still override this. */
img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 5.6vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
}

p {
  margin: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.18s ease;
}

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

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, border-color 0.16s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--orange-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--teal);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
}

/* Store badges. Always a two-up row: side by side reads as one choice and
   avoids the dead space a full-width stack leaves on a phone. */

.store-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  max-width: 430px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  border: 1px solid transparent;
  flex: 1 1 0;
  min-width: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: var(--shadow-md);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store-btn .store-copy {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}

.store-btn .store-kicker {
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-btn .store-name {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -28px rgba(44, 20, 12, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand img.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.brand .brand-word {
  height: 24px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink-soft);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

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

  .nav a {
    padding: 13px 12px;
    font-size: 1.05rem;
    color: var(--ink);
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-inner .btn-primary {
    order: 2;
    padding: 11px 18px;
    font-size: 0.94rem;
  }
}

@media (max-width: 460px) {
  .header-inner .btn-primary {
    display: none;
  }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(32px, 5vw, 68px) var(--section-y);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 460px;
  height: 460px;
  background: var(--teal-soft);
  top: -160px;
  right: -120px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: var(--orange-wash);
  bottom: -180px;
  left: -140px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  background: var(--teal-wash);
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
}

.eyebrow svg {
  width: 17px;
  height: 17px;
}

.hero h1 {
  margin-top: 18px;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero-lede {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 32em;
}

.hero .store-row {
  margin-top: 28px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-faint);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-note svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex: none;
  margin-top: 3px;
}

/* Hero stage: mascot + floating record chips */

.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin-inline: auto;
  width: 100%;
}

.stage-glow {
  position: absolute;
  inset: 6% 6% 4%;
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  background: linear-gradient(
    150deg,
    var(--teal-soft),
    color-mix(in srgb, var(--teal-soft) 35%, transparent)
  );
}

.stage-mascot {
  position: absolute;
  inset: 8% 10% 2%;
  width: 80%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(44, 20, 12, 0.22));
}

.chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 3px;
  min-width: 150px;
  animation: float 7s ease-in-out infinite;
}

.chip .chip-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.chip .chip-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.chip .chip-value svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.chip-a {
  top: 3%;
  left: -2%;
  animation-delay: -1s;
}

.chip-b {
  top: 40%;
  right: -4%;
  animation-delay: -3.5s;
}

.chip-c {
  bottom: 3%;
  left: 5%;
  animation-delay: -5.5s;
}

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

.trend-line {
  width: 100%;
  height: 28px;
  color: var(--teal);
}

/* --- Sections ------------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section-tint {
  background: var(--cream-deep);
}

/* The closing CTA is a card in its own right and does not need a full
   section's worth of air above it as well. */
.section-flush {
  padding-top: 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(28px, 3.6vw, 48px);
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

/* --- Value strip ---------------------------------------------------------- */

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.strip-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 8px;
}

.strip-item .ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--teal-wash);
  color: var(--teal);
}

.strip-item .ico svg {
  width: 22px;
  height: 22px;
}

.strip-item h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.strip-item p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* --- Feature cards -------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
}

.card.wide {
  grid-column: span 3;
}

.card.feature-lead {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  background: linear-gradient(
    140deg,
    var(--teal-wash),
    color-mix(in srgb, var(--surface) 70%, var(--teal-wash))
  );
}

.card-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--orange-wash);
  color: var(--orange);
  flex: none;
}

.card-ico svg {
  width: 24px;
  height: 24px;
}

.card-ico.teal {
  background: var(--teal-wash);
  color: var(--teal);
}

.card-ico.coral {
  background: var(--coral-wash);
  color: var(--coral);
}

.card-ico.green {
  background: var(--green-wash);
  color: var(--green);
}

.card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.card-body {
  display: grid;
  gap: 12px;
  align-content: start;
}

/* Small in-card product mocks */

.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mock-row .dot {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--teal-wash);
  color: var(--teal);
}

.mock-row .dot svg {
  width: 18px;
  height: 18px;
}

.mock-row .dot.orange {
  background: var(--orange-wash);
  color: var(--orange);
}

.mock-row .dot.coral {
  background: var(--coral-wash);
  color: var(--coral);
}

.mock-row .dot.green {
  background: var(--green-wash);
  color: var(--green);
}

.mock-text {
  display: grid;
  min-width: 0;
}

.mock-text b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.3;
}

.mock-text span {
  font-size: 0.81rem;
  color: var(--ink-faint);
}

.mock-arrow {
  display: grid;
  place-items: center;
  color: var(--ink-faint);
}

.mock-arrow svg {
  width: 18px;
  height: 18px;
}

.pill {
  margin-left: auto;
  flex: none;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green);
  font-family: var(--font-display);
}

.pill.warn {
  background: var(--orange-wash);
  color: var(--orange);
}

.pill.teal {
  background: var(--teal-wash);
  color: var(--teal);
}

.chart {
  width: 100%;
  height: auto;
}

.chart .axis {
  stroke: var(--line);
  stroke-width: 1;
}

.chart .grid-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.chart .series {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart .series-fill {
  fill: color-mix(in srgb, var(--teal) 16%, transparent);
  stroke: none;
}

.chart .marker {
  fill: var(--surface);
  stroke: var(--teal);
  stroke-width: 3;
}

.chart .label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  fill: var(--ink-faint);
}

/* --- Steps ---------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 10px;
  align-content: start;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --- Shared care ---------------------------------------------------------- */

.share-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(26px, 4.5vw, 56px);
  align-items: center;
}

.checklist {
  display: grid;
  gap: 13px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.checklist svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--teal);
  margin-top: 2px;
}

.checklist b {
  color: var(--ink);
  font-family: var(--font-display);
}

.invite-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
}

.invite-preview .link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px dashed var(--line-strong);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  color: var(--ink-soft);
  overflow-x: auto;
  white-space: nowrap;
}

.invite-preview .link-row svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--teal);
}

.avatars {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid var(--surface);
  margin-left: -12px;
  color: var(--ink);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar.a {
  background: var(--teal-soft);
}
.avatar.b {
  background: var(--orange-wash);
}
.avatar.c {
  background: var(--coral-wash);
}

/* --- Plans ---------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.plan.featured {
  border-color: color-mix(in srgb, var(--teal) 55%, transparent);
  box-shadow: var(--shadow-lg);
}

.plan-tag {
  display: inline-flex;
  align-self: start;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.plan li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.plan li svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--teal);
}

.plan .fineprint {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  display: grid;
  gap: 12px;
  max-width: 52rem;
  margin-inline: auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.faq summary::after {
  content: "";
  margin-left: auto;
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq details p {
  padding-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* --- Final CTA ------------------------------------------------------------ */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(30px, 4.5vw, 58px);
  background: linear-gradient(
    140deg,
    var(--teal-soft),
    color-mix(in srgb, var(--orange-wash) 70%, var(--teal-soft))
  );
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.cta h2 {
  max-width: 15em;
}

.cta p {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 32em;
}

.cta .store-row {
  margin-top: 24px;
}

.cta-mascot {
  width: clamp(130px, 18vw, 200px);
  filter: drop-shadow(0 20px 26px rgba(44, 20, 12, 0.24));
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(34px, 4.5vw, 52px) 28px;
  background: var(--cream-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand img.brand-word {
  height: 30px;
  width: auto;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  max-width: 30ch;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: clamp(28px, 3.6vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.87rem;
  color: var(--ink-faint);
}

/* --- Invite page ---------------------------------------------------------- */

.invite-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.invite-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 60px) var(--gutter);
  position: relative;
  overflow: hidden;
}

.invite-main::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -220px;
  right: -160px;
  border-radius: 50%;
  background: var(--teal-soft);
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.invite-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 38px);
  text-align: center;
  display: grid;
  gap: 18px;
}

.invite-card .invite-mascot {
  width: 128px;
  margin-inline: auto;
  filter: drop-shadow(0 16px 20px rgba(44, 20, 12, 0.2));
}

.invite-card h1 {
  font-size: clamp(1.55rem, 4.8vw, 2rem);
}

.invite-card > p {
  color: var(--ink-soft);
  font-size: 0.99rem;
}

.code-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px dashed var(--line-strong);
}

.code-box .code-label {
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.code-box .code-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.invite-actions {
  display: grid;
  gap: 10px;
}

.invite-actions .btn {
  width: 100%;
}

.invite-actions .store-row {
  max-width: none;
}

/* The invite card is narrower than the hero, so the two badges only fit
   side by side once the "Download on the" line is dropped. */
@media (max-width: 560px) {
  .invite-actions .store-kicker {
    display: none;
  }

  .invite-actions .store-btn {
    padding: 13px 10px;
    justify-content: center;
  }
}

.invite-steps {
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
  font-size: 0.91rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.invite-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.invite-steps .num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal-wash);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.77rem;
  margin-top: 1px;
}

.invite-foot {
  font-size: 0.84rem;
  color: var(--ink-faint);
}

.invite-foot a {
  color: var(--teal);
}

.invite-error {
  display: none;
}

body.no-invite .invite-valid {
  display: none;
}

body.no-invite .invite-error {
  display: grid;
  gap: 18px;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    max-width: 380px;
    order: -1;
  }

  .chip {
    min-width: 130px;
    padding: 9px 12px;
  }

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

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

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

  .cta-mascot {
    justify-self: center;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

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

  .card,
  .card.wide,
  .card.feature-lead {
    grid-column: span 1;
  }

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

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

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

/* Phones: keep the two store badges side by side, just tighter. */
@media (max-width: 520px) {
  .store-row {
    gap: 9px;
    max-width: none;
  }

  .store-btn {
    gap: 8px;
    padding: 9px 10px;
  }

  .store-btn svg {
    width: 21px;
    height: 21px;
  }

  .store-btn .store-kicker {
    font-size: 0.56rem;
    letter-spacing: 0.05em;
  }

  .store-btn .store-name {
    font-size: 0.92rem;
  }

  .stage {
    max-width: 320px;
  }

  .chip-a {
    left: -4%;
  }

  .chip-b {
    right: -6%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 360px) {
  .store-btn .store-kicker {
    display: none;
  }

  .store-btn {
    padding: 12px 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Reveal-on-scroll, progressively enhanced by site.js */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
