/* =========================================================================
   PureDesign AI — shared stylesheet
   Plain CSS, no build step. All theme values live in :root below, so the
   whole site re-colours from one place.
   ========================================================================= */

:root {
  /* palette — professional, warm, casual */
  --bg:            #fbf8f3;   /* warm off-white page background */
  --surface:       #ffffff;   /* cards / raised surfaces */
  --surface-alt:   #f3efe7;   /* subtle banded sections */
  --ink:           #223140;   /* primary text (deep slate) */
  --muted:         #6d6a63;   /* secondary text (warm grey) */
  --primary:       #2e8b7f;   /* warm teal */
  --primary-dark:  #23695f;
  --primary-soft:  #e7f2ef;
  --accent:        #ef8354;   /* warm coral/amber */
  --accent-soft:   #fdeee2;
  --border:        #ece5da;

  /* type */
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  /* scale */
  --maxw: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -24px rgba(34, 49, 64, 0.35);
  --shadow-sm: 0 8px 20px -14px rgba(34, 49, 64, 0.3);
}

/* ---- reset-ish -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h1, h2 { text-wrap: balance; }
p  { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- layout helpers --------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--surface-alt); }
.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: .72rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--primary-dark);
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: ""; width: 20px; height: 2px; margin-right: .7rem;
  background: var(--accent); border-radius: 2px;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-family: var(--font-body);
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: #e06f3d; }

/* ---- header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.nav__logo img { height: 40px; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 500; }
.nav__links a.is-active { color: var(--primary-dark); }
.nav__links a:hover { color: var(--primary-dark); text-decoration: none; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  color: var(--ink);
}
.nav__toggle svg { width: 28px; height: 28px; }

@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav__links.is-open { max-height: 340px; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: .9rem 1.25rem; width: 100%; border-top: 1px solid var(--border); }
  .nav__links li:first-child a { border-top: 0; }
  .nav__links .btn { margin: .75rem 1.25rem 1rem; }
}

/* ---- hero ------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero__art { filter: drop-shadow(var(--shadow)); }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; margin-inline: auto; }
}

/* ---- cards / grids ---------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__meta {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2px;
  color: var(--primary-dark); font-weight: 400; margin-top: 1rem;
}

.icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--primary-soft); color: var(--primary-dark);
}
.icon--accent { background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 28px; height: 28px; }

/* ---- product highlight ------------------------------------------------ */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.product__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-soft); color: #c85f30; font-weight: 700;
  font-family: var(--font-mono); text-transform: uppercase;
  font-size: .68rem; letter-spacing: 1px; padding: .4rem .85rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.feature-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .7rem; }
.feature-list li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink); }
.feature-list svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }

.panel {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.panel h3 { color: #fff; }
.panel .stat { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.panel .stat div { flex: 1 1 120px; }
.panel .stat b { font-family: var(--font-head); font-size: 1.6rem; display: block; }
.panel .stat span {
  font-family: var(--font-mono); color: rgba(255,255,255,.75);
  font-size: .72rem; letter-spacing: .5px;
}

/* ---- CTA band --------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .panel { max-width: 780px; margin-inline: auto; }
.cta-band .lead { color: rgba(255,255,255,.85); }
.cta-band .hero__cta { justify-content: center; }

/* ---- contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.email-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; }
.email-card .copy {
  margin-left: auto; background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 8px; padding: .35rem .65rem; cursor: pointer; color: var(--ink);
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .5px;
}
.email-card .copy:hover { border-color: var(--primary); color: var(--primary-dark); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  font: inherit; padding: .7rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ---- footer ----------------------------------------------------------- */
.site-footer { position: relative; background: var(--ink); color: #cfd6dc; padding: 3rem 0 2rem; margin-top: 2rem; }
/* signature: perforated "tear-off" edge, a nod to POS receipt tape */
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background-image: repeating-linear-gradient(90deg,
    rgba(255,255,255,.20) 0 9px, transparent 9px 18px);
}
.site-footer a { color: #cfd6dc; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__grid h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: #8ba0b0; margin: 0 0 .9rem; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__brand p { color: #97a6b3; max-width: 34ch; }
.footer__labs {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2px;
  color: #8ba0b0; border: 1px dashed #3b4a5a; border-radius: 999px; padding: .4rem .85rem;
}
.footer__labs b { color: #e0e6ec; }
.footer__bottom {
  border-top: 1px solid #33414f; margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .2px; color: #8ba0b0;
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* small utility */
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- respect reduced-motion preference -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .card:hover, .btn:hover { transform: none; }
}
