/* Rally marketing site — daisyUI "cupcake" theme (matches the app).
   Light mode only. Outfit everywhere, warm off-white, pastel teal. */

:root {
  --base100: #FAF7F5; /* app background */
  --base200: #EFEAE6; /* cards / fields */
  --base300: #E7E2DF; /* soft borders / pressed */
  --content: #291334; /* dark plum — all text */
  --primary: #44EBD3; /* pastel teal */
  --primary-content: #005D58; /* deep teal ink */
  --secondary: #F9CBE5; /* pastel pink */
  --secondary-content: #A0004A;
  --accent: #FFD6A7; /* pastel peach */
  --accent-content: #9F2D00;
  --muted: rgba(41, 19, 52, 0.55);
  --faint: rgba(41, 19, 52, 0.35);
  --hairline: rgba(41, 19, 52, 0.10);
  --box: 16px; /* radius-box (cards) */
  --field: 999px; /* radius-field (pills) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--base100);
  color: var(--content);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

a { color: var(--primary-content); text-decoration: none; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-content);
}

/* ── header ── */
header { padding: 28px 0; }
.bar { display: flex; align-items: center; justify-content: space-between; }
.lockup { display: flex; align-items: center; gap: 12px; }
.lockup img { width: 40px; height: 40px; border-radius: 11px; display: block; }
.lockup .name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.navlinks { display: flex; gap: 22px; align-items: center; }
.navlinks a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s ease; }
.navlinks a:hover { color: var(--content); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  padding: 15px 30px; border-radius: var(--field); border: 2px solid transparent;
  cursor: pointer; transition: transform .18s cubic-bezier(.16,1,.3,1), filter .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: var(--primary-content); }
.btn.primary:hover { filter: brightness(1.03); }
.btn.ghost { background: transparent; color: var(--content); border-color: var(--base300); }
.btn.ghost:hover { border-color: var(--muted); }

/* ── hero ── */
.hero { padding: 40px 0 72px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero > * { min-width: 0; } /* let grid items shrink so text wraps */
.hero h1 {
  font-size: clamp(38px, 5.4vw, 58px); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.03em; margin-top: 18px; overflow-wrap: break-word;
}
.hero h1 em { font-style: normal; color: var(--primary-content); }
.hero p.lede { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 32ch; }
.cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.note { margin-top: 16px; font-size: 14px; color: var(--faint); }

/* ── phone mockup ── */
.phone-col { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; padding: 12px;
  background: #1c0f24; border-radius: 54px;
  box-shadow: 0 2px 4px rgba(41,19,52,.06), 0 30px 60px -20px rgba(41,19,52,.35);
}
.phone .screen { position: relative; border-radius: 42px; overflow: hidden; background: var(--base100); }
.phone .screen img { display: block; width: 100%; height: auto; }
.phone .island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; background: #000; border-radius: 999px; z-index: 3;
}

/* ── sections ── */
section { padding: 72px 0; }
.band { background: var(--base200); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  background: var(--base100); border: 2px solid var(--base300);
  border-radius: var(--box); padding: 28px 24px;
}
.band .card { background: var(--base100); }
.card .tile {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 19px; font-weight: 600; margin-top: 18px; }
.card p { font-size: 15.5px; color: var(--muted); margin-top: 8px; }
.tile svg { width: 24px; height: 24px; }

/* showcase (image + copy) */
.showcase { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.showcase.rev { grid-template-columns: 1.05fr .95fr; }
.showcase .copy h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
.showcase .copy p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.showcase ul { margin-top: 20px; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.showcase li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.showcase li .dot { flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--primary); color: var(--primary-content); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-top: 2px; }

/* ── footer ── */
footer { background: var(--content); color: rgba(255,255,255,.7); padding: 56px 0 48px; }
footer .foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
footer .brand { display: flex; align-items: center; gap: 10px; }
footer .brand img { width: 34px; height: 34px; border-radius: 9px; }
footer .brand span { font-size: 20px; font-weight: 700; color: #fff; }
footer .flinks { display: flex; gap: 24px; flex-wrap: wrap; }
footer .flinks a { color: rgba(255,255,255,.75); font-weight: 500; font-size: 15px; transition: color .2s ease; }
footer .flinks a:hover { color: #fff; }
footer .fine { margin-top: 36px; font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; }

/* ── legal (privacy / terms) pages ── */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
.legal .stamp { margin-top: 10px; color: var(--muted); font-size: 15px; }
.legal .lead { margin-top: 24px; font-size: 18px; color: var(--content); background: var(--base200); border-radius: var(--box); padding: 20px 22px; }
.legal h2 { font-size: 22px; font-weight: 700; margin-top: 40px; }
.legal h3 { font-size: 17px; font-weight: 600; margin-top: 24px; }
.legal p, .legal li { font-size: 16px; color: var(--content); margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--muted); }

/* ── entrance animation ── */
.fade-up { opacity: 0; transform: translateY(20px); animation: fade-up .8s cubic-bezier(.16,1,.3,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; opacity: 1; transform: none; } }

/* ── responsive ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding: 24px 0 56px; text-align: center; }
  .hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .hero p.lede { max-width: 100%; margin-left: auto; margin-right: auto; }
  .showcase > *, .features > * { min-width: 0; }
  .cta { justify-content: center; }
  .phone-col { margin-top: 36px; order: 2; }
  .features { grid-template-columns: 1fr; }
  .showcase, .showcase.rev { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .showcase .phone-col { order: -1; }
  .showcase ul { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
  .navlinks { display: none; }
}
