/* ============================================================
   Ian Steven — AI Consulting
   Design system: "Fresh produce meets practical AI"
   Palette: mint paper, pine ink, leaf green, aqua, lime zest
   Type: Bricolage Grotesque (display) · Instrument Sans (body)
         Spline Sans Mono (shelf tags, labels, numbers)
   Signature: grocery shelf-tag / coupon cards that price
              AI wins in time saved instead of dollars.
   ============================================================ */

:root {
  --paper: #f3faf1;
  --card: #ffffff;
  --ink: #0f312e;
  --ink-soft: #3d5a56;
  --quiet: #52706b;
  --line: #d3e5d1;
  --line-soft: #e2efe0;

  --pine: #0b3b38;
  --pine-deep: #072a28;
  --leaf: #178f52;
  --leaf-deep: #0e6b44;
  --aqua: #2fa8b5;
  --sky: #2f7fd0;
  --zest: #d9f26b;
  --zest-soft: #eef9c9;

  --display: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --pad: 20px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-card: 0 1px 2px rgba(11, 59, 56, 0.06), 0 10px 30px -18px rgba(11, 59, 56, 0.25);
  --shadow-lift: 0 2px 4px rgba(11, 59, 56, 0.08), 0 18px 40px -20px rgba(11, 59, 56, 0.35);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--leaf-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf); }

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--zest); color: var(--pine-deep); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 250, 241, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand svg { display: block; }

.brand-name { line-height: 1.1; }
.brand-name strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-name small {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--quiet);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  padding: 7px 11px;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--zest-soft); color: var(--pine-deep); }
.site-nav a[aria-current="page"] {
  background: var(--pine);
  color: #fff;
}

.nav-cta { margin-left: 6px; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button.primary {
  background: var(--leaf-deep);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(14, 107, 68, 0.7);
}
.button.primary:hover {
  background: var(--leaf);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(23, 143, 82, 0.8);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.button.secondary:hover {
  background: var(--pine);
  color: #fff;
  transform: translateY(-1px);
}

.button.on-dark {
  background: var(--zest);
  color: var(--pine-deep);
  box-shadow: none;
}
.button.on-dark:hover { background: #e6f88f; color: var(--pine-deep); transform: translateY(-1px); }

.button.small { padding: 10px 16px; font-size: 14.5px; }

/* ---------------------------------------------------------
   Shelf tag — the signature label device
   --------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--pine);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px 6px 9px;
}
.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--leaf);
  flex: 0 0 auto;
}
.tag.on-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #d8ecd4;
}
.tag.on-dark::before { background: var(--zest); }

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head .tag { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(30px, 5.4vw, 44px);
  font-weight: 700;
}
.section-head p { color: var(--ink-soft); font-size: 18px; }

.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  pointer-events: none;
  z-index: 0;
}
.hero-bg svg { width: 100%; height: 100%; }
@media (max-width: 639px) {
  .hero-bg { display: none; }
}

.hero .wrap { position: relative; z-index: 1; }

.hero .tag { margin-bottom: 20px; }

.hero h1 {
  font-size: clamp(40px, 8.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 13ch;
}

.hero h1 .accent {
  color: var(--leaf);
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.22em;
}

.hero-lede {
  font-size: clamp(17px, 2.6vw, 20px);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 20px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--quiet);
  max-width: 480px;
}

/* Load-in choreography (single orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .rise.d1 { animation-delay: 0.05s; }
  .rise.d2 { animation-delay: 0.14s; }
  .rise.d3 { animation-delay: 0.23s; }
  .rise.d4 { animation-delay: 0.32s; }
  .rise.d5 { animation-delay: 0.41s; }
  .rise.d6 { animation-delay: 0.5s; }
  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------------------------------------------------------
   Specials board — coupon cards pricing wins in time saved
   --------------------------------------------------------- */

.specials {
  margin-top: 44px;
}

.specials-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.specials-head h2 {
  font-size: clamp(22px, 3.6vw, 28px);
  margin: 0;
}
.specials-head .fine {
  font-size: 13px;
  color: var(--ink-soft);
}
.specials-head .group-head {
  font-size: clamp(22px, 3.2vw, 26px);
  margin: 0;
}

.coupon-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.coupon {
  background: var(--card);
  border: 1.5px dashed var(--leaf);
  border-radius: var(--r-md);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.coupon:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  box-shadow: var(--shadow-lift);
}

.coupon .tag { margin-bottom: 14px; }

.coupon h3 {
  font-size: 19.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.coupon p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: auto;
  font-family: var(--mono);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.price-line .was {
  font-size: 14px;
  white-space: nowrap;
  color: var(--quiet);
  text-decoration: line-through;
  text-decoration-color: rgba(192, 57, 43, 0.7);
  text-decoration-thickness: 2px;
}
.price-line .now {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--leaf-deep);
}
.price-line .unit {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--quiet);
  margin-left: auto;
}

/* ---------------------------------------------------------
   Cards (services, general)
   --------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--zest-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card .icon svg { display: block; }

.card h3 { font-size: 21px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

.card .card-fine {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--quiet);
}

.card .textlink {
  margin-top: 14px;
  font-weight: 600;
  font-size: 15px;
}

/* Detailed service blocks (services page) */

.offer {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  display: grid;
  gap: 20px;
}

.offer-head { display: flex; align-items: flex-start; gap: 16px; }
.offer-head .icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--zest-soft);
  display: grid;
  place-items: center;
}
.offer-head h2 { font-size: clamp(22px, 3.4vw, 27px); margin-bottom: 4px; }
.offer-head .for-line { color: var(--quiet); font-size: 14.5px; margin: 0; }

