/* ProofSeal.it — shared landing page styles */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:        #0a0f1e;
  --navy2:       #0f172a;
  --dark:        #1e293b;
  --slate:       #334155;
  --mid:         #64748b;
  --light:       #94a3b8;
  --offwhite:    #e2e8f0;
  --white:       #f8fafc;
  --teal:        #0d9488;
  --teal-light:  #14b8a6;
  --teal-glow:   rgba(13, 148, 136, 0.2);
  --amber:       #f59e0b;
  --red:         #ef4444;
  --green:       #10b981;
  --border:      rgba(255, 255, 255, 0.06);
  --border-hi:   rgba(255, 255, 255, 0.12);
  --radius:      12px;
  --maxw:        1100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--offwhite);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a { color: var(--teal-light); text-decoration: none; }
a:hover { color: var(--teal); }

strong, b { color: var(--white); font-weight: 600; }
em { color: var(--offwhite); font-style: italic; }

/* ===== Top navigation ===== */

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.topnav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.5px;
}
.topnav .logo:hover { color: var(--teal-light); }

.topnav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}
.topnav .nav-links a {
  color: var(--light);
  font-size: 0.9rem;
  transition: color .2s;
}
.topnav .nav-links a:hover { color: var(--teal-light); }

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: .8rem;
  color: var(--mid);
}
.lang-switcher .lang-link {
  color: var(--light);
  padding: .25rem .5rem;
  border-radius: 4px;
  transition: all .2s;
}
.lang-switcher .lang-link:hover {
  color: var(--teal-light);
  background: rgba(13, 148, 136, 0.08);
}
.lang-switcher .lang-link.active {
  color: var(--white);
  background: var(--teal);
}
.lang-switcher .lang-sep { opacity: 0.3; }

/* ===== Container ===== */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

@media (min-width: 768px) {
  section { padding: 7rem 0; }
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 60%);
  pointer-events: none;
  opacity: .6;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.audience-tag {
  display: inline-block;
  padding: .35rem 1rem;
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.08);
  border-radius: 100px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 1.25rem;
}

.hero .subhead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--light);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  line-height: 1.2;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--teal-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--teal-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--offwhite);
  border-color: var(--slate);
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-light);
}
.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ===== Section headings ===== */

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

/* ===== Problem section ===== */

