:root {
  --color-bg: #f2dda0;
  --color-bg-soft: #fef9e0;
  --color-surface: rgba(254, 251, 231, 0.82);
  --color-surface-strong: rgba(254, 249, 225, 0.95);
  --color-accent: #f5c800;
  --color-accent-deep: #1a0900;
  --color-text: #1a0900;
  --color-text-muted: #7a4010;
  --color-border: rgba(26, 9, 0, 0.10);
  --color-border-strong: rgba(26, 9, 0, 0.22);
  --shadow-soft: 0 20px 60px rgba(26, 9, 0, 0.12);
  --shadow-card: 0 18px 40px rgba(26, 9, 0, 0.09);

  --font-headline: 'Fredoka', 'Fraunces', Georgia, serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --content-width: 1440px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: linear-gradient(to right, var(--color-bg-soft) 0%, #fdf5d8 100%);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow: hidden;
}

body.is-intro-active .site-header > :not(.wordmark),
body.is-intro-active .hero,
body.is-intro-active .site-footer {
  opacity: 0;
  transform: translateY(1.5rem);
}

body.intro-complete .site-header > :not(.wordmark),
body.intro-complete .hero,
body.intro-complete .site-footer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s ease, transform 0.9s ease;
}


.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;
}

.page-wrapper {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(1rem, 1.6vw, 1.5rem) clamp(1.2rem, 3vw, 2.75rem) clamp(1rem, 1.8vw, 1.4rem);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 10% 8%, rgba(255, 250, 195, 0.92), transparent 42%),
    linear-gradient(160deg, rgba(254, 251, 228, 0.95), rgba(245, 230, 185, 0.95));
  opacity: 0;
}

body.is-intro-active .intro-overlay {
  opacity: 1;
}

body.intro-complete .intro-overlay {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-bottom: clamp(0.9rem, 1.8vw, 1.5rem);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.wordmark {
  position: relative;
  z-index: 30;
  height: clamp(5rem, 8vw, 8rem);
  width: auto;
  display: block;
  transform-origin: center center;
}

body.is-intro-active .wordmark {
  opacity: 0;
}

body.is-intro-active.intro-ready .wordmark {
  opacity: 0;
  position: fixed;
  left: 50vw;
  top: 50vh;
  margin: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(var(--intro-scale, 1));
  transition: opacity 0.7s ease;
}

body.is-intro-active.intro-visible .wordmark {
  opacity: 1;
}

body.is-intro-active.intro-shift .wordmark {
  left: var(--intro-final-x, 50vw);
  top: var(--intro-final-y, 50vh);
  transform: translate(-50%, -50%) scale(1);
  transition:
    left 1.2s cubic-bezier(0.23, 1, 0.32, 1),
    top 1.2s cubic-bezier(0.23, 1, 0.32, 1),
    transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}


.header-note {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
  gap: clamp(1.25rem, 2vw, 2.25rem);
  min-height: 0;
  overflow: visible;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-copy,
.hero-panel {
  min-height: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  align-self: start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.85rem;
  padding: 0.15rem 0;
  color: var(--color-accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker::before,
.hero-kicker::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 31, 8, 0.10), rgba(59, 31, 8, 0.50));
}

.hero-kicker::after {
  width: 1.2rem;
}

.hero-headline {
  max-width: 12ch;
  margin-top: 0.8rem;
  font-family: var(--font-headline);
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.text-pop {
  position: relative;
  z-index: 1;
  color: var(--color-accent);
  -webkit-text-stroke: 4px var(--color-accent-deep);
  paint-order: stroke fill;
  display: inline-block;
  transform: rotate(-4.5deg) scale(1.28);
  transform-origin: center bottom;
  margin-inline: 0.12em;
  filter: drop-shadow(3px 4px 0px rgba(26, 9, 0, 0.55));
}


.hero-description {
  max-width: 44rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.signup-form {
  position: relative;
  width: min(100%, 40rem);
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 2px dashed rgba(200, 145, 20, 0.45);
}

.signup-form::before {
  content: none;
}

.signup-copy {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}

.form-intro {
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.email-wrap {
  position: relative;
  min-width: 0;
}

.email-wrap .email-input {
  width: 100%;
}

.domain-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
  background: var(--color-bg-soft);
  border: 2px solid var(--color-accent-deep);
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--color-accent-deep);
  z-index: 50;
  display: none;
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.domain-suggestions.is-open {
  display: block;
}

.domain-suggestion-item {
  padding: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.14s ease;
}

.domain-suggestion-item strong {
  color: var(--color-accent-deep);
}

.domain-suggestion-item em {
  font-style: normal;
  color: var(--color-text-muted);
}

.domain-suggestion-item:hover,
.domain-suggestion-item.is-highlighted {
  background: rgba(245, 200, 0, 0.18);
}


.email-input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(26, 9, 0, 0.55);
  border-radius: 4px;
  background: rgba(255, 252, 215, 0.65);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  box-shadow: 3px 3px 0 rgba(26, 9, 0, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-input::placeholder {
  color: #a07048;
}

.email-input:focus {
  border-color: var(--color-accent-deep);
  box-shadow: 3px 3px 0 var(--color-accent-deep), 0 0 0 3px rgba(245, 200, 0, 0.30);
}

.submit-btn {
  min-height: 3.5rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--color-accent-deep);
  border-radius: 4px;
  background: var(--color-accent);
  color: var(--color-accent-deep);
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--color-accent-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.submit-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--color-accent-deep);
}

.submit-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-accent-deep);
}

