/* ============================================================
   RegItOut — style.css  v3.0
   Fixes: sticky header, footer white space, text reflow,
          mobile responsiveness, zoom-level layout stability
   ============================================================ */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --navy:   #071b33;
  --navy-2: #0c294c;
  --blue:   #133d69;
  --red:    #c83d3d;
  --red-2:  #ad3030;
  --ink:    #111827;
  --muted:  #64748b;
  --line:   #e5e7eb;
  --soft:   #f5f7fb;
  --white:  #ffffff;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* clip vs hidden: clip prevents horizontal scroll WITHOUT
     creating a new scroll container, so position:sticky works */
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  /* Flex column so footer always sticks to bottom of viewport */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Segoe UI', ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

/* Main grows to fill space so footer never floats mid-page */
main { flex: 1; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout container ───────────────────────────────────────── */
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Navigation — sticky ────────────────────────────────────── */
/* sticky works because parent (html/body) uses overflow-x: clip,
   NOT overflow: hidden */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: clamp(130px, 14vw, 164px); height: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: clamp(13px, 1.15vw, 14px);
  font-weight: 700;
}
.nav-links a { color: var(--ink); white-space: nowrap; }
.nav-links a.active,
.nav-links a:hover { color: var(--red); text-decoration: none; }

/* ── Typography — fully fluid ───────────────────────────────── */
h1, h2, h3 { line-height: 1.14; margin: 0 0 14px; }
h1 {
  font-size: clamp(30px, 5.2vw, 68px);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(24px, 3.1vw, 42px);
  letter-spacing: -0.032em;
  color: var(--navy);
}
h3 {
  font-size: clamp(17px, 1.55vw, 21px);
  color: var(--navy);
}
p { margin: 0 0 16px; }

.lead {
  font-size: clamp(16px, 1.75vw, 20px);
  color: rgba(255,255,255,.86);
  max-width: 680px;
}
.sublead {
  font-size: clamp(15px, 1.55vw, 18px);
  color: var(--muted);
  max-width: 860px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(circle at 18% 12%, rgba(200,61,61,.18), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(19,61,105,.24), transparent 35%),
    linear-gradient(135deg, #071b33, #0b2748 58%, #06172e);
  color: var(--white);
  padding: clamp(52px, 7vw, 88px) 0 clamp(48px, 6.5vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.hero-challenge {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 26px;
  padding: clamp(20px, 2.5vw, 30px);
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 80px rgba(0,0,0,.20);
}
.hero-challenge .challenge-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.hero-challenge p {
  margin: 0;
  color: var(--white);
  font-size: clamp(18px, 2.4vw, 34px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -.03em;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.1vw, 13px) clamp(16px, 1.6vw, 22px);
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(13px, 1.1vw, 15px);
  border: 1px solid transparent;
  white-space: nowrap;
  /* 44px min touch target for mobile */
  min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn-primary   { background: var(--red);  color: var(--white); }
.btn-primary:hover  { background: var(--red-2); color: var(--white); }
.btn-secondary { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.24); color: var(--white); }
.btn-light     { background: var(--navy); color: var(--white); }
.btn-light:hover { background: var(--blue); color: var(--white); }

/* ── Sections ───────────────────────────────────────────────── */
.section       { padding: clamp(48px, 6vw, 72px) 0; }
.section-tight { padding: clamp(36px, 4.5vw, 52px) 0; }
.section-soft  { background: var(--soft); }

.kicker {
  color: var(--red);
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}

/* ── Grids ──────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

/* ── Cards ──────────────────────────────────────────────────── */
.cards { margin-top: 30px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(18px, 2vw, 24px);
  box-shadow: 0 14px 35px rgba(17,24,39,.06);
}
.card p:last-child { margin-bottom: 0; }
.card .number {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(200,61,61,.10); color: var(--red);
  font-weight: 850; margin-bottom: 14px;
}

/* ── Check list ─────────────────────────────────────────────── */
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: clamp(14px, 1.2vw, 16px);
}
.check-list li::before {
  content: "•"; position: absolute; left: 8px;
  color: var(--red); font-weight: 900;
}
.check-list li:last-child { border-bottom: none; }

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  padding: clamp(44px, 6vw, 64px) 0 clamp(40px, 5.5vw, 58px);
}
.page-hero h1 { font-size: clamp(28px, 4.6vw, 60px); }
.page-hero p  {
  max-width: 860px;
  color: rgba(255,255,255,.84);
  font-size: clamp(15px, 1.55vw, 19px);
  margin-top: 12px;
}

/* ── Notice ─────────────────────────────────────────────────── */
.notice {
  border: 1px dashed #b8c2d1;
  background: #fbfcff;
  padding: 20px;
  border-radius: 18px;
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 15px);
}

