/* SuperSocial site. Same tokens as app/src/theme.ts; spacing on the 4 px grid.
   Mobile first: base rules are the phone layout; min-width queries at the end add tablet and desktop. */
:root {
  --background: #FFFFFF; --foreground: #0A0A0A;
  --secondary: #EDEDEC; --muted: #F5F5F4; --muted-foreground: #737371;
  --accent: #FFD23F; --border: #E4E4E2; --success: #16A34A;
  --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px;
  --gutter: 16px; --max: 1120px;
  /* Noto Sans Devanagari draws Hindi; it is loaded only on the Hindi pages. */
  --font: 'DM Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--background); color: var(--foreground); font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-weight: 500; }
.display { font-size: clamp(44px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
.h3 { font-size: 20px; line-height: 24px; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 28px; }
.small { font-size: 13px; line-height: 18px; }
.muted { color: var(--muted-foreground); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 500; width: fit-content; }
.hl { background: linear-gradient(transparent 60%, var(--accent) 60%); }

/* Buttons: pills. Yellow is the one call to action. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 28px; border-radius: 999px; font: 500 16px/20px var(--font); text-decoration: none; border: 1px solid var(--foreground); cursor: pointer; transition: transform .12s, background-color .12s; }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .chip:focus-visible, summary:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--foreground); }
.btn-accent:hover { background: #F5C518; border-color: #F5C518; }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--muted); }
.btn-lg { height: 64px; padding: 0 32px; font-size: 18px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.site-header nav a:not(.btn) { display: none; text-decoration: none; }
.site-header nav a:not(.btn):hover { text-decoration: underline; }
/* Language switch: shown on phones too, unlike the other header links. */
.site-header nav a.lang-switch { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; }
.site-header nav a.lang-switch:hover { text-decoration: none; border-color: var(--foreground); }
.site-header .btn { white-space: nowrap; }

/* Hindi: Devanagari needs taller lines for its vowel marks, and letter-spacing breaks its joined letters. */
:lang(hi) .display, :lang(hi) .h1, :lang(hi) .h2, :lang(hi) .h3, :lang(hi) .statement { letter-spacing: 0; line-height: 1.35; }
:lang(hi) body, :lang(hi) .lead { line-height: 1.7; }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding: 32px 0 64px; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy .lead { max-width: 520px; }
.cta-block { display: grid; gap: 12px; justify-items: start; width: 100%; }
.cta-block .btn { width: 100%; }
.cta-note { font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; font-size: 14px; font-weight: 500; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 16px; height: 16px; color: var(--success); }
.phones { position: relative; width: 100%; max-width: 440px; height: 400px; justify-self: center; }
.phones img { position: absolute; width: 164px; height: auto; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--background); box-shadow: 0 24px 48px -24px rgba(10,10,10,.25); }
.phones .back { left: 0; top: 0; transform: rotate(-5deg); }
.phones .front { right: 0; top: 48px; transform: rotate(4deg); }

/* Sections */
section { padding: 64px 0; }
.rule { border-top: 1px solid var(--border); }
.section-head { display: grid; gap: 16px; margin-bottom: 32px; max-width: 680px; }
.statement { max-width: 900px; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.story { display: grid; gap: 28px; }

/* Topic picker */
.topics { display: grid; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--foreground); background: var(--background); font: 500 15px/20px var(--font); color: var(--foreground); cursor: pointer; transition: background-color .12s, transform .12s; }
.chip:hover { background: var(--muted); }
.chip:active { transform: scale(.97); }
.chip svg { width: 24px; height: 24px; flex-shrink: 0; }
.chip[aria-checked="true"] { background: var(--foreground); color: var(--background); }

/* Bordered list, like the app's List */
.list { border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; }
.list > div { padding: 28px; display: grid; gap: 8px; align-content: start; }
.list > div + div { border-top: 1px solid var(--border); }
.icon-circle { width: 44px; height: 44px; border-radius: 999px; background: var(--secondary); display: grid; place-items: center; margin-bottom: 8px; flex-shrink: 0; }
.icon-circle svg { width: 20px; height: 20px; }

/* App screens: zigzag rows, each screen in a phone frame */
.h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
.zigzag { display: grid; gap: 48px; }
.zz { display: grid; gap: 24px; align-items: center; }
.zz-copy { display: grid; gap: 12px; max-width: 460px; }
/* The panel shows the top of the phone and crops the rest at its bottom edge. */
.zz-media { background: var(--muted); border-radius: var(--radius-xl); padding: 40px 16px 0; height: 360px; position: relative; overflow: hidden; display: grid; place-items: start center; }
.zz-media::after { content: ''; position: absolute; inset: auto 0 0; height: 48px; background: linear-gradient(to bottom, rgba(245,245,244,0), var(--muted)); pointer-events: none; }
.device { position: relative; width: min(280px, 72vw); padding: 10px; border-radius: 48px; background: var(--foreground); box-shadow: 0 32px 64px -32px rgba(10,10,10,.45); }
.device img { display: block; width: 100%; height: auto; border-radius: 38px; }
.device::before { content: ''; position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.4%; border-radius: 999px; background: var(--foreground); }
.device::after { content: ''; position: absolute; right: -3px; top: 24%; width: 3px; height: 10%; border-radius: 0 2px 2px 0; background: var(--foreground); }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { background: var(--muted); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 999px; background: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 16px; margin-bottom: 12px; }

/* Two columns: for / not for, earnings */
.split { display: grid; gap: 16px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 16px; align-content: start; }
.panel.muted-bg { background: var(--muted); border-color: var(--muted); }
.checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* Big number tiles */
.stats { display: grid; gap: 16px; }
.stat { background: var(--muted); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 4px; }
.stat strong { font-size: clamp(36px, 4vw, 48px); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
/* Host earnings calculator: two sliders and the monthly estimate. */
.calc { display: grid; gap: 24px; background: var(--muted); border-radius: var(--radius-lg); padding: 28px; }
.calc-inputs { display: grid; gap: 24px; }
.calc-field { display: grid; gap: 12px; }
.calc-label { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
.calc-label output { font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; height: 24px; margin: 0; accent-color: var(--foreground); cursor: pointer; }
.calc-result { display: grid; gap: 4px; align-content: center; background: var(--accent); border-radius: var(--radius-md); padding: 24px; }
.calc-result strong { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-result .muted { color: var(--foreground); opacity: .7; }

/* FAQ */
.faq { border-top: 1px solid var(--border); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted-foreground); max-width: 680px; }

/* Closing call to action */
.closing { text-align: center; display: grid; gap: 24px; justify-items: center; }
.closing .lead { max-width: 560px; }
.closing .cta-block { justify-items: center; }

/* Forms: host waitlist */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.input { width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); color: var(--foreground); font: 400 16px/24px var(--font); }
.input:focus-visible, .opt input:focus-visible + span, .icon-btn:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
.waitlist { display: grid; gap: 12px; width: 100%; max-width: 520px; }
.waitlist .input { height: 64px; padding: 0 20px; border-color: var(--foreground); border-radius: 999px; font-size: 18px; }
.closing .waitlist { margin: 0 auto; }
.field { display: grid; gap: 8px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; line-height: 20px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.field label { margin-bottom: 0; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-md); }
.input-prefix span { padding: 0 4px 0 16px; color: var(--muted-foreground); }
.input-prefix .input { border: 0; padding-left: 8px; }
.input-prefix:focus-within { outline: 2px solid var(--foreground); outline-offset: 2px; }
.input-prefix .input:focus-visible { outline: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .12s, border-color .12s; }
.opt:hover span { border-color: var(--foreground); }
.opt input:checked + span { background: var(--foreground); border-color: var(--foreground); color: var(--background); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { background: #FEF2F2; color: #B91C1C; border-radius: var(--radius-md); padding: 12px 16px; font-size: 14px; line-height: 20px; }

/* Dialog: a bottom sheet on phones, centred from tablet up */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92dvh; overflow: hidden; border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--background); color: var(--foreground); }
/* Only the body scrolls, so the scrollbar stays below the header and clear of the rounded corners. */
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(10,10,10,.5); }
.sheet-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 12px; background: var(--background); }
.sheet-body { display: grid; gap: 24px; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.sheet-body .btn { width: 100%; }
.sheet-done { justify-items: center; text-align: center; gap: 12px; padding-top: 24px; }
.sheet-done .icon-circle svg { width: 22px; height: 22px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--muted); color: var(--foreground); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.icon-btn svg { width: 20px; height: 20px; }
body:has(.sheet[open]) { overflow: hidden; }

/* Blog: post cards and articles */
.posts { display: grid; gap: 16px; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 8px; align-content: start; text-decoration: none; transition: background-color .12s; }
.post-card:hover { background: var(--muted); }
.post-card:focus-visible, .back-link:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; }
.post-card .more { font-weight: 500; margin-top: 8px; }
.article { max-width: 720px; display: grid; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
.post-head { display: grid; gap: 16px; }
.back-link { font-size: 14px; font-weight: 500; text-decoration: none; width: fit-content; }
.back-link:hover { text-decoration: underline; }
.prose { display: grid; gap: 20px; font-size: 18px; line-height: 28px; }
.prose h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; margin-top: 16px; }
.prose ul { padding-left: 24px; display: grid; gap: 8px; }
.prose strong { font-weight: 600; }

.notice { display: flex; gap: 16px; align-items: center; background: var(--muted); border-radius: var(--radius-lg); padding: 20px 24px; text-decoration: none; }
.notice strong { font-weight: 600; }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 120px; }
.site-footer .wrap { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; line-height: 18px; }
.site-footer nav { display: flex; gap: 20px; font-weight: 500; }

