:root {
  --bg: #fffcf4;
  --bg-soft: #fff7ea;
  --ink: #333;
  --muted: #766f67;
  --line: #eee5d7;
  --card: #fffdf8;
  --accent: #ff4757;
  --accent-dark: #d74624;
  --accent-soft: #fff0e9;
--shadow: 0 20px 46px rgba(33, 26, 17, 0.08);
  --shadow-strong: 0 24px 60px rgba(33, 26, 17, 0.16);
  --radius: 22px;
  --font: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  background: #070707;
  color: var(--ink);
  font-family: var(--font);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  font-family: var(--font);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.site-header {
  width: 100%;
  padding: clamp(1.5rem, 4vw, 2.125rem) clamp(1.5rem, 5vw, 3rem) clamp(0.875rem, 2.5vw, 1.375rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: -0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #000;
  letter-spacing: -0.5px;
}

.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5625rem;
  box-shadow: 0 5px 14px rgba(33, 26, 17, 0.13);
}

.hero {
  width: min(100% - clamp(1.5rem, 6vw, 2.25rem), 56rem);
  margin: clamp(0.5rem, 1.5vw, 0.625rem) auto 0;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
}

.hero h1 {
  max-width: 56rem;
  margin: clamp(1.75rem, 5vw, 2.5rem) auto 0.75rem;
  color: #111;
  font-size: clamp(2.1rem, 7vw, 3.625rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-line-primary {
  display: block;
}

.hero-line-accent {
  display: block;
  margin-top: 0.75rem;
  color: var(--accent);
}

.hero-copy > p {
  max-width: 34.0625rem;
  margin: 1.25rem 0 1.375rem;
  color: var(--muted);
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.waitlist-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 17.1875rem) auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: min(100%, 30rem);
  margin: 0 auto;
}

.waitlist-form input {
  width: 100%;
  height: 2.875rem;
  border: 1px solid rgba(23, 20, 17, 0.1);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--ink);
  padding: 0 1.125rem;
  font-size: clamp(0.875rem, 1.1vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  outline: none;
  box-shadow: 0 10px 24px rgba(33, 26, 17, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.waitlist-form input::placeholder {
  color: #a49b91;
}

.waitlist-form input:focus {
  border-color: rgba(240, 88, 47, 0.48);
  box-shadow: 0 0 0 4px rgba(240, 88, 47, 0.12), 0 12px 28px rgba(33, 26, 17, 0.08);
}

.waitlist-form button {
  height: 2.875rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf8;
  padding: 0 1.375rem;
  font-size: clamp(0.875rem, 1.1vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(23, 20, 17, 0.18);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.waitlist-form button:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(240, 88, 47, 0.24);
}

.waitlist-form button:disabled {
  cursor: wait;
  opacity: 0.74;
  transform: none;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 1.0625rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.form-message.is-success {
  color: #1dac40;
}

.form-message.is-error {
  color: var(--accent-dark);
}

.phone-stage {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 17.5rem);
  margin: 3.625rem auto 4.875rem;
}

.iphone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 17.5rem);
  aspect-ratio: 14 / 29;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #444;
  border-radius: 40px;
  background: #222;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.iphone::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 1;
  pointer-events: none;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 34px;
}

.iphone-notch {
  position: absolute;
  width: 100px;
  height: 25px;
  background: #222;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 2;
}

.phone-screen {
  flex: 1;
  width: 100%;
  min-height: 0;
  border-radius: 31px;
  object-fit: cover;
  object-position: top center;
}

.features {
  width: min(100% - 2.625rem, 62rem);
  margin: 0 auto;
  text-align: center;
}

.features h2,
.final-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 4.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.75rem;
}

.feature-card {
  min-height: 17rem;
  border: 1px solid var(--line);
  border-radius: 0.8125rem;
  background: rgba(255, 255, 255, 0.502);
  padding: 3rem 2.25rem 2.75rem;
  box-shadow: 0 16px 34px rgba(33, 26, 17, 0.04);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.feature-card:hover {
  border-color: rgba(240, 88, 47, 0.2);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto 1.375rem;
  border-radius: 1.25rem;
  background: var(--accent-soft);
  font-size: 2rem;
}

.mascot-icon {
  background: #efff45;
  overflow: hidden;
}

.mascot-icon img {
  width: 2.625rem;
  height: 2.625rem;
  object-fit: cover;
}

.feature-card h3 {
  margin: 0 0 0.5625rem;
  color: var(--ink);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.84375rem, 1.15vw, 0.875rem);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: -0.02em;
}

.final-cta {
  width: min(100% - 2.625rem, 38.75rem);
  margin: 7rem auto 0;
  text-align: center;
}

.final-cta p {
  margin: 1.0625rem 0 1.4375rem;
  color: var(--muted);
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.waitlist-form.compact {
  width: min(100%, 26.25rem);
}

.site-footer {
  width: min(100% - 2.625rem, 58.75rem);
  margin: 5.75rem auto 0;
  padding: 3.625rem 0 3.125rem;
  border-top: 1px solid rgba(33, 26, 17, 0.07);
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.125rem;
}

.site-footer a {
  color: #5f5851;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer p {
  margin: 2rem 0 0;
  color: #afa69b;
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-reveal {
  animation: fadeUp 560ms ease both;
}

.features.section-reveal {
  animation-delay: 100ms;
}

.final-cta.section-reveal {
  animation-delay: 180ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 1.75rem;
    padding-bottom: 1rem;
  }

  .hero h1 {
    margin-top: 1.875rem;
    font-size: clamp(2.45rem, 9vw, 3.35rem);
  }

  .hero-copy > p {
    max-width: 32rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.125rem;
    width: min(100%, 22.5rem);
    margin-right: auto;
    margin-left: auto;
  }

  .feature-card {
    min-height: 0;
    padding: 1.6875rem 1.375rem 1.5rem;
  }
}

@media (max-width: 680px) {
  .waitlist-form,
  .waitlist-form.compact {
    grid-template-columns: 1fr;
    width: min(100%, 25rem);
  }

  .waitlist-form button,
  .waitlist-form input {
    width: 100%;
  }

  .features,
  .final-cta,
  .site-footer {
    width: min(100% - 2.25rem, 32rem);
  }

  .site-footer nav {
    gap: 1rem 1.5rem;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 0.625rem;
    margin-left: -0.35rem;
    font-size: 1.25rem;
  }

  .brand-logo {
    width: 1.875rem;
    height: 1.875rem;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 9.5vw, 2.75rem);
    line-height: 0.98;
  }


  .hero-copy > p {
    font-size: clamp(0.875rem, 3.6vw, 0.9375rem);
    max-width: 100%;
  }

  .waitlist-form button,
  .waitlist-form input {
    width: 100%;
    height: 3rem;
  }

  .phone-stage {
    width: min(100%, 14.875rem);
    margin-top: 2.6875rem;
    margin-bottom: 3.625rem;
  }

  .iphone {
    border-radius: 34px;
    padding: 8px;
  }

  .iphone::before {
    inset: 5px;
    border-radius: 29px;
  }

  .iphone-notch {
    top: 0;
    width: 85px;
    height: 21px;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
  }

  .phone-screen {
    border-radius: 27px;
  }

  .final-cta {
    margin-top: 4.875rem;
  }

  .site-footer {
    margin-top: 4.375rem;
    padding-top: 2.75rem;
    padding-bottom: 2.375rem;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: center;
    gap: 0.875rem 1.75rem;
  }
}

@media (max-width: 400px) {
  .brand {
    margin-left: -0.15rem;
    font-size: 1.125rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .hero-copy > p {
    font-size: 0.8125rem;
  }

  .site-footer a {
    font-size: 0.9375rem;
  }

  .site-footer p {
    font-size: 0.875rem;
  }

  .site-footer nav {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
