/* GXD Laundry Co. — styles. Follows ../DESIGN.md. Colors ONLY in :root. */
:root {
  /* Backgrounds */
  --bg: #FBF9FF;
  --surface: #FFFFFF;
  --surface-alt: #F3EEFF;
  --surface-hover: #EDE5FF;
  --ink: #1B0B3A;
  --ink-2: #2A1659;
  /* Borders */
  --border: #E4DAFB;
  --border-hover: #C3ADF7;
  --border-on-ink: #3A2670;
  /* Text */
  --text: #1B0B3A;
  --text-secondary: #4B3F66;
  --text-tertiary: #7A6F91;
  --on-ink: #F3EEFF;
  --on-ink-2: #BDB0DC;
  /* Accent */
  --accent: #6A2CF5;
  --accent-hover: #5520D9;
  --pop: #C8FF3E;
  --pop-hover: #B5F01F;
  /* RGB helpers */
  --bg-rgb: 251, 249, 255;
  --ink-rgb: 27, 11, 58;
  --accent-rgb: 106, 44, 245;
  --pop-rgb: 200, 255, 62;
  /* Semantic */
  --success: #13804A;
  --error: #D3204A;
  --warning: #A35F00;
  --tbd: #D3204A;
  --tbd-on-ink: #FF8FA8;

  /* Type */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape + depth */
  --r-sm: 10px; --r-md: 14px; --r-lg: 24px; --r-xl: 32px;
  --shadow-subtle: 0 1px 2px rgba(var(--ink-rgb), .06), 0 8px 24px rgba(var(--ink-rgb), .06);
  --shadow-pop: 0 14px 40px -12px rgba(var(--accent-rgb), .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { overflow-x: clip; } /* rotated marquee bleeds past the edges on purpose */
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 8.5vw, 5.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 4.6vw, 3rem); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; max-width: 18em; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.ic-lg { width: 36px; height: 36px; color: var(--accent); margin-bottom: 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }

.eyebrow { font: 700 .78rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--text-secondary); max-width: 34em; }
.section-lede { font-size: 1.12rem; color: var(--text-secondary); max-width: 36em; }
.fine { font-size: .86rem; color: var(--text-tertiary); }
.tbd { color: var(--tbd); border-bottom: 1.5px dashed currentColor; font-weight: 600; }

/* Links */
a.link { color: var(--accent); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease); }
a.link:hover, a.link:focus-visible { background-size: 100% 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 14px 24px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--surface); font: 700 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 0 var(--accent-hover); position: relative;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); transform: translate(var(--tx, 0), calc(var(--ty, 0px) - 2px)); box-shadow: 0 8px 0 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .92rem; box-shadow: 0 4px 0 0 var(--accent-hover); }
.btn-block { width: 100%; }
.btn-pop { background: var(--pop); color: var(--ink); box-shadow: 0 6px 0 0 var(--pop-hover); }
.btn-pop:hover { background: var(--pop-hover); box-shadow: 0 8px 0 0 var(--accent); }
.btn-pop:active { box-shadow: 0 2px 0 0 var(--accent); }
.btn-pop:focus-visible { outline-color: var(--surface); }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--pop); color: var(--ink); font: 700 .78rem/1 var(--font-body); letter-spacing: .04em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .2s ease, box-shadow .2s ease; }
.site-header.scrolled { background: rgba(var(--bg-rgb), .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
/* Logo: final files from brand/final, never retyped. Clear space = half the X height (~8px at 30px tall). */
.logo { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 8px 8px 0; border-radius: 8px; transition: opacity .15s ease; }
.logo img { height: 30px; width: auto; }
.logo:hover { opacity: .85; }
.footer-logo { width: 160px; height: auto; margin: 0 0 16px; }
.nav { display: none; }
.nav a:not(.btn) { color: var(--text-secondary); font-weight: 600; text-decoration: none; transition: color .15s ease; }
.nav a:not(.btn):hover, .nav a:not(.btn):focus-visible { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.menu-btn:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.menu-btn .ic { width: 22px; height: 22px; }
.nav.open {
  display: flex; flex-direction: column; gap: 4px; position: absolute; left: 12px; right: 12px; top: 72px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-pop);
}
.nav.open a:not(.btn) { padding: 12px; border-radius: var(--r-sm); min-height: 44px; }
.nav.open a:not(.btn):hover { background: var(--surface-alt); }
.nav.open .nav-cta-mobile { margin-top: 6px; }

/* Hero */
.hero { position: relative; padding: 28px 0 64px; overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; gap: 40px; align-items: center; position: relative; }
.hero-title { margin-bottom: .35em; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js .w > span { transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 90ms + 100ms); }
.js .hero.ready .w > span { transform: none; }
.shine {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 35%, var(--pop) 50%, var(--accent) 65%, var(--accent) 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4.5s ease-in-out 1.4s infinite;
}
@keyframes shine { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }

.price-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 22px; font-size: 1.05rem; color: var(--text-secondary); }
.price-chip strong { font: 900 1.4rem/1 var(--font-display); color: var(--text); letter-spacing: -.03em; }

.zip-form { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-subtle); max-width: 540px; position: relative; }
.zip-label { display: block; font-weight: 700; margin-bottom: 10px; }
.zip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.zip-row input { flex: 1 1 190px; }
.zip-row .btn { flex: 1 1 auto; }
.zip-result { margin: 12px 0 0; min-height: 1.5em; font-weight: 600; }
.zip-result:empty { margin: 0; min-height: 0; }
.zip-result.ok { color: var(--success); }
.zip-result.no { color: var(--warning); }
.zip-result a { color: inherit; }

