/* Hallmark · shape: Photo Story · genre: editorial · theme: custom by request (sunset glow: Flok red to coral to apricot, deep plum) · job: try (download), venues: sign up · draw: manual
 * hero: Stage on a moving sunset gradient, arched photo with Flok in a real hand reaching in · nav: edge-aligned, wordmark and one action · footer: a mast, the wordmark over the links · imagery: photographs of friends out, sunset-graded, Flok's real screens composited into real hand-held phones · signature: the hand reaching in from the edge over an arched photo, with deal notifications floating off the phone · sunset: plum and red sections alternate with coral
 * axes: saturated/grotesque/warm · posture: bold · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H3 E3 S3 R3 V3 · weakest: S, the photographs are stock until the user's generated images arrive; slots keep their sizes */
/* Hallmark · waive 1 · .wordmark only, never a heading · Poppins 600 is the Flok logo face shared with the app icon */
/* Hallmark · waive 83 · photograph sections (fan, free, close) are separated by the how-it-works and venue bands · the user asked for people enjoying Flok across the page */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --color-flok: oklch(62.5% 0.229 24.5);
  --sun-deep: oklch(36% 0.13 15);
  --sun-red: oklch(55% 0.21 23);
  --sun-coral: oklch(68% 0.18 38);
  --sun-apricot: oklch(82% 0.12 62);
  --plum: oklch(24% 0.07 15);
  --plum-2: oklch(30% 0.09 18);
  --coral-band: oklch(74% 0.15 45);
  --white: oklch(99% 0.006 60);
  --white-2: oklch(93% 0.03 50);
  --white-a: oklch(99% 0.006 60 / 0.16);
  --white-b: oklch(99% 0.006 60 / 0.32);
  --plum-a: oklch(24% 0.07 15 / 0.55);
  --plum-0: oklch(24% 0.07 15 / 0);
  --glow-a: oklch(80% 0.16 60 / 0.55);
  --glow-b: oklch(62% 0.24 20 / 0.6);
  --glow-c: oklch(88% 0.1 75 / 0.5);
  --glow-0: oklch(80% 0.16 60 / 0);
  --drop: oklch(18% 0.06 15 / 0.45);
  --drop-deep: oklch(8% 0.03 15 / 0.85);
  --veil-1: oklch(36% 0.13 15 / 0.85); --veil-2: oklch(55% 0.21 23 / 0.7); --veil-3: oklch(68% 0.18 38 / 0.6);
  --font-wordmark: "Poppins", ui-sans-serif, sans-serif;
  --radius-photo: 28px;
  --radius-btn: 999px;
  --color-paper: var(--plum);
  --color-ink: var(--white);
  --color-ink-2: var(--white-2);
  --color-focus: var(--sun-apricot);
}

/* ---------- shared ---------- */
body { background: var(--plum); color: var(--white); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 900px) { :root { --gutter: 22px; --section-gap: 88px; } }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); color: var(--white); margin: 0; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 4.4vw + 0.5rem, 5rem); line-height: 0.98; }
h3 { font-size: var(--text-title); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
.small, .muted { font-size: var(--text-sm); color: var(--white-2); }
.lead { font-size: var(--text-lead); line-height: 1.45; color: var(--white-2); }

.wordmark { font-family: var(--font-wordmark); font-weight: 600; font-size: 1.9rem; letter-spacing: -0.03em; color: var(--white); text-decoration: none; line-height: 1; position: relative; padding-right: 0.32em; }
.wordmark::after { content: ""; position: absolute; right: 0.02em; top: 0.12em; width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--sun-apricot); }
.wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: var(--radius-btn); background: var(--white); color: var(--plum); font-family: var(--font-body); font-weight: 600; font-size: var(--text-md); text-decoration: none; white-space: nowrap; border: 2px solid var(--white); box-shadow: 0 14px 30px -12px var(--drop); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn:hover { transform: translateY(-3px); background: var(--plum); color: var(--white); border-color: var(--plum); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--sun-apricot); outline-offset: 3px; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: var(--text-sm); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white-b); box-shadow: none; }
.btn--ghost:hover { background: var(--white); color: var(--plum); border-color: var(--white); }
.btn--red { background: var(--sun-red); color: var(--white); border-color: var(--sun-red); }
.btn--red:hover { background: var(--white); color: var(--plum); border-color: var(--white); }

