/* DormLoop — On-brand Gen Z edition */

:root {
  /* Brand palette (matches the app) */
  --navy: #1D3557;
  --navy-deep: #14253E;
  --navy-soft: #2E4570;
  --soft-white: #F8F9FA;
  --paper: #FFFFFF;
  --mint: #2EC4B6;
  --mint-soft: #E6F8F5;
  --mint-deep: #1F9F93;
  --mint-tint: #D5F0EC;
  --blue: #3A86FF;
  --muted: #6B7280;
  --border: #EDEFF2;
  --border-strong: #DDE2EA;
  --danger: #E5484D;
  --wanted: #7C3AED;
  --white: #ffffff;

  /* Shadows — soft and premium */
  --shadow-xs: 0 1px 3px rgba(29, 53, 87, 0.05);
  --shadow-sm: 0 4px 14px rgba(29, 53, 87, 0.07);
  --shadow-md: 0 14px 36px rgba(29, 53, 87, 0.10);
  --shadow-lg: 0 28px 70px rgba(29, 53, 87, 0.14);
  --shadow-sticker: 0 6px 14px rgba(29, 53, 87, 0.10), 0 2px 4px rgba(29, 53, 87, 0.06);
  --shadow-mint: 0 12px 30px rgba(46, 196, 182, 0.30);

  /* Type */
  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --nav-height: 72px;
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--soft-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -180px;
  width: 720px;
  height: 720px;
  background: var(--mint);
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
a:hover { opacity: 0.75; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--navy);
}

.italic-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.section { padding: 4rem 0; position: relative; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

#features, #how-it-works, #faq, #download { scroll-margin-top: var(--nav-height); }

/* =================== Brand =================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
}
.brand:hover { opacity: 1; }

.brand__icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--navy);
}

/* =================== Nav =================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(20, 37, 62, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  will-change: transform;
}

.nav.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

.nav__inner {
  pointer-events: auto;
  display: block;
  min-height: 0;
}

.nav__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
}
@media (min-width: 768px) {
  .nav__pill {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 0;
  }
}

.nav__mobile { margin-left: auto; margin-right: auto; }

.nav__brand {
  flex-shrink: 0;
  padding: 2px;
  border-radius: 999px;
}
.nav__brand:hover { opacity: 1; }
.nav__brand .brand__icon {
  width: 34px;
  height: 34px;
  transition: transform 0.25s ease;
}
.nav__brand:hover .brand__icon { transform: rotate(-6deg) scale(1.05); }

.nav__links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .nav__links { display: flex; justify-self: start; }
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__link:hover {
  opacity: 1;
  color: var(--mint-deep);
  background: var(--mint-soft);
}

.nav__cta {
  justify-self: end;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  border-radius: 999px;
  font-size: 1.4rem;
  transition: background 0.2s ease;
}
.nav__toggle:hover { background: var(--mint-soft); color: var(--mint-deep); }
@media (min-width: 768px) { .nav__toggle { display: none; } }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0 -1.25rem;
  padding: 0.5rem 1.25rem 1rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid rgba(20, 37, 62, 0.08);
  border-bottom: 1px solid rgba(20, 37, 62, 0.08);
}
.nav__mobile.is-open { display: flex; }
@media (min-width: 768px) { .nav__mobile { display: none !important; } }
.nav__mobile .nav__link { padding: 0.6rem 0.75rem; font-size: 0.95rem; }

/* =================== Buttons =================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--mint);
  color: var(--paper);
  box-shadow: var(--shadow-mint);
}
.btn-primary:hover {
  opacity: 1;
  background: var(--mint-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(46, 196, 182, 0.40);
  color: var(--paper);
}

.btn-secondary {
  background: var(--paper);
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  background: var(--mint);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(46, 196, 182, 0.25);
}
.btn-mint:hover {
  background: var(--mint-deep);
  opacity: 1;
  color: var(--paper);
  transform: translateY(-1px);
}

/* =================== Store badges =================== */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.store-badges--center { justify-content: center; }

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.store-badge:hover { opacity: 0.92; transform: translateY(-2px); }
.store-badge img, .store-badge svg { height: 48px; width: auto; }
@media (min-width: 768px) {
  .store-badge img, .store-badge svg { height: 54px; }
}
.store-badge--play img { height: 68px; }
@media (min-width: 768px) { .store-badge--play img { height: 76px; } }

/* =================== Stickers / Chips =================== */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-xs);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sticker--mint    { background: var(--mint-soft); color: var(--mint-deep); border-color: rgba(46, 196, 182, 0.25); }
.sticker--mint-solid { background: var(--mint); color: var(--paper); border-color: var(--mint); }
.sticker--navy    { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.sticker--ghost   { background: var(--paper); color: var(--navy); border-color: var(--border-strong); }

.sticker ion-icon {
  color: var(--mint);
  font-size: 0.95rem;
}
.sticker--mint-solid ion-icon { color: var(--paper); }
.sticker--navy ion-icon { color: var(--mint); }

.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(3deg); }
.tilt-l2 { transform: rotate(-6deg); }
.tilt-r2 { transform: rotate(6deg); }

