/* ============================================
   SamAi — shared stylesheet
   ============================================ */

:root {
  --navy-900: #0b2148;
  --navy-800: #102a5c;
  --blue-600: #2454c9;
  --blue-500: #2f5fdb;
  --blue-100: #e8eefd;
  --blue-050: #f3f6fe;
  --ink: #17233f;
  --ink-soft: #4a5878;
  --line: #dde4f5;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 2px 18px rgba(16, 42, 92, 0.07);
  --max-w: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; color: var(--navy-900); letter-spacing: -0.01em; }

p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-600); }
.btn-outline {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-light {
  background: var(--blue-100);
  color: var(--navy-900);
}
.btn-light:hover { background: var(--blue-050); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.brand-mark {
  width: 180px;
  height: 80px;
  border-radius: 10px;
  /* background: var(--blue-100); */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-600);
}
.main-nav a:hover { background: var(--blue-050); }
.main-nav a.active {
  background: var(--navy-900);
  color: var(--white);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.auth-links { display: flex; align-items: center; gap: 10px; }
.auth-link { font-weight: 600; font-size: 0.95rem; color: var(--navy-900); padding: 9px 4px; }
.auth-link:hover { color: var(--blue-600); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Page hero (light banner used on inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--blue-100) 0%, #ffffff 100%);
  padding: 72px 0 60px;
  text-align: center;
}
.page-hero h1 { font-size: 2.6rem; margin-bottom: 16px; }
.page-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Section spacing ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2.1rem; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }
.eyebrow-pill {
  display: inline-block;
  background: var(--navy-900);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  padding: 0;
}
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-icon::before { width: 11px; height: 1.6px; }
.faq-icon::after { width: 1.6px; height: 11px; }
.faq-item.open .faq-icon::after { opacity: 0; transform: rotate(90deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p {
  padding-top: 14px;
  color: var(--ink-soft);
  max-width: 640px;
}

.faq-cta {
  margin-top: 56px;
  background: var(--blue-050);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}
.faq-cta-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.faq-cta-avatars span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-left: -12px;
  display: inline-block;
}
.faq-cta-avatars span:first-child { margin-left: 0; }
.faq-cta h3 { font-size: 1.4rem; margin-bottom: 8px; }
.faq-cta p { color: var(--ink-soft); margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #c7d2ec;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.12); }
.footer-brand p { color: #a7b4d6; font-size: 0.92rem; max-width: 300px; }
.footer-brand p b { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }
.footer-col a {
  display: block;
  color: #a7b4d6;
  font-size: 0.92rem;
  padding: 6px 0;
}
.footer-col a:hover { color: var(--white); }
.social-row { display: flex; gap: 10px; margin-bottom: 20px; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.95rem;
}
.footer-col .email-label { font-size: 0.85rem; color: #8b98bd; margin-bottom: 4px; }
.footer-col .email { color: var(--white); font-weight: 600; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: #8b98bd;
}

/* ---------- Home: Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #eef1ff 0%, #ffffff 55%);
  padding: 76px 0 60px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero h1 { font-size: 3rem; line-height: 1.12; margin-bottom: 20px; }
.hero-lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 460px; margin-bottom: 30px; }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-shape-outline {
  position: absolute;
  width: 300px;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}
.hero-shape-filled {
  position: absolute;
  width: 300px;
  left: 40%;
  top: 45%;
  transform: translate(-25%, -50%);
  opacity: 0.95;
}

.hero-portrait {
  position: relative;
  z-index: 2;
  width: 250px;
  height: 250px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffb648, #ff8a3d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: 0 30px 60px rgba(11,33,72,0.18);
}
/* .hero-icon-circles { position: absolute; top: 6px; right: 0; width: 40px; }
.hero-icon-zigzag { position: absolute; left: 210px; top: 30px; width: 60px; }
.hero-icon-play { position: absolute; left: 30px; bottom: 90px; width: 42px; }
.hero-icon-plus { position: absolute; right: 30px; bottom: 40px; width: 26px; } */

.hero-icon-circles { position: absolute; top: 6px; right: 0; width: 40px; }
.hero-icon-zigzag { position: absolute; left: 30px; top: 30px; width: 60px; }
.hero-icon-play { position: absolute; left: 30px; bottom: 30px; width: 42px; }
.hero-icon-plus { position: absolute; right: 30px; bottom: 40px; width: 26px; }


.logo-strip {
  background: var(--blue-050);
  padding: 30px 0;
  position: relative;
}
.logo-strip .eyebrow-pill {
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 12px;
}
.logo-row span {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 1.05rem;
  opacity: 0.7;
}

.tabs-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}
.tabs-row button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.tabs-row button.active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.tab-copy { max-width: 700px; margin: 0 auto; text-align: center; color: var(--ink-soft); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }
.feature-copy h3 { font-size: 1.7rem; margin-bottom: 14px; }
.feature-copy h3 .accent { color: var(--blue-600); }
.feature-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy-900); font-size: 0.95rem; }
.check-list li::before {
  content: "✓";
  width: 20px; height: 20px;
  background: var(--blue-500);
  color: #fff;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.event-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.event-photo {
  height: 190px;
  background: linear-gradient(140deg, var(--blue-500), var(--navy-900));
  position: relative;
}
.event-photo span {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--navy-900); color: #fff;
  font-size: 0.85rem; padding: 6px 14px; border-radius: 6px;
}
.event-body { padding: 14px 16px; display: flex; justify-content: flex-end; }
.event-body a { font-weight: 700; font-size: 0.9rem; color: var(--navy-900); }
.events-link { text-align: center; margin-top: 26px; }
.events-link a { font-weight: 700; text-decoration: underline; color: var(--navy-900); }

.diff-band {
  background: linear-gradient(120deg, var(--blue-100), var(--blue-050));
}
.diff-band .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.diff-band h2 { font-size: 1.9rem; margin-bottom: 14px; }
.diff-band p { color: var(--ink-soft); }
.diff-graphic {
  height: 130px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.culture-card { text-align: center; }
.culture-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.culture-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.culture-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 20px; }

.join-band { display: grid; grid-template-columns: 1fr 1.4fr; border-radius: var(--radius-lg); overflow: hidden; }
.join-left {
  background: linear-gradient(150deg, var(--navy-900), var(--blue-600));
  color: #fff;
  padding: 44px 34px;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
}
.join-right {
  background: var(--blue-050);
  padding: 44px 40px;
  display: grid;
  gap: 18px;
}
.join-right h4 { font-size: 1.05rem; margin-bottom: 6px; }
.join-right p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Project page ---------- */
.project-intro h2 { font-size: 1.9rem; margin-bottom: 14px; }
.project-intro p { color: var(--ink-soft); max-width: 680px; margin-bottom: 44px; }
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.project-thumb {
  position: relative;
  height: 210px;
  background: linear-gradient(150deg, var(--navy-900), #1b3f8f);
  overflow: hidden;
}
.project-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.project-num {
  position: absolute; top: 16px; left: 18px;
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
}
.det-box {
  position: absolute;
  left: 50%; top: 56%;
  width: 150px; height: 104px;
  transform: translate(-50%, -50%);
  border: 2px solid #4ade80;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  background: rgba(74, 222, 128, 0.08);
}
.det-box.alert { border-color: #f87171; background: rgba(248, 113, 113, 0.1); }
.det-label {
  position: absolute;
  left: -2px; top: -26px;
  background: #4ade80; color: #06260f;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 4px 8px; border-radius: 4px 4px 4px 0;
  white-space: nowrap;
}
.det-box.alert .det-label { background: #f87171; color: #2c0606; }
.live-tag {
  position: absolute; top: 14px; right: 16px;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.14);
  padding: 4px 10px; border-radius: 999px;
}
.live-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f87171; }
.project-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project-cat {
  align-self: flex-start;
  background: var(--blue-100); color: var(--blue-600);
  font-size: 0.78rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 14px;
  margin-top: 10px;
  margin-left: 10px;
}
.project-body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.project-body p.desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }
.project-detects-title {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--navy-900); margin-bottom: 10px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-row span {
  border: 1px solid var(--line);
  background: var(--blue-050);
  color: var(--navy-900);
  font-size: 0.82rem; font-weight: 600;
  padding: 6px 12px; border-radius: 8px;
}
.project-usecases { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 22px; }
.project-usecases b { color: var(--navy-900); }
.project-body .btn { margin-top: auto; align-self: flex-start; }
.project-cta {
  margin-top: 56px;
  background: var(--blue-050);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
}
.project-cta h3 { font-size: 1.5rem; margin-bottom: 10px; }
.project-cta p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 22px; }

