/* ---------- Easy Evite — sky blue brand ---------- */
* { box-sizing: border-box; }
:root {
  --sky-50:  #F0F9FF;
  --sky-100: #E0F2FE;
  --sky-200: #BAE6FD;
  --sky-300: #7DD3FC;
  --sky-400: #38BDF8;
  --sky-500: #0EA5E9;   /* primary */
  --sky-600: #0284C7;
  --sky-700: #0369A1;
  --sky-900: #0C4A6E;
  --ink: #0B2A45;
  --muted: #4A6F8C;
  --line: #D6ECFB;
  --paper: #ffffff;
  --shadow: 0 18px 40px -22px rgba(2, 132, 199, 0.45);
}

html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--sky-200), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--sky-100), transparent 55%),
    var(--sky-50);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
.bg-clouds {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(60px 24px at 10% 20%, rgba(255,255,255,.7), transparent 65%),
    radial-gradient(80px 28px at 30% 18%, rgba(255,255,255,.55), transparent 65%),
    radial-gradient(70px 26px at 75% 30%, rgba(255,255,255,.6), transparent 65%),
    radial-gradient(90px 30px at 88% 12%, rgba(255,255,255,.5), transparent 65%);
}

a { color: var(--sky-700); text-decoration: none; }
a:hover { color: var(--sky-900); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  background: rgba(240, 249, 255, 0.85);
  border-bottom: 1px solid var(--line);
  gap: 8px;
}
@media (min-width: 720px) { .nav { padding: 14px 24px; } }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; text-decoration: none; }
.logo svg { display: block; }
.logo-text { letter-spacing: -.5px; }
.logo-dot { color: var(--sky-500); }
.logo-tag {
  display: inline-block;
  background: var(--sky-100);
  color: var(--sky-700);
  font: 800 10px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  margin-left: 4px;
  border: 1px solid var(--sky-200);
}
@media (max-width: 380px) { .logo-tag { display: none; } }
.nav-links { display: flex; gap: 14px; font-weight: 500; font-size: 14px; align-items: center; }
.nav-links a { color: var(--sky-700); }
@media (max-width: 540px) {
  /* keep auth state actions visible on mobile but hide marketing anchors */
  .nav-links a[href^="#"] { display: none; }
  .nav-links .muted { display: none; }
}

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 36px;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  max-width: 1120px; margin: 0 auto;
  padding: 64px 24px 24px;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-art { order: -1; }
}