/* Scribble underline circle accent (mint) */
.scribble-circle {
  position: relative;
  display: inline-block;
  padding: 0 0.15em;
  white-space: nowrap;
}
.scribble-circle::before {
  content: '';
  position: absolute;
  inset: -0.15em -0.3em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'><ellipse cx='100' cy='40' rx='95' ry='34' fill='none' stroke='%232EC4B6' stroke-width='3' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* =================== Hero =================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
}
@media (min-width: 768px) { .hero { padding: 4rem 0 6rem; } }

/* Soft mint glow blobs in background */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero__blob--1 {
  top: -140px; right: -120px;
  width: 520px; height: 520px;
  background: var(--mint);
  opacity: 0.22;
}
.hero__blob--2 {
  bottom: -140px; left: -100px;
  width: 380px; height: 380px;
  background: var(--mint);
  opacity: 0.12;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 2.5rem; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 1.5rem;
  color: var(--navy);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--mint);
  font-family: var(--font-serif);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 30rem;
  line-height: 1.55;
  font-weight: 400;
}
@media (min-width: 768px) { .hero__subtitle { font-size: 1.2rem; } }

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero__cta-row .nav__link {
  font-weight: 600;
  color: var(--navy);
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--soft-white);
  margin-right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--paper);
}
.avatar-stack span:nth-child(1) { background: linear-gradient(135deg, var(--mint), var(--mint-deep)); }
.avatar-stack span:nth-child(2) { background: linear-gradient(135deg, var(--blue), #2563EB); }
.avatar-stack span:nth-child(3) { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); }
.avatar-stack span:nth-child(4) {
  background: var(--paper);
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
}

.star-row {
  color: var(--mint);
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.hero__social-proof strong { color: var(--navy); font-weight: 600; }

/* Hero visual: phone + accent shapes */
.hero__visual {
  position: relative;
  z-index: 1;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 540px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Soft mint circle behind phone */
.phone-stage::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  background: var(--mint-soft);
  border-radius: 50%;
  top: 5%;
  left: 5%;
  z-index: 0;
}

.phone-stage__phone {
  position: relative;
  z-index: 3;
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}
.phone-stage__phone:hover { transform: rotate(0deg); }

/* Floating chip stickers */
.phone-stage__sticker {
  position: absolute;
  z-index: 4;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.phone-stage__sticker--top {
  top: 6%;
  right: 0;
  transform: rotate(6deg);
}
.phone-stage__sticker--bottom {
  bottom: 8%;
  left: -2%;
  transform: rotate(-6deg);
}
.phone-stage__sticker--side {
  top: 50%;
  right: -2%;
  transform: rotate(4deg);
}

@media (max-width: 600px) {
  .phone-stage { height: 480px; max-width: 340px; }
  .phone-stage__sticker--side { display: none; }
}

/* =================== Phone mock =================== */
.phone-mock {
  width: 280px;
  background: var(--navy);
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(29, 53, 87, 0.08);
}
@media (min-width: 768px) { .phone-mock { width: 296px; } }

.phone-mock__screen {
  background: var(--soft-white);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.phone-mock__notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--navy);
  border-radius: 12px;
  z-index: 5;
}

/* Mint gradient top — mirrors the school-accent gradient in the real app */
.phone-mock__top-gradient {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(46, 196, 182, 0.35), rgba(46, 196, 182, 0));
  pointer-events: none;
  z-index: 1;
}

.phone-mock__header {
  position: relative;
  padding: 2.4rem 1rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.phone-mock__header-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.phone-mock__header-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--mint-deep);
}
.phone-mock__header-chip {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--mint);
  color: var(--paper);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
}

.phone-mock__feed {
  padding: 0.6rem 0.8rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 400px;
  overflow: hidden;
  background: var(--soft-white);
  position: relative;
  z-index: 2;
}

.listing-card {
  display: flex;
  gap: 0.7rem;
  background: var(--paper);
  border-radius: 14px;
  padding: 0.55rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.listing-card__thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.listing-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.listing-card__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.listing-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.listing-card__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mint-deep);
  font-family: var(--font-display);
}
.listing-card__price--free { color: var(--mint-deep); }

