/* roadsteraivideomaker.com — shared styles */
:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --border: #e3e6ea;
  --text: #16181d;
  --muted: #5c6470;
  --accent: #e0342c;      /* roadster red */
  --accent-dark: #b8251f;
  --ok: #1a7f4b;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; border-radius: var(--radius); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 17px; color: var(--text); letter-spacing: -.3px; }
.logo span { color: var(--accent); }
nav.main-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav.main-nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
nav.main-nav a:hover { color: var(--text); text-decoration: none; }
nav.main-nav a.nav-cta {
  background: var(--accent); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 600;
}
nav.main-nav a.nav-cta:hover { background: var(--accent-dark); }

/* hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.12; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { max-width: 640px; margin: 16px auto 0; color: var(--muted); font-size: 18px; }
.badge {
  display: inline-block; background: #fdeceb; color: var(--accent-dark);
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}

/* sections */
section { padding: 44px 0; }
h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.5px; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 28px; max-width: 640px; }
.alt-bg { background: var(--surface); }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-dark); background: #fdeceb; border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 14px; max-width: 720px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16px; margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* generator / upload panel */
.gen-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; max-width: 560px; margin: 0 auto; text-align: left;
}
.gen-panel label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--muted); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #fdf3f2; }
.dropzone img.preview { max-height: 180px; margin: 0 auto 8px; display: block; }
.select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff; color: var(--text);
}
textarea { min-height: 88px; resize: vertical; }
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--accent); color: #fff; padding: 13px 26px; border-radius: 999px; font-size: 16px;
  transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; margin-top: 20px; }
.price-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.price-note strong { color: var(--text); }
.gen-status { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; min-height: 20px; }
.gen-status.err { color: var(--accent-dark); }
.gen-status.ok { color: var(--ok); }

/* beat table */
table.beats { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.beats th, table.beats td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.beats th { background: var(--surface); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
table.beats tr:last-child td { border-bottom: 0; }
table.beats code { font-size: 13px; background: var(--surface); padding: 1px 6px; border-radius: 6px; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; max-width: 860px; margin: 0 auto; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; background: #fff; }
.price-card.featured { border: 2px solid var(--accent); position: relative; }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.price-card .amount { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.price-card .amount small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 14px 0 18px; color: var(--muted); font-size: 14px; }
.price-card li { padding: 4px 0; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* article */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 36px; }
.article p, .article li { color: #2b2f36; font-size: 16.5px; }
.article ul, .article ol { padding-left: 24px; margin: 12px 0; }
.article .quick-answer {
  background: #fdeceb; border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; font-size: 16.5px;
}
.article pre {
  background: #16181d; color: #e8eaee; border-radius: 12px; padding: 18px;
  font-size: 13.5px; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; margin: 16px 0;
}
.article .meta { color: var(--muted); font-size: 14px; margin: 10px 0 24px; }
.cta-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; margin: 32px 0;
}
.cta-box h2 { margin-top: 0; }

/* disclaimer strip */
.disclaimer {
  font-size: 12.5px; color: var(--muted); background: var(--surface);
  border-top: 1px solid var(--border); padding: 14px 0;
}

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer h4 { color: var(--text); font-size: 14px; margin-bottom: 8px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .hero { padding: 40px 0 28px; }
  nav.main-nav a:not(.nav-cta) { display: none; }
}

/* logo mark */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; flex: none; display: block; }

/* examples gallery */
.example-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.example-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.example-media { position: relative; background: #000; }
.example-media video {
  display: block; width: 100%; max-height: 420px; object-fit: cover; background: #000;
}
.example-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(0,0,0,.65); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .2px;
}
.example-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.example-body h3 { margin: 0; font-size: 16px; }
.example-body p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.example-io {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
  margin-top: 2px;
}
.example-io img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.example-io .io-arrow { color: var(--accent); font-weight: 700; }
.example-link { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.example-link:hover { text-decoration: none; color: var(--accent-dark); }

/* beat table */
.beat-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14.5px; }
.beat-table th, .beat-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.beat-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.beat-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--accent-dark); }
.beat-table tr:last-child td { border-bottom: none; }

/* photo tips */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.tips-col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.tips-col h3 { margin-top: 0; font-size: 16px; }
.tips-col ul { list-style: none; margin: 0; padding: 0; }
.tips-col li { padding: 5px 0 5px 26px; position: relative; font-size: 14.5px; }
.tips-col li.yes::before { content: "✓"; position: absolute; left: 2px; color: #1a9e55; font-weight: 700; }
.tips-col li.no::before { content: "✗"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }

/* prompts */
.prompt-block { margin-top: 16px; }
.prompt-block summary {
  cursor: pointer; font-weight: 600; font-size: 15px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
}
.prompt-block summary:hover { border-color: var(--accent); }
.prompt-block[open] summary { border-radius: 10px 10px 0 0; }
.prompt-block pre {
  margin: 0; background: #16181d; color: #e8eaee; padding: 16px 18px;
  font-size: 13px; line-height: 1.6; border-radius: 0 0 10px 10px;
  overflow-x: auto; white-space: pre-wrap;
}

/* final CTA */
.final-cta {
  text-align: center; padding: 56px 0;
  background: linear-gradient(180deg, var(--surface), #fff);
}
.final-cta h2 { font-size: clamp(24px, 3.6vw, 34px); }
.final-cta p { color: var(--muted); max-width: 560px; margin: 12px auto 24px; }

@media (max-width: 640px) {
  .tips-grid { grid-template-columns: 1fr; }
  .example-media video { max-height: 360px; }
}
