/*
 * sugarshove.com
 *
 * The app's candy system, on a web page: everything is a sweet sitting on a
 * surface, with a hard shadow and a gloss band on top. No blur anywhere; the
 * one gradient is the table felt. Tokens are the app's own
 * (app/src/theme/tokens.ts); the fonts are the app's own, served from here.
 *
 * Deliberately one world, not two themes: the app is grape at night and so is
 * this. Every colour below is painted explicitly, so the page holds whatever
 * the browser's preference.
 */

@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: dark;

  --grape-950: #150725;
  --grape-900: #1E0B33;
  --grape-800: #2B1049;
  --grape-700: #3D1A66;
  --grape-600: #4A2287;
  --violet: #7A3FD1;
  --ink: #20143A;

  --tang: #FF7A1F;
  --tang-deep: #B34D08;
  --butter: #FFD36B;
  --butter-deep: #B8912F;
  --cyan: #17C6DE;
  --cyan-deep: #0D8A9C;
  --mint: #35D48C;
  --mint-deep: #1C8A59;
  --berry: #FF4D6D;
  --cream: #FFF6E9;

  --text: rgba(255, 246, 233, .85);
  --text-2: rgba(255, 246, 233, .72);
  --text-3: rgba(255, 246, 233, .55);
  --line: rgba(255, 246, 233, .10);

  --display: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 5vw, 40px);
  --max: 1160px;
  --r-panel: 26px;
  --r-button: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--grape-900);
  color: var(--text);
  font: 500 17px/1.6 var(--body);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--butter); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--cream); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.7rem, 7.4vw, 5.4rem); line-height: .98; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.02; }
h3 { font-size: 1.3rem; line-height: 1.15; }
p { margin: 0; }

.eyebrow {
  font: 800 .78rem/1.2 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--butter);
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--text); max-width: 34em; }
.muted { color: var(--text-3); }

/* ------------------------------------------------------------------ */
/* Sweets: buttons with weight, a hard shadow and a gloss band         */
/* ------------------------------------------------------------------ */

.btn {
  --fill: var(--tang); --deep: var(--tang-deep); --fg: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 60px; padding: 0 28px;
  border-radius: var(--r-button);
  background: var(--fill); color: var(--fg);
  box-shadow: 0 6px 0 var(--deep);
  font: 400 1.08rem/1 var(--display);
  text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease;
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 34%;
  border-radius: var(--r-button) var(--r-button) 10px 10px;
  background: rgba(255, 255, 255, .22); z-index: -1; pointer-events: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 0 var(--deep); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--deep); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font: 700 .72rem/1.1 var(--body); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }

.btn-quiet {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 60px; padding: 0 22px;
  border-radius: var(--r-button);
  border: 2px dashed rgba(255, 246, 233, .22);
  color: var(--text-2);
  font: 700 .95rem/1.2 var(--body);
}
.btn-quiet svg { width: 20px; height: 20px; opacity: .8; }

