/* =============================================================
   ZarooriLabs — zaroorilabs.com
   Hand-written CSS. No frameworks, no webfonts, no external
   requests of any kind.

   Contents
     1. Design tokens
     2. Reset & base
     3. Typography helpers
     4. Layout
     5. Buttons & links
     6. Header / navigation
     7. Hero
     8. Apps
     9. Principles
    10. About
    11. Contact
    12. Footer
    13. Motion & print preferences
   ============================================================= */

/* ---------- 1. Design tokens ---------------------------------- */
:root {
  /* Warm mist / off-white grounds */
  --mist:          #F7F5EF;
  --mist-deep:     #F0EDE4;
  --paper:         #FFFFFF;

  /* Deep forest green → natural leaf greens */
  --forest:        #12291F;
  --forest-soft:   #1D4634;
  --leaf:          #2B704E;   /* 5.1:1 on mist-deep, 4.8:1 on dew-soft */
  --leaf-bright:   #46A06F;
  --leaf-wash:     #E7F0E9;

  /* Restrained pale blue accent (the dew note) */
  --dew:           #7FA9C4;
  --dew-soft:      #DCE9F0;

  /* Text */
  --ink:           #1A2420;
  --ink-soft:      #4C5A53;
  --ink-faint:     #626D67;   /* 4.9:1 on mist, 5.4:1 on white */

  /* Lines & shadow */
  --line:          #E2DED2;
  --line-strong:   #CFCABB;
  --shadow-sm:     0 1px 2px rgba(18, 41, 31, .05);
  --shadow-md:     0 2px 8px rgba(18, 41, 31, .05), 0 12px 28px -18px rgba(18, 41, 31, .22);
  --shadow-lg:     0 2px 10px rgba(18, 41, 31, .05), 0 24px 48px -24px rgba(18, 41, 31, .26);

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Rhythm */
  --wrap:          70rem;
  --gutter:        clamp(1.25rem, 4vw, 2.5rem);
  --section-y:     clamp(4.5rem, 9vw, 8rem);
  --radius-sm:     .625rem;
  --radius:        1rem;
  --radius-lg:     1.5rem;
  --radius-pill:   999px;
}

/* ---------- 2. Reset & base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  /* Column layout so a short page (404) still pushes the footer to the
     bottom of the viewport instead of leaving a strip of background. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--forest);
  line-height: 1.15;
  letter-spacing: -.018em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.85rem + 3.4vw, 4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem); }
h3 { font-size: 1.1875rem; letter-spacing: -.01em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
:where(p, li) { text-wrap: pretty; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--forest-soft); }

/* Focus: visible on every ground we use */
:focus-visible {
  outline: 2px solid var(--forest-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer :focus-visible { outline-color: var(--leaf-bright); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .7rem 1.15rem;
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. Typography helpers ---------------------------- */
.eyebrow {
  margin: 0 0 .85rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--leaf);
}

.lede, .section-lede, .contact-lede {
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.62;
}

/* External-link arrow */
.ext {
  display: inline-block;
  margin-left: .4em;
  font-size: .85em;
  transform: translateY(-.05em);
  transition: transform .18s ease;
}
a:hover .ext { transform: translate(.12em, -.18em); }

/* ---------- 4. Layout ---------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { flex: 1 0 auto; }

.section { padding-block: var(--section-y); }

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head h2 { margin-bottom: .85rem; }

/* ---------- 5. Buttons --------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .1em;
  min-height: 3rem;
  padding: .8rem 1.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--forest-soft); color: #fff; }

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--forest);
}
.btn-secondary:hover {
  background: var(--paper);
  border-color: var(--leaf);
  color: var(--forest);
}

/* ---------- 6. Header / navigation --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--mist) 88%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: saturate(130%) blur(10px); }
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--mist) 94%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

/* The production lockup already contains the wordmark, so the brand link is
   just the image. Height is fixed and width follows the supplied 432:100
   aspect ratio — the artwork is never cropped, stretched or recoloured. */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-lockup {
  width: auto;
  height: 2.125rem;          /* 34px in the 72px header; wordmark ~17.7px */
  flex: none;
}
.footer-brand .brand-lockup { height: 1.9375rem; }

@media (max-width: 26rem) {
  .brand-lockup { height: 1.8125rem; }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.25rem, 1.2vw, 1rem);
}
.site-nav a {
  display: block;
  padding: .5rem .75rem;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.site-nav a:hover { background: var(--leaf-wash); color: var(--forest); }
.site-nav a[aria-current="true"] { color: var(--forest); font-weight: 600; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .5rem .9rem .5rem .75rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--forest);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 44rem) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--mist);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1rem;
  }
  .site-nav a {
    padding: .8rem .25rem;
    border-radius: var(--radius-sm);
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav li:last-child a { border-bottom: 0; }
}

