/* LOUD (working name) — preview site.
   Colours and type follow the app's design doc: near-black UI so the flyers are the colour on screen,
   one electric-magenta accent with a gradient to orange on primary buttons, Archivo Black headlines, Inter body. */

:root {
  --bg: #0B0B0D;
  --card: #16161A;
  --card-2: #1E1E24;
  --line: #2A2A31;
  --text: #F5F5F7;
  --muted: #9A9AA5;
  --accent: #FF2E88;
  --accent-2: #FF7A3D;
  --success: #3DDC84;
  --error: #FF4D4F;
  --grad: linear-gradient(90deg, var(--accent), var(--accent-2));

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

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius: 16px;

  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 560px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.eyebrow { color: var(--accent); font-weight: 700; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.fine { color: var(--muted); font-size: .8125rem; }
.fine a { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  font: 700 1.0625rem/1 var(--body); text-decoration: none; cursor: pointer; color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--grad); box-shadow: 0 8px 30px rgba(255, 46, 136, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(255, 46, 136, .5); }
.btn-primary:active { transform: translateY(0); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9375rem; background: var(--grad); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 13, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--display); font-size: 1.375rem; letter-spacing: .04em; text-decoration: none; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-flex; gap: 4px; }

/* Hero */
.hero { position: relative; padding: 32px 0 0; overflow: hidden; }
.hero-inner { display: grid; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 4.75rem); line-height: .98; }
.lede { color: #CFCFD6; font-size: 1.125rem; margin: 18px 0 28px; max-width: 34em; }
.hero-copy .btn { width: 100%; }
.hero-copy .fine { margin-top: 12px; text-align: center; }

.hero-visual { display: grid; grid-template-columns: 1fr auto 1.25fr; align-items: center; gap: 10px; max-width: 460px; margin: 0 auto; width: 100%; }
.before { margin: 0; transform: rotate(-5deg); }
.before img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.85); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.before figcaption { text-align: center; color: var(--muted); font-size: .8125rem; margin-top: 8px; }
.arrow { color: var(--accent); }
.phone-hero { animation: reveal .9s .2s cubic-bezier(.2, .8, .2, 1) both; }
.phone-hero .checks { position: absolute; left: 0; right: 0; top: calc(100% + 10px); text-align: center; }
.hero-visual { padding-bottom: 28px; }
.phone-hero .checks span { display: inline-block; white-space: nowrap; background: rgba(61, 220, 132, .12); color: var(--success); font-weight: 700; font-size: .75rem; padding: 6px 10px; border-radius: 999px; animation: pop .4s 1.2s both; }
@keyframes reveal { from { transform: scale(.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Phone frame */
.phone { position: relative; border-radius: 34px; padding: 8px; background: #1b1b20; box-shadow: 0 0 0 1px #34343c, 0 30px 60px rgba(0, 0, 0, .6); }
.phone .screen { position: relative; border-radius: 27px; overflow: hidden; background: var(--bg); }
.phone-hero .screen { aspect-ratio: 4 / 5; }
.phone-hero .screen img { width: 100%; height: 100%; object-fit: cover; }

/* Scrolling wall of flyers */
.wall { position: relative; margin-top: 56px; display: grid; gap: 12px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.wall-row { display: flex; gap: 12px; width: max-content; animation: slide 60s linear infinite; }
.wall-row.reverse { animation-direction: reverse; animation-duration: 70s; }
.wall-row img { width: 132px; height: 165px; object-fit: cover; border-radius: 12px; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall-row { animation: none; } .phone-hero, .phone-hero .checks span { animation: none; } }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, #0F0F12, #121216); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.02; }
.section-lede { color: var(--muted); margin-top: 12px; font-size: 1.0625rem; }

/* Chips + sample grid */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 24px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 600 .9375rem/1 var(--body); cursor: pointer; }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; min-height: 300px; }
.card { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); cursor: pointer; aspect-ratio: 4 / 5; transition: transform .2s ease; }
.card.square { aspect-ratio: 1; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card:hover { transform: translateY(-3px); }
.card .tag { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font: 700 .6875rem/1 var(--body); letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; }
.grid.loading .card { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.samples-note { margin-top: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); font-family: var(--display); font-size: 1rem; margin-bottom: 14px; }
.steps h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* App preview phones */
.phones { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 32px var(--gutter) 12px; scrollbar-width: none; }
.phones::-webkit-scrollbar { display: none; }
.shot { margin: 0; flex: none; width: 240px; scroll-snap-align: center; }
.shot figcaption { text-align: center; color: var(--muted); font-size: .875rem; margin-top: 14px; }
.screen.app { aspect-ratio: 9 / 19.5; padding: 30px 10px 10px; font-size: 10px; display: flex; flex-direction: column; gap: 8px; }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-logo { font-family: var(--display); font-size: 13px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.credit { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; font-weight: 700; }
.seg { display: flex; background: var(--card); border-radius: 999px; padding: 3px; }
.seg span { flex: 1; text-align: center; padding: 5px 0; border-radius: 999px; font-weight: 600; color: var(--muted); }
.seg .on { background: var(--accent); color: #fff; }
.app-hero { position: relative; border-radius: 12px; overflow: hidden; height: 92px; flex: none; }
.app-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-hero div { position: relative; height: 100%; padding: 10px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(90deg, rgba(0,0,0,.85), transparent); }
.app-hero b { font-family: var(--display); font-weight: 400; font-size: 13px; }
.app-hero small { color: #ddd; font-size: 8px; max-width: 60%; }
.mini-btn { margin-top: auto; align-self: flex-start; background: var(--grad); border-radius: 999px; padding: 4px 9px; font-weight: 700; font-size: 9px; }
.row-h { display: flex; justify-content: space-between; align-items: baseline; }
.row-h b { font-size: 11px; }
.row-h span { color: var(--accent); font-weight: 600; font-size: 9px; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.row img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; background: rgba(30,30,36,.95); border: 1px solid var(--line); border-radius: 999px; padding: 6px; font-style: normal; }
.tabbar i { font-style: normal; font-size: 14px; color: var(--muted); width: 30px; height: 26px; display: grid; place-items: center; border-radius: 999px; }
.tabbar i.on { background: rgba(255, 46, 136, .2); color: var(--accent); }
.app-bar { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.app-bar .dots { margin-left: auto; }
.preset { width: 54%; align-self: center; border-radius: 10px; aspect-ratio: 4 / 5; object-fit: cover; }
.slots { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 5px; align-items: stretch; }
.slots span { border: 1px dashed #44444d; border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: 14px; aspect-ratio: 1; overflow: hidden; }
.slots .big { aspect-ratio: auto; border-style: solid; border-color: var(--accent); }
.slots .big img { width: 100%; height: 100%; object-fit: cover; }
.field { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.field small { display: block; color: var(--muted); font-size: 7.5px; }
.field span { font-weight: 700; font-size: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cta-bar { margin-top: auto; background: var(--grad); border-radius: 999px; text-align: center; padding: 9px; font-weight: 700; font-size: 11px; }
.cta-bar.static { margin-top: 0; }
.result { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; animation: none; }
.result.dim { filter: brightness(.45); }
.checked { color: var(--success); font-weight: 700; text-align: center; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.actions span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; text-align: center; padding: 6px 2px; font-weight: 600; font-size: 8px; }
.sheet { margin-top: auto; background: var(--card); border-radius: 16px 16px 12px 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); }
.sheet b { font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: end; }
.tiles span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 8px; font-weight: 600; color: var(--muted); padding: 6px 4px; border-radius: 8px; border: 1px solid var(--line); }
.tiles span.on { border-color: var(--accent); color: var(--text); }
.tiles img { width: 100%; object-fit: cover; border-radius: 4px; }
.tiles .r45 { aspect-ratio: 4 / 5; } .tiles .r916 { aspect-ratio: 9 / 16; width: 70%; } .tiles .r11 { aspect-ratio: 1; }
.ghost { text-align: center; font-weight: 600; font-size: 11px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; }

/* Edges */
.edges { display: grid; gap: 18px; }
.edge { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.edge h3 { font-family: var(--display); font-size: 1.375rem; line-height: 1.1; margin: 22px 0 8px; }
.edge p { color: var(--muted); }
.edge-demo { height: 200px; border-radius: 14px; background: #0E0E11; border: 1px solid var(--line); position: relative; overflow: hidden; }
.spell { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px; }
.spell .line { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 1.05rem; letter-spacing: .02em; }
.spell .line span { overflow: hidden; white-space: nowrap; border-right: 2px solid transparent; }
.spell .line i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--success); color: #062b16; font-size: .8rem; font-weight: 700; }
.js .spell .line span { width: 0; }
.js .spell .line i { transform: scale(0); }
.spell.play .line span { animation: type .7s steps(18) forwards; }
.spell.play .line i { animation: pop .35s forwards; }
.spell.play .line:nth-child(1) span { animation-delay: 0s; } .spell.play .line:nth-child(1) i { animation-delay: .7s; }
.spell.play .line:nth-child(2) span { animation-delay: .5s; } .spell.play .line:nth-child(2) i { animation-delay: 1.2s; }
.spell.play .line:nth-child(3) span { animation-delay: 1s; } .spell.play .line:nth-child(3) i { animation-delay: 1.7s; }
.spell.play .line:nth-child(4) span { animation-delay: 1.5s; } .spell.play .line:nth-child(4) i { animation-delay: 2.2s; }
@keyframes type { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .js .spell .line span { width: auto; animation: none !important; } .js .spell .line i { transform: none; animation: none !important; } }
.sizes img { position: absolute; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.6); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.sizes .s-story { height: 82%; aspect-ratio: 9 / 16; left: 50%; top: 9%; transform: translateX(-50%); }
.sizes .s-feed { height: 64%; aspect-ratio: 4 / 5; left: 50%; top: 18%; transform: translateX(-50%); }
.sizes .s-square { height: 52%; aspect-ratio: 1; left: 50%; top: 24%; transform: translateX(-50%); }
.sizes.play .s-story { transform: translateX(-165%) rotate(-8deg); }
.sizes.play .s-square { transform: translateX(65%) rotate(8deg); }

/* Waitlist form */
.form { margin-top: 28px; display: grid; gap: 18px; }
.field-group { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group label, .field-group legend { font-weight: 600; font-size: .9375rem; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form select {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: 500 1rem/1 var(--body); appearance: none; -webkit-appearance: none;
}
.form select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239A9AA5' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form select:invalid { color: var(--muted); }
.form input::placeholder { color: #5F5F69; }
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 46, 136, .25); }
.form [aria-invalid="true"] { border-color: var(--error) !important; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.prefix input { padding-left: 34px !important; }
.seg-input { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg-input input { position: absolute; opacity: 0; pointer-events: none; }
.seg-input label { text-align: center; padding: 12px 0; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg-input input:checked + label { background: var(--accent); color: #fff; }
.seg-input input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.form-error { color: var(--error); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.footer nav a:hover { color: var(--text); }

/* Sample viewer */
.viewer { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(480px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); }
.viewer::backdrop { background: rgba(0, 0, 0, .85); backdrop-filter: blur(6px); }
.viewer-inner { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: grid; gap: 14px; }
.viewer-close { position: absolute; z-index: 2; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 1rem; cursor: pointer; }
.viewer-img { display: grid; place-items: center; height: min(62dvh, 560px); background: #0E0E11; border-radius: 14px; overflow: hidden; }
.viewer-img img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; border-radius: 8px; }
.viewer-tabs { display: flex; gap: 8px; justify-content: center; }
.viewer-tabs .chip { min-height: 40px; }

/* Simple pages (thanks, privacy, 404) */
.page { padding: 48px 0 80px; }
.page h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); line-height: 1; margin-bottom: 18px; }
.page h2 { font-family: var(--display); font-size: 1.25rem; margin: 32px 0 10px; }
.page p, .page li { color: #CFCFD6; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 6px; }
.page .btn { margin-top: 28px; }
.thanks-art { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.thanks-art img { width: 30%; max-width: 150px; border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; }
.thanks-art img:nth-child(1) { transform: rotate(-7deg); } .thanks-art img:nth-child(3) { transform: rotate(7deg); }

/* Larger screens */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .edges { grid-template-columns: 1fr 1fr; }
  .hero-copy .btn { width: auto; }
  .hero-copy .fine { text-align: left; }
  .wall-row img { width: 168px; height: 210px; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-inner .fine { grid-column: 1 / -1; }
  .footer nav { justify-content: flex-end; }
}
@media (min-width: 960px) {
  .hero { padding-top: 56px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .phones { justify-content: center; overflow: visible; }
  .shot { width: 250px; }
  .section { padding: 104px 0; }
}
