/* Rosin Master landing pages — shared styles. Tokens first; every page uses these. */

:root {
  --purple: #b08cf5;
  --purple-strong: #9a72ee;
  --purple-deep: #3a1f55;
  --yellow: #f7b500;
  --orange: #f26b1d;
  --cream: #f4f0e8;
  --ink: #141016;
  --ink-soft: #3d3842;
  --night: #0f0c12;
  --night-2: #1b1520;
  --line-dark: rgba(255, 255, 255, 0.18);
  --line-light: rgba(20, 16, 22, 0.12);
  --white: #fff;

  --font: "Montserrat", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 14px;
  --pill: 999px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--night);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; }
.accent { color: var(--yellow); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-ring { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.6em; border: 0; border-radius: var(--pill);
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn .icon { width: 18px; height: 18px; }
.btn-purple { background: var(--purple); color: var(--ink); }
.btn-purple:hover { background: var(--purple-strong); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-lg { font-size: 1rem; padding: 1em 1.9em; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 0.45em; color: var(--white); text-decoration: none; font-size: clamp(1rem, 2.2vw, 1.35rem); }
.brand-rm { font-weight: 900; letter-spacing: -0.01em; }
.brand-rm span:first-child { color: var(--yellow); }
.brand-sub { font-weight: 400; opacity: 0.9; }
.brand-sub b { color: var(--yellow); font-weight: 600; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  min-height: min(720px, 100svh); display: flex; align-items: center;
  padding-block: 120px 80px;
  /* TODO: replace gradient with hero illustration: background: url(/assets/img/hero.webp) center/cover */
  background:
    radial-gradient(circle at 72% 38%, rgba(255, 196, 92, 0.75), rgba(242, 107, 29, 0.35) 22%, transparent 48%),
    radial-gradient(circle at 15% 90%, rgba(176, 140, 245, 0.35), transparent 40%),
    linear-gradient(140deg, #1d1325 0%, #2b1a14 55%, #120d10 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 12, 18, 0.75), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 300; line-height: 1.02; text-transform: uppercase; letter-spacing: -0.01em; margin-top: 14px; }
.hero h1 .crown { display: inline-block; width: 0.55em; height: 0.55em; color: var(--yellow); vertical-align: middle; margin-left: 0.1em; }
.hero-push { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; text-transform: uppercase; margin-top: 14px; }
.hero-tag { font-weight: 700; text-transform: uppercase; font-size: 0.95rem; margin-top: 14px; max-width: 32ch; }
.hero .btn { margin-top: 32px; }
.hero-play {
  justify-self: center; display: grid; place-items: center;
  width: clamp(96px, 14vw, 140px); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--white); background: rgba(15, 12, 18, 0.35); color: var(--white); cursor: pointer;
  backdrop-filter: blur(4px); transition: transform 0.2s ease, background-color 0.2s ease;
}
.hero-play:hover { transform: scale(1.06); background: rgba(176, 140, 245, 0.45); }
.hero-play .icon { width: 42%; height: 42%; margin-left: 8%; }
.hero-motto { position: absolute; right: var(--gutter); bottom: 40px; z-index: 1; color: var(--yellow); font-size: clamp(1rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.05; text-transform: uppercase; text-align: right; }

/* Meet Drip */
.meet { background: var(--cream); padding-block: clamp(56px, 8vw, 96px); }
.meet .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.meet .eyebrow { color: var(--purple-deep); }
.meet h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900; line-height: 1.05; margin-top: 14px; letter-spacing: -0.02em; }
.meet h2 .underline { position: relative; white-space: nowrap; }
.meet h2 .underline::after { content: ""; position: absolute; left: 0; right: 0.3em; bottom: -0.12em; height: 0.14em; border-radius: var(--pill); background: var(--purple); transform: rotate(-1.5deg); }
.meet h2 .dot { color: var(--yellow); }
.meet-copy { margin-top: 28px; color: var(--ink-soft); font-size: 1.05rem; max-width: 34ch; }
.meet-product { filter: drop-shadow(0 30px 40px rgba(58, 31, 85, 0.25)); }
.features { list-style: none; margin: 0; padding: 0; color: var(--purple-deep); }
.features li { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.features li + li { border-top: 1px solid var(--line-light); }
.features strong { display: block; color: var(--ink); font-weight: 800; }
.features span { color: var(--ink-soft); font-size: 0.92rem; }

/* Benefits strip */
.benefits {
  color: var(--white); padding-block: 40px;
  /* TODO: replace with rosin macro photo */
  background: linear-gradient(rgba(15, 12, 18, 0.72), rgba(15, 12, 18, 0.72)), radial-gradient(circle at 30% 20%, #8a5a12, #2a1a08 60%, var(--night));
}
.benefits ul { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.benefits li { display: flex; gap: 14px; padding: 8px 20px; }
.benefits li + li { border-left: 1px solid var(--line-dark); }
.benefits .icon { width: 36px; height: 36px; }
.benefits strong { display: block; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.benefits span { font-size: 0.9rem; opacity: 0.85; }

/* Audience cards */
.audiences { background: var(--night); padding: 16px 16px 0; }
.audiences .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1400px; margin-inline: auto; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); color: var(--white);
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; min-height: 520px;
}
/* TODO: replace gradients with the lifestyle photos from the mockup */
.card-consumer { background: linear-gradient(180deg, rgba(15, 12, 18, 0.1), rgba(15, 12, 18, 0.85)), linear-gradient(160deg, #7b4fd0, #3c1f6b 50%, #1a1022); }
.card-business { background: linear-gradient(180deg, rgba(15, 12, 18, 0.1), rgba(15, 12, 18, 0.85)), linear-gradient(200deg, #4a2b7a, #2a1840 45%, #120c18); }
.card .eyebrow { font-size: 0.7rem; letter-spacing: 0.22em; }
.card h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 900; line-height: 1.1; margin-top: 12px; letter-spacing: -0.01em; }
.card p { margin-top: 12px; max-width: 42ch; opacity: 0.9; }
.card-body { margin-top: auto; padding-top: 32px; }
.segments { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 0.82rem; }
.segments li { display: flex; align-items: center; gap: 8px; }
.segments .icon { width: 30px; height: 30px; }
.segments-boxed { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; text-align: center; }
.segments-boxed li { flex-direction: column; padding-inline: 6px; }
.segments-boxed li + li { border-left: 1px solid var(--line-dark); }

/* Forms */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input[type="email"] { flex: 1 1 220px; }
.field, .inline-form input {
  width: 100%; padding: 0.85em 1.2em; border-radius: var(--pill); border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
}
textarea.field { border-radius: 16px; resize: vertical; min-height: 110px; }
.inline-form input { width: auto; }
.form-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.ts-slot:empty { display: none; }
.ts-slot { flex-basis: 100%; }
.form-status { flex-basis: 100%; min-height: 1.4em; font-size: 0.9rem; font-weight: 600; }
.form-status.is-error { color: #ffb4a8; }
form.is-done > :not(.form-status) { display: none; }
form.is-done .form-status { font-size: 1.05rem; color: var(--yellow); }

.contact summary { list-style: none; display: inline-flex; margin-top: 24px; }
.contact summary::-webkit-details-marker { display: none; }
.contact[open] summary { display: none; }

/* Footer */
.site-footer {
  color: var(--white); padding-block: 48px;
  background: linear-gradient(180deg, var(--night), #1c1226);
}
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: baseline; gap: 0.4em; font-size: 1.1rem; }
.footer-brand .drip { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.04em; }
.footer-brand .by { font-weight: 400; }
.footer-right { display: flex; align-items: center; gap: 28px; }
.socials { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.socials a { display: block; opacity: 0.9; }
.socials a:hover { opacity: 1; color: var(--yellow); }
.motto { border-left: 1px solid var(--yellow); padding-left: 28px; font-size: 1.15rem; line-height: 1.1; text-transform: uppercase; text-align: center; }
.motto .icon { display: inline; width: 20px; height: 20px; color: var(--yellow); vertical-align: -2px; }
.footer-legal { width: 100%; display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.8rem; opacity: 0.6; margin-top: 12px; }
.footer-legal button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }

/* Video */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.video-modal { width: min(1000px, 100% - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.video-modal::backdrop { background: rgba(10, 8, 12, 0.85); }
.video-modal .close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.video-modal .close .icon { width: 28px; height: 28px; }

/* Consent banner */
.consent {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto;
  background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: 0.9rem;
}
.consent p { flex: 1 1 260px; }
.consent .actions { display: flex; gap: 8px; }
.consent .btn { font-size: 0.8rem; padding: 0.7em 1.2em; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-light); }

/* Investor page */
.page-invest { background: var(--night); color: var(--white); }
.invest-hero { padding-block: 140px 64px; background: radial-gradient(circle at 80% 10%, rgba(176, 140, 245, 0.28), transparent 45%), radial-gradient(circle at 10% 80%, rgba(247, 181, 0, 0.14), transparent 40%), var(--night); }
.invest-hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.invest-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; margin-top: 14px; }
.invest-hero p { margin-top: 18px; font-size: 1.1rem; opacity: 0.85; max-width: 44ch; }
.invest-hero .eyebrow { color: var(--purple); }
.greeting { margin-top: 18px; color: var(--yellow); font-weight: 700; }
.points { padding-block: 64px; border-top: 1px solid var(--line-dark); }
.points h2, .invest-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; letter-spacing: -0.01em; }
.points ul { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.points li { background: var(--night-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px; }
.points li .icon { width: 32px; height: 32px; color: var(--purple); }
.points strong { display: block; margin-top: 16px; font-size: 1.05rem; }
.points span { display: block; margin-top: 6px; opacity: 0.75; font-size: 0.92rem; }
.invest-cta { padding-block: 64px 96px; }
.invest-cta .panel { background: linear-gradient(140deg, #3a1f55, #1b1520); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.invest-cta p { margin-top: 12px; opacity: 0.85; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--white); background: radial-gradient(circle at 50% 30%, rgba(176, 140, 245, 0.3), transparent 50%), var(--night); padding: 24px; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); font-weight: 900; }
.notfound p { margin: 8px 0 28px; opacity: 0.8; }

/* Responsive */
@media (max-width: 960px) {
  .meet .wrap { grid-template-columns: 1fr 1fr; }
  .meet .features { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .meet .features li + li { border-top: 0; }
  .benefits ul { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .benefits li:nth-child(3) { border-left: 0; }
  .audiences .grid { grid-template-columns: minmax(0, 1fr); }
  .points ul { grid-template-columns: 1fr 1fr; }
  .invest-hero .wrap, .invest-cta .panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-sub { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-play { display: none; }
  .hero-motto { display: none; }
  .meet .wrap, .meet .features { grid-template-columns: 1fr; }
  .meet-product { max-width: 280px; margin-inline: auto; }
  .benefits ul { grid-template-columns: 1fr; }
  .benefits li + li { border-left: 0; border-top: 1px solid var(--line-dark); padding-top: 16px; }
  .segments-boxed { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .segments-boxed li:nth-child(4) { border-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .points ul { grid-template-columns: 1fr; }
  .footer-right { flex-wrap: wrap; }
  .motto { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .hero-play { transition: none; }
}