/* No-JS fallback: there is nothing to toggle, so hide the button and show
   the links permanently as a wrapping row beneath the brand. */
.no-js .nav-toggle { display: none !important; }
@media (max-width: 44rem) {
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
  .no-js .site-nav {
    position: static;
    width: 100%;
    background: none;
    border-bottom: 0;
    box-shadow: none;
  }
  .no-js .site-nav:not(.is-open) { display: block; }
  .no-js .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    padding: 0 0 .25rem;
    margin-left: -.75rem;
  }
  .no-js .site-nav a {
    padding: .4rem .75rem;
    font-size: .9375rem;
    border-bottom: 0;
  }
}

/* ---------- 7. Hero ----------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  /* Tightened from the first pass: enough air to feel calm, without a
     large dead band above the fold. */
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem) clamp(3.25rem, 6.5vw, 5.5rem);
  background:
    radial-gradient(90% 70% at 12% 0%, var(--leaf-wash) 0%, transparent 62%),
    radial-gradient(70% 60% at 92% 12%, var(--dew-soft) 0%, transparent 58%),
    var(--mist);
}

/* Subtle organic ring forms — decorative only. */
.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--leaf) 20%, transparent);
}
.ring-1 { width: 34rem; height: 34rem; right: -9rem; top: -12rem; }
.ring-2 {
  width: 22rem; height: 22rem; right: 3rem; top: 5rem;
  border-color: color-mix(in srgb, var(--dew) 34%, transparent);
  border-style: solid;
  clip-path: inset(0 0 32% 0);          /* an open, incomplete ring */
}
.ring-3 { width: 13rem; height: 13rem; left: -5rem; bottom: -5.5rem; }

.hero-inner { position: relative; max-width: 44rem; }
.hero h1 { margin-bottom: .5rem; }

.tagline {
  margin: 0 0 1.15rem;
  color: var(--forest-soft);
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.3;
}

.hero .lede { max-width: 36rem; margin-bottom: 1.9rem; }

/* ---------- 8. Apps ----------------------------------------- */
.section-apps { background: var(--mist-deep); }

/* Each app is one full-width panel. A single app therefore reads as a
   deliberate feature rather than a half-empty card grid, and further apps
   simply stack beneath it. */
.app-list {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.app-feature {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: border-color .22s ease, box-shadow .22s ease;
}
.app-feature:hover {
  border-color: color-mix(in srgb, var(--leaf) 28%, var(--line));
  box-shadow: var(--shadow-lg);
}

@media (min-width: 50rem) {
  .app-feature {
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    align-items: start;
  }
  /* A hairline between identity and detail, rather than a second card. */
  .app-feature-id {
    padding-right: clamp(1.5rem, 3vw, 2.5rem);
    border-right: 1px solid var(--line);
  }
}

.app-feature-id {
  display: grid;
  justify-items: start;
  gap: .75rem;
}
.app-feature-id h3 {
  margin: .25rem 0 0;
  font-size: clamp(1.375rem, 1.2rem + .5vw, 1.75rem);
}

.app-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 5rem;
  height: 5rem;
  border-radius: 1.375rem;
  overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; border-radius: inherit; }

