/* =========================================================
   Level Up Laptop Appeal — site stylesheet
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --purple:        #7b1fa8;
  --purple-deep:   #5a1480;
  --purple-soft:   #f3e8fb;
  --ink:           #1a1726;
  --ink-2:         #3a3548;
  --muted:         #6b6478;
  --line:          #e6e1ec;
  --cream:         #f7f4ef;
  --paper:         #fbfaf7;
  --white:         #ffffff;
  --shadow-sm:     0 1px 2px rgba(26,23,38,.06), 0 2px 8px rgba(26,23,38,.04);
  --shadow-md:     0 8px 30px rgba(26,23,38,.08);
  --radius:        14px;
  --radius-lg:     22px;
  --maxw:          1180px;
  --pad:           clamp(20px, 4vw, 40px);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--purple); }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .4em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.25; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: "Inter Tight", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--purple-deep);
  display: inline-block;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
section { padding: clamp(56px, 9vw, 96px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,247,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header > .container { position: relative; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 72px;
  height: auto;
  transition: transform .2s ease;
}
.brand:hover img { transform: scale(1.04); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.brand-tagline {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--purple-soft); color: var(--purple-deep); }
.nav-links a.active { color: var(--purple-deep); background: var(--purple-soft); }

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
}
.nav-cta:hover { background: var(--purple-deep); color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: .98rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--purple-deep); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--purple-deep); border-color: var(--purple-deep); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 60px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(123,31,168,.16), rgba(123,31,168,0) 70%);
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--purple-deep);
  font-weight: 500;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--ink-2);
  max-width: 32em;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2rem; }

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: max-content;
}
.hero-stat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--purple-deep);
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-stat-label {
  font-size: .92rem;
  color: var(--ink-2);
  line-height: 1.3;
  max-width: 16em;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image-caption {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(26,23,38,.78);
  color: var(--white);
  font-size: .82rem;
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  right: -120px; top: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(closest-side, rgba(123,31,168,.10), rgba(123,31,168,0) 70%);
  pointer-events: none;
}
.page-header .container { position: relative; }
.page-header h1 { margin-bottom: .4em; }
.page-header p { color: var(--ink-2); max-width: 36em; font-size: 1.1rem; }

/* ---------- Action cards (home) ---------- */
.action-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.action-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple);
  color: var(--ink);
}
.action-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.action-card-icon svg { width: 22px; height: 22px; }
.action-card h3 { font-size: 1.3rem; margin-bottom: .3em; }
.action-card p {
  color: var(--ink-2);
  font-size: .98rem;
  margin: 0 0 18px;
  flex-grow: 1;
}
.action-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--purple-deep);
}
.action-card-link .arrow { transition: transform .15s; }
.action-card:hover .action-card-link .arrow { transform: translateX(3px); }

/* ---------- Two-column story (home / contact) ---------- */
.story {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.story.reverse > :first-child { order: 2; }
.story-image img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.story-text h2 { margin-bottom: .5em; }
.story-text p { color: var(--ink-2); font-size: 1.05rem; }

/* ---------- Process steps ---------- */
.process-step {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.process-step:last-child { border-bottom: 0; }
.process-step.reverse .process-step-text { order: 2; }
.process-step-image img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.process-step h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); }
.process-step-text p { color: var(--ink-2); font-size: 1.04rem; }

/* ---------- Section header utility ---------- */
.section-head {
  max-width: 36em;
  margin: 0 0 clamp(32px, 5vw, 52px);
}
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Stats row ---------- */
.stats-row {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.stats-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 85% 20%, rgba(123,31,168,.32), transparent 60%),
    radial-gradient(closest-side at 10% 90%, rgba(123,31,168,.18), transparent 65%);
  pointer-events: none;
}
.stat {
  position: relative;
  padding: 6px 0;
}
.stat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--white);
  margin: 0 0 .35em;
}
.stat-label {
  color: rgba(255,255,255,.78);
  font-size: .98rem;
  line-height: 1.4;
}

/* ---------- Cafe page extras ---------- */
.cafe-lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 38em;
}
.cafe-header-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-md);
}

/* Slideshow */
.slideshow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-md);
}
.slideshow-track {
  position: absolute; inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,.45);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.slideshow-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.slideshow-dot.active { background: var(--white); }

/* ---------- Contact / lists ---------- */
.contact-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}
.contact-block h2 { font-size: 1.5rem; margin-bottom: .3em; }
.contact-block h3 { font-size: 1.15rem; margin-top: 1.3em; margin-bottom: .3em; }
.contact-block p { color: var(--ink-2); }
.email-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white) !important;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  margin-top: 10px;
  transition: background .15s;
}
.email-cta:hover { background: var(--purple-deep); color: var(--white) !important; }

.checklist { list-style: none; padding: 0; margin: .5em 0 1em; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--purple-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b1fa8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.crosslist { list-style: none; padding: 0; margin: .5em 0 1em; }
.crosslist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  color: var(--ink-2);
}
.crosslist li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fde8e8;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c1272d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: clamp(48px, 7vw, 72px) 0 28px;
  margin-top: clamp(40px, 6vw, 60px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 28em;
}
.footer-brand img { width: 48px; }
.footer-brand-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
}
.footer-brand p { font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.7); margin: 0; }
.footer h4 {
  color: var(--white);
  font-family: "Inter Tight", sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .15s;
  font-size: .95rem;
}
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}
.footer-social a:hover { background: var(--purple); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid,
  .story,
  .process-step,
  .process-step.reverse {
    grid-template-columns: 1fr;
  }
  .story.reverse > :first-child,
  .process-step.reverse .process-step-text { order: 0; }
  .hero-image { aspect-ratio: 4/3; max-height: 460px; }
  .action-cards { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--pad) 24px;
    gap: 4px;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(26,23,38,.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform .2s ease, opacity .2s ease, visibility 0s linear 0s;
  }
  .nav-links a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: 10px;
  }
  .nav-cta { margin-top: 12px; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .brand img { width: 56px; }
  .brand-name { font-size: 1.1rem; }
  .brand-tagline { font-size: .65rem; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