.link { color: inherit; text-decoration: underline; text-decoration-color: var(--sun-apricot); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color var(--dur-micro) var(--ease-out); }
.link:hover { color: var(--sun-apricot); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: var(--z-sticky-nav); padding-block: var(--space-lg); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.nav nav { display: flex; align-items: center; gap: var(--space-lg); }
.navlink { color: var(--white); text-decoration: none; font-size: var(--text-sm); font-weight: 500; padding-block: var(--space-xs); border-bottom: 1.5px solid transparent; transition: border-color var(--dur-micro) var(--ease-out); }
.navlink:hover { border-color: var(--sun-apricot); }
.navlink:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (max-width: 760px) { .navlink { display: none; } }

/* ---------- hero: the sunset ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; min-height: min(100svh, 980px); background: linear-gradient(135deg, var(--sun-deep) 0%, var(--sun-red) 38%, var(--sun-coral) 72%, var(--sun-apricot) 100%); display: flex; align-items: center; }
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); }
.blob--a { width: 52vw; height: 52vw; right: -12vw; top: -18vw; background: radial-gradient(closest-side, var(--glow-a), var(--glow-0)); }
.blob--b { width: 44vw; height: 44vw; left: -14vw; bottom: -20vw; background: radial-gradient(closest-side, var(--glow-b), var(--glow-0)); }
.blob--c { width: 30vw; height: 30vw; left: 38vw; top: 30%; background: radial-gradient(closest-side, var(--glow-c), var(--glow-0)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: center; padding-block: 140px var(--space-3xl); }
.hero h1 { font-size: clamp(3.25rem, 6.6vw + 0.25rem, 7.5rem); line-height: 0.9; max-width: 8ch; text-shadow: 0 6px 40px var(--plum-a); }
.hero .lead { margin-top: var(--space-lg); max-width: 28ch; color: var(--white); }
.hero .actions { margin-top: var(--space-xl); }
.hero .small { margin-top: var(--space-md); color: var(--white); }

.hero-stage { position: relative; min-height: 620px; perspective: 1600px; }
.arch { position: absolute; margin: 0; top: 0; right: 0; width: 64%; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-photo) var(--radius-photo); overflow: hidden; box-shadow: 0 40px 80px -30px var(--drop); outline: 6px solid var(--white-a); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 100%; }
.hand { margin: 0; position: relative; }
.hand img { width: 100%; filter: drop-shadow(0 40px 40px var(--drop)); }
.hand .shot + .shot { position: absolute; inset: 0; }
.hand .shot { opacity: 0; transition: opacity 900ms var(--ease-in-out); }
.hand .shot.is-on { opacity: 1; }
.hand--hero { position: absolute; left: 2%; bottom: -4%; width: 38%; transform: rotateY(18deg) rotateZ(-4deg); transform-style: preserve-3d; }
.hand-float { position: relative; transform-origin: 90% 80%; }

.chip { position: absolute; display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: 18px; background: var(--white); color: var(--plum); font-size: var(--text-sm); line-height: 1.3; box-shadow: 0 20px 40px -16px var(--drop); max-width: 260px; }
.chip b { display: block; font-weight: 600; }
.chip-dot { flex: none; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--sun-red), var(--sun-coral)); }
.chip--a { left: 26%; top: 6%; }
.chip--b { right: -2%; bottom: 8%; }

@media (prefers-reduced-motion: no-preference) {
  .blob--a { animation: wander 16s var(--ease-in-out) infinite alternate; }
  .blob--b { animation: wander 20s var(--ease-in-out) -6s infinite alternate-reverse; }
  .blob--c { animation: wander 13s var(--ease-in-out) -3s infinite alternate; }
  .arch { animation: settle 1100ms 150ms var(--ease-out) both; }
  .hand--hero { animation: reach 1300ms 350ms var(--ease-out) both; }
  .hand-float { animation: float 7s var(--ease-in-out) 1.7s infinite alternate; }
  .chip--a { animation: pop 700ms 1500ms var(--ease-out) both, bob 6s var(--ease-in-out) 2.2s infinite alternate; }
  .chip--b { animation: pop 700ms 2100ms var(--ease-out) both, bob 7s var(--ease-in-out) 2.8s infinite alternate-reverse; }
  .hero-copy > * { animation: settle 900ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 120ms; }
  .hero-copy > :nth-child(3) { animation-delay: 240ms; }
  .hero-copy > :nth-child(4) { animation-delay: 320ms; }
}
@keyframes wander { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vw, 4vw) scale(1.15); } }
@keyframes reach { from { transform: translateY(60px) rotateY(30deg) rotateZ(-8deg); opacity: 0; } to { transform: rotateY(18deg) rotateZ(-4deg); opacity: 1; } }
@keyframes float { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-10px) rotate(-1deg); } }
@keyframes settle { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: translateY(14px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 112px var(--space-xl); }
  .hero-stage { min-height: 0; aspect-ratio: 1 / 1.05; margin-top: var(--space-lg); }
  .arch { width: 66%; right: 0; }
  .hand--hero { width: 42%; left: 0; bottom: -2%; }
  .chip { max-width: 210px; font-size: var(--text-xs); }
  .chip--a { left: 20%; top: 0; }
  .chip--b { display: none; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--coral-band); color: var(--plum); overflow: clip; padding-block: var(--space-lg); border-block: 1px solid var(--white-b); }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; gap: var(--space-2xl); list-style: none; margin: 0; padding: 0 var(--space-2xl) 0 0; }
.marquee li { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.5rem); letter-spacing: -0.03em; white-space: nowrap; display: flex; align-items: center; gap: var(--space-2xl); }
.marquee li::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sun-red); }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: slide 38s linear infinite; } }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }

/* ---------- together: the fan ---------- */
.together { padding-block: var(--section-gap); background: radial-gradient(120% 80% at 50% 0%, var(--plum-2) 0%, var(--plum) 60%); overflow: clip; }
.together-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; }
.together-head .lead { max-width: 32ch; }
.fan { margin-top: var(--space-3xl); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: var(--space-lg); align-items: start; }
.card { margin: 0; display: grid; gap: var(--space-md); transition: transform 1100ms var(--ease-out); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-photo); box-shadow: 0 40px 70px -30px var(--drop-deep); outline: 5px solid var(--white-a); }
.card--c img { aspect-ratio: 4 / 5.2; }
.card figcaption { color: var(--white-2); max-width: 34ch; }
.card figcaption b { display: block; font-family: var(--font-display); font-size: var(--text-2xl); letter-spacing: -0.03em; color: var(--white); margin-bottom: var(--space-2xs); }
.card--c figcaption b { color: var(--sun-apricot); }
.card--l { transform: rotate(-4deg) translateY(48px); }
.card--r { transform: rotate(4deg) translateY(48px); }
.card--c { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .fan.reveal { opacity: 1; transform: none; }
  .js .fan.reveal .card--l { transform: rotate(-12deg) translate(60px, 120px); }
  .js .fan.reveal .card--r { transform: rotate(12deg) translate(-60px, 120px); }
  .js .fan.reveal .card--c { transform: translateY(60px); }
  .js .fan.reveal.in .card--l { transform: rotate(-4deg) translateY(48px); }
  .js .fan.reveal.in .card--r { transform: rotate(4deg) translateY(48px); }
  .js .fan.reveal.in .card--c { transform: none; }
}
@media (max-width: 900px) {
  .together-head, .fan { grid-template-columns: minmax(0, 1fr); }
  .fan { gap: var(--space-2xl); }
  .card--c { order: -1; }
  .card--l, .card--r, .js .fan.reveal .card--l, .js .fan.reveal .card--r, .js .fan.reveal.in .card--l, .js .fan.reveal.in .card--r { transform: none; }
  .card img, .card--c img { aspect-ratio: 4 / 3; }
}

