/* ============================================================
   Yissy — Apple-esque polish on the original brand
   ============================================================ */

:root {
  /* Brand */
  --yissy-yellow: #FFB800;
  --yissy-yellow-deep: #F5A800;
  --yissy-yellow-soft: #FFD15C;
  --yissy-amber: #E89500;

  /* Neutrals */
  --ink: #1A1410;
  --ink-soft: #2D2418;
  --ink-mute: #5C4F3D;
  --paper: #FFFBF1;
  --paper-warm: #FFF6E0;
  --line: rgba(26, 20, 16, 0.12);
  --line-strong: rgba(26, 20, 16, 0.22);

  /* On-yellow */
  --on-yellow: #1A1410;
  --on-yellow-mute: rgba(26, 20, 16, 0.66);

  /* Type — matches bevite.com (Inter Tight) */
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 48px);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--yissy-yellow); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.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;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { left: 12px; top: 12px; }

/* ============================================================
   Topbar (preserved original notification)
   ============================================================ */
.topbar {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 10px 48px;
  text-align: center;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.topbar.is-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.topbar__inner { display: inline-flex; align-items: center; gap: 8px; }
.topbar__link {
  color: var(--yissy-yellow);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 184, 0, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease);
}
.topbar__link:hover { border-color: var(--yissy-yellow); }
.topbar__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.topbar__inner:hover .topbar__arrow { transform: translateX(4px); }
.topbar__close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; opacity: 0.6; transition: opacity 0.2s, background 0.2s;
}
.topbar__close:hover { opacity: 1; background: rgba(255,255,255,0.08); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 184, 0, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(26, 20, 16, 0.06);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav__brand {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-yellow);
  transition: transform 0.4s var(--ease-spring);
}
.nav__brand:hover { transform: rotate(8deg) scale(1.08); }
.nav__mark { width: 28px; height: 28px; fill: var(--on-yellow); }
.nav__icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-yellow);
  border-radius: 50%;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav__icon svg { width: 20px; height: 20px; }
.nav__icon:hover { background: rgba(26, 20, 16, 0.08); }
.nav__icon--left { justify-self: start; }
.nav__icon--right { justify-self: end; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vh, 80px) var(--pad-x) clamp(60px, 10vh, 100px);
  background: var(--yissy-yellow);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 70vmax; height: 70vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  mix-blend-mode: screen;
}
.hero__glow--a {
  background: radial-gradient(circle, rgba(255,231,150,0.9), transparent 60%);
  top: -25vmax; left: -15vmax;
  animation: drift 22s var(--ease) infinite alternate;
}
.hero__glow--b {
  background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 60%);
  bottom: -30vmax; right: -20vmax;
  animation: drift 28s var(--ease) infinite alternate-reverse;
}
.hero__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.08, 0 0 0 0 0.06, 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.18;
  mix-blend-mode: overlay;
}

@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(6vw, 4vh) scale(1.15); }
}

.hero__content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 920px;
  color: var(--on-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
  color: var(--on-yellow);
  background: rgba(255, 251, 241, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 20, 16, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
  margin: 0 auto clamp(40px, 7vh, 64px);
  animation: rise 0.9s var(--ease) 0.05s both;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 0 clamp(20px, 3.5vh, 32px);
  padding: 0;
  line-height: 1;
  animation: rise 1s var(--ease) 0.15s both;
}
.wordmark__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 18vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--paper);
  text-shadow: 0 4px 30px rgba(26, 20, 16, 0.08);
}
.wordmark__asterisk {
  width: clamp(36px, 5vw, 64px);
  height: clamp(36px, 5vw, 64px);
  margin-top: clamp(14px, 2.4vw, 28px);
  margin-left: clamp(10px, 1.2vw, 18px);
  flex-shrink: 0;
  animation: spin 14s linear infinite, rise 1s var(--ease) 0.3s both;
  transform-origin: center;
}
.wordmark__asterisk .ast rect { fill: var(--ink); }
@keyframes spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  color: var(--on-yellow);
  margin: 0 0 clamp(20px, 3vh, 28px);
  animation: rise 1s var(--ease) 0.35s both;
}
.tag-strike {
  position: relative;
  display: inline-block;
  opacity: 0.62;
}
.tag-strike::after {
  content: "";
  position: absolute;
  left: -3%; right: -3%;
  top: 52%;
  height: 2px;
  background: var(--ink);
  transform: rotate(-3deg);
  transform-origin: center;
  border-radius: 2px;
}