.badge {
  display: inline-block;
  background: var(--sky-100);
  color: var(--sky-700);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--sky-200);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.05; letter-spacing: -1px;
  margin: 18px 0 14px;
  color: var(--ink);
}
.lede { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 540px; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; letter-spacing: .2px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn.primary { background: var(--sky-500); color: white; box-shadow: var(--shadow); }
.btn.primary:hover { background: var(--sky-600); color: white; }
.btn.primary:active { transform: translateY(1px); }
.btn.ghost { color: var(--sky-700); background: white; border-color: var(--sky-200); }
.btn.ghost:hover { border-color: var(--sky-400); color: var(--sky-900); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- mini envelope ---------- */
.hero-art { display: grid; place-items: center; gap: 14px; }
.envelope.mini {
  position: relative;
  width: min(80vw, 360px);
  aspect-ratio: 1.45 / 1;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.envelope.mini .back {
  position: absolute; inset: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--sky-300), var(--sky-500));
  box-shadow: 0 25px 40px -22px rgba(3, 105, 161, 0.55);
  z-index: 1;
}
.envelope.mini .front {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--sky-500), var(--sky-300) 60%, var(--sky-500));
  border-radius: 8px;
  z-index: 4;
  clip-path: polygon(0 50%, 50% 100%, 100% 50%, 100% 100%, 0 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.25), inset 0 -2px 6px rgba(0,0,0,.15);
}
.envelope.mini .letter {
  position: absolute; left: 7%; right: 7%; top: 16%; bottom: 8%;
  background: white; border-radius: 5px;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  background-image:
    linear-gradient(180deg, white 0 35%, transparent 35%),
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(2,132,199,.2) 10px 11px);
  transform: translateY(0);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.envelope.mini .flap {
  position: absolute; left: 0; right: 0; top: 0;
  height: 50%;
  background: linear-gradient(180deg, var(--sky-400), var(--sky-500));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0%;
  transform: rotateX(0deg);
  transition: transform .8s cubic-bezier(.45,.05,.2,1);
  z-index: 5;
}
.envelope.mini .seal {
  position: absolute; left: 50%; top: 38%;
  width: 14%; aspect-ratio: 1/1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--sky-200) 60%, var(--sky-400) 100%);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: clamp(9px, 1.6vw, 12px);
  color: var(--sky-700);
  font-weight: 700; letter-spacing: 1.5px;
  z-index: 6;
  box-shadow: 0 4px 8px rgba(0,0,0,.2), inset 0 -2px 3px rgba(0,0,0,.1);
  transition: transform .3s ease, opacity .3s ease;
}
.envelope.mini.open .seal { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.envelope.mini.open .flap { transform: rotateX(180deg); }
.envelope.mini.open .letter { transform: translateY(-55%); transition-delay: .35s; }

.mini-cta {
  appearance: none; border: none; cursor: pointer;
  background: white;
  color: var(--sky-700);
  border: 1px solid var(--sky-200);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(2,132,199,.15);
}
.mini-cta:hover { border-color: var(--sky-400); }

/* ---------- callout ---------- */
.callout {
  margin: 48px auto 0; max-width: 1120px; padding: 0 24px;
}
.callout-inner {
  background: linear-gradient(180deg, var(--sky-500), var(--sky-700));
  color: white;
  padding: 38px 32px; border-radius: 22px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(3,105,161,.7);
}
.callout h2 { margin: 0 0 8px; font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -.5px; }
.callout p { max-width: 640px; margin: 6px auto 22px; opacity: .95; line-height: 1.55; }
.checks {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px 18px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  text-align: left;
  max-width: 720px; margin: 0 auto;
}
.checks li {
  position: relative;
  padding-left: 28px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 10px 12px 10px 36px;
  font-weight: 600;
}
.checks li::before {
  content: ""; position: absolute;
  left: 12px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2.5px solid white; border-bottom: 2.5px solid white;
  margin-top: -3px;
  /* checkmark */
}
.checks li::after {
  content: "";
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  z-index: -1;
}

/* ---------- how ---------- */
.how { max-width: 1120px; margin: 64px auto 24px; padding: 0 24px; }
.how h2 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -.5px; margin: 0 0 24px; text-align: center; }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.steps li {
  background: white; border-radius: 16px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -22px rgba(2,132,199,.4);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--sky-100); color: var(--sky-700);
  font-weight: 800; font-size: 15px;
  margin-bottom: 10px;
}
.steps h3 { margin: 4px 0 6px; font-size: 17px; }
.steps p { color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 56px auto 24px; padding: 0 24px; }
.faq h2 { text-align: center; font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -.5px; margin: 0 0 18px; }
.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--sky-300); }
.faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--sky-500); font-weight: 700; font-size: 20px;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 18px 14px; color: var(--muted); line-height: 1.55; }

/* ---------- final ---------- */
.cta-final {
  text-align: center;
  padding: 52px 24px 28px;
}
.big { font-size: clamp(20px, 3vw, 26px); margin: 0 0 4px; font-weight: 700; }

/* ---------- footer ---------- */
.footer { padding: 28px 24px 36px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 14px;
  gap: 12px; flex-wrap: wrap;
}
.footer-inner a { color: var(--sky-700); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-inner .sep { color: var(--line); margin: 0 6px; }
@media (max-width: 480px) { .footer-inner { flex-direction: column; gap: 4px; } }
