/* Omoindex.com landing — implements the operator's design mock (2026-07-02):
   photo hero with dark overlay, blue pill CTA, amber headline accent,
   floating "upload → article" flow card, light-gray section with a 3x3 grid
   of auto-generated blog-post cards. System fonts only; images are small
   WebP crops served from /static/img (total ~180KB). */
:root {
  --blue: #2f6bef;
  --blue-deep: #1e55d6;
  --blue-soft: #e3ecfd;
  --navy: #16294d;
  --ink: #23272f;
  --muted: #64707d;
  --line: #e5e9f0;
  --section: #f2f5f9;
  --amber: #f5a623;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { letter-spacing: -0.01em; }

/* ---- Hero (photo backdrop + dark overlay) ---- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(100deg, rgba(8, 14, 24, 0.82) 0%, rgba(8, 14, 24, 0.55) 45%, rgba(8, 14, 24, 0.28) 100%),
    url("/static/img/hero-bg.webp") center / cover no-repeat;
}
.hero-top {
  max-width: 1000px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.wordmark { font-size: 1.3rem; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.wordmark .rays { color: var(--amber); margin-bottom: 12px; margin-right: -14px; }
.wordmark .tld { font-weight: 600; opacity: 0.85; }
.hero-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-nav a { color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 0.9rem; }
.hero-nav a:hover { color: #fff; text-decoration: underline; }
.badge {
  background: rgba(10, 16, 28, 0.75); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; border-radius: 999px; padding: 7px 16px; font-size: 0.85rem; font-weight: 600;
}

.hero-inner {
  max-width: 1000px; margin: 0 auto; padding: 40px 20px 56px;
  display: grid; gap: 32px; align-items: center;
}
.hero-copy h1 { font-size: clamp(1.9rem, 5.4vw, 3rem); font-weight: 800; line-height: 1.25; margin: 0 0 18px; }
.hero-copy h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: rgba(255, 255, 255, 0.92); font-size: 1.02rem; margin: 0 0 26px; max-width: 34em; }
.hero-note { color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; margin: 12px 0 0; }

/* Floating flow card: photos in → article out */
.hero-steps {
  background: #fff; color: var(--navy); border-radius: 16px;
  padding: 26px 22px; max-width: 250px; text-align: center; justify-self: start;
  box-shadow: 0 12px 32px rgba(6, 12, 24, 0.28);
}
.hs-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 14px; background: var(--blue-soft); color: var(--blue);
}
.hs-text { margin: 10px 0 6px; font-weight: 700; font-size: 0.92rem; }
.hs-arrow { color: var(--blue); margin: 2px 0 8px; }
.hs-done { color: var(--blue-deep); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 0; border-radius: 999px; padding: 13px 28px;
  font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(47, 107, 239, 0.35); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-hero { padding: 15px 30px; }
.btn-secondary { background: #fff; color: var(--blue-deep); border: 1px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-soft); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #d0d5dd; }
.btn-google:hover { background: #f6f8ff; }

/* ---- Auth (Phase 2.5) ---- */
.nav-account { display: inline-flex; align-items: center; gap: 10px; }
.nav-user { color: rgba(255, 255, 255, 0.9); font-size: 0.9rem; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-signout {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; text-decoration: underline;
}
.nav-signout:hover { color: #fff; }
.signin-gate { text-align: center; padding: 34px 18px; border: 1.5px dashed var(--blue); border-radius: 14px; background: var(--blue-soft); }
.signin-prompt { margin: 0 0 18px; color: var(--navy); }

/* ---- Section headings ---- */
.section-title {
  color: var(--navy); font-size: 1.5rem; font-weight: 800;
  margin: 0 0 26px; text-align: center; position: relative; padding-bottom: 12px;
}
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 44px; height: 3px; border-radius: 2px; background: var(--blue);
}

/* ---- Auto-generated blog post samples (3x3) ---- */
.sample {
  background: var(--section);
  margin: 0 -20px; padding: 48px 20px 52px;
}
main > .sample { margin: 0 calc(50% - 50vw); padding-left: max(20px, calc(50vw - 480px)); padding-right: max(20px, calc(50vw - 480px)); }
.post-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.post-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(22, 41, 77, 0.08);
}
.post-card img { display: block; width: 100%; height: auto; }
.post-body { padding: 14px 16px 16px; }
.post-date { color: var(--muted); font-size: 0.78rem; margin: 0 0 4px; }
.post-body h3 { color: var(--navy); font-size: 1.02rem; margin: 0 0 6px; }
.post-text { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ---- Manifesto: from storing to publishing ---- */
.manifesto {
  background: var(--navy); color: #fff; text-align: center;
  margin: 0 calc(50% - 50vw); padding: 52px max(20px, calc(50vw - 380px));
}
.manifesto h2 { font-size: clamp(1.3rem, 3.6vw, 1.7rem); font-weight: 800; margin: 0 0 16px; }
.manifesto-body { color: rgba(255, 255, 255, 0.88); font-size: 1rem; margin: 0 auto 18px; max-width: 38em; }
.manifesto-punch { color: var(--amber); font-weight: 800; font-size: 1.05rem; margin: 0; }

/* ---- How it works ---- */
.how { padding: 48px 0 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.steps h3 { margin: 10px 0 6px; font-size: 1.1rem; color: var(--navy); }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Pricing ---- */
.pricing { padding: 48px 0 8px; text-align: center; }
.pricing-sub { color: var(--muted); margin: -10px 0 24px; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 26px; max-width: 400px; margin: 0 auto;
  box-shadow: 0 2px 10px rgba(22, 41, 77, 0.08);
}
.plan-name {
  color: var(--blue); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 6px;
}
.price { color: var(--navy); font-size: 2.6rem; font-weight: 800; margin: 0; line-height: 1.1; }
.price .per { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.trial-badge {
  display: inline-block; background: var(--blue-soft); color: var(--blue-deep);
  border-radius: 999px; padding: 5px 14px; font-size: 0.84rem; font-weight: 700; margin: 12px 0 6px;
}
.price-features { list-style: none; margin: 14px 0 22px; padding: 0; text-align: left; }
.price-features li {
  padding: 8px 0 8px 26px; font-size: 0.93rem;
  border-bottom: 1px solid var(--line); position: relative;
}
.price-features li:last-child { border-bottom: 0; }
.price-features li::before { content: "✓"; position: absolute; left: 2px; color: var(--blue); font-weight: 800; }
.price-note { color: var(--muted); font-size: 0.8rem; margin: 14px 0 0; }

/* ---- Upload ---- */
.upload { padding: 48px 0 12px; text-align: center; }
.dropzone {
  background: #fff; border: 2px dashed #b9c6dd; border-radius: 14px;
  padding: 34px 20px;
}
.dropzone.dragover { border-color: var(--blue); background: var(--blue-soft); }
.drop-hint { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 0 0 2px; }
.drop-or { color: var(--muted); font-size: 0.85rem; margin: 4px 0 14px; }
.selected { color: var(--muted); font-size: 0.92rem; margin: 16px 0 0; }
.btn-start { margin-top: 18px; width: min(340px, 100%); }
.btn-start:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.coming-soon { color: var(--muted); font-size: 0.88rem; margin: 10px 0 0; }
.fineprint { color: var(--muted); font-size: 0.8rem; margin-top: 14px; }

/* Upload flow (Phase 2) */
.hidden { display: none !important; }
.progress { margin-top: 20px; }
.progress-track { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0%; background: var(--blue);
  border-radius: 999px; transition: width 0.2s ease;
}
.progress-text { color: var(--muted); font-size: 0.92rem; margin: 10px 0 0; }
.failed {
  margin-top: 18px; background: #fff5f3; border: 1px solid #f0cfc5;
  border-radius: var(--radius); padding: 16px; text-align: left;
}
.failed-heading { margin: 0 0 8px; font-weight: 700; font-size: 0.95rem; }
.failed-list {
  list-style: none; margin: 0 0 12px; padding: 0; color: var(--muted);
  font-size: 0.88rem; max-height: 140px; overflow-y: auto;
}
.failed-list li { padding: 2px 0; overflow-wrap: anywhere; }

/* ---- Footer ---- */
.site-footer {
  text-align: center; color: var(--muted); border-top: 1px solid var(--line);
  margin-top: 44px; padding: 32px 20px; font-size: 0.9rem;
}
.site-footer p { margin: 4px 0; }
.rights { font-size: 0.8rem; }
.lang-switch { display: flex; gap: 16px; justify-content: center; margin: 12px 0; font-size: 0.85rem; }
.lang-switch a { color: var(--muted); text-decoration: underline; }
.lang-switch a:hover { color: var(--navy); }
.lang-current { color: var(--navy); font-weight: 700; }

/* ---- Desktop ---- */
@media (min-width: 760px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) auto; padding: 56px 20px 72px; }
  .hero-steps { justify-self: end; }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
