:root {
  --sky-top: #bfe0ff;
  --sky-mid: #dcecff;
  --sky-soft: #eaf3ff;
  --cream: #fff8ec;
  --ink: #232a33;
  --muted: #5d6775;
  --accent: #f4b400;
  --accent-deep: #d98e00;
  --blue: #4f8cff;
  --blue-deep: #3b78f0;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(40, 70, 120, 0.14);
  --shadow-sm: 0 8px 22px rgba(40, 70, 120, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--accent-deep); }

a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 54px);
  backdrop-filter: blur(10px);
  background: rgba(255, 248, 236, 0.55);
  border-bottom: 1px solid rgba(120, 150, 200, 0.12);
}
.brand { display: flex; align-items: center; gap: 9px; font-family: "Fraunces", serif; font-weight: 600; font-size: 21px; }
.brand-bird { height: 26px; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); font-weight: 600; font-size: 15px; }
.nav-links a:not(.nav-cta) { color: var(--muted); transition: color 0.15s; }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--cream); padding: 9px 18px; border-radius: 100px;
  transition: transform 0.12s, background 0.15s;
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px clamp(18px, 6vw, 90px) 80px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-soft) 78%, var(--cream) 100%);
}
.hero-copy { position: relative; z-index: 5; max-width: 600px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.75); color: var(--accent-deep);
  font-weight: 800; font-size: 13px; letter-spacing: 0.02em;
  padding: 7px 14px; border-radius: 100px; box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 600; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 22px 0 30px; max-width: 30em; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; padding: 14px 26px; border-radius: 100px;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(79, 140, 255, 0.4); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(79, 140, 255, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.platforms { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }

/* clouds */
.cloud { position: absolute; background: rgba(255, 255, 255, 0.8); border-radius: 100px; filter: blur(2px); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 100px; }
.c1 { width: 180px; height: 38px; top: 16%; left: -200px; animation: drift 38s linear infinite; }
.c2 { width: 130px; height: 30px; top: 30%; left: -200px; animation: drift 52s linear infinite 6s; opacity: 0.7; }
.c3 { width: 220px; height: 44px; top: 9%; left: -260px; animation: drift 64s linear infinite 3s; opacity: 0.6; }
.c1::before { width: 90px; height: 60px; top: -26px; left: 34px; }
.c2::before { width: 70px; height: 48px; top: -20px; left: 28px; }
.c3::before { width: 110px; height: 70px; top: -30px; left: 50px; }
@keyframes drift { to { transform: translateX(115vw); } }

/* flying hero bird */
/* bird LEADS (right), banner TRAILS behind it (left), like a towed flag */
.hero-bird { position: absolute; top: 15%; left: 0; z-index: 4; display: flex; align-items: center; animation: fly 15s linear infinite; }
.hero-bird img { order: 3; height: clamp(70px, 9vw, 120px); animation: bob 1.05s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(40, 70, 120, 0.18)); }
.hero-string { order: 2; width: 18px; height: 2px; background: rgba(25, 30, 40, 0.5); flex: none; }
.hero-toast {
  order: 1; white-space: nowrap;
  background: rgba(25, 30, 40, 0.86); color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 14px; border-radius: 12px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 7px;
  transform-origin: right center; animation: heroFlutter 1.2s ease-in-out infinite;
}
.hero-toast .dot { width: 8px; height: 8px; border-radius: 50%; background: #7CF2A4; }
@keyframes fly { 0% { transform: translateX(-34vw) translateY(0); } 50% { transform: translateX(44vw) translateY(3vh); } 100% { transform: translateX(128vw) translateY(-1vh); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes heroFlutter { 0%, 100% { transform: rotate(-1.4deg) skewX(-1.5deg); } 50% { transform: rotate(1.4deg) skewX(1.5deg); } }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(180deg, transparent, var(--cream)); z-index: 3; }

/* ---------- BANDS ---------- */
.band { padding: clamp(70px, 9vw, 120px) clamp(18px, 6vw, 90px); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 52px); }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); margin-top: 16px; }

