:root {
  --navy: #0E2A47;
  --navy-ink: #0A1F35;
  --teal: #2BB3C0;
  --teal-wash: #E7F6F8;
  --canvas: #F5F7FA;
  --surface: #FFFFFF;
  --line: #E2E6EC;
  --text: #1C2430;
  --mute: #6B7380;
  --danger: #C0392B;
  --radius: 8px;
  --shadow: 0 1px 0 rgba(14, 42, 71, 0.04);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--canvas);
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* Trial announcement */
.trial-banner {
  background: var(--navy);
  color: #fff;
}
.trial-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  min-height: 44px;
  flex-wrap: wrap;
}
.trial-banner p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.trial-banner p span {
  font-weight: 400;
  color: #cfeef2;
}
.trial-banner a.trial-link {
  color: #fff;
  background: var(--teal);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.trial-banner a.trial-link:hover { background: #24a0ac; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 12px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-ink); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--canvas); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--teal-wash); }
.btn-danger { background: transparent; color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: #fdecea; }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 32px; height: 22px; }
.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav a.nav-link {
  color: var(--mute);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.nav a.nav-link:hover, .nav a.nav-link.active { color: var(--navy); background: var(--teal-wash); }
.nav .sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }

/* Hero */
.hero { padding: 56px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 16px;
  font-weight: 700;
}
.lede { color: var(--mute); font-size: 18px; margin: 0 0 24px; max-width: 36em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.price-note { margin-top: 16px; color: var(--mute); font-size: 13px; }

.hero-shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(14, 42, 71, 0.08);
}
.hero-shot img { width: 100%; height: auto; }

/* Sections */
section { padding: 56px 0; }
.section-title { color: var(--navy); font-size: 28px; margin: 0 0 8px; letter-spacing: -0.02em; }
.section-sub { color: var(--mute); margin: 0 0 32px; max-width: 40em; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.card p { margin: 0; color: var(--mute); font-size: 14px; }
.icon-dot {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--teal-wash); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 12px; font-weight: 700;
}

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shot-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shot-card img { width: 100%; }
.shot-card figcaption { padding: 12px 16px; color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); }

/* Pricing */
.plan-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}
.plan-toggle button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 6px;
  color: var(--mute); cursor: pointer; font-weight: 600; font-size: 13px;
}
.plan-toggle button.active { background: var(--navy); color: #fff; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { position: relative; }
.plan.featured { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-wash); }
.plan .amount { font-size: 40px; color: var(--navy); font-weight: 700; letter-spacing: -0.03em; margin: 8px 0; }
.plan .amount span { font-size: 16px; font-weight: 600; color: var(--mute); }
.plan ul { margin: 16px 0 24px; padding: 0; list-style: none; }
.plan li { padding: 6px 0 6px 20px; position: relative; font-size: 14px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.badge {
  display: inline-block;
  background: var(--teal-wash);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Auth / forms */
.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}
.auth-card { width: min(440px, 100%); }
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--navy); }
.field { margin-bottom: 16px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  outline: none;
}
input:focus, select:focus { box-shadow: 0 0 0 2px var(--teal); border-color: var(--teal); }
.hint { color: var(--mute); font-size: 12px; margin-top: 6px; }
.alert {
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-ok { background: var(--teal-wash); color: var(--navy); }
.alert-err { background: #fdecea; color: var(--danger); }

/* Account */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 32px 0 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0 24px; }
.tab {
  border: 0; background: none; padding: 10px 14px; color: var(--mute);
  cursor: pointer; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent;
}
.tab.active { color: var(--navy); border-bottom-color: var(--teal); }
.panel { display: none; }
.panel.active { display: block; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.stat .label { color: var(--mute); font-size: 12px; }
.stat .value { color: var(--navy); font-size: 22px; font-weight: 700; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.selected td { background: var(--teal-wash); box-shadow: inset 3px 0 0 var(--teal); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; margin-right: 8px;
}
.user-cell { display: flex; align-items: center; }
.muted { color: var(--mute); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

.dialog-backdrop {
  position: fixed; inset: 0; background: rgba(14,42,71,.35);
  display: none; place-items: center; z-index: 40; padding: 24px;
}
.dialog-backdrop.open { display: grid; }
.dialog {
  background: #fff; border-radius: 12px; width: min(480px, 100%);
  padding: 24px; border: 1px solid var(--line);
}
.dialog h3 { margin: 0 0 8px; color: var(--navy); }
.dialog p { margin: 0 0 16px; color: var(--mute); font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--mute);
  font-size: 13px;
  background: var(--surface);
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--mute); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq p { margin: 8px 0 0; color: var(--mute); font-size: 14px; }

@media (max-width: 900px) {
  h1 { font-size: 34px; }
  .hero-grid, .features, .plans, .shots, .stat-row { grid-template-columns: 1fr; }
  .nav a.nav-link { display: none; }
  .nav .sep { display: none; }
}
