/* googleformalternatives.com — clean, friendly, multicolor accents */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --bg-card: #FFFFFF;
  --border: #E8EAED;
  --border-soft: #F1F3F4;
  --text: #202124;
  --text-soft: #5F6368;
  --text-faint: #80868B;
  --blue: #1A73E8;
  --blue-hover: #1557B0;
  --blue-soft: #E8F0FE;
  --red: #D93025;
  --yellow: #F9AB00;
  --green: #1E8E3E;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1080px;
  --max-prose: 720px;
  --radius: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.08);
  --shadow-md: 0 1px 3px rgba(60, 64, 67, 0.12), 0 4px 8px rgba(60, 64, 67, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue-hover); }
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p + p { margin-top: 1rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.4rem; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.wrap--narrow { max-width: var(--max-prose); }

/* Multicolor dot accents */
.dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}
.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dots--blue span:nth-child(1) { background: var(--blue); }
.dots--blue span:nth-child(2) { background: var(--red); }
.dots--blue span:nth-child(3) { background: var(--yellow); }
.dots--blue span:nth-child(4) { background: var(--green); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-links a { color: var(--text-soft); }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--blue); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 8px;
  background:
    radial-gradient(circle at 4px 4px, var(--blue) 4px, transparent 4px),
    radial-gradient(circle at 16px 4px, var(--red) 4px, transparent 4px),
    radial-gradient(circle at 28px 4px, var(--yellow) 4px, transparent 4px),
    radial-gradient(circle at 40px 4px, var(--green) 4px, transparent 4px);
  opacity: 0.85;
}
.hero--compact {
  padding: 3rem 0 2rem;
  text-align: left;
}
.hero--compact::before { display: none; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.lede {
  max-width: 640px;
  margin: 1.25rem auto 0;
  font-size: 1.125rem;
  color: var(--text-soft);
  line-height: 1.65;
}
.hero--compact .lede { margin-left: 0; margin-right: 0; }
.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-faint);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sections */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section--border { border-top: 1px solid var(--border); }
.section-head { max-width: var(--max-prose); margin-bottom: 2rem; }
.section-head p { color: var(--text-soft); margin-top: 0.65rem; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

.callout {
  background: var(--blue-soft);
  border: 1px solid #D2E3FC;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.callout h3 {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
caption {
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  padding: 0 0 0.75rem;
  color: var(--text-soft);
}
th, td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}
thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-alt);
}
tbody tr:last-child td,
tbody tr:last-child th { border-bottom: none; }
.rating { color: var(--yellow); white-space: nowrap; font-weight: 700; }
.vs-winner { color: var(--green); font-weight: 700; }

/* Tool cards */
.tool-grid { display: grid; gap: 2rem; }
.tool-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .tool-card { grid-template-columns: 72px 1fr; gap: 1.75rem; }
}
.tool-rank {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
}
.tool-card h2 { font-size: 1.5rem; }
.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0.6rem 0 0.85rem;
  font-size: 0.875rem;
  color: var(--text-faint);
}
.tool-meta strong { color: var(--text-soft); font-weight: 600; }
.pros-cons {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}
@media (min-width: 560px) {
  .pros-cons { grid-template-columns: 1fr 1fr; }
}
.pros-cons h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.45rem;
}
.pros-cons ul { font-size: 0.9375rem; color: var(--text-soft); list-style: none; padding: 0; }
.pros-cons li { padding-left: 1.1rem; position: relative; }
.pros-cons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* VS comparison */
.vs-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 640px) {
  .vs-grid { grid-template-columns: 1fr 1fr; }
}
.vs-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.vs-card--winner {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-sm);
}
.vs-card h3 { margin-bottom: 0.75rem; }
.vs-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: #E6F4EA;
  color: var(--green);
  margin-bottom: 0.75rem;
}

/* Guide cards */
.guide-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.guide-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.guide-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.guide-card h3 { font-size: 1.125rem; }
.guide-card p { font-size: 0.9375rem; color: var(--text-soft); margin-top: 0.5rem; }
.guide-card .link-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--blue);
  background: var(--blue-soft);
  transition: background 0.15s, color 0.15s;
}
.btn:hover {
  background: var(--blue);
  color: #fff;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-hover);
  color: #fff;
}
.cta-banner {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.cta-banner h2 { margin-bottom: 0.65rem; }
.cta-banner p {
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 1.25rem;
}

/* FAQ */
.faq-list { max-width: var(--max-prose); }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.15rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-faint);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 0 1.15rem;
  color: var(--text-soft);
  font-size: 0.975rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
  list-style: none;
  padding: 0;
}
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--blue); }

.prose { max-width: var(--max-prose); }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.15rem; }

.method-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.method {
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.method strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
  color: var(--blue);
}
.method p { font-size: 0.9375rem; color: var(--text-soft); }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--text-soft);
  border: 1px solid var(--border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  background: var(--bg-alt);
}
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.footer-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p {
  margin-top: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
  max-width: 360px;
}
.footer-col h2 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.65rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li + li { margin-top: 0.35rem; }
.footer-col a { font-size: 0.9375rem; color: var(--text-soft); }
.footer-col a:hover { color: var(--blue); }
.footer-network {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer-network h2 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.65rem;
}
.footer-network-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}
.footer-network-links a { color: var(--text-faint); }
.footer-network-links a:hover { color: var(--blue); }
.footer-network-links a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.footer-network-links span { color: var(--border); }
.footer-bottom {
  font-size: 0.8125rem;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3.5rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .nav-links { font-size: 0.8125rem; gap: 0.1rem 0.85rem; }
}