.offer-cols { display: grid; gap: 18px; }

.offer-col h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--leaf-deep);
  margin-bottom: 10px;
}
.offer-col ul { margin: 0; padding: 0 0 0 18px; }
.offer-col li { margin-bottom: 7px; font-size: 15.5px; color: var(--ink-soft); }

.offer + .offer { margin-top: 22px; }

/* ---------------------------------------------------------
   Split feature (image + copy)
   --------------------------------------------------------- */

.split {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
}

.split .tag { margin-bottom: 16px; }
.split h2 { font-size: clamp(28px, 4.6vw, 40px); }
.split p { color: var(--ink-soft); }
.split.top { align-items: start; }

.shot-link { display: block; text-decoration: none; }

.shot {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  background: var(--card);
}

figure { margin: 0; }
figcaption {
  font-size: 13.5px;
  color: var(--quiet);
  margin-top: 10px;
}

/* ---------------------------------------------------------
   Dark band (pine)
   --------------------------------------------------------- */

.band {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(47, 168, 181, 0.22), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(217, 242, 107, 0.13), transparent 55%),
    var(--pine);
  color: #eaf6e6;
  border-radius: var(--r-lg);
  padding: 44px 26px;
}

.band h2 { color: #fff; font-size: clamp(26px, 4.4vw, 38px); }
.band p { color: #c9dfc9; }
.band a:not(.button) { color: var(--zest); }

.band .wrap-inner { max-width: 720px; }

.band-fine {
  margin-top: 14px;
  font-size: 13.5px;
  color: #a9c9ad;
}
.band-fine a { color: var(--zest); }

/* ---------------------------------------------------------
   Steps (real sequences only)
   --------------------------------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
}

.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--pine);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 2px;
}

.steps strong { display: block; margin-bottom: 3px; }
.steps span { color: var(--ink-soft); font-size: 15px; }

/* ---------------------------------------------------------
   Screenshot gallery (Kestrel)
   --------------------------------------------------------- */

.gallery {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.gallery figure .shot { box-shadow: var(--shadow-card); }

.tech-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 22px;
}
.tech-strip strong {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--leaf-deep);
  margin-bottom: 4px;
}
.tech-strip span { color: var(--ink-soft); font-size: 15px; }

.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--aqua);
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.callout strong { color: var(--ink); }

/* ---------------------------------------------------------
   About page
   --------------------------------------------------------- */

.about-hero {
  display: grid;
  gap: 32px;
  align-items: start;
  grid-template-columns: 1fr;
}

.portrait {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  background: var(--card);
  max-width: 420px;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(300px 200px at 70% 20%, rgba(47, 168, 181, 0.14), transparent 60%),
    var(--zest-soft);
}

.credits-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--leaf-deep);
  margin-bottom: 2px;
}

.credits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}
.credits li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--pine);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 26px 30px;
  border-left: 2px solid var(--line);
  margin-left: 8px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--leaf);
  border: 3px solid var(--paper);
}
.timeline .when {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--quiet);
  display: block;
  margin-bottom: 4px;
}
.timeline strong { display: block; font-size: 17px; margin-bottom: 4px; }
.timeline p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.contact-card h2 { font-size: 20px; }
.contact-card p { color: var(--ink-soft); font-size: 15.5px; }
.contact-card .button { margin-top: 8px; }

.note-list { margin: 0; padding: 0 0 0 20px; }
.note-list li { margin-bottom: 8px; color: var(--ink-soft); }

/* ---------------------------------------------------------
   CTA band + footer
   --------------------------------------------------------- */

.cta-band { text-align: center; }
.cta-band .band { padding: 56px 26px; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 24px; }

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
  padding: 36px 0 44px;
  color: var(--quiet);
  font-size: 14.5px;
}
.site-footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--leaf-deep); text-decoration: underline; }
.site-footer .fine { margin-top: 18px; font-size: 13px; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (min-width: 640px) {
  .coupon-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-strip { grid-template-columns: repeat(3, 1fr); }
  .offer-cols { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .section { padding: 88px 0; }
  .hero { padding: 88px 0 56px; }
  .coupon-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .split.flip .split-media { order: -1; }
  .about-hero { grid-template-columns: 380px 1fr; gap: 56px; }
  .band { padding: 56px 48px; }
  .offer { padding: 36px; }
  .offer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 639px) {
  /* Header: scrolls away on phones, CTA lives in the page instead */
  .site-header { position: static; }
  .site-header .bar { padding-top: 10px; padding-bottom: 10px; }
  .nav-cta { display: none; }
  .site-nav { width: 100%; }
  .site-nav a { font-size: 14px; padding: 10px 12px; }

  /* Tighter vertical rhythm on phones */
  .section { padding: 44px 0; }
  .section.tight { padding: 28px 0; }
  .hero { padding: 36px 0 28px; }
  .specials { margin-top: 32px; }
  .cta-band .band { padding: 44px 22px; }
  .site-footer { margin-top: 24px; }

  .hero-actions .button { flex: 1 1 auto; }
}

@media (max-width: 959px) {
  .about-photo { order: 2; }
  .portrait { max-width: 420px; margin-inline: auto; }
}

@media print {
  .site-header, .site-footer, .cta-band { display: none; }
}
