/* 
  Shared base styles for all pages.

  Source: Figma exported layer styles from all.css.txt (colors, typography, radii, spacing).
  Page-specific layout/styles must go into index.css / solution.css / product.css.
*/

:root{
  /* Typography */
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-alt: "Plus Jakarta Sans", var(--font-sans);
  --font-geist: Geist, var(--font-sans);
  --font-serif: "IBM Plex Serif", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  /* Core colors (from Figma export) */
  --c-black: #000000;
  --c-white: #FFFFFF;

  --c-ink: #0F172A;      /* Primary text */
  --c-text: #334155;     /* Body text */
  --c-muted: #737373;    /* Muted text */
  --c-border: #CBD5E1;   /* Border */
  --c-border-2: #E5E5E5; /* Light border */
  --c-bg: #FFFFFF;
  --c-bg-2: #F8FAFC;
  --c-bg-3: #F1F5F9;

  /* Accent / brand-like (present in export) */
  --c-blue-600: #2563EB;
  --c-blue-700: #1D4ED8;
  --c-sky-600: #0284C7;

  --c-orange-500: #F97316; /* if needed later */
  --c-yellow-100: #FFF8E5; /* if needed later */

  /* Radii */
  --r-4: 4px;
  --r-6: 6px;
  --r-8: 8px;
  --r-12: 12px;
  --r-16: 16px;
  --r-24: 24px;

  /* Spacing */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-20: 20px;
  --s-24: 24px;
  --s-32: 32px;
  --s-40: 40px;
  --s-48: 48px;
  --s-64: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.10);

  /* Layout */
  --container-max: 1180px;
  --container-pad: 20px;
}

/* Base reset */
*,
*::before,
*::after{
  box-sizing: border-box;
}

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

body{
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.5;
}

img,
svg,
video{
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select{
  font: inherit;
}

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

a:hover{
  text-decoration: underline;
}

/* Focus */
:focus-visible{
  outline: 2px solid var(--c-blue-600);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Generic layout helpers */
.container{
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main{
  flex: 1 1 auto;
  padding: var(--s-40) 0;
}

/* Simple header/footer placeholders (will be refined per-page) */
.site-header{
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
}

.site-footer{
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
  padding: var(--s-24) 0;
}

.brand{
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.nav{
  display: flex;
  align-items: center;
  gap: var(--s-16);
}

.nav__link{
  color: var(--c-ink);
  font-weight: 500;
}

.text-muted{
  color: var(--c-muted);
}

/* Typography scale (aligned to export where possible) */
.h1{
  margin: 0 0 var(--s-16) 0;
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

.h2{
  margin: 0 0 var(--s-12) 0;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  color: var(--c-ink);
}

.h3{
  margin: 0 0 var(--s-8) 0;
  font-weight: 600;
  font-size: 18px; /* export often uses 18px for headings */
  line-height: 1.3;
  color: var(--c-ink);
}

.p{
  margin: 0 0 var(--s-16) 0;
}

/* Buttons (shared component) */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  padding: 12px 16px;
  border-radius: var(--r-8);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
}

.btn--primary{
  background: var(--c-blue-600);
  color: var(--c-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover{
  background: var(--c-blue-700);
  text-decoration: none;
}

.btn--secondary{
  background: var(--c-bg);
  color: var(--c-ink);
  border-color: var(--c-border);
}

.btn--secondary:hover{
  background: var(--c-bg-2);
  text-decoration: none;
}

/* Cards (shared component) */
.card{
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-12);
  box-shadow: var(--shadow-sm);
}

.card__body{
  padding: var(--s-20);
}

/* Accordion (shared component; based on export patterns) */
.accordion{
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.accordion__item{
  border: 1px solid var(--c-border);
  border-radius: var(--r-8);
  background: var(--c-bg);
  overflow: hidden;
}

.accordion__header{
  display: flex;
  align-items: center;
  gap: var(--s-12);
  padding: 16px 20px; /* matches export */
  cursor: pointer;
}

.accordion__title{
  margin: 0;
  font-size: 18px; /* export */
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-ink);
  flex: 1 1 auto;
}

.accordion__chevron{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: 0.7;
}

.accordion__body{
  padding: 0 20px 16px;
  color: var(--c-text);
  font-size: 14px; /* export uses 14px body/small */
  line-height: 1.5;
}

/* Responsive defaults */
@media (max-width: 640px){
  :root{
    --container-pad: 16px;
  }
  .site-main{
    padding: var(--s-24) 0;
  }
  .nav{
    gap: var(--s-12);
  }
}