/* ── Table-like ─────────────────────────────────────────────── */
.table-like {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 24px;
  background: var(--white);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.cell { padding: clamp(14px, 1.5vw, 18px) clamp(14px, 1.8vw, 20px); }
.cell:first-child { background: var(--soft); font-weight: 800; color: var(--navy); }

/* ── Status labels ──────────────────────────────────────────── */
.status-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(200,61,61,.10);
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-label.live {
  background: rgba(19,61,105,.10);
  color: var(--blue);
}

/* ── Pricing signal ─────────────────────────────────────────── */
.pricing-signal {
  margin: 24px 0 6px;
  padding: clamp(14px, 1.5vw, 16px) clamp(14px, 1.6vw, 18px);
  border-left: 4px solid var(--red);
  background: #fbfcff;
  color: var(--navy);
  border-radius: 14px;
  font-weight: 750;
  font-size: clamp(14px, 1.15vw, 16px);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.80);
  padding: clamp(28px, 3.5vw, 36px) 0;
  /* footer never floats because body is flex column + main flex:1 */
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.footer-left {
  max-width: 620px;
}
.footer-right {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}
.footer-logo { width: clamp(120px, 13vw, 150px); height: auto; margin-bottom: 12px; display: block; }
.footer-small {
  color: rgba(255,255,255,.56);
  font-size: 12px;
  margin-top: 16px;
}
.footer-contact {
  margin-top: 0;
  text-align: left;
  line-height: 1.9;
  font-size: clamp(14px, 1.15vw, 16px);
}
.footer-contact a {
  color: rgba(255,255,255,.84);
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
}
.small { font-size: 13px; color: var(--muted); }

/* ── About page — founder card ──────────────────────────────── */
.about-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.founder-card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: 0 14px 35px rgba(17,24,39,.06);
}

.founder-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2.2vw, 22px);
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.founder-photo {
  width: clamp(80px, 9vw, 116px);
  height: clamp(80px, 9vw, 116px);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 10px 28px rgba(17,24,39,.14);
  flex: 0 0 auto;
  display: block;
}

.founder-meta { min-width: 0; }
.founder-meta h2 {
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  color: var(--navy);
  overflow-wrap: break-word;
  word-break: normal;
}
.founder-title {
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  overflow-wrap: break-word;
}

.founder-line {
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
  margin: 0;
  width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.founder-contact {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.founder-contact p {
  margin: 0 0 8px;
  font-size: clamp(13px, 1.1vw, 14px);
  color: var(--muted);
}
.founder-contact p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* 1024px — tighten nav for medium desktops */
@media (max-width: 1024px) {
  .nav-links { gap: 12px; }
}

/* 900px — about grid collapses; 3-col becomes 2-col */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .founder-card { max-width: 600px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-challenge { margin-top: 8px; }
}

/* 768px — tablet breakpoint */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}
  .row { grid-template-columns: 1fr; }
  .cell:first-child { border-bottom: 1px solid var(--line); }
  .table-like .row .cell:first-child { border-right: none; }
}

/* 600px — founder card photo stacks */
@media (max-width: 600px) {
  .founder-identity {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .founder-photo {
    width: 88px;
    height: 88px;
  }
  .founder-meta h2 {
    font-size: clamp(26px, 7.5vw, 36px);
  }
}

/* 480px — mobile: nav stacks */
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    min-height: auto;
  }
  .nav-links {
    justify-content: flex-start;
    gap: 8px 12px;
    font-size: 13px;
  }
  .brand img { width: 130px; }
  .btn-row { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .card { border-radius: 18px; }
  .page-hero h1 { font-size: clamp(26px, 8vw, 38px); }
  .footer-grid { gap: 20px; }
  .container { width: calc(100% - 32px); }
}

/* 360px — small phones */
@media (max-width: 360px) {
  .nav-links { gap: 6px 10px; font-size: 12px; }
  .hero-challenge p { font-size: 17px; }
}