/* ---------- how it works ---------- */
.how { padding-block: var(--section-gap); background: linear-gradient(180deg, var(--sun-red) 0%, var(--sun-deep) 100%); overflow: clip; }
.how-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.how-stage { position: sticky; top: 10vh; }
.how-stage::before { content: ""; position: absolute; inset: 10% 10% 10% 20%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-a), var(--glow-0)); filter: blur(30px); }
.hand--how { width: min(70%, 340px); margin-inline: auto; transform: rotateY(-16deg) rotateZ(3deg); }
.how-stage { perspective: 1600px; }
.how-steps h2 { max-width: 10ch; }
.how-steps ol { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; }
.how-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--space-md); align-content: start; padding-block: var(--space-xl); min-height: 34vh; border-top: 1px solid var(--white-b); opacity: 0.45; transition: opacity var(--dur-long) var(--ease-out); }
.how-steps li.is-active { opacity: 1; }
html:not(.js) .how-steps li { opacity: 1; }
.how-steps .n { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white-a); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out); }
.how-steps li.is-active .n { background: var(--white); color: var(--sun-red); }
.how-steps h3 { font-size: var(--text-2xl); }
.how-steps p { margin-top: var(--space-xs); color: var(--white-2); font-size: var(--text-lead); max-width: 30ch; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .how-stage { order: -1; position: sticky; top: 0; z-index: var(--z-raised); padding-top: var(--space-sm); }
  .hand--how { width: min(48%, 200px); }
  .how-steps li { min-height: 42vh; }
}

