/* BeanHopper marketing site — tokens from design-system/tokens/palette.ts */

:root {
  --canvas: #1b1a16;
  --canvas-raised: #262320;
  --canvas-elevated: #302c28;
  --ink: #1b1a16;
  --parchment: #f2ebe0;
  --parchment-secondary: #c4bcaa;
  --parchment-subtle: #94897a;
  --caramel: #c4a066;
  --caramel-light: #d4b480;
  --coffee-brown: #954e32;
  --sage: #63b884;
  --separator: rgba(228, 218, 202, 0.14);

  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-pill: 9999px;

  --max-width: 1120px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--parchment);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--caramel-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

.page {
  overflow-x: clip;
}

.container {
  width: min(100% - var(--space-xl) * 2, var(--max-width));
  margin-inline: auto;
}

/* —— Header —— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(27, 26, 22, 0.88);
  border-bottom-color: var(--separator);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--parchment);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark__mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.wordmark__text {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--space-lg);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--coffee-brown);
  color: var(--parchment);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.header-cta:hover {
  opacity: 0.92;
  text-decoration: none;
}

.header-cta:active {
  transform: scale(0.98);
}

/* —— Hero —— */

.hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-5xl);
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196, 160, 102, 0.12), transparent 60%),
    linear-gradient(to bottom, rgba(27, 26, 22, 0.35) 0%, var(--canvas) 85%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-3xl);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--canvas-raised);
  border: 1px solid var(--separator);
  color: var(--caramel);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 8px rgba(99, 184, 132, 0.6);
}

.hero__title {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  color: var(--caramel);
}

.hero__subtitle {
  margin: 0 0 var(--space-xxl);
  max-width: 34ch;
  color: var(--parchment-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
}

/* —— Waitlist form —— */

.waitlist {
  max-width: 420px;
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 520px) {
  .waitlist__form {
    flex-direction: row;
  }
}

.waitlist__field {
  flex: 1;
  min-width: 0;
}

.waitlist__input {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-lg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  background: var(--canvas-raised);
  color: var(--parchment);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist__input::placeholder {
  color: var(--parchment-subtle);
}

.waitlist__input:focus {
  border-color: rgba(196, 160, 102, 0.45);
  box-shadow: 0 0 0 3px rgba(196, 160, 102, 0.12);
}

.waitlist__submit {
  min-height: 48px;
  padding: 0 var(--space-xl);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--coffee-brown);
  color: var(--parchment);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.waitlist__submit:hover:not(:disabled) {
  opacity: 0.92;
}

.waitlist__submit:active:not(:disabled) {
  transform: scale(0.98);
}

.waitlist__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.waitlist__hint {
  margin: var(--space-md) 0 0;
  color: var(--parchment-subtle);
  font-size: 13px;
}

.waitlist__message {
  margin: var(--space-md) 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.waitlist__message[hidden] {
  display: none;
}

.waitlist__message--success {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-xl);
  color: var(--parchment);
  background: rgba(99, 184, 132, 0.14);
  border: 1px solid rgba(99, 184, 132, 0.4);
  font-weight: 600;
}

.waitlist__message--error {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-xl);
  color: var(--parchment);
  background: rgba(224, 138, 122, 0.12);
  border: 1px solid rgba(224, 138, 122, 0.35);
  font-weight: 600;
}

/* —— Phone screenshot —— */

.phone {
  position: relative;
  width: min(100%, 408px);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .phone {
    margin-inline: auto 0;
  }
}

.phone__screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* —— Features —— */

.features {
  padding: var(--space-5xl) 0;
  border-top: 1px solid var(--separator);
}

.section-label {
  margin: 0 0 var(--space-xl);
  color: var(--caramel);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 var(--space-4xl);
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.feature-list {
  display: grid;
  gap: var(--space-xxl);
}

@media (min-width: 768px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.feature {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--canvas-raised);
  border: 1px solid var(--separator);
}

.feature__index {
  display: inline-block;
  margin-bottom: var(--space-lg);
  color: var(--caramel);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.feature__title {
  margin: 0 0 var(--space-md);
  font-size: 18px;
  font-weight: 600;
}

.feature__body {
  margin: 0;
  color: var(--parchment-secondary);
  font-size: 14px;
  line-height: 1.55;
}

/* —— Social proof strip —— */

.strip {
  padding: var(--space-xxl) 0;
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl) var(--space-3xl);
  text-align: center;
}

.strip__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.strip__value {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--parchment);
}

.strip__label {
  color: var(--parchment-subtle);
  font-size: 13px;
}

/* —— Footer CTA —— */

.footer-cta {
  padding: var(--space-5xl) 0;
  text-align: center;
}

.footer-cta__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.footer-cta__subtitle {
  margin: 0 auto var(--space-xxl);
  max-width: 40ch;
  color: var(--parchment-secondary);
}

.footer-cta .waitlist {
  margin-inline: auto;
}

.site-footer {
  padding: var(--space-xxl) 0 var(--space-4xl);
  border-top: 1px solid var(--separator);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-footer__copy {
  margin: 0;
  color: var(--parchment-subtle);
  font-size: 13px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.site-footer__links a {
  color: var(--parchment-subtle);
  font-size: 13px;
}

.site-footer__links a:hover {
  color: var(--parchment-secondary);
}

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