/* Sticky call to action on phones, shown once the hero button scrolls away; hidden from tablet up */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--background); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .25s; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--success); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

@media (min-width: 480px) {
  .phones { height: 500px; }
  .phones img { width: 210px; }
  .phones .front { top: 64px; }
  .chip { height: 48px; padding: 0 20px 0 16px; font-size: 16px; }
}
@media (min-width: 760px) {
  :root { --gutter: 24px; }
  section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }
  .site-header nav { gap: 24px; }
  .site-header nav a:not(.btn, .lang-switch) { display: inline; }
  .cta-block, .cta-block .btn { width: auto; }
  .waitlist { grid-template-columns: 1fr auto; gap: 8px; }
  .sheet { margin: auto; width: min(560px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); border-radius: var(--radius-xl); padding-bottom: 24px; }
  .sheet-head { padding: 28px 28px 12px; }
  .sheet-body { padding: 8px 28px 4px; }
  .sticky-cta { display: none; }
  .site-footer .wrap { flex-direction: row; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr 1fr; gap: 48px; padding-top: 48px; }
  .phones { max-width: none; height: 600px; }
  .phones img { width: 248px; }
  .zigzag { gap: 88px; }
  .zz { grid-template-columns: 1fr 1fr; gap: 64px; }
  .zz:nth-child(even) .zz-copy { order: 2; }
  .zz-media { padding: 56px 24px 0; height: 440px; }
  .device { width: 300px; }
  .list { grid-template-columns: repeat(3, 1fr); }
  .list > div + div { border-top: 0; border-left: 1px solid var(--border); }
  .steps, .stats, .posts { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 40px; }
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
}