/* ---------- nothing to set up: coral ---------- */
.free { padding-block: var(--section-gap); background: var(--coral-band); color: var(--plum); }
.free h2, .free strong { color: var(--plum); }
.free-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.free-photo img { border-radius: var(--radius-photo); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transform: rotate(-2deg); box-shadow: 0 40px 70px -30px var(--drop); outline: 6px solid var(--white); }
.facts { list-style: none; margin: var(--space-xl) 0 0; padding: 0; }
.facts li { padding-block: var(--space-md); border-top: 1.5px solid var(--plum-a); color: var(--plum); font-size: var(--text-lead); }
.facts li:last-child { border-bottom: 1.5px solid var(--plum-a); }
.facts strong { font-weight: 700; }
@media (max-width: 900px) { .free-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* ---------- venues: plum ---------- */
.venues { padding-block: var(--section-gap); background: var(--plum); position: relative; isolation: isolate; overflow: clip; }
.venues::before { content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -20vw; top: -10vw; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-b), var(--glow-0)); filter: blur(40px); }
.venues-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.venues h2 { max-width: 11ch; }
.steps { margin: var(--space-xl) 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; padding-block: var(--space-sm); font-size: var(--text-lead); color: var(--white-2); }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 700; color: var(--sun-apricot); font-size: var(--text-2xl); }
.venues .actions { margin-top: var(--space-xl); }
.scene { margin: 0; }
.scene img { width: 100%; border-radius: var(--radius-photo); box-shadow: 0 50px 90px -30px var(--drop-deep); outline: 6px solid var(--white-a); transform: rotate(2deg); }
@media (max-width: 900px) { .venues-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* ---------- close ---------- */
.close { position: relative; isolation: isolate; padding-block: clamp(140px, 18vw, 260px); text-align: center; overflow: clip; background: var(--sun-deep); }
.close-photo { position: absolute; inset: 0; z-index: -1; }
.close-photo img { width: 100%; height: 100%; object-fit: cover; }
.close-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--veil-1), var(--veil-2) 55%, var(--veil-3)); }
.close h2 { font-size: clamp(3.5rem, 9vw, 9rem); line-height: 0.9; margin-bottom: var(--space-xl); }

/* ---------- footer ---------- */
.foot { padding-block: var(--space-3xl) var(--space-2xl); background: var(--plum); border-top: 1px solid var(--white-a); }
.foot .container { display: grid; gap: var(--space-lg); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.foot .wordmark { font-size: 2.8rem; justify-self: start; color: var(--color-flok); }

/* ---------- support, privacy, terms ---------- */
.doc { background: var(--plum); }
.doc .nav { position: static; background: linear-gradient(135deg, var(--sun-deep), var(--sun-red) 60%, var(--sun-coral)); }
.prose { max-width: 72ch; padding-block: var(--space-2xl) var(--space-3xl); }
.prose h1 { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1; }
.prose h2 { font-size: var(--text-2xl); margin: var(--space-2xl) 0 var(--space-md); padding-top: var(--space-lg); border-top: 1px solid var(--white-b); }
.prose h3 { font-size: var(--text-xl); margin: var(--space-lg) 0 var(--space-xs); }
.prose p, .prose li { color: var(--white-2); max-width: 70ch; }
.prose p + p, .prose ul, .prose ol { margin-top: var(--space-sm); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: var(--space-xs); }
.prose strong { color: var(--white); font-weight: 600; }
.prose .lead { margin-top: var(--space-lg); }
.prose .updated { margin-top: var(--space-md); color: var(--white-2); font-size: var(--text-sm); }
.prose a:not(.btn) { color: inherit; text-decoration: underline; text-decoration-color: var(--sun-apricot); }
.prose a:not(.btn):hover { color: var(--sun-apricot); }
.faq { border-bottom: 1px solid var(--white-b); }
.faq summary { cursor: pointer; list-style: none; padding-block: var(--space-md); min-height: 44px; font-weight: 600; color: var(--white); display: flex; justify-content: space-between; gap: var(--space-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); color: var(--sun-apricot); }
.faq[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--sun-apricot); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq .answer { padding-bottom: var(--space-md); color: var(--white-2); max-width: 70ch; }
