/* Sprig pages (/sprig/ and /invite/). Loaded after ../styles.css.
   Always light: the tokens below are the app's light palette
   (mvdlabs_mobile/lib/theme/redesign_colors.dart, class RedesignColors) and, being
   declared later than styles.css, they also win over its dark-mode block. */

:root {
  color-scheme: only light;
  --bg: #fafaf9;           /* backgroundV2 */
  --surface: #ffffff;      /* surface */
  --soft: #f7fdf8;         /* incomeCardBackgroundV2 */
  --pale: #eaf8ec;         /* greenLight */
  --text: #171b24;         /* textDarkV2 */
  --muted: #6b7280;        /* textSecondary */
  --chevron: #59616d;      /* chevronV2 */
  --line: #e5e7eb;         /* border */
  --brand: #16a34a;        /* green: graphics, large marks */
  --brand-text: #15803d;   /* darker green for small text and filled buttons (AA on white) */
  --btn: #15803d;
  --btn-hover: #166534;
  --btn-fg: #ffffff;
  --fab: #ddf6e2;          /* fabBackground */
  --date-pill: #e9f8ec;    /* dateSelectorBackgroundV2 */
  --pill: #f5f5f5;         /* datePillBackgroundV2 */
  --blue: #2563eb;         /* blue */
  --blue-light: #e8f0fe;   /* blueLight */
  --orange: #e99a00;       /* orangeV2 */
  --orange-light: #fff3dd; /* orangeLight */
  --red: #d93438;          /* redV2 */
  --red-light: #fde8e8;    /* redLight */
  --premium: #7b5cd6;      /* premiumBadgeText */
  --premium-light: #ede7fa;/* premiumBadgeBackground */
  --mint: #e0f5e5;         /* incomeCardIconBackgroundV2 */
  --shadow: 0 1px 2px rgba(23, 27, 36, .04), 0 12px 32px rgba(23, 27, 36, .08);
}

/* Header */

.app-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
}

.bar-end {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.by {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--chevron);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}
.by:hover { color: var(--text); text-decoration: underline; }

/* Hero */

.sprig-hero {
  background:
    radial-gradient(60rem 28rem at 110% -10%, var(--date-pill), transparent 60%),
    radial-gradient(40rem 22rem at -10% 0%, var(--soft), transparent 60%);
}

.app-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.app-title img {
  width: clamp(64px, 14vw, 96px);
  height: auto;
  flex: none;
  border-radius: 22%;
  box-shadow: var(--shadow);
}

.tagline {
  margin-top: 1.5rem;
  font-size: clamp(1.375rem, 1.1rem + 1.6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
  padding: .5rem 1.25rem .5rem 1rem;
  border: 1px dashed #9ca3af; /* mutedCardAccentV2 */
  border-radius: 14px;
  background: #f6f6f6;        /* mutedCardBackgroundV2 */
  color: var(--chevron);
  line-height: 1.2;
  cursor: default;
}
.store-badge svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: #9ca3af;
}
.store-badge small {
  display: block;
  font-size: .75rem;
  font-weight: 500;
}
.store-badge strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
}

.cta-note {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: .9375rem;
}

/* Phone frame */

.phone {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 36px;
  background: var(--text);
  box-shadow: 0 2px 4px rgba(23, 27, 36, .08), 0 24px 48px rgba(23, 27, 36, .16);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: var(--bg);
}
.phone-hero { max-width: 300px; }

/* Feature cards: the app's outlined card with a leading tinted icon circle */

.card .icon.i-blue { background: var(--blue-light); color: var(--blue); }
.card .icon.i-orange { background: var(--orange-light); color: var(--orange); }
.card .icon.i-red { background: var(--red-light); color: var(--red); }
.card .icon.i-premium { background: var(--premium-light); color: var(--premium); }
.card .icon.i-mint { background: var(--mint); color: var(--brand-text); }

/* Screens */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2.5rem 1.5rem;
  align-items: start;
  margin-top: 2.5rem;
}
.shots figure { margin: 0; }
.shots figcaption {
  max-width: 280px;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: .9375rem;
  text-align: center;
}
.shots figcaption strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--text);
  font-size: 1rem;
}

/* Share with family */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
}

.steps {
  display: grid;
  gap: .75rem;
  margin-top: 1.75rem;
  counter-reset: step;
}
.steps li {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-weight: 500;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--pale);
  color: var(--brand-text);
  font-size: .875rem;
  font-weight: 700;
}

/* Plans and privacy notes */

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
.note {
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.note h2 { margin-top: 1rem; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.5rem); }
.note p { margin-top: .75rem; color: var(--muted); }
.note .more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .5rem;
  font-weight: 500;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 .75rem;
  border-radius: 999px;
  background: var(--pale);
  color: var(--brand-text);
  font-size: .8125rem;
  font-weight: 700;
}
.tag-premium { background: var(--premium-light); color: #6243c4; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }

.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

/* Invite landing */

.invite-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 6vw, 4rem) clamp(1rem, 5vw, 2rem);
  background:
    radial-gradient(48rem 24rem at 100% 0%, var(--date-pill), transparent 60%),
    radial-gradient(36rem 20rem at 0% 100%, var(--soft), transparent 60%);
}

.invite-card {
  width: 100%;
  max-width: 440px;
  padding: clamp(1.5rem, 6vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.invite-card > img {
  width: 88px;
  height: 88px;
  border-radius: 22%;
  box-shadow: var(--shadow);
}
.invite-card h1 {
  margin-top: 1.25rem;
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 1.875rem);
}
.invite-card .sub { margin-top: .75rem; color: var(--muted); }

.code-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--fab);
  border-radius: 20px;
  background: var(--soft);
}
.code-label {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.code {
  display: block;
  margin-top: .25rem;
  color: var(--text);
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.75rem, 1.2rem + 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  user-select: all;
}

.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  margin-top: .75rem;
  padding: 0 1.25rem;
  border: 1px solid var(--fab);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.copy:hover { background: var(--pale); }
.copy svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.invite-card .btn { width: 100%; margin-top: 1.25rem; font-size: 1.0625rem; }

.invite-card .how {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .9375rem;
}
.invite-card .how strong { color: var(--text); font-weight: 500; }

.invite-card .alt {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
}
.invite-card .alt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.code-label { display: block; }