/* Aurora background (soft radial gradients, transform-only drift, no blur filter) */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: .55; will-change: transform; }
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(var(--accent-rgb), .35), transparent 62%); top: -30vmax; right: -18vmax; animation: drift1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(var(--pop-rgb), .45), transparent 60%); bottom: -34vmax; left: -20vmax; animation: drift2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(var(--accent-rgb), .22), transparent 60%); top: 20%; left: 35%; width: 40vmax; height: 40vmax; animation: drift3 26s ease-in-out infinite alternate; }
.aurora-dim i { opacity: .35; }
@keyframes drift1 { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(10vmax, -6vmax) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-6vmax, -4vmax) scale(.9); } }

/* Phone mockup */
.hero-media { display: flex; justify-content: center; position: relative; }
.phone { width: min(250px, 66vw); aspect-ratio: 9 / 16; border-radius: var(--r-xl); overflow: hidden; position: relative;
  border: 7px solid var(--ink); background: var(--ink); box-shadow: var(--shadow-pop); transform: rotate(3deg); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; }
.phone-tag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: 999px; background: rgba(var(--ink-rgb), .78); color: var(--on-ink); font-weight: 700; font-size: .85rem; }
.sticker { position: absolute; top: -6px; left: calc(50% - min(125px, 33vw) - 30px); display: grid; place-items: center; text-align: center;
  width: 92px; height: 92px; border-radius: 50%; background: var(--pop); color: var(--ink); font: 900 .78rem/1.1 var(--font-display);
  text-transform: uppercase; transform: rotate(-12deg); box-shadow: 0 6px 0 0 var(--ink); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-6deg) translateY(-6px); } }

/* Marquee */
.marquee { background: var(--ink); color: var(--pop); overflow: hidden; padding: 18px 0; transform: rotate(-1.5deg); margin: -10px -10px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font: 900 clamp(1.4rem, 4vw, 2.4rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.marquee .ic { width: 26px; height: 26px; color: var(--on-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 72px 0; position: relative; scroll-margin-top: 68px; }
.section-alt { background: var(--surface-alt); }
.section h2 { margin-bottom: 36px; }
.section .section-lede + * { margin-top: 28px; }

/* Bento + cards */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { position: relative; overflow: hidden; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; margin: 0; transition: transform .25s var(--ease), border-color .2s ease, box-shadow .25s ease; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .13), transparent 60%); }
.card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-pop); }
.card:hover::before { opacity: 1; }
.card:focus-within { border-color: var(--accent); }
.card p { color: var(--text-secondary); margin: 0; }
.card > * { position: relative; }
.card-ink { background: var(--ink); border-color: var(--border-on-ink); color: var(--on-ink); }
.card-ink p { color: var(--on-ink-2); }
.card-ink .ic-lg { color: var(--pop); }
.card-ink .tbd { color: var(--tbd-on-ink); }
.card-ink::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--pop-rgb), .14), transparent 60%); }
.card-lav { background: var(--surface-alt); }
.card-row { display: flex; gap: 18px; align-items: flex-start; }
.card-row .ic-lg { margin: 0; }
.step-num { position: absolute; top: 22px; right: 24px; font: 900 1rem/1 var(--font-display); color: var(--text-tertiary); }
.card-ink .step-num { color: var(--on-ink-2); }
.card-photo { padding: 0; min-height: 260px; border: 0; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-photo:hover img { transform: scale(1.05); }
.card-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: var(--r-md);
  background: rgba(var(--ink-rgb), .82); color: var(--on-ink); font: 700 1rem/1.2 var(--font-display); }