/* Pills */
.pill {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  line-height: 1.3;
  font-family: var(--font-sans);
}
.pill--new     { background: var(--navy);    color: var(--paper); }
.pill--free    { background: var(--mint);    color: var(--paper); }
.pill--wanted  { background: var(--wanted);  color: var(--paper); }
.pill--danger  { background: rgba(229, 72, 77, 0.12); color: var(--danger); }

/* =================== Marquee Trust Strip =================== */
.trust-strip {
  padding: 1.4rem 0;
  background: var(--navy);
  color: var(--soft-white);
  overflow: hidden;
  position: relative;
}

.marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--soft-white);
}
.marquee__item em {
  font-style: italic;
  color: var(--mint);
  font-weight: 400;
}
.marquee__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
  align-self: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
}

/* =================== Section headers =================== */
.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.section-header--left { text-align: left; margin-left: 0; }
.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 0.85rem;
}
.section-header__eyebrow::before,
.section-header__eyebrow::after {
  content: '';
  width: 20px; height: 1.5px;
  background: var(--mint);
  border-radius: 2px;
  display: inline-block;
}
.section-header--left .section-header__eyebrow::before { display: none; }

.section-header__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
}
.section-header__title em {
  font-style: italic;
  font-weight: 400;
  font-family: var(--font-serif);
  color: var(--mint);
}
.section-header__subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 32rem;
  margin: 0 auto;
}

/* =================== Bento Features Grid =================== */
.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .features-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(220px, auto);
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Bento sizing */
@media (min-width: 700px) {
  .card--lg { grid-column: span 4; grid-row: span 2; padding: 2.25rem; }
  .card--md { grid-column: span 2; grid-row: span 1; }
  .card--wide { grid-column: span 3; grid-row: span 1; }
  .card--tall { grid-column: span 2; grid-row: span 2; }
}

.card--mint    { background: var(--mint-soft); border-color: rgba(46, 196, 182, 0.18); }
.card--mint-solid { background: var(--mint); border-color: var(--mint); color: var(--paper); }
.card--mint-solid .card__title,
.card--mint-solid .bento-big-number { color: var(--paper); }
.card--mint-solid .card__text { color: rgba(255, 255, 255, 0.85); }
.card--navy    { background: var(--navy); border-color: var(--navy); color: var(--soft-white); }
.card--navy .card__title,
.card--navy .bento-big-number { color: var(--soft-white); }
.card--navy .card__text { color: rgba(248, 249, 250, 0.78); }

.card__icon-box {
  width: 52px;
  height: 52px;
  background: var(--mint-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.card--mint .card__icon-box { background: var(--paper); }
.card--mint-solid .card__icon-box { background: rgba(255, 255, 255, 0.18); }
.card--navy .card__icon-box { background: var(--mint); }
.card__icon-box ion-icon { font-size: 1.55rem; color: var(--mint-deep); }
.card--mint-solid .card__icon-box ion-icon { color: var(--paper); }
.card--navy .card__icon-box ion-icon { color: var(--paper); }

.card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.card--lg .card__title { font-size: 1.85rem; }
.card__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--mint);
}
.card--mint-solid .card__title em { color: var(--navy); }
.card--mint .card__title em { color: var(--mint-deep); }

.card__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.card__mock {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Inline preview elements for bento cards */
.bento-preview {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bento-chat-bubble {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: var(--navy);
  max-width: 240px;
  box-shadow: var(--shadow-xs);
  align-self: flex-start;
  font-weight: 500;
}
.bento-chat-bubble--right {
  border-radius: 14px 14px 4px 14px;
  align-self: flex-end;
  background: var(--mint);
  color: var(--paper);
  border-color: var(--mint);
}

.bento-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.bento-big-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  color: var(--mint-deep);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

/* =================== How it works =================== */
.steps-section { background: var(--paper); }

.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--soft-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--mint);
}
.step:hover::before { transform: scaleX(1); }

.step__number {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 2.2rem;
  color: var(--mint);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
}
.step__number::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1.5px;
  background: var(--mint);
  margin-left: 0.5rem;
  vertical-align: middle;
  border-radius: 2px;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.step__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =================== Built for students =================== */
.split-section {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 850px) {
  .split-section { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.split-section__title {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.split-section__title em {
  font-style: italic;
  color: var(--mint);
  font-weight: 400;
}

.split-section__sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.25rem;
}
@media (max-width: 500px) { .checklist { grid-template-columns: 1fr; } }

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
  background: var(--paper);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.checklist__item:hover {
  border-color: var(--mint);
  transform: translateX(2px);
}
.checklist__item ion-icon {
  color: var(--mint);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Stat collage */
.stat-collage {
  position: relative;
  min-height: 400px;
}

.stat-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1.4rem 1.6rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  min-width: 160px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: var(--shadow-lg);
}
.stat-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--mint-deep);
}
.stat-card__label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 500;
}