.hero__sub {
  max-width: 620px;
  margin: 0 auto clamp(36px, 6vh, 52px);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--on-yellow);
  opacity: 0.82;
  animation: rise 1s var(--ease) 0.5s both;
}
.hero__sub em {
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  opacity: 1;
}

.hero__cta {
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  animation: rise 1s var(--ease) 0.65s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 24px rgba(26, 20, 16, 0.18);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 20, 16, 0.28);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 251, 241, 0.55);
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 20, 16, 0.1);
}
.btn--ghost:hover {
  background: rgba(255, 251, 241, 0.85);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--on-yellow-mute);
  z-index: 1;
  opacity: 0.7;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Signup
   ============================================================ */
.signup {
  padding: clamp(64px, 12vh, 120px) var(--pad-x);
  background: var(--paper);
}
.signup__card {
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(180deg, var(--paper-warm) 0%, #FFFFFF 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 30px 60px -30px rgba(26, 20, 16, 0.18);
}

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--yissy-amber);
  margin: 0 0 14px;
}

.signup__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--ink);
}

.signup__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0;
  max-width: 44ch;
}

.signup__form { width: 100%; }
.signup__field {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup__field:focus-within {
  border-color: var(--yissy-amber);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.22);
}
.signup__field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 16px;
  color: var(--ink);
  min-width: 0;
}
.signup__field input::placeholder { color: rgba(26,20,16,0.4); }
.signup__submit { height: 46px; padding: 0 22px; }
.signup__fineprint {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 14px 6px 0;
}
.signup__fineprint a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.signup__fineprint a:hover { border-color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255, 251, 241, 0.55);
  padding: 48px var(--pad-x) 40px;
  position: relative;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__inner::before {
  content: "";
  width: 1px; height: 18px;
  background: rgba(255, 251, 241, 0.18);
  order: 1;
}
.footer__brand { order: 0; }
.footer__copy { order: 2; }
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--yissy-yellow);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.footer__mark { width: 22px; height: 22px; fill: currentColor; }
.footer__copy {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 251, 241, 0.4);
}

/* Cookie notice */
.cookie {
  position: fixed;
  left: auto; right: 16px;
  transform: none;
  bottom: 16px;
  max-width: calc(100% - 32px);
  background: rgba(26, 20, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--paper);
  font-size: 13px;
  padding: 12px 16px 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 251, 241, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  z-index: 60;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.cookie.is-hidden { transform: translateY(30px); opacity: 0; pointer-events: none; }
.cookie a {
  color: var(--yissy-yellow);
  border-bottom: 1px solid rgba(255, 184, 0, 0.4);
}
.cookie__close {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; opacity: 0.7;
  background: rgba(255, 251, 241, 0.08);
  transition: opacity 0.2s, background 0.2s;
}
.cookie__close:hover { opacity: 1; background: rgba(255, 251, 241, 0.16); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .signup__card { grid-template-columns: 1fr; padding: 36px 28px; }
  .signup__field { flex-direction: column; padding: 8px; border-radius: 20px; gap: 8px; }
  .signup__field input { width: 100%; padding: 14px 16px; }
  .signup__submit { width: 100%; justify-content: center; height: 50px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 480px) {
  .topbar { padding: 10px 36px; font-size: 12px; }
  .footer__nav { gap: 16px; }
  .hero__scroll { display: none; }
  .cookie { left: 16px; right: 16px; justify-content: center; }
}

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