.ctas { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.fine { font: 600 .84rem/1.5 var(--body); color: var(--text-3); }

/* ------------------------------------------------------------------ */
/* Nav                                                                 */
/* ------------------------------------------------------------------ */

.nav { position: sticky; top: 0; z-index: 20; background: rgba(30, 11, 51, .94); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font: 400 1.2rem/1 var(--display); }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--cream); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: .92rem; box-shadow: 0 4px 0 var(--deep); }
.nav .btn::before { border-radius: 14px 14px 8px 8px; }
.nav .btn:active { transform: translateY(4px); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero { position: relative; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 .sweet { color: var(--butter); }
.hero .ctas { margin-top: 8px; }

.stage { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 420 / 620; }
.stage .phone { position: absolute; left: 50%; top: 0; width: 64%; transform: translateX(-50%) rotate(2.5deg); }
.stage .cast { position: absolute; width: 23%; aspect-ratio: 1; }
.stage .cast img { width: 100%; height: 100%; }
.stage .c1 { left: -2%; top: 8%; }
.stage .c2 { right: -3%; top: 20%; width: 26%; }
.stage .c3 { left: 2%; bottom: 14%; width: 27%; }
.stage .c4 { right: 0; bottom: 4%; }
.stage .c5 { left: 38%; bottom: -6%; width: 18%; }
.stage .chip { position: absolute; width: 16%; }
.stage .k1 { right: 14%; top: -2%; }
.stage .k2 { left: 14%; top: 46%; width: 11%; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-10px) rotate(calc(var(--tilt, 0deg) * -1)); } }
.bob { animation: bob 4.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { .bob { animation: none; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { width: min(100%, 360px); }
}

/* ------------------------------------------------------------------ */
/* Phones                                                              */
/* ------------------------------------------------------------------ */

.phone {
  aspect-ratio: 1320 / 2868;
  padding: 3.2%;
  border-radius: 13% / 6%;
  background: var(--grape-950);
  box-shadow: 0 14px 0 rgba(8, 2, 16, .55), inset 0 0 0 2px rgba(255, 246, 233, .12);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 10.5% / 4.9%; }

/* ------------------------------------------------------------------ */
/* Numbers: the four facts that make the case                          */
/* ------------------------------------------------------------------ */

.facts { padding-bottom: clamp(56px, 8vw, 96px); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts li { background: var(--grape-800); border-radius: 22px; padding: 22px 20px 20px; box-shadow: 0 6px 0 var(--grape-950); display: grid; gap: 6px; align-content: start; }
.facts b { font: 400 clamp(1.7rem, 3.2vw, 2.3rem)/1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.facts li:nth-child(1) b { color: var(--butter); }
.facts li:nth-child(2) b { color: var(--tang); }
.facts li:nth-child(3) b { color: var(--cyan); }
.facts li:nth-child(4) b { color: var(--mint); }
.facts span { color: var(--text-2); font-weight: 600; font-size: .98rem; line-height: 1.4; }
@media (max-width: 860px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

section { scroll-margin-top: 80px; }
.band { padding-block: clamp(64px, 9vw, 120px); }
.head { display: grid; gap: 16px; max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .phone { width: min(100%, 300px); justify-self: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* A day at Sugar Shove: the order is the point, so it is drawn as a road. */
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.day li { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding-bottom: 26px; }
.day li::before { content: ""; position: absolute; left: 28px; top: 58px; bottom: 0; width: 3px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, rgba(255, 246, 233, .22) 0 8px, transparent 8px 16px); }
.day li:last-child::before { display: none; }
.dot { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--c, var(--tang)); box-shadow: 0 5px 0 var(--cd, var(--tang-deep)); position: relative; }
.dot::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; border-radius: 18px 18px 8px 8px; background: rgba(255, 255, 255, .22); }
.dot svg { width: 28px; height: 28px; color: var(--ink); position: relative; z-index: 1; }
.day .when { font: 800 .74rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.day h3 { margin: 4px 0 6px; }
.day p { color: var(--text-2); max-width: 32em; }

/* Plain lists of what a thing does, with a candy tick. */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.ticks li::before { content: ""; width: 28px; height: 28px; margin-top: 1px; border-radius: 9px; background: var(--tick, var(--mint)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2320143A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 3px 0 var(--tick-deep, var(--mint-deep)); }
.ticks b { color: var(--cream); font-weight: 800; }
.ticks p { color: var(--text-2); }

/* Clubs */
.clubs { background: var(--grape-800); }
.felts { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 30px; }
.felt { display: grid; justify-items: center; gap: 7px; font: 800 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.felt i { width: 70px; height: 44px; border-radius: 50%; background: var(--f); border: 5px solid var(--grape-600); box-shadow: 0 4px 0 var(--grape-950); }

/* The cast */
.cast-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cast-grid li { display: grid; gap: 10px; justify-items: center; text-align: center; }
.tile { width: 100%; aspect-ratio: 1; border-radius: 30%; background: var(--t, var(--grape-700)); box-shadow: 0 6px 0 var(--grape-950); display: grid; place-items: center; }
.tile img { width: 86%; height: 86%; }
.cast-grid span { font: 800 .72rem/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 860px) { .cast-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .cast-grid { grid-template-columns: repeat(3, 1fr); } }

.ladder { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ladder span { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text-2); font: 700 .86rem/1.2 var(--body); }
.ladder span:last-child { background: var(--butter); color: var(--ink); }

.earned { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(32px, 5vw, 48px); }
.earned > div { display: grid; gap: 8px; align-content: start; }
.earned p { color: var(--text-2); }
@media (max-width: 860px) { .earned { grid-template-columns: 1fr; } }

/* The table: the one gradient, because the felt is the one gradient. */
.table-band {
  background:
    radial-gradient(120% 90% at 50% 18%, #20B981 0%, #12946B 30%, #0F6B4F 62%, #0A4A36 86%, #062A20 100%);
  color: rgba(255, 246, 233, .9);
}
.table-band .eyebrow { color: var(--butter); }
.table-band .ticks p { color: rgba(255, 246, 233, .82); }
.table-band .ticks li { --tick: var(--butter); --tick-deep: var(--butter-deep); }
.throws { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.throws span { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.55rem; background: rgba(6, 42, 32, .55); box-shadow: 0 4px 0 rgba(6, 42, 32, .8); }

/* Invite */
.invite { text-align: center; }
.invite .head { margin-inline: auto; justify-items: center; }
.split-offer { display: inline-grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 8px auto 34px; }
.offer { background: var(--grape-800); border-radius: 22px; padding: 20px 26px; box-shadow: 0 6px 0 var(--grape-950); display: grid; gap: 4px; }
.offer b { font: 400 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); color: var(--butter); }
.offer span { color: var(--text-2); font-weight: 700; font-size: .95rem; }
.split-offer .plus { font: 400 1.8rem/1 var(--display); color: var(--text-3); }
@media (max-width: 520px) { .split-offer { grid-template-columns: 1fr; } .split-offer .plus { display: none; } }

/* Fair */
.fair { background: var(--grape-950); }
.fair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fair-grid > div { border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.fair-grid h3 { font-size: 1.08rem; }
.fair-grid p { color: var(--text-2); font-size: .98rem; }
.fair-grid .lead-card { background: var(--grape-800); border-color: transparent; }
.fair-grid .lead-card h3 { color: var(--butter); }
@media (max-width: 860px) { .fair-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 2px; font: 800 1.1rem/1.35 var(--body); color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--display); color: var(--butter); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 22px; color: var(--text-2); max-width: 42em; }

/* Last call */
.last { text-align: center; padding-block: clamp(72px, 10vw, 130px); position: relative; }
.last .wrap { display: grid; justify-items: center; gap: 22px; }
.last .row { display: flex; justify-content: center; gap: clamp(6px, 2vw, 14px); margin-bottom: 6px; }
.last .row img { width: clamp(52px, 9vw, 84px); height: auto; }
.last .ctas { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: .92rem; color: var(--text-3); }
footer .wrap { display: grid; gap: 22px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.foot-links a { color: var(--text-2); text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: var(--cream); }
footer p { max-width: 60rem; line-height: 1.6; }