.app-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: .84375rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--leaf);
}
.app-status .dot {
  width: .4375rem;
  height: .4375rem;
  border-radius: 50%;
  background: var(--leaf-bright);
}

.app-desc {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.6;
  max-width: 38rem;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.75rem;
}
.app-tags li {
  padding: .3rem .7rem;
  background: var(--leaf-wash);
  border-radius: var(--radius-pill);
  color: var(--forest-soft);
  font-size: .78125rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.app-links { margin: 0; }

/* ---------- 9. Principles ----------------------------------- */
/* Four principles read best as a balanced 2 x 2 block — an auto-fit grid
   would leave a single orphan on the second row at desktop widths. */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.75rem, 4vw, 3.5rem);
}
@media (min-width: 34rem) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.principle {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--leaf);
}
.principle h3 { margin-bottom: .5rem; }
.principle p { color: var(--ink-soft); }

/* ---------- 10. About --------------------------------------- */
.section-about { background: var(--mist-deep); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-copy h2 { margin-bottom: 1.1rem; }
.about-copy p { color: var(--ink-soft); max-width: 36rem; }

.about-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.about-card h3 {
  margin-bottom: 1.25rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--leaf);
}
.about-card dl { margin: 0; display: grid; gap: 1rem; }
.glance-row + .glance-row { padding-top: 1rem; border-top: 1px solid var(--line); }
.about-card dt {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.about-card dd {
  margin: .2rem 0 0;
  color: var(--forest);
  font-weight: 500;
  overflow-wrap: anywhere;
}

@media (max-width: 52rem) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- 11. Contact ------------------------------------- */
.section-contact {
  position: relative;
  text-align: center;
  background:
    radial-gradient(75% 100% at 50% 0%, var(--dew-soft) 0%, transparent 62%),
    var(--mist);
}
.contact-inner { max-width: 38rem; margin-inline: auto; }
.contact-inner h2 { margin-bottom: .9rem; }
.contact-lede { margin-bottom: 2rem; }
.section-contact .actions { justify-content: center; }

/* ---------- 12. Footer -------------------------------------- */
.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--forest);
  color: color-mix(in srgb, #fff 82%, var(--forest));
}
.site-footer h2 {
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a {
  color: color-mix(in srgb, #fff 82%, var(--forest));
  text-decoration: none;
  transition: color .18s ease;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-tagline {
  margin: 1rem 0 0;
  max-width: 22rem;
  color: color-mix(in srgb, #fff 72%, var(--forest));
}
.footer-col ul { display: grid; gap: .625rem; }
.footer-col li { font-size: .9375rem; overflow-wrap: anywhere; }

.footer-bottom {
  padding-block: 1.5rem;
  border-top: 1px solid color-mix(in srgb, #fff 14%, transparent);
}
/* Used on 404.html, where there are no footer columns above the rule. */
.site-footer-bare { padding-top: 0; }
.footer-bottom-bare { border-top: 0; }

.footer-bottom p {
  margin: 0;
  font-size: .875rem;
  color: color-mix(in srgb, #fff 62%, var(--forest));
}

/* Below the four-up layout, keep the three link groups on one tidy row
   with the brand block spanning above them. */
@media (max-width: 60rem) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 38rem) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 26rem) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- 13. Motion & print ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}

/* Honour a forced-colours / high-contrast environment. */
@media (forced-colors: active) {
  .app-feature, .about-card { border: 1px solid CanvasText; }
  .btn { border: 1px solid ButtonText; }
}

@media print {
  .site-header, .hero-decor, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { padding-block: 1.5rem; background: #fff; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a, .site-footer h2, .site-footer .brand { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
  a[href^="#"]::after { content: ""; }
}
