/* =========================================================================
   Tierones.io — LinkedIn-faithful design system
   Font: Source Sans 3 (the open-source base of LinkedIn's typeface)
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand / LinkedIn palette */
  --blue:            #0a66c2;
  --blue-hover:      #004182;
  --blue-active:     #09437d;
  --blue-tint:       #e8f0fe;
  --blue-tint-2:     #d0e1f9;

  --canvas:          #f3f2ef;   /* LinkedIn warm off-white background */
  --white:           #ffffff;
  --black:           #000000;

  --text:            rgba(0, 0, 0, 0.9);
  --text-2:          rgba(0, 0, 0, 0.6);
  --text-3:          rgba(0, 0, 0, 0.45);

  --border:          rgba(0, 0, 0, 0.08);
  --border-2:        rgba(0, 0, 0, 0.15);

  --green:           #057642;   /* LinkedIn success green (badges) */
  --amber:           #915907;   /* LinkedIn premium/gold accent */
  --danger:          #b24020;

  --shadow-sm: 0 0 0 1px var(--border), 0 2px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.16);

  --radius:    8px;
  --radius-lg: 12px;

  --nav-h: 52px;
  --maxw:  1128px;

  --font: "Source Sans 3", -apple-system, system-ui, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blue-hover); }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 600; line-height: 1.15; color: var(--text); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.bg-canvas { background: var(--canvas); }
.bg-white  { background: var(--white); }
.bg-blue   { background: var(--blue); color: #fff; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -.01em; }
.section-sub { font-size: 18px; color: var(--text-2); max-width: 640px; }
.center .section-sub { margin-left: auto; margin-right: auto; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}

/* ---------- Buttons (LinkedIn pill style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  padding: 12px 24px; border-radius: 24px; border: 1.5px solid transparent;
  cursor: pointer; transition: background-color .15s, box-shadow .15s, color .15s, border-color .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; box-shadow: inset 0 0 0 1px var(--blue-hover); }
.btn--primary:active { background: var(--blue-active); }
.btn--secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--secondary:hover { background: var(--blue-tint); color: var(--blue-hover); border-color: var(--blue-hover); box-shadow: inset 0 0 0 1px var(--blue-hover); }
.btn--ghost { background: transparent; color: var(--text-2); border-color: var(--border-2); }
.btn--ghost:hover { background: rgba(0,0,0,.06); color: var(--text); border-color: var(--text-2); box-shadow: inset 0 0 0 1px var(--text-2); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--blue-tint); color: var(--blue-hover); }
.btn--lg { font-size: 18px; padding: 15px 30px; border-radius: 28px; }
.btn--sm { font-size: 14px; padding: 8px 16px; }
.btn--block { width: 100%; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: var(--nav-h);
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 28px; width: auto; display: block; }
.brand__name {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--blue);
}
.brand__name b { color: var(--text); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.nav__link {
  font-size: 15px; color: var(--text-2); padding: 8px 12px; border-radius: 4px;
}
.nav__link:hover { color: var(--text); background: rgba(0,0,0,.05); text-decoration: none; }
.nav__link.is-active { color: var(--text); font-weight: 600; }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--text); border-radius: 4px;
}
.nav__toggle:hover { background: rgba(0,0,0,.06); }

/* Mobile nav panel */
.nav__mobile {
  display: none; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  padding: 12px 24px 20px;
}
.nav__mobile.is-open { display: block; }
.nav__mobile a.nav__link { display: block; font-size: 17px; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.nav__mobile .nav__cta { flex-direction: column; align-items: stretch; margin-top: 16px; }

/* ---------- Hero (LinkedIn logged-out style) ---------- */
.hero { background: var(--white); overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 64px 0 72px;
}
.hero__title {
  font-size: clamp(34px, 5vw, 56px); font-weight: 400; line-height: 1.08;
  letter-spacing: -.015em; color: #1c1e21; margin-bottom: 20px;
}
.hero__title strong { font-weight: 700; color: var(--blue); }
.hero__lede { font-size: 19px; color: var(--text-2); margin-bottom: 28px; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.hero__art { position: relative; }
.hero__art img, .hero__art svg { width: 100%; height: auto; }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s;
}
.card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue); margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; }
.card p { color: var(--text-2); margin-bottom: 0; }

/* Feature list with check bullets */
.checks li {
  position: relative; padding: 8px 0 8px 32px; color: var(--text); border-bottom: 1px solid var(--border);
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checks li b { font-weight: 600; }

/* ---------- The three gates ---------- */
.gate { text-align: center; }
.gate__emoji { font-size: 40px; line-height: 1; margin-bottom: 12px; }

/* ---------- Stat blocks ---------- */
.stat { text-align: center; }
.stat__num { font-size: clamp(32px, 4vw, 44px); font-weight: 700; color: var(--blue); letter-spacing: -.02em; }
.stat__label { font-size: 15px; color: var(--text-2); }

/* ---------- Steps ---------- */
.step { position: relative; padding-left: 56px; }
.step__num {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--text-2); margin: 0; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp thead th { background: var(--canvas); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- Callout / CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.5vw, 36px); }
.cta-band p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 620px; margin: 0 auto 24px; }
.cta-band .btn--secondary { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn--secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; box-shadow: none; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 16px; background: var(--blue-tint); color: var(--blue-hover);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-verified { color: var(--green); font-weight: 600; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--border-2); border-radius: 6px; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-tint-2); }
.field .hint { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.field .err { font-size: 13px; color: var(--danger); margin-top: 4px; display: none; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.field.is-invalid .err { display: block; }
.form-success {
  display: none; text-align: center; padding: 12px 0;
}
.form-success.is-visible { display: block; }
.form-success .tick {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
}
.form-success .tick svg { width: 34px; height: 34px; }
.form-legal { font-size: 12px; color: var(--text-3); margin-top: 12px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img, .split__media svg { width: 100%; border-radius: var(--radius-lg); }
.split h2 { font-size: clamp(24px, 3vw, 32px); }
.split p { color: var(--text-2); font-size: 17px; }

/* ---------- FAQ (accordion) ---------- */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 18px; font-weight: 600; color: var(--text);
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { background: rgba(0,0,0,.02); }
.faq-q .chev { flex-shrink: 0; transition: transform .2s; color: var(--text-2); }
.faq-item.is-open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a__inner { padding: 0 24px 20px; color: var(--text-2); font-size: 16px; }
.faq-item.is-open .faq-a { max-height: 500px; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 14px; color: var(--text-2); padding: 16px 0 0; }
.crumb a { color: var(--text-2); }
.crumb a:hover { color: var(--blue); }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px; opacity: .85; }
.trust .logo-chip {
  font-weight: 700; color: var(--text-2); font-size: 15px; padding: 8px 16px;
  border: 1px solid var(--border-2); border-radius: 8px; background: #fff;
}

/* ---------- Footer (LinkedIn-style) ---------- */
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__brand .brand__name { font-size: 24px; }
.footer__tag { color: var(--text-2); font-size: 14px; margin-top: 12px; max-width: 26em; }
.footer h4 { font-size: 14px; color: var(--text); margin-bottom: 12px; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: var(--text-2); font-size: 14px; }
.footer__links a:hover { color: var(--blue); }
.footer__bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-3);
}

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 16px; }
.hide { display: none !important; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__spacer { flex: 1; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 48px; }
  .hero__art { max-width: 460px; margin: 0 auto; order: -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 24px; }
  .split--reverse .split__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
