/* Electronics SPICELab — landing site styles. */

:root {
  --accent-1: #6366f1;
  --accent-2: #06b6d4;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-soft: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --bad: #dc2626;
  --good: #16a34a;
  --radius: 14px;
  --content-max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
}

a {
  color: var(--accent-1);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
  color: var(--ink-muted);
}

/* ---- Layout ----------------------------------------------------------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}
section.tight {
  padding: 32px 0;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 8px;
}

/* ---- Top nav ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.brand .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
}
.nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav ul a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav ul a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav .cta {
  margin-left: 16px;
}
@media (max-width: 640px) {
  .nav ul {
    display: none;
  }
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.18s ease;
}
.btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.4);
}
.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.btn-ghost:hover {
  text-decoration: none;
  background: var(--surface-alt);
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero p.sub {
  max-width: 56ch;
  margin: 0 auto 28px;
  font-size: 1.125rem;
  color: var(--ink-muted);
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- Feature grid ----------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-card h3 {
  margin-bottom: 6px;
}
.feature-card p {
  color: var(--ink-muted);
  margin: 0;
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
  font-size: 18px;
}

/* ---- Pricing ---------------------------------------------------------- */
.pricing-wrap {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 1px solid var(--accent-1);
  box-shadow: 0 20px 40px -20px rgba(99, 102, 241, 0.3);
  position: relative;
}
.price-card.featured::after {
  content: "Recommended";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
}
.price-card .tier {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.price-card .price {
  margin: 6px 0 6px;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price-card .price small {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex: 1;
}
.price-card ul li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: var(--ink-muted);
}
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

/* ---- FAQ -------------------------------------------------------------- */
.faq {
  max-width: 760px;
  margin: 28px auto 0;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 4px;
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--ink-soft);
  font-size: 1.25rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq p {
  margin: 10px 0 0;
  color: var(--ink-muted);
}

/* ---- Tables ----------------------------------------------------------- */
.table-wrap {
  margin-top: 28px;
  overflow-x: auto;
}
table.plan-compare {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table.plan-compare th,
table.plan-compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 0.95rem;
}
table.plan-compare th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--ink);
}
table.plan-compare th:last-child,
table.plan-compare td:last-child {
  border-right: none;
}
table.plan-compare tr:last-child td {
  border-bottom: none;
}
table.plan-compare td.pro {
  background: rgba(99, 102, 241, 0.04);
  font-weight: 600;
}

/* ---- Legal docs ------------------------------------------------------- */
.doc {
  padding: 64px 0;
}
.doc-inner {
  max-width: 740px;
  margin: 0 auto;
}
.doc h1 {
  margin-bottom: 6px;
}
.doc .doc-meta {
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.doc h2 {
  margin-top: 36px;
  font-size: 1.4rem;
}
.doc h3 {
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--ink-muted);
}
.doc p,
.doc li {
  color: #1f2937;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}

/* ---- Footer ----------------------------------------------------------- */
footer.site {
  padding: 44px 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  background: var(--surface);
}
footer.site .footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
footer.site nav a {
  color: var(--ink-muted);
  margin-right: 14px;
}
footer.site .ai-note {
  width: 100%;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