/* ---------- About page ---------- */
.about-intro h2 { font-size: 2rem; margin-bottom: 18px; }
.about-intro p { color: var(--ink-soft); max-width: 760px; margin-bottom: 48px; }
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.timeline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.timeline-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.timeline-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-500); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.timeline-date {
  background: var(--blue-100); color: var(--navy-900);
  padding: 9px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 700;
}
.timeline-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.timeline-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Team page ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.team-photo {
  height: 220px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 800; color: #fff;
}
.team-card h4 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card .role { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }
.team-socials { display: flex; gap: 10px; }
.team-socials span {
  width: 32px; height: 32px; border-radius: 8px; background: var(--blue-050);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--navy-900);
}

/* ---------- Story page ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.story-item { padding: 34px 40px; border-bottom: 1px solid var(--line); }
.story-grid .story-item:nth-child(odd) { border-right: 1px solid var(--line); }
.story-num-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.story-num { font-size: 2.6rem; font-weight: 800; color: var(--navy-900); }
.story-item h3 { font-size: 1.3rem; }
.story-item p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Career page ---------- */
.job-group { margin-bottom: 50px; }
.job-group h3 { font-size: 1.35rem; margin-bottom: 24px; }
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.job-card { padding: 30px 26px; border-bottom: 1px solid var(--line); }
.job-grid .job-card:not(:last-child) { border-right: 1px solid var(--line); }
.job-icon {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1.5px solid var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 18px;
}
.job-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.job-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 20px; }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 56px;
}
.contact-info .brand { margin-bottom: 22px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: var(--navy-900); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--blue-500);
  border-radius: 8px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.phone-field { display: flex; gap: 8px; }
