/* Straumr website — shared styles. Dark theme matched to the app
   (scaffold #0B0B0F, accent #E50914). Plain CSS, no build step. */

:root {
  --bg: #0b0b0f;
  --surface: #16161d;
  --surface-2: #1a1a22;
  --surface-3: #1e1e1e;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --text-dim: #a9a9b6;
  --text-faint: #6f6f7d;
  --accent: #e50914;
  --accent-hover: #ff2733;
  --accent-soft: rgba(229, 9, 20, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---------- Under construction bar ---------- */
.construction-bar {
  background: linear-gradient(90deg, #3d2a08, #4a3510 40%, #3d2a08);
  border-bottom: 1px solid rgba(255, 193, 7, 0.35);
  color: #ffe8a3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.construction-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 24px;
  text-align: center;
  flex-wrap: wrap;
}
.construction-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1200;
  background: #ffc107;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Disabled / coming-soon CTAs (buttons stay visible) */
.btn.btn-disabled,
.btn.is-coming-soon,
a.is-coming-soon.btn {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.25);
}
.btn.btn-disabled:hover,
.btn.is-coming-soon:hover {
  background: var(--accent); /* don't brighten primary on “hover” */
}
a.is-coming-soon:not(.btn) {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
  text-decoration-color: transparent;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 340px at 50% -8%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 14ch;
  font-weight: 800;
}
h1.hero-title-wide {
  max-width: 18ch;
}
.hero p.lede {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-faint); }

.app-shot {
  margin: 64px auto 0;
  max-width: 940px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #14141b, #0d0d12);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-size: 14px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}
.section-head p { color: var(--text-dim); font-size: 17px; margin: 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}
.chip-soon,
.chip-pro {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
/* “Coming” — amber */
.chip-soon {
  color: #ffe8a3;
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.28);
}
/* “Pro” — brand red (distinct from Coming) */
.chip-pro {
  color: #ffc9cc;
  background: var(--accent-soft);
  border: 1px solid rgba(229, 9, 20, 0.45);
}
.plain-list {
  margin: 0;
  padding-left: 1.15em;
  color: var(--text-dim);
  font-size: 15px;
}
.plain-list li { margin: 0.4em 0; }

/* ---------- Public roadmap ---------- */
.roadmap-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.roadmap-phase {
  margin-bottom: 48px;
  padding: 28px 28px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.roadmap-phase-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.roadmap-phase-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.roadmap-phase-lede {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 15px;
}
.rm-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.rm-now {
  color: #0b0b0f;
  background: #7dffa8;
}
.rm-next {
  color: #0b0b0f;
  background: #ffc107;
}
.rm-later {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}
.roadmap-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.roadmap-items li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.roadmap-items li:first-child { border-top: 0; }
.roadmap-items strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.roadmap-items p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}
.rm-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 3px;
  color: var(--text-faint);
}
.rm-status.done { color: #7dffa8; }
.rm-status.progress { color: #ffc107; }
.rm-status.planned { color: var(--text-faint); }
.roadmap-footnote {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  max-width: 52ch;
  margin: 8px auto 0;
  line-height: 1.5;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card .ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ---------- Feature rows (features page) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
}
.feature-row:nth-child(even) .feature-visual { order: -1; }
.feature-copy h3 { font-size: 24px; margin: 0 0 12px; letter-spacing: -0.02em; }
.feature-copy p { color: var(--text-dim); font-size: 16px; margin: 0 0 16px; }
.feature-copy ul { margin: 0; padding-left: 18px; color: var(--text-dim); }
.feature-copy li { margin-bottom: 6px; }
.feature-visual {
  background: linear-gradient(180deg, #14141b, #0d0d12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: var(--text-faint); font-size: 14px;
}

/* ---------- Pricing ---------- */
.price-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.price-wrap-2 {
  max-width: 920px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  flex: 1 1 300px;
}
.price-card-secondary {
  border-color: var(--border);
  background: var(--surface-2);
}
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.price-card .badge-muted {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
}
.price-card h3 { font-size: 20px; margin: 4px 0 6px; }
.price {
  font-size: 56px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px;
}
.price small { font-size: 17px; font-weight: 600; color: var(--text-dim); }
.price-sub { color: var(--text-faint); font-size: 14px; margin-bottom: 26px; }
.price-features { text-align: left; list-style: none; margin: 0 0 30px; padding: 0; }
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; color: var(--text-dim); font-size: 15px;
  border-top: 1px solid var(--border);
}
.price-features li:first-child { border-top: 0; }
.check { color: var(--accent); font-weight: 800; flex: none; }
.check.dim { color: var(--text-faint); font-weight: 600; }
.price-note { color: var(--text-faint); font-size: 13px; margin-top: 18px; }

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
}
.auth-card h1 { font-size: 26px; text-align: center; margin: 0 0 6px; }
.auth-card .sub { text-align: center; color: var(--text-dim); font-size: 15px; margin: 0 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text-dim); }
.field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 14px; }
.auth-row a { color: var(--accent); font-weight: 600; }
.auth-alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-dim); }
.auth-alt a { color: var(--accent); font-weight: 600; }
.form-msg {
  display: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
}
.form-msg.error { display: block; background: rgba(229,9,20,.12); border: 1px solid rgba(229,9,20,.35); color: #ff9ba0; }
.form-msg.success { display: block; background: rgba(46,160,67,.12); border: 1px solid rgba(46,160,67,.35); color: #7ee2a0; }

.account-info { list-style: none; padding: 0; margin: 0 0 24px; }
.account-info li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); font-size: 15px; }
.account-info li:first-child { border-top: 0; }
.account-info .k { color: var(--text-dim); }
.account-info .v { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(180deg, #14141b, #0d0d12);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-band p { color: var(--text-dim); margin: 0 0 26px; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  margin-top: 40px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--text-faint); font-size: 14px; margin: 12px 0 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid,
  .grid.grid-2 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
  .roadmap-items li { grid-template-columns: 1fr; gap: 6px; }
  .roadmap-phase { padding: 22px 18px 4px; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}
