:root {
  --bg: #0e0c0a;
  --bg-raised: #131110;
  --card: #171411;
  --border: rgb(255 255 255 / 0.07);
  --border-strong: rgb(255 255 255 / 0.14);
  --text: #f5f2ee;
  --muted: #9a9088;
  --accent: #f0653f;
  --accent-2: #ff8a50;
  --accent-gradient: linear-gradient(135deg, #ff8a50, #e8542e);
  --accent-soft: rgb(240 101 63 / 0.12);
  --accent-text: #191007;
  --ok: #4bc98a;
  --ok-soft: rgb(75 201 138 / 0.12);
  --err: #f0776a;
  --err-soft: rgb(240 119 106 / 0.14);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 12px 32px rgb(0 0 0 / 0.35);
  --glow: 0 0 0 1px rgb(240 101 63 / 0.25), 0 8px 24px rgb(240 101 63 / 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 72px;
}

.icon { display: inline-flex; }
.icon svg { width: 1em; height: 1em; display: block; }
svg.ico { width: 24px; height: 24px; flex: none; }

.wrap { width: 100%; max-width: 640px; padding-top: 48px; }

/* ---------- header ---------- */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand .flame { color: var(--accent); display: inline-flex; }
.brand .flame svg { width: 24px; height: 24px; }
.tagline {
  text-align: center;
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 0.95rem;
}
.tagline strong { color: var(--text); font-weight: 600; }

/* ---------- card ---------- */
.card {
  background: linear-gradient(180deg, var(--bg-raised), var(--card));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* ---------- form bits ---------- */
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 20px 0 8px;
}
label:first-child { margin-top: 0; }
.hint { font-weight: 400; color: var(--muted); }

input[type=text], input[type=password], input[type=number], input[type=tel], input[type=email] {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color .15s;
}
input:focus { outline: none; border-color: var(--accent); }
input::placeholder { color: var(--muted); opacity: 0.7; }

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--bg);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-icon { display: flex; justify-content: center; margin-bottom: 10px; color: var(--muted); }
.dropzone .dz-icon svg { width: 30px; height: 30px; }
.dropzone .dz-main { font-weight: 600; }
.dropzone .dz-sub { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.dropzone input { display: none; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.dropzone.has-file .dz-icon { color: var(--ok); }
.filename { margin-top: 10px; font-size: 0.88rem; font-weight: 600; word-break: break-all; }

button.primary {
  width: 100%;
  padding: 15px;
  margin-top: 24px;
  border: none;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter .15s, transform .05s, box-shadow .15s;
}
button.primary svg { width: 19px; height: 19px; }
button.primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: var(--glow); }
button.primary:active:not(:disabled) { transform: scale(0.99); }
button.primary:disabled { opacity: 0.4; cursor: default; box-shadow: none; }

button.ghost {
  padding: 9px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color .15s;
}
button.ghost svg { width: 16px; height: 16px; }
button.ghost:hover { border-color: var(--accent); }
button.ghost.copied { border-color: var(--ok); color: var(--ok); }

/* ---------- progress / status ---------- */
.progress { height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; margin-top: 16px; display: none; }
.progress.show { display: block; }
.progress > div { height: 100%; width: 0%; background: var(--accent-gradient); transition: width .1s linear; }

.status { margin-top: 16px; font-size: 0.9rem; padding: 13px 15px; border-radius: 12px; display: none; }
.status.show { display: block; }
.status.ok   { background: var(--ok-soft);  color: var(--ok); }
.status.err  { background: var(--err-soft); color: var(--err); }
.status.warn { background: var(--accent-soft); color: var(--text); }

/* ---------- result steps ---------- */
.step {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-of-type { border-bottom: none; padding-bottom: 4px; }
.step-num {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.step-body { flex: 1; min-width: 0; }
.step-title { font-weight: 600; margin-bottom: 2px; }
.step-desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }
.step-action { display: flex; gap: 8px; align-items: center; }
.step-action .value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffcdb8;
}
.step-action .value.pin {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-align: center;
  white-space: normal;
}

.callout {
  margin-top: 20px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.callout svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }

/* ---------- how it works ---------- */
.how { display: flex; gap: 12px; margin-top: 8px; }
.how .item { flex: 1; text-align: center; }
.how .icon { display: flex; justify-content: center; margin-bottom: 8px; color: var(--accent); }
.how .icon svg { width: 26px; height: 26px; }
.how .t { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.how .t b { color: var(--text); display: block; font-size: 0.8rem; }

/* ---------- misc ---------- */
.result { display: none; }
.result.show { display: block; }
.hidden { display: none !important; }

details.adv { margin-top: 18px; }
details.adv summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.switch-link { text-align: center; margin-top: 4px; font-size: 0.88rem; color: var(--muted); }
.switch-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.switch-link a:hover { text-decoration: underline; }

footer { margin-top: 28px; text-align: center; color: var(--muted); font-size: 0.78rem; }

@media (max-width: 420px) {
  .wrap { padding-top: 28px; }
  .card { padding: 22px 18px; border-radius: 16px; }
  .how { flex-direction: column; gap: 14px; }
}

/* =====================================================================
   Marketing / multi-page additions (nav, wide layout, hero, pricing,
   account, legal prose). Appended — existing rules above are untouched.
   ===================================================================== */

.wide { max-width: 1160px; padding-top: 0; }

/* ---------- top nav (sticky, full-bleed bar) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 64px;
  background: rgb(14 12 10 / 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.nav .nav-inner {
  max-width: 1160px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav .nav-brand .flame { color: var(--accent); display: inline-flex; }
.nav .nav-brand .flame svg { width: 19px; height: 19px; }
.nav .nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
}
.nav .nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.nav .nav-links a:hover, .nav .nav-links a.active { color: var(--text); }
.nav .nav-cta {
  padding: 9px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s;
}
.nav .nav-cta:hover { border-color: var(--accent); }
@media (max-width: 720px) {
  .nav { height: auto; }
  .nav .nav-inner { flex-wrap: wrap; justify-content: center; text-align: center; padding: 12px 16px; height: auto; }
  .nav .nav-links { order: 3; width: 100%; justify-content: center; gap: 18px; }
}

/* ---------- hero ---------- */
.hero { width: 100%; max-width: 780px; margin: 64px auto 0; text-align: center; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  top: -80px; left: 50%;
  width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(240 101 63 / 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.hero h1 .shatter {
  display: inline-block;
  position: relative;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 auto 32px;
  max-width: 580px;
}
.hero .hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.hero .hero-ctas .btn-primary,
.hero .hero-ctas .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: filter .15s, border-color .15s, box-shadow .15s;
}
.hero .hero-ctas .btn-primary { background: var(--accent-gradient); color: var(--accent-text); }
.hero .hero-ctas .btn-primary:hover { filter: brightness(1.08); box-shadow: var(--glow); }
.hero .hero-ctas .btn-secondary {
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  background: var(--card);
}
.hero .hero-ctas .btn-secondary:hover { border-color: var(--accent); }

/* ---------- generic marketing sections ---------- */
.section { width: 100%; max-width: 1160px; margin: 112px auto 0; padding: 0 4px; }
.section.narrow { max-width: 720px; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; text-align: center; margin: 0 0 10px; }
.section .section-sub { text-align: center; color: var(--muted); margin: 0 0 44px; font-size: 1.02rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature-card {
  background: linear-gradient(180deg, var(--bg-raised), var(--card));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.feature-card .f-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card .f-icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.feature-card p { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.price-card {
  background: linear-gradient(180deg, var(--bg-raised), var(--card));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--glow); }
.price-card .price-tier { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.price-card .price-amount { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.price-card .price-amount span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.price-card .price-quota { color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; }
.price-card ul.price-features { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.price-card ul.price-features li {
  font-size: 0.87rem;
  padding: 7px 0 7px 22px;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.price-card ul.price-features li:last-child { border-bottom: none; }
.price-card ul.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price-card .price-footnote { font-size: 0.76rem; color: var(--muted); margin-top: 10px; }
.price-card button.primary { margin-top: 0; }

.enterprise-strip {
  margin-top: 22px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  font-size: 0.9rem;
  text-align: center;
}

.pricing-teaser .pricing-grid { margin-bottom: 6px; }
.teaser-link { text-align: center; margin-top: 24px; }
.teaser-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.teaser-link a:hover { text-decoration: underline; }

/* ---------- account ---------- */
.usage-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; margin: 10px 0 4px; }
.usage-bar > div { height: 100%; background: var(--accent-gradient); }
.kv-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--muted); }
.kv-row .v { font-weight: 600; }

/* ---------- notify block (send.html) ---------- */
.notify-card { margin-top: 4px; }
.notify-card .radio-row { display: flex; gap: 18px; margin: 10px 0 4px; }
.notify-card .radio-row label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 500; margin: 0; }
.notify-card .radio-row input[type=radio] { accent-color: var(--accent); }
.notify-result { margin-top: 14px; font-size: 0.85rem; }
.notify-result .nr-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.notify-result .nr-row:last-child { border-bottom: none; }
.notify-result .nr-ok { color: var(--ok); font-weight: 600; }
.notify-result .nr-err { color: var(--err); font-weight: 600; }

/* ---------- legal / prose ---------- */
.prose { width: 100%; max-width: 720px; margin: 0 auto; padding-top: 48px; }
.prose h1 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 800; }
.prose .updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 28px; }
.prose h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.prose p { margin: 0 0 14px; color: var(--text); }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose .placeholder { color: var(--accent); font-weight: 600; }
.prose a { color: var(--accent); }

/* ---------- footer (shared, all pages) ---------- */
.footer-legal { margin: 10px 0 4px; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); text-decoration: underline; }
.footer-copy { margin: 0; }

@media (max-width: 480px) {
  .section { margin-top: 72px; }
  .hero { margin-top: 40px; }
}

/* ---------- brand lockup: "SecureSend by JADApps" ---------- */
.nav .nav-brand .nav-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  align-self: flex-end;
  margin-bottom: 2px;
  white-space: nowrap;
}
.brand .brand-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  align-self: flex-end;
  margin-bottom: 4px;
  white-space: nowrap;
}
