/* Hasmord marketing site — shared styles.
   On-brand with app.hasmord.com: Plus Jakarta Sans, dark hero, blue gradient accent. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --border: #e2e8f0;
  /* Brand palette derived from the Hasmord logo:
     cyan "Has" (#16b8dd) + navy "mord" (#0a3b7c). */
  --accent: #0a3b7c;      /* navy — primary buttons, links, eyebrow (strong contrast) */
  --accent-2: #16b8dd;    /* cyan — bright highlight */
  --accent-grad: linear-gradient(135deg, #16b8dd 0%, #0a3b7c 100%);
  --dark: #0b1220;
  --dark-2: #111a2e;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --maxw: 1140px;
  --font: "Plus Jakarta Sans", -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);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 12px;
}
.muted { color: var(--ink-muted); }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(10, 59, 124, 0.5); }
.btn-primary:hover { background: #0c4691; }
/* Cyan alternate button — used where a section already sits on navy or
   needs the brighter brand color instead. */
.btn-cyan { background: var(--accent-2); color: #062a56; }
.btn-cyan:hover { background: #2ec6e8; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost.on-light { color: var(--ink); border-color: var(--border); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav { height: 92px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.nav-brand img { height: 64px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.nav-links a:hover { color: var(--accent-2); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
/* Compact buttons in the nav so they don't overpower the logo. */
.nav-cta .btn { padding: 9px 16px; font-size: 0.88rem; border-radius: 8px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* ---- Hero ---- */
.hero {
  background: radial-gradient(1200px 500px at 70% -10%, rgba(14,165,233,0.18), transparent 60%), var(--dark);
  color: #fff;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero .eyebrow { color: var(--accent-2); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: 1.2rem; color: #cbd5e1; max-width: 52ch; margin-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: #94a3b8; font-size: 0.86rem; font-weight: 600; }
.hero-trust b { color: #fff; }
.hero-card {
  background: linear-gradient(180deg, var(--dark-2), #0c1424);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.hero-card h3 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: #93c5fd; }
.score-ring {
  display: flex; align-items: center; gap: 16px; margin: 14px 0 18px;
}
.score-num { font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; }
.score-num small { font-size: 1rem; color: #94a3b8; font-weight: 600; }
.dim-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-top: 1px solid rgba(148,163,184,0.14); font-size: 0.86rem; color: #cbd5e1; }
.dim-bar { flex: 1; height: 6px; margin: 0 12px; border-radius: 999px; background: rgba(148,163,184,0.2); overflow: hidden; }
.dim-bar i { display: block; height: 100%; background: var(--accent-2); }

/* ---- Sections ---- */
section.band { padding: 76px 0; }
section.band.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--ink-muted); }

/* logos strip */
.logos { display: flex; gap: 34px; flex-wrap: wrap; justify-content: center; align-items: center; opacity: 0.75; }
.logos span { font-weight: 700; color: var(--ink-muted); }

/* feature grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(22,184,221,0.12); border: 1px solid rgba(22,184,221,0.28); margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 24px 22px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 999px; background: var(--accent-2); color: #062a56; font-weight: 800; display: grid; place-items: center; font-size: 0.9rem; }
.step h3 { margin: 8px 0; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* use-case list */
.usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.usecase { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.usecase .k { font-weight: 800; color: var(--accent); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.usecase p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.94rem; }

/* comparison table */
.cmp-table { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.cmp-table th { background: var(--bg-alt); font-weight: 800; }
.cmp-table td.yes { color: var(--success); font-weight: 700; }
.cmp-table td.no { color: var(--ink-muted); }
.cmp-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* pricing */
.billing-toggle { display: inline-flex; align-items: center; gap: 12px; margin: 0 auto 34px; padding: 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.billing-toggle button { border: 0; background: transparent; font-family: inherit; font-weight: 700; font-size: 0.9rem; color: var(--ink-muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all 0.15s ease; }
.billing-toggle button.active { background: var(--accent); color: #fff; }
.billing-save { font-size: 0.8rem; font-weight: 700; color: var(--accent-2); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.tier .price .annual { display: none; }
.tiers.annual .tier .price .monthly { display: none; }
.tiers.annual .tier .price .annual { display: inline; }
.tier .price-note { font-size: 0.78rem; color: var(--accent-2); font-weight: 700; min-height: 1.1em; margin: 0 0 4px; }
.tier { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--bg); }
.tier.popular { border-color: var(--accent-2); box-shadow: 0 20px 40px -20px rgba(22,184,221,0.4); position: relative; }
.tier.popular::after { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-2); color: #062a56; font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.tier .price { font-size: 2.4rem; font-weight: 800; margin: 8px 0 2px; }
.tier .price small { font-size: 0.95rem; color: var(--ink-muted); font-weight: 600; }
.tier ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.tier li { padding-left: 26px; position: relative; color: var(--ink-soft); font-size: 0.93rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); margin: 0 0 16px; }

/* trust cues block */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item { padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.trust-item h3 { font-size: 1rem; }
.trust-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.trust-item a { font-weight: 700; }

/* CTA band */
.cta-band { background: radial-gradient(900px 400px at 30% 0%, rgba(14,165,233,0.2), transparent 60%), var(--dark); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbd5e1; font-size: 1.1rem; max-width: 48ch; margin: 0 auto 26px; }

/* footer */
.site-footer { background: var(--dark-2); color: #cbd5e1; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; margin-bottom: 34px; }
.footer-grid h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; }
.footer-grid a { color: #94a3b8; display: block; margin-bottom: 9px; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(148,163,184,0.16); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #94a3b8; }

/* prose (support pages) */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; color: var(--ink-soft); }
.page-hero { background: var(--bg-alt); padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: none; }

/* responsive */
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .steps, .tiers, .trust-grid { grid-template-columns: 1fr; }
  .grid-2, .usecases { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 14px; }
}