.stat-card--1 { top: 4%; left: 4%; transform: rotate(-4deg); }
.stat-card--2 {
  top: 28%; right: 4%; transform: rotate(3deg);
  background: var(--mint); border-color: var(--mint);
}
.stat-card--2 .stat-card__num,
.stat-card--2 .stat-card__label { color: var(--paper); }
.stat-card--2 .stat-card__label { color: rgba(255, 255, 255, 0.85); }

.stat-card--3 { bottom: 8%; left: 14%; transform: rotate(2deg); }
.stat-card--3 .stat-card__num { color: var(--navy); }

.stat-card--4 {
  bottom: 22%; right: 12%; transform: rotate(-3deg);
  background: var(--navy); border-color: var(--navy);
}
.stat-card--4 .stat-card__num { color: var(--mint); }
.stat-card--4 .stat-card__label { color: rgba(248, 249, 250, 0.78); }

/* =================== Move-Out callout =================== */
.moveout {
  background: var(--navy);
  color: var(--soft-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .moveout { padding: 3.5rem 3rem; } }

.moveout__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 800px) { .moveout__inner { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }

.moveout__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--soft-white);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.moveout__title em {
  font-style: italic;
  color: var(--mint);
  font-weight: 400;
}
.moveout__sub {
  color: rgba(248, 249, 250, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}
.moveout__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.moveout .sticker {
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft-white);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.moveout .sticker--mint-solid {
  background: var(--mint); color: var(--paper); border-color: var(--mint);
}

.moveout__blob {
  position: absolute;
  bottom: -120px; right: -80px;
  width: 360px; height: 360px;
  background: var(--mint);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.30;
}

.moveout__visual {
  position: relative;
  min-height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.moveout__card {
  position: relative;
  width: 200px;
  height: 240px;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-5deg);
}
.moveout__card img {
  width: 100%; height: 100%; object-fit: cover;
}
.moveout__card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0));
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.moveout__card-pill {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--mint);
  color: var(--paper);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =================== FAQ =================== */
.faq-section { background: var(--paper); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--soft-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.faq-item.is-open {
  background: var(--paper);
  border-color: var(--mint);
  box-shadow: var(--shadow-md);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.2s ease;
  letter-spacing: -0.01em;
}
.faq-item__trigger:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: -3px;
}

.faq-item__icon {
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
  background: var(--mint);
  color: var(--paper);
}

.faq-item__panel {
  display: none;
  padding: 0 1.35rem 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}
.faq-item.is-open .faq-item__panel { display: block; }

/* =================== CTA band =================== */
.cta-band {
  position: relative;
  padding: 5rem 0 6rem;
  text-align: center;
  background: var(--soft-white);
  overflow: hidden;
}

.cta-band__blob {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.35;
}
.cta-band__blob--1 { top: -160px; left: -80px; background: var(--mint); }
.cta-band__blob--2 { bottom: -200px; right: -80px; background: var(--mint); opacity: 0.20; }

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
}

.cta-band__sticker-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.cta-band__title em {
  font-style: italic;
  color: var(--mint);
  font-weight: 400;
}

.cta-band__subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.55;
}

/* =================== Footer =================== */
.footer {
  background: var(--navy);
  padding: 3rem 0 2rem;
  color: rgba(248, 249, 250, 0.7);
  position: relative;
}

.footer .brand__name { color: var(--soft-white); }

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  text-align: left;
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer__copy {
  font-size: 0.85rem;
  color: rgba(248, 249, 250, 0.55);
  margin-top: 0.85rem;
  max-width: 22rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
}
.footer__links a {
  font-size: 0.9rem;
  color: rgba(248, 249, 250, 0.78);
  font-weight: 500;
}
.footer__links a:hover { color: var(--mint); opacity: 1; }

/* =================== Legal pages =================== */
.legal-page { padding: 3.5rem 0 5rem; }
.legal-page__meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.legal-page p, .legal-page li {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.65;
}
.legal-page ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page a { color: var(--blue); }
.legal-prose { max-width: 720px; margin: 0 auto; }

/* =================== Animations =================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.08s; }
.fade-up-delay-2 { transition-delay: 0.16s; }
.fade-up-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .phone-stage__phone, .stat-card, .moveout__card, .marquee {
    transform: none !important; animation: none !important;
  }
  .card:hover, .store-badge:hover, .btn:hover, .step:hover { transform: none; }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Nav on legal pages */
.nav--legal .nav__links a[href="#features"],
.nav--legal .nav__links a[href="#how-it-works"],
.nav--legal .nav__links a[href="#faq"] { display: none; }
@media (min-width: 768px) {
  .nav--legal .nav__links { display: flex; }
  .nav--legal .nav__links .nav__link--home { display: list-item; }
}