.form-notice {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  transition: opacity 0.3s ease;
}

/* Success state */
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 2px dashed rgba(26, 9, 0, 0.35);
  border-radius: 4px;
  background: rgba(245, 200, 0, 0.14);
}

.form-success-title {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent-deep);
  margin-bottom: 0.25rem;
}

.form-success-body {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.signup-form.is-success .signup-copy,
.signup-form.is-success .form-row,
.signup-form.is-success .form-notice {
  display: none;
}

.signup-form.is-success .form-success {
  display: block;
}

/* Error shake on button */
.submit-btn.is-error {
  background: #e05a2b;
  border-color: var(--color-accent-deep);
  color: #fff;
  animation: btn-shake 0.35s ease;
}

@keyframes btn-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.75rem);
  margin-top: 0;
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
  border: 2px dashed rgba(26, 9, 0, 0.38);
  border-radius: 8px;
  background: rgba(255, 248, 190, 0.35);
  box-shadow: 4px 4px 0 rgba(26, 9, 0, 0.12);
  overflow: hidden;
}

.hero-panel::before {
  content: none;
}

.panel-topline {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
}

.panel-label {
  position: relative;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}

.panel-meta {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.panel-title {
  position: relative;
  margin-top: 0.15rem;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.7vw, 2.65rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px dashed rgba(26, 9, 0, 0.18);
}

.about-lead {
  font-family: var(--font-headline);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-accent-deep);
}

.about-text {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.25rem;
}

.about-badge {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  border: 2px solid rgba(26, 9, 0, 0.18);
  border-radius: 4px;
  padding: 0.3rem;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(26, 9, 0, 0.08);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 2px dashed rgba(26, 9, 0, 0.22);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-inquiry {
  font-size: 0.78rem;
}

.site-footer a {
  color: var(--color-accent-deep);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.site-footer a:hover {
  opacity: 0.7;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  }

  .hero-copy,
  .hero-panel {
    min-height: auto;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-headline {
    max-width: 11ch;
  }

}

@media (max-width: 640px) {
  /* Allow scrolling — body is overflow: hidden on desktop to lock viewport */
  body {
    overflow-y: auto;
  }

  /* Re-lock scroll during the intro animation on mobile */
  body.is-intro-active {
    overflow: hidden;
  }

  /* Let the page grow taller than the viewport */
  .page-wrapper {
    height: auto;
    min-height: 100dvh;
    padding-inline: 1.15rem;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  /* Center the logo */
  .site-header {
    justify-content: center;
    padding-bottom: 0.75rem;
  }

  /* Single column, scrollable */
  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }

  .hero-copy {
    justify-content: flex-start;
  }

  .hero-headline {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
    margin-top: 0.5rem;
  }

  .signup-form {
    width: 100%;
    margin-top: 1.25rem;
  }

  /* Stack email + button vertically */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .submit-btn {
    width: 100%;
  }

  /* Show the about panel below the form on mobile */
  .hero-panel {
    display: flex;
    margin-top: 1.75rem;
    margin-bottom: 0;
  }

  .panel-topline {
    gap: 0.4rem;
  }

  /* Stack footer */
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay {
    display: none;
  }

  .site-header,
  .hero,
  .site-footer {
    transition: none;
  }

  body.is-intro-active .site-header > :not(.wordmark),
  body.is-intro-active .hero,
  body.is-intro-active .site-footer {
    opacity: 1;
    transform: none;
  }

  body.is-intro-active .wordmark {
    opacity: 1;
    position: relative;
    left: auto;
    top: auto;
    margin: 0;
    transform: none;
    transition: none;
  }
}

@media (max-height: 820px) {
  .page-wrapper {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .site-header {
    padding-bottom: 0.75rem;
  }

  .hero-headline {
    font-size: clamp(2.8rem, 5.8vw, 5rem);
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .signup-form {
    margin-top: 1rem;
    padding-top: 0.75rem;
  }

  .hero-panel {
    gap: 0.8rem;
  }
}
