/* ============================================================
   SkinGenius — Google Material, kept clean & beautiful
   Roboto · pill buttons · tonal surfaces · soft elevation
============================================================ */

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

:root {
  /* Google colors */
  --blue: #1a73e8;
  --blue-dark: #1559b8;
  --green: #1e8e3e;
  --red: #d93025;
  --yellow: #ea8600;

  /* Material roles */
  --primary: #1a73e8;
  --primary-container: #d3e3fd;
  --on-primary-container: #041e49;

  --ink: #1f1f1f;          /* on-surface */
  --body: #444746;         /* on-surface-variant */
  --muted: #5f6368;
  --line: #e8eaed;         /* outline-variant */

  --surface: #ffffff;
  --surface-soft: #f6f8fc; /* tonal surface */

  --max: 1040px;
  --gutter: 1.5rem;

  /* Material elevation */
  --elev-1: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.1);
  --elev-2: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.12);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--surface);
  color: var(--body);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons (Material pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.btn-filled {
  background: var(--primary);
  color: #fff;
}

.btn-filled:hover {
  background: var(--blue-dark);
  box-shadow: var(--elev-2);
}

.btn-tonal {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.btn-tonal:hover {
  box-shadow: var(--elev-1);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 10px;
  box-shadow: var(--elev-1);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--body);
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(60% 70% at 15% 0%, rgba(26, 115, 232, 0.10), transparent 60%),
    radial-gradient(55% 65% at 85% 5%, rgba(217, 48, 37, 0.08), transparent 60%),
    radial-gradient(50% 60% at 50% 100%, rgba(30, 142, 62, 0.08), transparent 60%);
}

/* Multi-color Google gradient headline word */
.grad-word {
  background: linear-gradient(90deg, var(--blue) 0%, var(--red) 38%, var(--yellow) 68%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chip {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-primary-container);
  background: var(--primary-container);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-sub {
  max-width: 46ch;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--body);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Stats ---------- */
.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat {
  text-align: center;
}

.stat dt {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

/* Colorful accents */
.c-blue { color: var(--blue); }
.c-red { color: var(--red); }
.c-yellow { color: var(--yellow); }
.c-green { color: var(--green); }

.bg-blue { background: var(--blue); }
.bg-red { background: var(--red); }
.bg-yellow { background: var(--yellow); }
.bg-green { background: var(--green); }

.stat dd {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ---------- Section titles ---------- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--elev-1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* ---------- Features ---------- */
.features {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  padding: 2.25rem 2rem;
}

.feature:hover {
  box-shadow: var(--elev-2);
  transform: translateY(-4px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.feature-icon .material-symbols-rounded {
  font-size: 1.75rem;
}

.tone-blue { background: #d3e3fd; color: var(--blue); }
.tone-green { background: #ceead6; color: var(--green); }
.tone-red { background: #fad2cf; color: var(--red); }

.feature h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.feature p {
  font-size: 0.98rem;
  color: var(--body);
}

/* ---------- How it works ---------- */
.how {
  background: var(--surface-soft);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.step {
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.98rem;
  color: var(--body);
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.cta-inner {
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(26, 115, 232, 0.18), transparent 60%),
    radial-gradient(80% 120% at 100% 0%, rgba(217, 48, 37, 0.14), transparent 60%),
    radial-gradient(90% 130% at 50% 100%, rgba(30, 142, 62, 0.16), transparent 60%),
    #eef3fb;
  border-radius: 28px;
  padding: clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-primary-container);
  margin-bottom: 1rem;
}

.cta-text {
  max-width: 48ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--body);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

/* Google four-color accent bar across the top */
.footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--blue) 0% 25%,
    var(--red) 25% 50%,
    var(--yellow) 50% 75%,
    var(--green) 75% 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--elev-1);
  transition: transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.social svg {
  width: 18px;
  height: 18px;
}

.social:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-2);
}

.social-blue:hover { color: var(--blue); }
.social-green:hover { color: var(--green); }
.social-red:hover { color: var(--red); }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  font-size: 0.95rem;
  color: var(--body);
  margin-bottom: 0.7rem;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.footer-bottom-text {
  text-align: center;
}

.footer-copy {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
  margin-bottom: 0.25rem;
}

.footer-disclaimer {
  max-width: 70ch;
  margin-inline: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 1.25rem;
  }

  /* Shorter, tighter header on phones */
  .header-inner {
    height: 60px;
  }
  .logo-text {
    font-size: 1.15rem;
  }
  .btn {
    padding: 0.65rem 1.2rem;
  }

  /* Hero: less vertical air, comfortable headline */
  .hero {
    padding: 3rem 0 2.5rem;
  }
  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  .hero-sub {
    margin-bottom: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-lg {
    width: 100%;
  }

  /* Sections: trim the big desktop spacing */
  .section-title {
    margin-bottom: 2.25rem;
  }
  .features,
  .how,
  .cta {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  /* Cards a touch more compact */
  .feature {
    padding: 1.75rem 1.5rem;
  }

  /* Footer stacks to one centered column with bigger tap targets */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .footer-col a {
    padding: 0.35rem 0;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .stats {
    gap: 1.5rem;
  }
  .stat dt {
    font-size: 1.6rem;
  }
}

/* ============================================================
   SUBPAGES (About, Research, Careers, Docs, Privacy)
============================================================ */
.page-hero {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.page-eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.page-lead {
  max-width: 58ch;
  margin: 1.25rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--body);
}

.page-body {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

/* Readable prose */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.75rem 0 0.85rem;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  margin: 0 0 1.25rem 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--primary);
}

.prose a:hover {
  text-decoration: underline;
}

.prose strong {
  color: var(--ink);
}

.muted-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Code blocks (docs) */
.prose pre {
  background: #1f1f1f;
  color: #e8eaed;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  overflow: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.prose pre code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.prose p code,
.prose li code {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Tiles (values / benefits) */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 1.75rem;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--elev-1);
}

.tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.tile p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--body);
}

/* Open roles */
.role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.role:hover {
  box-shadow: var(--elev-2);
  transform: translateY(-2px);
}

.role-info h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.role-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.role .btn {
  flex-shrink: 0;
}
