/* ==========================================================================
   CallIt landing page
   Brand tokens are the app's, from src/theme/variables.css. Keep them in sync.
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/Outfit-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/Outfit-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #f5e962;
  --yellow-deep: #f2e12c;
  --pink: #e44489;
  --pink-deep: #e02978; /* the accessible pink — use this for text */
  --teal: #2cdac8;
  --purple: #411955;
  --ink: #202934;
  --off-white: #fafbff;
  --white: #ffffff;
  --muted: #5b6675;

  --display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1140px;
  --gutter: 24px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  padding: 16px 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.btn--yellow:hover {
  background: var(--yellow-deep);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}
.btn--ink:hover {
  background: var(--purple);
}

.btn--sm {
  padding: 12px 22px;
  font-size: 15px;
}
.btn--lg {
  padding: 19px 40px;
  font-size: 19px;
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

:where(a, button, input):focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* --- Nav ---------------------------------------------------------------- */

.nav {
  background: var(--yellow);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.nav__logo img {
  width: 132px;
  height: auto;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background: var(--yellow);
  padding-block: 40px 96px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.hero__logo {
  width: 168px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  max-width: 12ch;
}
.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--purple);
  font-weight: 500;
  margin-top: 18px;
  max-width: 34ch;
}

.hero__art {
  display: flex;
  justify-content: center;
}

/* --- Phone mockup ------------------------------------------------------- */

.phone {
  position: relative;
  width: min(272px, 72vw);
  padding: 11px;
  background: #0d1218;
  border-radius: 42px;
  box-shadow:
    0 28px 60px rgba(23, 20, 45, 0.32),
    0 2px 0 rgba(255, 255, 255, 0.18) inset;
}
.phone img {
  border-radius: 32px;
}
.phone::after {
  /* the notch */
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #0d1218;
  border-radius: 999px;
}
.phone--tilt {
  transform: rotate(4deg);
}

/* --- Sections ----------------------------------------------------------- */

.section {
  padding-block: 96px;
}
.section--alt {
  background: var(--off-white);
}

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  max-width: 24ch;
}

/* --- Steps -------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.step__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.step__title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.step__body {
  color: var(--muted);
}

/* --- Modes -------------------------------------------------------------- */

.modes {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}
.modes__art {
  display: flex;
  justify-content: center;
}
.modes__art .phone {
  width: min(238px, 66vw);
}
.mode {
  margin-top: 32px;
}
.mode__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.mode__body {
  color: var(--muted);
  max-width: 46ch;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
}
.dot--pink {
  background: var(--pink);
}
.dot--teal {
  background: var(--teal);
}

/* --- Waitlist form ------------------------------------------------------ */

.waitlist {
  margin-top: 36px;
  padding: 28px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  max-width: 480px;
}
.waitlist__heading {
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.waitlist__fields {
  display: grid;
  gap: 14px;
}
.field {
  display: block;
}
.field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px stops iOS Safari zooming on focus */
  padding: 13px 15px;
  border: 2px solid #d6dbe4;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input::placeholder {
  color: #9aa4b2;
}
.field input:hover:not(:disabled) {
  border-color: #b3bcca;
}
.field input:focus {
  border-color: var(--purple);
}
.field input:disabled {
  background: #f2f4f8;
  color: #8b95a3;
  cursor: not-allowed;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist__turnstile:not(:empty) {
  margin-top: 16px;
}

.waitlist__submit {
  width: 100%;
  margin-top: 18px;
}

.waitlist__note,
.waitlist__status {
  margin-top: 12px;
  font-size: 0.92rem;
  text-align: center;
  color: var(--muted);
}
.waitlist__status:empty {
  display: none;
}
.waitlist__status[data-state='success'] {
  color: #1a8f7a;
  font-weight: 500;
}
.waitlist__status[data-state='error'] {
  color: var(--pink-deep);
  font-weight: 500;
}

/* --- Closing CTA -------------------------------------------------------- */

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta__body {
  color: var(--muted);
  margin-top: 14px;
  max-width: 46ch;
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: #c2cad6;
  padding-block: 56px 32px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__logo {
  width: 132px;
}
.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer a {
  color: #c2cad6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}
.footer__legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

/* --- Long-form pages (privacy, terms) ----------------------------------- */

.prose {
  max-width: 68ch;
  padding-block: 72px 96px;
}
.prose h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 8px;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 10px;
}
.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 14px;
}
.prose ul {
  padding-left: 22px;
}
.prose a {
  color: var(--pink-deep);
}
.prose__meta {
  font-size: 0.9rem;
  color: #8b95a3;
  margin-bottom: 32px;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .hero__inner,
  .modes {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero__inner {
    text-align: left;
  }
  .hero__art {
    order: -1;
  }
  .hero__inner .phone {
    width: min(212px, 54vw);
  }
  .phone--tilt {
    transform: rotate(0deg);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .waitlist {
    max-width: none;
  }
  .section {
    padding-block: 72px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .waitlist {
    padding: 22px 18px;
  }
  .cta__inner .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
