/*
 * vlog.tulx.app — public site for AI Vlogger Studio.
 * Same palette as the app's creator workspace: warm paper, ink, citrus.
 */

:root {
  color-scheme: light dark;

  --bg: #f5f5ef;
  --surface: #ffffff;
  --surface-2: #e9eddf;
  --border: #dcdfd3;
  --text: #192c27;
  --text-muted: #55685f;
  --ink: #192c27;
  --ink-text: #edf3eb;
  --ink-muted: #b3c5bd;
  --citrus: #e3f4a6;
  --accent: #356454;
  --accent-hover: #244d3e;
  --accent-soft: #e8f0e5;
  --warm: #f4e4d7;
  --mint: #e0ebe4;
  --lavender: #e8e4f1;
  --card-text: #28382e;

  --radius: 12px;
  --radius-lg: 18px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans Bengali', sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101a16;
    --surface: #17241f;
    --surface-2: #1d2e27;
    --border: #2b3f36;
    --text: #edf3eb;
    --text-muted: #a9bbb1;
    --ink: #0b1411;
    --accent: #c0df9b;
    --accent-hover: #d7edbc;
    --accent-soft: #243b2f;
    --warm: #3a2e25;
    --mint: #223a30;
    --lavender: #2e2a3d;
    --card-text: #edf3eb;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--citrus); color: #192c27; padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--ink-text); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink-text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid #ffffff22; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { color: #d4dfd7; text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { background: #29463b; color: #fff; }
.site-nav a[aria-current='page'] { background: var(--citrus); color: #192c27; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 650; text-decoration: none; border: 1.5px solid transparent;
}
.btn-primary { background: var(--citrus); color: #192c27; }
.btn-primary:hover { background: #d6ec8c; color: #192c27; }
.btn-ghost { border-color: #ffffff40; color: var(--ink-text); }
.btn-ghost:hover { background: #29463b; color: #fff; }
.btn-solid { background: var(--accent); color: var(--bg); }
.btn-solid:hover { background: var(--accent-hover); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--ink-text); padding: 56px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 11px; letter-spacing: 2px; font-weight: 750; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; }
.hero .eyebrow { color: var(--citrus); }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -2px; margin: 0 0 22px; }
.hero h1 em { font-family: var(--serif); font-weight: 400; color: var(--citrus); letter-spacing: -1px; }
.hero p.lead { font-size: 18px; color: var(--ink-muted); max-width: 54ch; margin: 0 0 30px; }
.hero .fine { font-size: 13px; color: var(--ink-muted); margin: 18px 0 0; }

.hero-art { display: grid; place-content: center; position: relative; min-height: 320px; }
.film-frame {
  transform: rotate(7deg); width: 220px; height: 284px; padding: 20px;
  color: #edf4cf; background: #304b3e; border: 9px solid #fafbf4; border-radius: 12px;
  box-shadow: 8px 18px 40px #00000050; display: flex; flex-direction: column; justify-content: space-between;
}
.film-frame > span, .film-frame small { font-size: 9px; letter-spacing: 2px; }
.film-frame i { display: inline-block; width: 6px; height: 6px; background: #f99b85; border-radius: 50%; margin-right: 6px; }
.film-frame strong { font-size: 40px; line-height: 0.95; letter-spacing: -1px; }
.film-frame em { color: var(--citrus); font-family: var(--serif); font-weight: 400; }
.floating-note {
  position: absolute; bottom: 4px; right: -6px; background: #f3d5b4; color: #3a2a1c;
  padding: 16px 18px; transform: rotate(-7deg); font-family: var(--serif); font-size: 17px;
  box-shadow: 2px 8px 16px #00000030;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tint { background: var(--surface-2); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -1.2px; margin: 0 0 14px; }
h3 { font-size: 20px; letter-spacing: -0.4px; margin: 0 0 8px; }
.muted { color: var(--text-muted); }

.loop { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: step; }
.loop li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 18px 9px 12px; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.loop li::before {
  content: counter(step); display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
}
.loop li.repeat { background: var(--citrus); border-color: transparent; color: #192c27; }
.loop li.repeat::before { content: '↻'; background: #192c27; color: var(--citrus); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border-radius: var(--radius-lg); padding: 24px; color: var(--card-text); border: 1px solid #00000008; }
.card.warm { background: var(--warm); }
.card.mint { background: var(--mint); }
.card.lavender { background: var(--lavender); }
.card .num { font-size: 10px; letter-spacing: 1.6px; font-weight: 700; opacity: 0.75; }
.card h3 { margin-top: 28px; }
.card p { margin: 0; font-size: 15px; opacity: 0.88; }

.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.promise { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.promise p { margin: 0; color: var(--text-muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.panel p { color: var(--text-muted); margin: 0 0 14px; }
.panel p:last-child { margin-bottom: 0; }

.cta { background: var(--ink); color: var(--ink-text); border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: var(--ink-muted); max-width: 52ch; }

/* ---------- Legal / document pages ---------- */
.doc-head { background: var(--ink); color: var(--ink-text); padding: 44px 0 48px; }
.doc-head .eyebrow { color: var(--citrus); }
.doc-head h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -1.5px; margin: 0 0 12px; }
.doc-head p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.doc-head code { background: #ffffff1a; color: var(--ink-text); }

.doc { padding: 44px 0 72px; }
.doc h2 { font-size: 24px; letter-spacing: -0.6px; margin: 44px 0 12px; scroll-margin-top: 20px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc li { margin-bottom: 8px; }
.doc ul, .doc ol { padding-left: 22px; }
.summary { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 28px; }
.summary p { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.toc p { margin: 0 0 8px; font-weight: 700; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }

.table-scroll { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); }

.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ink-muted); padding: 36px 0 44px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: #d4dfd7; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer p { margin: 0 0 6px; }

/* ---------- 404 ---------- */
.notfound { min-height: 56vh; display: grid; place-items: center; text-align: center; padding: 72px 24px; }
.notfound h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -1.6px; margin: 0 0 12px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero { padding: 40px 0 60px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 52px 0; }
  .cards, .promises, .split { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
  .toc ol { columns: 1; }
  .site-nav a { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