.big-num { font: 900 3.6rem/1 var(--font-display); letter-spacing: -.04em; color: var(--accent); margin: 0 0 14px !important; }

/* Videos */
.video-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 260px); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px; }
.video-card { margin: 0; scroll-snap-align: start; }
.video-frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.video-frame img, .video-frame video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-card:hover .video-frame img { transform: scale(1.05); }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pop); color: var(--ink); box-shadow: 0 6px 0 0 var(--ink); transition: transform .2s var(--ease); }
.play .ic { width: 26px; height: 26px; margin-left: 3px; }
.video-card:hover .play { transform: scale(1.1); }
.video-card figcaption { font: 700 1rem/1.3 var(--font-display); margin-top: 12px; }

/* Pricing */
.pricing-grid { display: grid; gap: 20px; }
.plan { background: var(--ink); color: var(--on-ink); border-radius: var(--r-xl); padding: 32px 26px; box-shadow: var(--shadow-pop); }
.plan h3 { font-size: 1.4rem; margin-top: 18px; }
.plan .tbd { color: var(--tbd-on-ink); }
.plan .fine { color: var(--on-ink-2); margin: 14px 0 0; }
.plan-price { margin: 0 0 22px; }
.plan-price strong { font: 900 3.6rem/1 var(--font-display); letter-spacing: -.04em; }
.plan-price span { color: var(--on-ink-2); font-size: 1.1rem; margin-left: 4px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--pop); margin-top: .25em; }
.extras { display: grid; gap: 16px; align-content: start; }
.addons { list-style: none; padding: 0; margin: 4px 0 10px; }
.addons li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.addons li:last-child { border-bottom: 0; }
.addons small { display: block; color: var(--text-tertiary); font-size: .85rem; }

/* FAQ */
.faq details { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md); margin-bottom: 10px; transition: border-color .15s ease; }
.faq details:hover { border-color: var(--border-hover); }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 54px 18px 20px; list-style: none; position: relative; min-height: 44px; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-alt); color: var(--accent); font: 700 1.2rem/1 var(--font-display); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--text-secondary); }

/* Waitlist */
.join { overflow: hidden; isolation: isolate; }
.signup { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-subtle); display: grid; gap: 16px; }
.field-grid { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input, select { width: 100%; min-height: 52px; padding: 14px 16px; font: inherit; color: var(--text); background: var(--surface);
  border: 2px solid var(--border); border-radius: var(--r-md); transition: border-color .15s ease, box-shadow .15s ease; }
input:hover, select:hover { border-color: var(--border-hover); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
input[aria-invalid="true"] { border-color: var(--error); }
input:disabled, select:disabled { background: var(--surface-alt); cursor: not-allowed; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 48px 0 104px; }

.site-footer .fine { color: var(--on-ink-2); }
.site-footer a.link { color: var(--on-ink); }
.site-footer :focus-visible { outline-color: var(--pop); }
.footer-inner { display: grid; gap: 22px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.bottom-note { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border-on-ink); color: var(--on-ink-2); font-size: .95rem; }
.bottom-note a.link { color: var(--pop); }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow-pop);
  transform: translateY(160%); transition: transform .3s var(--ease); }
.sticky-cta.show { transform: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-4px); }
.js [data-split] .sw { display: inline-block; opacity: 0; transform: translateY(.6em); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js [data-split].in .sw { opacity: 1; transform: none; }

/* Sparkle burst */
.spark { position: fixed; z-index: 70; width: 12px; height: 12px; pointer-events: none; color: var(--accent); animation: spark .7s var(--ease) forwards; }
.spark:nth-child(even) { color: var(--pop); }
@keyframes spark { from { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3) rotate(160deg); } }

/* Tablet */
@media (min-width: 600px) {
  .video-row { grid-auto-flow: initial; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .pricing-grid { grid-template-columns: 1.1fr 1fr; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .header-cta { display: inline-flex; }
}
/* Desktop */
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .menu-btn, .nav-cta-mobile, .sticky-cta { display: none; }
  .nav { display: flex; gap: 28px; }
  .hero { padding: 56px 0 112px; }
  .hero-grid { grid-template-columns: 1.3fr .7fr; }
  .phone { width: 290px; }
  .sticker { left: -10px; top: 10px; width: 110px; height: 110px; font-size: .9rem; }
  .section { padding: 112px 0; }
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); gap: 20px; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-3 { grid-column: span 3; }
  .bento .span-2 { grid-column: span 2; }
  .bento .tall { grid-row: span 2; }
  .site-footer { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .w > span, .js [data-split] .sw { opacity: 1 !important; transform: none !important; }
}