/* steps */
.how { background: var(--cream); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1120px; margin: 0 auto; }
.step { background: var(--card); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); border: 1px solid rgba(120,150,200,0.08); }
.step-ico { font-size: 34px; display: block; margin-bottom: 14px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.how-note { text-align: center; margin-top: 40px; color: var(--muted); font-weight: 700; font-size: 15px; }

/* yours */
.yours { background: linear-gradient(180deg, var(--cream), var(--sky-soft)); }
.flock { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; max-width: 1120px; margin: 0 auto 44px; }
.bird-card {
  background: var(--card); border-radius: 18px; padding: 22px 10px 16px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(120,150,200,0.08);
  transition: transform 0.16s, box-shadow 0.16s;
}
.bird-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.bird-card img { height: 56px; }
.bird-card figcaption { margin-top: 10px; font-weight: 700; font-size: 13px; color: var(--muted); }
.bird-card .rar { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em; color: var(--accent); }
.bird-card.more { background: transparent; border: 1.5px dashed rgba(120,150,200,0.32); box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bird-card.more img { height: 44px; opacity: 0.7; }
.bird-card.more:hover { transform: none; box-shadow: none; }
.yours-extra { display: flex; gap: 20px; max-width: 760px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.mini { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow-sm); flex: 1 1 300px; }
.mini-ico { font-size: 32px; }
.mini-ico.photo { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sky-soft); border: 2px solid var(--accent); }
.mini h4 { font-size: 17px; }
.mini p { color: var(--muted); font-size: 14.5px; }

/* private */
.private { background: var(--sky-soft); }
.private-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 70px); align-items: center; max-width: 1080px; margin: 0 auto; }
.private h2 { font-size: clamp(28px, 4vw, 46px); }
.private .lede { margin: 18px 0 24px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #4a3400; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.signin-card { display: flex; justify-content: center; }
.signin-window { background: var(--card); border-radius: var(--radius); padding: 32px 30px; text-align: center; box-shadow: var(--shadow); width: 100%; max-width: 340px; }
.sw-title { font-family: "Fraunces", serif; font-size: 22px; font-weight: 600; }
.sw-sub { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.sw-cta { width: 100%; background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; font-family: inherit; padding: 12px 18px; border-radius: 12px; border: none; cursor: pointer; transition: transform 0.12s, background 0.15s; }
.sw-cta:hover { background: var(--blue-deep); transform: translateY(-1px); }
.sw-note { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* get */
.get { background: linear-gradient(180deg, var(--sky-soft) 0%, var(--sky-mid) 100%); text-align: center; }
.get-inner { max-width: 680px; margin: 0 auto; }
.get-icon { width: 92px; height: 92px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 22px; }
.get h2 { font-size: clamp(30px, 4.6vw, 52px); }
.get p { color: var(--muted); font-size: 18px; margin: 16px auto 28px; max-width: 30em; }

/* footer */
.foot { background: var(--ink); color: #cdd6e2; text-align: center; padding: 54px 20px 60px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-family: "Fraunces", serif; font-weight: 600; font-size: 22px; color: #fff; }
.foot-brand img { height: 26px; }
.foot p { margin-top: 12px; font-size: 14.5px; }
.foot-links { margin-top: 14px; }
.foot-links a { color: #fff; font-weight: 700; }
.foot-links a:hover { color: var(--accent); }

/* reveal on scroll, content is visible by default; JS "arms" it for the
   entrance animation, so if JS ever fails nothing is hidden. */
.reveal { opacity: 1; transform: none; }
.reveal.armed { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flock { grid-template-columns: repeat(3, 1fr); }
  .private-grid { grid-template-columns: 1fr; }
  .signin-card { order: -1; }
  .hero { min-height: auto; padding-top: 130px; }
}
@media (max-width: 520px) {
  .flock { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero-bird { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bird, .hero-bird img, .cloud, .hero-toast { animation: none; }
  .hero-bird { top: 14%; left: 60%; }
  .reveal { opacity: 1; transform: none; }
}
/* ---------- SIGNUP MODAL ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(28, 40, 60, 0.55); backdrop-filter: blur(4px);
  animation: modalIn 0.2s ease;
}
.modal[hidden] { display: none; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--card); border-radius: var(--radius);
  padding: 34px 32px 28px; box-shadow: 0 30px 70px rgba(20, 40, 80, 0.35);
  text-align: center; animation: cardIn 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes cardIn { from { transform: translateY(16px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x {
  position: absolute; top: 14px; right: 16px; border: none; background: transparent;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px;
}
.modal-x:hover { color: var(--ink); }
.modal-bird { height: 48px; margin-bottom: 6px; }
.modal-card h2 { font-size: 26px; }
.modal-sub { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
#suForm { display: grid; gap: 14px; text-align: left; }
#suForm label { font-weight: 700; font-size: 13px; color: var(--ink); display: grid; gap: 6px; }
#suForm input, #suForm select {
  font-family: inherit; font-size: 15px; font-weight: 400; padding: 11px 13px;
  border-radius: 11px; border: 1.5px solid rgba(120, 150, 200, 0.3); background: #fff; color: var(--ink);
  width: 100%; box-sizing: border-box;
}
#suForm input:focus, #suForm select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18); }
.su-submit { width: 100%; margin-top: 4px; cursor: pointer; border: none; }
.su-submit:disabled { opacity: 0.6; cursor: default; }
.su-note { font-size: 11.5px; color: var(--muted); text-align: center; margin: 2px 0 0; }
.su-error { color: #c0392b; font-size: 13px; font-weight: 700; margin: 0; }
.su-done { text-align: center; }
.su-check {
  width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #4a3400;
  font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.su-done h2 { font-size: 24px; }
.su-done p { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
/* ---------- ABOUT ---------- */
.about { background: var(--cream); }
.about-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.about-bird { height: 58px; margin-bottom: 16px; }
.about-inner h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 22px; }
.about-inner p { color: var(--muted); font-size: 17px; line-height: 1.75; margin-bottom: 16px; text-align: left; }
.about-inner p em { color: var(--ink); font-style: italic; }
.about-sign { text-align: center !important; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 22px; color: var(--ink); margin-top: 6px; }
/* ensure the [hidden] attribute actually hides the grid form */
#suForm[hidden] { display: none; }

/* ---------- ABOUT PAGE (standalone) ---------- */
.about-page { padding-top: 132px; min-height: 72vh; }
.about-inner h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 26px; }
.about-inner strong { color: var(--ink); font-weight: 800; }
.about-greeting { font-size: 19px; font-weight: 700; color: var(--ink) !important; margin-bottom: 18px; }
.about-cta { text-align: center; margin-top: 30px; }

/* ---------- BIRD HOVER TOOLTIP ---------- */
.bird-tip {
  position: fixed; transform: translate(-50%, -100%);
  background: rgba(25, 30, 40, 0.93); color: #fff; border-radius: 12px;
  padding: 10px 14px; max-width: 270px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  pointer-events: none; z-index: 60; text-align: center;
}
.bird-tip[hidden] { display: none; }
.bird-tip strong { display: block; font-size: 13px; font-weight: 800; margin-bottom: 3px; }
.bird-tip span { font-size: 12.5px; color: #e7ecf3; line-height: 1.4; }
