/* SimpleSites main stylesheet
   Minimal, monochrome design system for marketing pages
*/

:root {
  /* Colors (black & white, minimal) */
  --color-bg: #ffffff;
  --color-surface: #f5f5f5;
  --color-text: #111111;
  --color-muted: #666666;
  --color-primary: #000000;      /* accent = black */
  --color-primary-600: #000000;
  --color-border: #e5e5e5;

  /* Radii */
  --radius: 8px;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  --fs-300: 0.875rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-600: 1.25rem;
  --fs-700: 1.5rem;
  --fs-800: 1.875rem;
  --fs-900: 2.25rem;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.1em; }

/* Typography */
h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.75rem, 2.5vw, 2rem);
  font-weight: 600;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
p {
  margin: 0;
  font-size: 1.125rem; /* ~18px */
}

/* Layout utilities */
.container { max-width: 960px; margin: 0 auto; padding: 0 28px; }
.section { padding: 5.5rem 0; }
.section--alt { background: var(--color-surface); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--color-muted); }
.lead { font-size: var(--fs-600); color: var(--color-muted); }
.align-center { align-items: center; }

/* Spacing helpers */
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-8 { margin-bottom: var(--sp-8); }
.pt-0 { padding-top: 0; }

/* Grid */
.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--gap-md { gap: var(--sp-4); }
.grid--gap-lg { gap: var(--sp-10); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .text-center-sm { text-align: left; }
  .mt-4-sm { margin-top: 0; }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .grid {
    gap: var(--sp-8);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #111; color: #fff; }
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover { background: var(--color-primary-600); border-color: var(--color-primary-600); }
.btn--secondary {
  background: transparent;
  color: var(--color-primary);
}
.btn--sm { padding: 0.5rem 0.75rem; font-size: var(--fs-300); }
.btn--block { display: block; width: 100%; text-align: center; }

/* Badges, cards */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #f5f5f5;
  color: #111;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--sp-8);
  position: relative;
}
.plan { text-align: left; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--color-primary); }
.plan h2 { margin-top: 0; }
.plan .badge { position: absolute; top: var(--sp-4); right: var(--sp-4); }
.plan .btn { margin-top: auto; }
.plan .list { margin-bottom: var(--sp-6); }
.price { font-size: var(--fs-800); margin: 0.2rem 0 var(--sp-2); }
.price__per { font-size: var(--fs-400); color: var(--color-muted); margin-left: 0.25rem; }
.price__annual {
  font-size: var(--fs-300);
  color: var(--color-muted);
  margin: var(--sp-2) 0 var(--sp-4);
}
.list { margin: 0; padding-left: 1.1em; }

/* Header & nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px;
}
.logo { font-weight: 800; letter-spacing: 0.2px; font-size: 1.1rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-4); align-items: center; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}
.nav-toggle__bar { width: 20px; height: 2px; background: #111; display: block; }

@media (max-width: 799px) {
  .site-nav { position: absolute; top: 60px; right: 0; left: 0; background: #fff; border-bottom: 1px solid var(--color-border); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: var(--sp-4); }
}
@media (min-width: 800px) {
  .nav-toggle { display: none; }
}

/* Hero */
.hero { padding-top: var(--sp-16); }
.hero .lead { max-width: 52ch; }
.hero-media { display: none; }
@media (min-width: 900px) {
  .hero-media { 
    display: block; 
    align-self: center;
  }
  .hero-media img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }
}
.hero--simple { padding-top: var(--sp-10); }

/* Brands row */
.brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-4) 0;
  font-size: 0.95rem;
}
.brands-row__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}
.brands-row__logos {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: center;
}
.brand-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}
@media (max-width: 640px) {
  .brands-row {
    flex-direction: column;
    align-items: center;
  }
}

/* Icons placeholder */
.icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid var(--color-border);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-text);
  stroke-width: 1.8;
  fill: none;
}

/* Steps */
.steps {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.step .badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--color-text);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--color-text);
}
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--color-muted); }

/* Template placeholder */
.template-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted);
  background: #fff;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); padding: var(--sp-4) 0; }
.faq-question {
  width: 100%; text-align: left; font-size: var(--fs-500);
  background: none; border: none; padding: 0; cursor: pointer;
}
.faq-answer { margin-top: var(--sp-2); color: var(--color-muted); }

/* Forms */
.form .form-control { display: grid; gap: 6px; }
.form label { font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--fs-400);
}
.form-actions { margin-top: var(--sp-4); }

/* Testimonials */
.testimonials-grid .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonials-grid .card p.muted {
  margin-top: var(--sp-4);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  justify-content: center;
  align-items: center;
  padding: var(--sp-6) 0;
  text-align: center;
}
.footer-brand strong {
  font-size: 0.95rem;
}
.footer-brand .muted {
  font-size: 0.85rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-links a:hover {
  color: var(--color-text);
}
@media (max-width: 640px) {
  .footer-inner {
    padding: var(--sp-6) 0;
  }
}

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-400);
}

.table th,
.table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  white-space: nowrap;
}

.table thead th {
  font-weight: 600;
  border-bottom: 2px solid var(--color-border);
}

.table--comparison th:first-child {
  text-align: left;
}

.table--comparison thead th:not(:first-child) {
  text-align: center;
}

.table--comparison td {
  text-align: center;
}

.table--comparison th[scope="row"] {
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
}

/* Pricing-specific layout */
@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


