/* Genivio Cloud homepage: the app's warm "paper" look (src/CloudVideos.tsx C palette). */
:root {
  --paper: #FBF7F0; --card: #FFFFFF; --soft: #F4EDE2; --ink: #2B2A28; --mute: #6B655C; --faint: #9A9187;
  --line: #E9E0D2; --accent: #E2683C; --accent-soft: #FCE9E0; --ok: #2E8B57;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 Nunito, system-ui, sans-serif; }
a { color: var(--accent); }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }
section { padding: 72px 0; }
section.soft { background: var(--soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 800; color: var(--accent); margin: 0 0 8px; }
.fine { font-size: 14px; color: var(--mute); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 247, 240, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand small { font-weight: 600; font-size: 12px; color: var(--mute); }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 900; }
nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
nav a:not(.btn):hover { color: var(--accent); }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 800;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--accent); transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn.small { padding: 8px 18px; font-size: 15px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }

/* hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin: 0 0 18px; }
.hl { color: var(--accent); }
.lead { font-size: 20px; color: var(--mute); max-width: 560px; }
.hero-media { position: relative; padding-bottom: 40px; }
.frame { position: relative; border-radius: 18px; overflow: hidden; border: 3px solid var(--ink); background: #000; box-shadow: 0 18px 40px rgba(43, 42, 40, .18); }
.frame.wide { aspect-ratio: 16 / 9; }
.frame.tall { position: absolute; right: -6px; bottom: 0; width: 34%; aspect-ratio: 9 / 16; }
.frame video { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 10px; top: 10px; background: rgba(251, 247, 240, .95); color: var(--ink); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

/* cards */
.cards { display: grid; gap: 18px; margin-top: 28px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two { grid-template-columns: 1fr 1fr; max-width: 900px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card p { color: var(--mute); font-size: 15px; margin: 0; }
.card.pick { border: 2px solid var(--accent); background: var(--accent-soft); }
.card h3 small { font-size: 14px; color: var(--mute); font-weight: 700; }
.shape { display: flex; gap: 6px; align-items: flex-end; height: 34px; margin-bottom: 12px; }
.shape i { border: 2.5px solid var(--accent); border-radius: 4px; }
.r916 { width: 18px; height: 32px; }
.r169 { width: 44px; height: 25px; }
.badge { position: absolute; top: -12px; right: 18px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; color: var(--mute); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; margin-bottom: 10px; }
.steps b { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 14px 0 18px; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }

/* examples */
.examples { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; margin-top: 28px; align-items: start; }
.ex { margin: 0; }
.ex video { width: 100%; border-radius: 16px; border: 3px solid var(--ink); background: #000; }
.ex.wide video { aspect-ratio: 16 / 9; }
.ex:not(.wide) video { aspect-ratio: 9 / 16; }
.ex figcaption { font-size: 14px; color: var(--mute); margin-top: 8px; }
.ex figcaption b { color: var(--ink); display: block; }
.more-title { margin: 48px 0 12px; }
.demo { margin: 22px 0 6px; }
.demo video { width: 100%; max-width: 960px; display: block; margin: 0 auto; border-radius: 18px; border: 3px solid var(--ink);
  background: var(--paper); box-shadow: 0 18px 40px rgba(43, 42, 40, .12); }
.demo figcaption { text-align: center; font-size: 14px; color: var(--mute); margin-top: 10px; }
/* legal pages (terms, privacy, refund) */
.doc h1 { margin: 0 0 6px; }
.doc .muted { color: var(--faint); font-size: 14px; margin-bottom: 24px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--mute); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
/* ideas: series cards */
.series { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.series .card { display: flex; flex-direction: column; }
.series .kicker { font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.series h3 { margin: 0 0 6px; }
.series ul { margin: 10px 0 14px; padding-left: 18px; color: var(--ink); font-size: 14px; flex: 1; }
.series li { margin: 3px 0; }
.idea-go { font-weight: 800; color: var(--accent); text-decoration: none; cursor: pointer; }
.idea-go:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 2px solid var(--line); }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 20px; align-items: start; }
.gallery .ex.wide { grid-column: span 2; }
.gallery .ex[hidden] { display: none; }

/* pricing */
.cur { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 18px 0 8px; background: var(--card); }
.cur button { border: 0; background: transparent; padding: 8px 18px; font: 800 14px Nunito, sans-serif; color: var(--mute); cursor: pointer; }
.cur button.on { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0 18px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 22px; }
.plan.top { border-color: var(--accent); background: var(--accent-soft); }
.plan .price { font-size: 34px; font-weight: 900; }
.plan .price small { font-size: 14px; color: var(--mute); font-weight: 700; }
.plan .videos { font-weight: 800; }
.plan .per { font-size: 14px; font-weight: 800; color: var(--faint); }
.plan.top .per { color: var(--accent); }
.plan p { flex: 1; color: var(--mute); font-size: 15px; }
.plan .btn { text-align: center; padding: 11px 18px; margin-top: auto; }
.plan p { flex: 0 0 auto; min-height: 3em; }
.plan-ticks { font-size: 14px; margin: 10px 0 18px; }
.plan-ticks li { margin: 5px 0; color: var(--mute); }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.swatches i { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line); }
.swatches.round i { border-radius: 50%; }

/* about, faq, cta */
.about { display: flex; gap: 28px; align-items: flex-start; }
.about img { border-radius: 50%; border: 3px solid var(--accent); flex: none; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; margin: 10px 0; }
summary { font-weight: 800; cursor: pointer; }
details p { color: var(--mute); margin: 10px 0 4px; }
.cta { background: var(--ink); color: #fff; }
.cta .fine, .cta .fine a { color: #d9d2c7; }
.cta .btn { margin: 14px 0; }
footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--mute); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--mute); margin-left: 18px; text-decoration: none; }

@media (max-width: 960px) {
  .hero-grid, .cards.two { grid-template-columns: 1fr; }
  .cards.four, .plans { grid-template-columns: 1fr 1fr; }
  .examples, .gallery, .series { grid-template-columns: 1fr 1fr; }
  .ex.wide, .gallery .ex.wide { grid-column: 1 / -1; }
  nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 52px 0; }
  .cards.four, .plans, .steps, .series { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .about { flex-direction: column; }
  .foot a { margin: 0 14px 0 0; }
}