.problem {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem-body {
  font-size: 1.05rem;
  color: var(--light);
  max-width: 780px;
}
.problem-body p { margin-bottom: 1.1rem; }
.problem-body p:last-child { margin-bottom: 0; }
.problem-body strong { color: var(--white); }

/* ===== Solution pillars ===== */

.solution .pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pillar {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  min-width: 0;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.pillar h3 {
  color: var(--teal-light);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.pillar p {
  color: var(--light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== How it works ===== */

.how .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.how .steps li {
  position: relative;
  counter-increment: step;
  padding-left: 0;
  padding-top: 3.5rem;
}
.how .steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(13, 148, 136, 0.25);
  line-height: 1;
}
.how .steps strong {
  display: block;
  color: var(--teal-light);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.how .steps span {
  color: var(--light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== FAQ ===== */

.faq {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-items {
  margin-top: 2rem;
  max-width: 820px;
}
.faq details {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  transition: border-color .2s;
  overflow: hidden;
}
.faq details:hover,
.faq details[open] {
  border-color: rgba(13, 148, 136, 0.35);
}
.faq summary {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  list-style: none;
  position: relative;
  padding-right: 3rem;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--teal);
  font-weight: 300;
  transition: transform .2s;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq summary:hover { color: var(--teal-light); }
.faq details[open] summary { color: var(--teal-light); }
.faq details > div {
  padding: 0 1.5rem 1.25rem;
  color: var(--light);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq details > div p { margin-bottom: 0.75rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ===== Contact ===== */

.contact {
  text-align: center;
}
.contact p {
  font-size: 1.05rem;
  color: var(--light);
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* ===== Footer ===== */

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--navy2);
}
footer p {
  color: var(--mid);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
footer .footer-links {
  margin-top: 1.5rem;
}
footer .footer-links a {
  color: var(--light);
  font-size: 0.85rem;
  margin: 0 0.5rem;
  transition: color .2s;
}
footer .footer-links a:hover { color: var(--teal-light); }

/* ===== Audience hub page (selector) ===== */

.hub {
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem;
}
.hub-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}
.hub-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  line-height: 1.15;
}
.hub-intro p {
  font-size: 1.1rem;
  color: var(--light);
  line-height: 1.6;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}
.audience-card {
  display: block;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  color: var(--offwhite);
  min-width: 0;
}
.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  color: var(--offwhite);
}
.audience-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.audience-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.audience-card p {
  color: var(--light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.audience-card .card-arrow {
  color: var(--teal-light);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Root selector page ===== */

.selector-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
}
.selector-body .logo-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}
.selector-body .logo-big span { color: var(--teal-light); }
.selector-body .lang-choice {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}
.selector-body .lang-choice a {
  padding: 0.75rem 2rem;
  border: 1px solid var(--slate);
  border-radius: 8px;
  color: var(--offwhite);
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all .2s;
}
.selector-body .lang-choice a:hover {
  border-color: var(--teal);
  color: var(--teal-light);
  background: rgba(13, 148, 136, 0.05);
}
.selector-body .lang-choice a.active {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}

/* ===== Responsive ===== */

/* Tablets and landscape phones (below the 768px desktop breakpoint) */
@media (max-width: 900px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .solution .pillars,
  .how .steps,
  .audience-grid {
    gap: 1.25rem;
  }
}

/* Phones */
@media (max-width: 640px) {
  .topnav {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .topnav .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }
  .topnav .nav-links a { font-size: 0.95rem; padding: 0.25rem 0; }
  .lang-switcher { font-size: .85rem; }
  .lang-switcher .lang-link {
    padding: 0.45rem 0.7rem;
    min-width: 44px;
    text-align: center;
  }

  section { padding: 3.5rem 0; }
  .container { padding: 0 1.1rem; }

  .hero { padding: 2.5rem 0 2.75rem; }
  .hero::before { width: 500px; height: 500px; top: -60px; }
  .hero h1 { letter-spacing: -0.75px; }
  .hero .subhead { margin-bottom: 2rem; }
  .hero-ctas { gap: 0.75rem; }
  .hero-ctas .btn { width: 100%; text-align: center; }

  h2 { font-size: 1.5rem; margin-bottom: 1rem; }

  .solution .pillars { gap: 1rem; margin-top: 1.75rem; }
  .pillar { padding: 1.25rem; }

  .how .steps { gap: 1.5rem; margin-top: 1.75rem; }
  .how .steps li { padding-top: 2.75rem; }
  .how .steps li::before { font-size: 2rem; }

  .faq summary { padding: 1rem 1.25rem; padding-right: 2.5rem; font-size: 0.95rem; }
  .faq summary::after { right: 1.1rem; }
  .faq details > div { padding: 0 1.25rem 1rem; font-size: 0.9rem; }

  .contact p { font-size: 1rem; }

  footer { padding: 2rem 0; }
  footer .footer-links { line-height: 2; }
  footer .footer-links a { display: inline-block; }

  /* Audience hub */
  .hub { padding: 2.5rem 1.1rem; }
  .hub-intro { margin: 0 auto 2rem; }
  .hub-intro h1 { letter-spacing: -0.5px; }
  .hub-intro p { font-size: 1rem; }
  .audience-grid { gap: 1rem; }
  .audience-card { padding: 1.4rem; }
  .audience-card .icon { width: 40px; height: 40px; font-size: 1.25rem; margin-bottom: 1rem; }

  /* Root selector */
  .selector-body { padding: 2rem 1.25rem; }
  .selector-body .logo-big { font-size: 1.35rem; margin-bottom: 1.5rem; }
  .selector-body .lang-choice { gap: 0.75rem; margin-bottom: 2rem; width: 100%; max-width: 320px; }
  .selector-body .lang-choice a { flex: 1; padding: 0.85rem 1rem; text-align: center; }
}

/* Small phones (≤ 380px wide) */
@media (max-width: 380px) {
  .container { padding: 0 0.9rem; }
  .topnav { padding: 0.75rem 0.9rem; }
  .topnav .logo { font-size: 1rem; }

  section { padding: 3rem 0; }
  .hero { padding: 2rem 0 2.25rem; }
  .hero h1 { font-size: 1.7rem; line-height: 1.15; }
  .hero .subhead { font-size: 0.95rem; }
  .audience-tag { font-size: 0.7rem; letter-spacing: 1.5px; padding: 0.3rem 0.85rem; }

  .pillar { padding: 1.1rem; }
  .audience-card { padding: 1.2rem; }
  .hub { padding: 2rem 0.9rem; }
  .hub-intro h1 { font-size: 1.65rem; }

  .selector-body .lang-choice { flex-direction: column; }
}
