/* =========================================================
   Alset site stylesheet
   Structure:
     1. Fonts
     2. Design tokens
     3. Reset + base
     4. Layout container
     5. Site navigation
     6. Hero
     7. Feature sections
     8. Testimonials
     9. Pillars (how it works)
    10. CTA band
    11. Blog index
    12. Post
    13. Generic page (about / faq / privacy etc.)
    14. Footer
    15. Responsive overrides
   ========================================================= */


/* 1. Fonts ----------------------------------------------- */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* 2. Design tokens --------------------------------------- */

:root {
  --color-teal:       #00D1B9;
  --color-teal-dark:  #008B7B;
  --color-black:      #000;
  --color-white:      #fff;
  --color-gray:       #555;
  --color-gray-light: #888;
  --color-bg-alt:     #f5f7f8;
  --color-border:     #e5e8ea;

  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;

  --max-width: 1120px;

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-s:   0.75rem;
  --space-m:   1.25rem;
  --space-l:   2rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --radius-pill: 999px;
  --radius-m:    0.5rem;

  --shadow-card: 0 2px 8px rgba(0,0,0,0.05);
}


/* 3. Reset + base ---------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-teal-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-black); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-m);
}
h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 var(--space-m); }

ul, ol { margin: 0 0 var(--space-m); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2xs); }

blockquote {
  border-left: 4px solid var(--color-teal);
  padding-left: var(--space-m);
  margin: var(--space-l) 0;
  font-style: italic;
  color: var(--color-gray);
}

hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-l) 0; }

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin: 0 0 var(--space-s);
}
.eyebrow-center { text-align: center; }


/* 4. Layout container ------------------------------------ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-m);
}


/* 5. Site navigation ------------------------------------- */

.site-nav {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-m) 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  flex-wrap: wrap;
}

.brand { text-decoration: none; color: inherit; }
.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-teal);
  letter-spacing: 0.02em;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.nav-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-teal);
  color: var(--color-black);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.15s;
}
.nav-pill:hover,
.nav-pill.is-active {
  background: var(--color-teal-dark);
  color: var(--color-white);
}


/* 6. Hero ------------------------------------------------ */

.hero {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-copy .eyebrow { color: var(--color-teal); }
.hero-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
}
.hero-subheading { font-size: 1.25rem; color: var(--color-teal); margin-bottom: var(--space-m); }
.hero-body { font-size: 1rem; color: rgba(255,255,255,0.85); }

.hero-visual img {
  border-radius: var(--radius-m);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.app-badges {
  display: flex;
  gap: var(--space-m);
  margin-top: var(--space-l);
  flex-wrap: wrap;
}
.app-badges-center { justify-content: center; }

.app-badge img { height: 48px; width: auto; }
.app-badge { display: inline-block; }


/* 7. Feature sections ------------------------------------ */

.feature {
  padding: var(--space-2xl) 0;
  background: var(--color-white);
}
.feature:nth-of-type(even) {
  background: var(--color-bg-alt);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.feature-reverse .feature-copy  { order: 2; }
.feature-reverse .feature-visual { order: 1; }

.feature-heading { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.feature-body   { color: var(--color-gray); font-size: 1.0625rem; }

.feature-visual img { max-width: 360px; margin-inline: auto; }


/* 8. Testimonials ---------------------------------------- */

.testimonials {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l);
}

.testimonial {
  margin: 0;
  padding: var(--space-m) var(--space-l);
  text-align: center;
}
.stars {
  color: #ffb703;
  letter-spacing: 0.1em;
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}
.testimonial blockquote {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-xs);
  font-style: normal;
  color: var(--color-gray);
}
.testimonial figcaption {
  font-weight: 700;
  color: var(--color-black);
}


/* 9. Pillars (how it works) ------------------------------ */

.pillars {
  padding: var(--space-2xl) 0;
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
}
.pillars .eyebrow { color: var(--color-teal); }
.pillars-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-xl);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  text-align: left;
}
.pillar h3 {
  color: var(--color-teal);
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}
.pillar p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
}


/* 10. CTA band ------------------------------------------- */

.cta-band {
  padding: var(--space-2xl) 0;
  text-align: center;
  background: var(--color-white);
}
.cta-band .eyebrow { color: var(--color-teal-dark); }
.cta-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 30ch;
  margin-inline: auto;
  margin-bottom: var(--space-l);
}


/* 11. Blog index ----------------------------------------- */

.blog-index {
  padding: var(--space-xl) var(--space-m);
}
.page-intro {
  color: var(--color-gray);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}

.post-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-l);
}
.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.post-card-link { display: block; text-decoration: none; color: inherit; }
.post-card-image { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card-body  { padding: var(--space-m); }
.post-card-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}
.post-card-meta {
  color: var(--color-gray-light);
  font-size: 0.8125rem;
  margin-bottom: var(--space-xs);
}
.post-card-excerpt {
  color: var(--color-gray);
  font-size: 0.9375rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* 12. Post ----------------------------------------------- */

.post { padding: var(--space-xl) var(--space-m); max-width: 760px; }

.post-header { margin-bottom: var(--space-l); }
.post-meta { color: var(--color-gray-light); font-size: 0.875rem; margin-bottom: var(--space-xs); }
.post-author { font-weight: 700; color: var(--color-gray); }
.post-title  { margin-top: var(--space-xs); }

.post-hero {
  margin: 0 0 var(--space-xl);
}
.post-hero img {
  width: 100%;
  border-radius: var(--radius-m);
}

.post-body { font-size: 1.0625rem; color: #222; }
.post-body p { margin-bottom: var(--space-m); }
.post-body h2 { margin-top: var(--space-xl); }
.post-body h3 { margin-top: var(--space-l); }
.post-body img {
  margin: var(--space-m) auto;
  border-radius: var(--radius-m);
  max-width: 100%;
}
.post-body a { color: var(--color-teal-dark); }

.post-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--color-border);
}
.back-link {
  font-weight: 700;
  text-decoration: none;
}


/* 13. Generic page (about / faq / privacy etc.) --------- */

.page-body { max-width: 760px; padding: var(--space-xl) var(--space-m); }
.page-title { margin-bottom: var(--space-l); }

.page-body h2 { margin-top: var(--space-xl); }
.page-body h3 { margin-top: var(--space-l); }
.page-body img {
  max-width: 280px;
  margin: var(--space-m) 0;
  border-radius: var(--radius-m);
}
/* Anchor-wrapped images (social icons etc.) stay inline-sized. */
.page-body a img {
  max-width: 28px;
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}


/* 14. Footer --------------------------------------------- */

.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
  align-items: center;
  justify-content: space-between;
}
.copyright { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.875rem; }

.footer-nav,
.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-m);
}
.footer-nav a,
.socials a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  text-decoration: none;
}
.footer-nav a:hover,
.socials a:hover { color: var(--color-teal); }


/* 15. Responsive overrides ------------------------------- */

@media (max-width: 768px) {
  .hero-grid,
  .feature-grid,
  .testimonials-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }
  .feature-reverse .feature-copy  { order: initial; }
  .feature-reverse .feature-visual { order: initial; }

  .nav-row { gap: var(--space-m); }
  .nav-list { width: 100%; justify-content: center; }
  .nav-pill { font-size: 0.8125rem; padding: 0.4rem 0.75rem; }

  .hero            { padding: var(--space-xl) 0; }
  .feature         { padding: var(--space-xl) 0; }
  .pillars         { padding: var(--space-xl) 0; }
  .cta-band        { padding: var(--space-xl) 0; }

  .footer-row { justify-content: center; text-align: center; }
}