.phone-field select { max-width: 90px; }
.field { margin-bottom: 18px; }
.consent-row { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 0.92rem; }
.consent-row a { font-weight: 700; text-decoration: underline; }

/* ---------- Auth (login / signup) ---------- */
.auth-section {
  padding: 64px 0 100px;
  display: flex;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 44px 40px;
}
.auth-card .brand { justify-content: center; margin-bottom: 26px; }
.auth-card h1 { font-size: 1.7rem; text-align: center; margin-bottom: 8px; }
.auth-card .auth-sub { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 30px; }
.auth-error {
  display: none;
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f6cdc8;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.auth-error.show { display: block; }
.password-field { position: relative; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 6px;
}
.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.auth-row-between a { font-weight: 700; color: var(--blue-600); }
.auth-remember { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.auth-switch { text-align: center; margin-top: 24px; font-size: 0.92rem; color: var(--ink-soft); }
.auth-switch a { font-weight: 700; color: var(--navy-900); text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--ink-soft); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.field input.input-invalid, .field textarea.input-invalid {
  border-color: #c0392b;
}
.field-error {
  color: #c0392b;
  font-size: 0.84rem;
  margin: 6px 0 0;
}
.password-rules {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.password-rules li { display: flex; align-items: center; gap: 8px; }
.password-rules li::before {
  content: "○";
  color: var(--ink-soft);
  font-size: 0.7rem;
}
.password-rules li.met { color: #1d8a4b; }
.password-rules li.met::before { content: "●"; color: #1d8a4b; }

/* ---------- Investors page ---------- */
.tbd { color: #b45309; background: #fff4d6; border-radius: 6px; padding: 2px 8px; font-size: 0.85em; font-weight: 600; white-space: nowrap; }
.inv-alt { background: var(--blue-050); }
.inv-download {
  display: flex; align-items: center; gap: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 32px; box-shadow: var(--shadow-card); background: #fff;
}
.inv-download-icon {
  flex-shrink: 0; width: 64px; height: 76px; border-radius: 10px;
  background: var(--navy-900); color: #fff; font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.inv-download-copy { flex: 1; }
.inv-download-copy h2 { font-size: 1.35rem; margin-bottom: 4px; }
.inv-download-copy p { color: var(--ink-soft); font-size: 0.95rem; }
.inv-two { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 48px; align-items: start; }
.inv-h { font-size: 1.8rem; margin-bottom: 16px; }
.inv-p { color: var(--ink-soft); margin-bottom: 14px; }
.inv-facts { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 24px; }
.inv-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.inv-facts div:last-child { border-bottom: none; }
.inv-facts span { color: var(--ink-soft); }
.inv-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inv-products div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.inv-products b { color: var(--navy-900); font-size: 1.02rem; }
.inv-products span { color: var(--ink-soft); font-size: 0.9rem; }
.inv-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.inv-num { font-size: 2.2rem; font-weight: 800; color: var(--blue-600); margin-bottom: 8px; }
.inv-why h3 { font-size: 1.15rem; margin-bottom: 8px; }
.inv-why p { color: var(--ink-soft); font-size: 0.95rem; }
.inv-metrics, .inv-round { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.inv-metrics div, .inv-round div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px 20px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.inv-metrics b, .inv-round b { font-size: 1rem; }
.inv-metrics span, .inv-round span { color: var(--ink-soft); font-size: 0.88rem; }
.inv-note { max-width: 720px; margin: 28px auto 0; text-align: center; color: var(--ink-soft); font-size: 0.85rem; }
.inv-form { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .wrap, .feature-row, .story-grid, .contact-layout, .diff-band .wrap { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-media { order: initial; }
  .project-grid, .team-grid, .culture-grid, .events-grid { grid-template-columns: 1fr 1fr; }
  .job-grid { grid-template-columns: 1fr 1fr; }
  .job-grid .job-card:nth-child(2n) { border-right: none; }
  .story-grid .story-item { border-right: none !important; }
  .join-band { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .main-nav, .header-actions .btn, .auth-links { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .main-nav {
    display: flex; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 24px 20px; border-bottom: 1px solid var(--line);
  }
  .site-header.open .header-actions .btn,
  .site-header.open .header-actions .auth-links { display: inline-flex; }
  .site-header.open .header-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .site-header.open .auth-links { flex-direction: column; align-items: stretch; }
  .page-hero h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .team-grid, .culture-grid, .events-grid, .job-grid, .project-grid, .timeline-grid { grid-template-columns: 1fr; }
  .job-grid .job-card { border-right: none !important; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

@media (max-width: 980px) {
  .inv-two, .inv-why { grid-template-columns: 1fr; }
  .inv-products { grid-template-columns: 1fr 1fr; }
  .inv-metrics, .inv-round { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .inv-download { flex-direction: column; align-items: flex-start; }
  .inv-products, .inv-metrics, .inv-round { grid-template-columns: 1fr; }
  .inv-form { padding: 22px; }
}

/* ---------- Pricing page ---------- */
.main-nav a { padding: 9px 9px; font-size: 0.92rem; white-space: nowrap; }
.site-header .btn { padding: 11px 18px; }
.header-actions { gap: 8px; }
.auth-links { gap: 6px; }
.auth-link { white-space: nowrap; }
.billing-toggle {
  display: inline-flex; margin-top: 28px; padding: 4px;
  background: var(--blue-100); border-radius: 999px;
}
.billing-toggle button {
  border: none; background: none; padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: var(--navy-900);
  display: inline-flex; align-items: center; gap: 8px;
}
.billing-toggle button.active { background: var(--navy-900); color: #fff; }
.save-pill { background: #dcf5e5; color: #14663a; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.price-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.price-jump a {
  background: #fff; border: 1px solid var(--line); color: var(--navy-900);
  font-size: 0.9rem; font-weight: 600; padding: 8px 16px; border-radius: 999px;
}
.price-jump a:hover { border-color: var(--blue-500); color: var(--blue-600); }

.price-section { padding: 76px 0 70px; scroll-margin-top: 78px; }
.price-alt { background: #f5f7fd; }
.price-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.price-head h2 { font-size: 2.1rem; margin-bottom: 10px; }
.price-head p { color: var(--ink-soft); }
.price-head .price-trial { margin-top: 12px; font-size: 0.95rem; }
.price-trial a { color: var(--blue-600); font-weight: 700; text-decoration: underline; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: stretch; max-width: 1060px; margin: 0 auto; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px;
  padding: 44px 40px 40px;
  box-shadow: 0 14px 44px rgba(16, 42, 92, 0.08);
}
.price-card h3 { text-align: center; font-size: 1.2rem; font-weight: 700; margin-bottom: 22px; }
.price-amount { display: flex; justify-content: center; align-items: baseline; gap: 3px; color: var(--navy-900); }
.price-amount .cur { font-size: 1.6rem; font-weight: 800; }
.price-amount .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.price-unit { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin: 6px 0 30px; min-height: 2.6em; }
.price-list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 16px; color: var(--ink-soft); font-size: 0.97rem; }
.price-list li { display: flex; align-items: flex-start; gap: 16px; }
.price-list li::before {
  content: ""; flex-shrink: 0; width: 9px; height: 9px; margin-top: 8px;
  border-radius: 50%; background: #a9afc6;
}
.price-btn {
  margin-top: auto; align-self: center; min-width: 62%; text-align: center;
  background: #eceef6; color: var(--navy-900); font-weight: 600; font-size: 0.97rem;
  padding: 14px 24px; border-radius: 6px; transition: background 0.15s ease;
}
.price-btn:hover { background: #dfe3f1; }
.price-card.featured {
  background: linear-gradient(180deg, #74b6f2 0%, #4a6fe3 48%, #2a38d0 100%);
  box-shadow: 0 22px 54px rgba(42, 56, 208, 0.28);
}
.price-card.featured h3, .price-card.featured .price-amount { color: #fff; }
.price-card.featured .price-unit { color: rgba(255,255,255,0.82); }
.price-card.featured .price-list { color: #fff; }
.price-card.featured .price-list li::before { background: #fff; }
.price-card.featured .price-btn { background: #fff; color: var(--navy-900); }
.price-card.featured .price-btn:hover { background: #eef2ff; }
.price-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.2); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.price-custom { text-align: center; margin-top: 34px; color: var(--ink-soft); font-size: 0.95rem; }
.price-custom a { color: var(--blue-600); font-weight: 700; text-decoration: underline; }

.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.addon { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.addon h3 { font-size: 1.05rem; }
.addon p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.addon a { font-weight: 700; color: var(--blue-600); text-decoration: underline; font-size: 0.92rem; }
.faq-group { font-size: 1.05rem; margin: 34px 0 0; color: var(--blue-600); }
.faq-group:first-child { margin-top: 0; }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; } .price-unit { min-height: 0; } }
@media (max-width: 760px) { .addon-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .price-card { padding: 40px 26px 34px; } .price-head h2 { font-size: 1.7rem; } }

/* ---------- Integrations pages ---------- */
.int-alt { background: #f5f7fd; }
.int-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; max-width: 1000px; margin: 0 auto; }
.int-step .num, .step-list .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy-900); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.int-step .num { margin-bottom: 14px; }
.int-step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.int-step p { color: var(--ink-soft); font-size: 0.95rem; }

.int-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 78px; }
.int-row:first-of-type { border-top: none; padding-top: 24px; }
.int-row.flip .int-copy { order: 2; }
.int-ico {
  display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-100);
  align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.int-copy h3 { font-size: 1.7rem; margin: 14px 0 10px; }
.int-copy > p { color: var(--ink-soft); margin-bottom: 20px; }
.int-attrs { margin: 0 0 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.int-attrs > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.int-attrs > div:first-child { border-top: none; }
.int-attrs dt { font-weight: 700; color: var(--navy-900); }
.int-attrs dd { margin: 0; color: var(--ink-soft); }

.int-flow { display: flex; align-items: center; gap: 10px; background: var(--blue-050); border-radius: 22px; padding: 34px 22px; }
.int-alt .int-flow { background: #fff; }
.flow-node {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 10px;
}
.int-alt .flow-node { background: var(--blue-050); }
.flow-node.accent, .int-alt .flow-node.accent { background: linear-gradient(160deg, var(--navy-900), #2a38d0); border: none; }
.flow-ico { font-size: 1.8rem; }
.flow-node b { font-size: 0.92rem; color: var(--navy-900); }
.flow-node small { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.35; }
.flow-node.accent b { color: #fff; }
.flow-node.accent small { color: rgba(255,255,255,0.8); }
.flow-arrow { flex-shrink: 0; }
.flow-arrow::before { content: "\2192"; color: var(--blue-600); font-weight: 800; font-size: 1.3rem; }

.dash-frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #1c2740; box-shadow: 0 24px 60px rgba(11, 33, 72, 0.22); background: #0d1220; }
.dash-frame img { display: block; width: 100%; height: auto; }
.dash-marker {
  position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-500); color: #fff; font-size: 0.8rem; font-weight: 800; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.dash-legend { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 32px; }
.dash-legend li { display: flex; gap: 14px; align-items: flex-start; }
.dash-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue-500); color: #fff; font-size: 0.82rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-legend b { display: block; color: var(--navy-900); margin-bottom: 2px; }
.dash-legend p { color: var(--ink-soft); font-size: 0.9rem; }
.dash-cta { text-align: center; margin-top: 36px; }

.int-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.int-three > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; }
section:not(.int-alt) .int-three > div { background: var(--blue-050); border-color: transparent; }
.int-three h3 { font-size: 1.1rem; margin-bottom: 6px; }
.int-three p { color: var(--ink-soft); font-size: 0.93rem; }
.int-brands { text-align: center; margin-top: 26px; color: var(--ink-soft); font-size: 0.95rem; }

.int-back { display: inline-block; margin-bottom: 18px; color: var(--blue-600); font-weight: 600; font-size: 0.95rem; }
.int-back:hover { text-decoration: underline; }
.detail-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.detail-grid.single { grid-template-columns: 1fr 1fr; align-items: center; }
.step-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 28px; }
.step-list li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; }
.step-list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step-list p { color: var(--ink-soft); font-size: 0.95rem; }

.alert-mock { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden; }
.alert-top { background: var(--navy-900); color: #fff; font-size: 0.85rem; font-weight: 600; padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }
.alert-body { display: flex; align-items: center; gap: 16px; padding: 22px 18px; }
.alert-bar { width: 4px; align-self: stretch; border-radius: 4px; background: #f87171; flex-shrink: 0; }
.alert-body > div { flex: 1; min-width: 0; }
.alert-body b { color: var(--navy-900); font-size: 1.05rem; }
.alert-body p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 2px; }
.alert-body .meta { font-size: 0.82rem; }
.alert-btn { background: var(--blue-100); color: var(--blue-600); font-weight: 700; font-size: 0.85rem; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
.alert-mock figcaption { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.8rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.spec-card h3 { font-size: 1.2rem; margin-bottom: 18px; }
.spec-card .check-list { gap: 14px; }
.spec-card .check-list li { align-items: flex-start; font-weight: 500; color: var(--ink); }
.spec-card .check-list li::before { margin-top: 2px; }
.note-box { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-500); border-radius: 10px; padding: 18px 22px; }
.note-box b { color: var(--navy-900); }
.note-box p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 4px; }
.int-more-title { font-size: 1.2rem; margin: 52px 0 18px; text-align: center; }
.int-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.int-more { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; background: #fff; }
.int-more:hover { border-color: var(--blue-500); }
.int-more b { color: var(--navy-900); }
.int-more p { color: var(--ink-soft); font-size: 0.86rem; }

@media (max-width: 980px) {
  .int-row, .detail-grid, .detail-grid.single, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .int-row.flip .int-copy { order: 0; }
  .int-steps, .int-three, .int-more-grid { grid-template-columns: 1fr; }
  .dash-legend { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .int-flow { flex-direction: column; padding: 24px 18px; }
  .flow-node { width: 100%; }
  .flow-arrow::before { content: "\2193"; }
  .dash-legend { grid-template-columns: 1fr; }
  .dash-marker { width: 20px; height: 20px; font-size: 0.68rem; border-width: 1.5px; }
  .int-attrs > div { grid-template-columns: 1fr; gap: 2px; }
  .alert-body { flex-wrap: wrap; }
}

.dash-cta .btn { white-space: normal; text-align: center; }

/* Collapse the nav into the hamburger menu before it gets cramped */
@media (max-width: 1160px) {
  .main-nav, .header-actions .btn, .auth-links { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .main-nav {
    display: flex; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 24px 20px; border-bottom: 1px solid var(--line);
  }
  .site-header.open .header-actions .btn,
  .site-header.open .header-actions .auth-links { display: inline-flex; }
  .site-header.open .header-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .site-header.open .auth-links { flex-direction: column; align-items: stretch; }
}

/* ---------- Dashboard + auth notices ---------- */
.auth-info{display:none;background:#eef4ff;border:1px solid #c9dbff;color:#1f3d99;border-radius:10px;padding:10px 14px;font-size:.92rem;margin-bottom:14px}
.auth-info.show{display:block}
.dash-section{padding:56px 0 80px;background:#f7f9ff}
.dash-section[hidden]{display:none}
.dash-title{font-size:clamp(1.8rem,4vw,2.4rem);margin:0 0 6px}
.dash-sub{color:#5b6478;margin:0 0 28px}
.dash-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.dash-card{background:#fff;border:1px solid #e3e8f5;border-radius:16px;padding:22px}
.dash-card h3{margin:0 0 14px;font-size:1.05rem}
.dash-dl{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:0}
.dash-dl dt{color:#6b7488;font-size:.88rem}
.dash-dl dd{margin:0;font-weight:600;word-break:break-word}
.dash-pill{display:inline-block;background:#e4f8ec;color:#137a3c;border-radius:999px;padding:2px 10px;font-size:.85rem}
.dash-note{color:#6b7488;font-size:.85rem;margin:14px 0 0}
.dash-links{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.dash-links a{color:#2a38d0;font-weight:600}
.dash-actions{margin-top:28px}

.dash-loading{padding:80px 20px;text-align:center;color:#5b6478}
.dash-loading[hidden]{display:none}

/* ---------- License keys ---------- */
.lic-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:44px 0 16px;flex-wrap:wrap}
.lic-head h2{margin:0;font-size:1.5rem}
.lic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px}
.lic-card{background:#fff;border:1px solid #e3e8f5;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px}
.lic-card h3{margin:0;font-size:1.02rem}
.lic-hint{background:#f3f5fb;border-radius:8px;padding:6px 10px;font-size:.85rem;word-break:break-all}
.lic-pill{align-self:flex-start;border-radius:999px;padding:2px 10px;font-size:.82rem;font-weight:600}
.lic-active{background:#e4f8ec;color:#137a3c}
.lic-expiring{background:#fff3d6;color:#8a5a00}
.lic-expired{background:#fde4e4;color:#a12020}
.lic-revoked{background:#eceef3;color:#555d70}
.lic-none{background:#eef1fb;color:#4a5578}
.lic-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:6px}
.lic-actions .btn,.lic-card>.btn{padding:9px 14px;font-size:.9rem}
.lic-newkey{background:#eef4ff;border:1px solid #c9dbff;border-radius:14px;padding:18px;margin-bottom:20px}
.lic-newkey[hidden],.lic-setup[hidden]{display:none}
.lic-newkey p{margin:4px 0 12px;color:#4a5578;font-size:.92rem}
.lic-keyrow{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.lic-keyrow code{background:#fff;border:1px solid #c9dbff;border-radius:8px;padding:10px 14px;font-size:1.05rem;letter-spacing:.04em;word-break:break-all}
.lic-setup{background:#fff8e6;border:1px solid #f0d78a;border-radius:12px;padding:14px 16px;color:#6b5200;margin-bottom:16px}

/* footer: never wider than the screen on small phones */
.footer-grid > * { min-width: 0; }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Legal pages ---------- */
.legal{padding:48px 0 80px;background:#fff}
.legal-wrap{display:grid;grid-template-columns:260px minmax(0,1fr);gap:48px;align-items:start}
.legal-toc{position:sticky;top:96px;font-size:.9rem;border-left:3px solid #e3e8f5;padding-left:16px}
.legal-toc ol{margin:10px 0 0;padding-left:18px;display:grid;gap:6px}
.legal-toc a{color:#46506a}
.legal-toc a:hover{color:#2a38d0}
.legal-body{max-width:780px}
.legal-body h1{margin:0 0 6px;font-size:clamp(1.9rem,4vw,2.5rem)}
.legal-meta{color:#6b7488;margin:0 0 20px}
.legal-sec{margin-top:30px;padding:0;scroll-margin-top:96px}
.legal-sec h2{font-size:1.25rem;margin:0 0 10px}
.legal-body p,.legal-body li{line-height:1.7;color:#2c3550}
.legal-body ul{padding-left:22px;display:grid;gap:8px}
.ph{background:#fff1bf;color:#5c4400;padding:1px 5px;border-radius:5px;font-style:normal}
.draft-banner{background:#fff8e6;border:1px solid #f0d78a;border-radius:12px;padding:14px 16px;color:#5c4400;margin:0 0 24px}
.legal-table{width:100%;border-collapse:collapse;font-size:.95rem}
.legal-table th,.legal-table td{text-align:left;padding:10px 12px;border-bottom:1px solid #e3e8f5;vertical-align:top}
.legal-table th{background:#f7f9ff}
@media (max-width:900px){.legal-wrap{grid-template-columns:1fr;gap:24px}.legal-toc{position:static}}
@media print{.legal-toc,.draft-banner{display:none}.legal-wrap{display:block}}

/* purchase panel + history */
.lic-buy{border:1px solid var(--border,#d9dce3);border-radius:12px;padding:18px;margin:0 0 18px;background:#fff}
.lic-buy h3{margin:0 0 10px}
.lic-select{display:block;margin:4px 0 12px;padding:8px 10px;border:1px solid #cfd3dc;border-radius:8px;font:inherit}
.lic-plans,.lic-modes{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin:0 0 14px}
.lic-plan,.lic-mode{display:flex;flex-direction:column;gap:2px;border:1px solid #cfd3dc;border-radius:10px;padding:12px;cursor:pointer}
.lic-plan.on{border-color:#4a3aff;box-shadow:0 0 0 2px rgba(74,58,255,.15)}
.lic-plan input,.lic-mode input{margin:0 0 6px}
.lic-price{font-weight:600}
.lic-paid{background:#eef6ff;border:1px solid #b8d6f5;border-radius:10px;padding:12px 14px;margin:0 0 14px}
.lic-ready{color:#176b3a;font-weight:600;margin:8px 0 0}
.lic-link{background:none;border:0;padding:8px 0 0;color:#4a3aff;cursor:pointer;font:inherit;text-decoration:underline}
.lic-histbox{overflow-x:auto;margin-top:6px}
.lic-hist{border-collapse:collapse;font-size:.85rem;width:100%}
.lic-hist th,.lic-hist td{text-align:left;padding:6px 8px;border-bottom:1px solid #e6e8ee;white-space:nowrap}

/* contact form extras */
.field .req{color:#d33}
.field .opt{font-weight:400;color:var(--ink-soft,#5a6478)}
.radio-row{display:flex;flex-wrap:wrap;gap:8px 22px}
.radio-row label{display:inline-flex;align-items:center;gap:8px;font-weight:500;margin:0;cursor:pointer}
.radio-row input{width:18px;height:18px;margin:0}
.captcha-q{margin:0 0 8px;color:var(--ink-soft,#5a6478)}
.lic-actions .btn:disabled{opacity:.45;cursor:not-allowed}