/* ==========================================================================
   Inbox Zero — "Inbox zero by lunch"
   Calm, fast, focused. Light editorial productivity design.
   By BuildspaceLabs
   ========================================================================== */

:root {
  /* Base + surfaces */
  --base:      #FAFAF9;
  --surface:   #FFFFFF;
  --surface-2: #F4F4F2;
  --ink:       #18181B;
  --secondary: #71717A;
  --muted:     #A1A1AA;
  --hairline:  #ECECEA;
  --hairline-2:#E4E4E1;

  /* The "zero" green — reserved for the moment of clearing */
  --green:     #10B981;
  --green-600: #059669;
  --green-700: #047857;
  --green-tint:#ECFDF5;
  --green-glow: rgba(16, 185, 129, 0.22);

  /* Slate for structure */
  --slate:     #334155;
  --slate-2:   #475569;

  /* Soft blue for lanes */
  --blue:      #3B82F6;
  --blue-tint: #EFF5FF;

  /* Lane accents */
  --lane-todo:    #10B981; /* To-do (green) */
  --lane-await:   #F59E0B; /* Awaiting reply (amber) */
  --lane-fyi:     #3B82F6; /* FYI (blue) */
  --lane-news:    #8B5CF6; /* Newsletter (violet) */
  --lane-promo:   #A1A1AA; /* Promotional (grey) */

  /* Type */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(24,24,27,0.04), 0 1px 3px rgba(24,24,27,0.06);
  --shadow-md: 0 4px 12px rgba(24,24,27,0.05), 0 12px 28px rgba(24,24,27,0.07);
  --shadow-lg: 0 8px 24px rgba(24,24,27,0.06), 0 30px 60px rgba(24,24,27,0.10);
  --shadow-plate: 0 2px 6px rgba(24,24,27,0.04), 0 24px 48px rgba(24,24,27,0.10), 0 48px 96px rgba(24,24,27,0.08);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* Rhythm */
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 148px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset-ish
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01", "tnum";
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.tnum { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

/* Focus states */
:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--green);
  border-radius: 2px;
}

.section-head { max-width: 640px; }
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 46px);
  margin-top: 18px;
}
.section-head .lede {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 2px rgba(5,150,105,0.30), 0 10px 24px var(--green-glow);
}
.btn-primary:hover {
  background: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(5,150,105,0.30), 0 16px 34px var(--green-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg { padding: 15px 26px; font-size: 16.5px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,249,0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.site-header.is-stuck {
  border-bottom-color: var(--hairline);
  background: rgba(250,250,249,0.88);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  flex: none;
  position: relative;
  overflow: hidden;
}
.brand-mark svg { width: 20px; height: 20px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--secondary);
  transition: color 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.built-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.built-by:hover { color: var(--ink); border-color: var(--hairline-2); }
.built-by svg { width: 12px; height: 12px; opacity: 0.7; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .built-by span.long { display: none; }
}
@media (max-width: 560px) {
  .header-actions .btn-primary { display: none; }
  .header-inner { gap: 12px; }
  .built-by { padding: 7px 10px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  /* soft green wash beneath the counter, very subtle */
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(880px, 90vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--green-glow), transparent 72%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(24,24,27,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24,24,27,0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}
.hero-badge b { color: var(--ink); font-weight: 700; }

.hero h1 {
  margin-top: 26px;
  font-size: clamp(42px, 7.2vw, 76px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero h1 .accent {
  color: var(--green-600);
  position: relative;
  white-space: nowrap;
}
.hero-lede {
  margin-top: 26px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--secondary);
  max-width: 30ch;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { width: 15px; height: 15px; color: var(--green-600); flex: none; }

/* ---- Signature hero visual: lanes + count-down ---- */
.hero-stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px 20px 22px;
  overflow: hidden;
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.stage-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
}
.stage-title svg { width: 15px; height: 15px; color: var(--green-600); }

/* The big counter */
.counter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.counter .num {
  font-size: 30px;
  min-width: 1.3ch;
  text-align: right;
  transition: color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.counter .num.is-zero {
  color: var(--green-600);
  transform: scale(1.06);
}
.counter .lbl { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* Lanes row */
.lanes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.lane {
  position: relative;
  min-height: 168px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  padding: 9px 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lane-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--slate);
  text-transform: none;
  padding-inline: 2px;
  line-height: 1.1;
}
.lane-head .pip {
  width: 7px; height: 7px; border-radius: 2px; flex: none;
}
.lane-count {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border-radius: 5px;
  padding: 1px 5px;
  font-variant-numeric: tabular-nums;
}
.lane[data-lane="todo"]  .pip { background: var(--lane-todo); }
.lane[data-lane="await"] .pip { background: var(--lane-await); }
.lane[data-lane="fyi"]   .pip { background: var(--lane-fyi); }
.lane[data-lane="news"]  .pip { background: var(--lane-news); }
.lane[data-lane="promo"] .pip { background: var(--lane-promo); }

/* email cards inside lanes (destination state) */
.lane-slot {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 6px 6px;
  box-shadow: 0 1px 1px rgba(24,24,27,0.03);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}
.mini-card .mc-line {
  height: 3.5px;
  border-radius: 2px;
  background: var(--hairline-2);
}
.mini-card .mc-line.w1 { width: 78%; margin-bottom: 4px; background: var(--slate); opacity: 0.55; }
.mini-card .mc-line.w2 { width: 54%; }

.mini-card.landed {
  animation: cardLand 0.5s var(--ease-out) forwards;
}
@keyframes cardLand {
  0%   { opacity: 0; transform: translateY(-14px) scale(0.94); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* flying card (single element that animates across) */
.flyer {
  position: absolute;
  z-index: 5;
  width: 96px;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  padding: 8px 9px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
}
.flyer .fl-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 5px;
}
.flyer .fl-tag .pip { width: 6px; height: 6px; border-radius: 2px; }
.flyer .mc-line { height: 3.5px; border-radius: 2px; background: var(--hairline-2); }
.flyer .mc-line.w1 { width: 80%; margin-bottom: 4px; background: var(--slate); opacity: 0.5; }
.flyer .mc-line.w2 { width: 60%; }

/* Shortcut hints */
.shortcuts {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  opacity: 0;
  transform: translateY(6px);
}
.shortcut.show { animation: hintIn 0.5s var(--ease-out) forwards; }
@keyframes hintIn { to { opacity: 1; transform: translateY(0); } }
.kbd {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(24,24,27,0.04);
}

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */
.band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 720px) {
  .band-inner { grid-template-columns: repeat(3, 1fr); }
}
.stat {
  padding: clamp(30px, 4vw, 48px) clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 720px) {
  .stat { border-bottom: none; border-right: 1px solid var(--hairline); }
  .stat:last-child { border-right: none; }
}
.stat .stat-num {
  font-size: clamp(38px, 5.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat .stat-num .unit { font-size: 0.42em; font-weight: 700; color: var(--secondary); letter-spacing: -0.01em; }
.stat .stat-num em { font-style: normal; color: var(--green-600); }
.stat .stat-label {
  margin-top: 12px;
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Lanes explainer
   -------------------------------------------------------------------------- */
.lanes-section .lane-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 60px);
}
@media (min-width: 640px) { .lanes-section .lane-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lanes-section .lane-cards { grid-template-columns: repeat(5, 1fr); } }

.lane-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.lane-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--_c);
  opacity: 0.9;
}
.lane-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--hairline-2);
}
.lane-card[data-c="todo"]  { --_c: var(--lane-todo); }
.lane-card[data-c="await"] { --_c: var(--lane-await); }
.lane-card[data-c="fyi"]   { --_c: var(--lane-fyi); }
.lane-card[data-c="news"]  { --_c: var(--lane-news); }
.lane-card[data-c="promo"] { --_c: var(--lane-promo); }

.lane-card .lc-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--_c) 12%, #fff);
  color: var(--_c);
  margin-bottom: 16px;
}
.lane-card .lc-icon svg { width: 20px; height: 20px; }
.lane-card h3 { font-size: 17px; letter-spacing: -0.02em; }
.lane-card p { margin-top: 8px; font-size: 14px; color: var(--secondary); line-height: 1.55; }

/* --------------------------------------------------------------------------
   How it clears — 3 steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 60px);
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
}
.step-num .n {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--green-tint);
  color: var(--green-700);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 18px; font-size: 20px; }
.step p { margin-top: 10px; font-size: 15px; color: var(--secondary); line-height: 1.6; }
.step-connector {
  display: none;
}
@media (min-width: 900px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 44px;
    right: -22px;
    width: 22px;
    color: var(--hairline-2);
    z-index: 2;
  }
  .step:last-child .step-connector { display: none; }
}

/* --------------------------------------------------------------------------
   Replies in your voice, cited
   -------------------------------------------------------------------------- */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 60px);
  align-items: center;
  margin-top: clamp(36px, 4vw, 52px);
}
@media (min-width: 940px) {
  .voice-grid { grid-template-columns: 0.92fr 1.08fr; }
}
.voice-copy .feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}
.voice-copy .feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.voice-copy .fl-check {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--green-tint);
  color: var(--green-700);
  display: grid; place-items: center;
  margin-top: 1px;
}
.voice-copy .fl-check svg { width: 15px; height: 15px; }
.voice-copy .feature-list strong { font-weight: 700; display: block; font-size: 15.5px; }
.voice-copy .feature-list span { color: var(--secondary); font-size: 14.5px; line-height: 1.5; }

/* Draft demo card */
.draft-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
}
.draft-from {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--slate), var(--slate-2));
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.draft-from .df-name { font-size: 13.5px; font-weight: 700; }
.draft-from .df-sub { font-size: 12px; color: var(--muted); }
.draft-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700;
  color: var(--lane-await);
  background: color-mix(in srgb, var(--lane-await) 12%, #fff);
  padding: 4px 10px; border-radius: 999px;
}
.draft-tag .pip { width: 6px; height: 6px; border-radius: 2px; background: var(--lane-await); }

.draft-body { padding: 18px 20px 6px; }
.draft-quote {
  font-size: 13.5px;
  color: var(--secondary);
  line-height: 1.55;
  padding: 12px 14px;
  background: var(--surface-2);
  border-left: 2px solid var(--hairline-2);
  border-radius: 0 8px 8px 0;
  margin-bottom: 18px;
}
.draft-reply-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 12px;
}
.draft-reply-label svg { width: 14px; height: 14px; }
.draft-reply {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
.cite {
  position: relative;
  cursor: help;
  background: var(--green-tint);
  border-bottom: 1.5px solid var(--green);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}
.cite sup {
  font-size: 0.62em;
  color: var(--green-700);
  font-weight: 800;
  margin-left: 1px;
}
.draft-cites {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--hairline-2);
  display: grid;
  gap: 10px;
}
.draft-cites .dc-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.cite-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--secondary);
  line-height: 1.45;
}
.cite-row .cn {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--green-tint);
  color: var(--green-700);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800;
  margin-top: 1px;
}
.draft-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
  flex-wrap: wrap;
}
.draft-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700;
  padding: 9px 15px; border-radius: 9px;
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  color: var(--ink);
}
.draft-btn.primary { background: var(--green); color: #fff; border-color: transparent; }
.draft-btn svg { width: 14px; height: 14px; }
.draft-btn .kbd { margin-left: 2px; }

/* Tone presets */
.tone-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.tone-chip {
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--hairline-2);
  color: var(--secondary);
  background: var(--surface);
}
.tone-chip.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Product tour (screenshots)
   -------------------------------------------------------------------------- */
.tour {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  margin-top: clamp(44px, 5vw, 64px);
}
.shot {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
}
@media (min-width: 900px) {
  .shot { grid-template-columns: 0.82fr 1.18fr; }
  .shot.flip .shot-copy { order: 2; }
  .shot.flip .shot-frame { order: 1; }
}
.shot-copy .shot-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-700);
}
.shot-copy h3 { font-size: clamp(23px, 3vw, 30px); margin-top: 14px; }
.shot-copy p { margin-top: 14px; color: var(--secondary); font-size: 15.5px; line-height: 1.6; }
.shot-copy .shot-meta {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.shot-meta .chip {
  font-size: 12.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--hairline);
  color: var(--slate);
}

/* Browser-chrome frame */
.browser {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-plate);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-dots i:nth-child(1) { background: #FF5F57; }
.browser-dots i:nth-child(2) { background: #FEBC2E; }
.browser-dots i:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1;
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 5px 12px;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 340px;
}
.browser-url svg { width: 12px; height: 12px; color: var(--green-600); flex: none; }
.browser-url span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; display: block; }
figure.shot-frame { margin: 0; }
figure.shot-frame figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding-inline: 10px;
}

/* --------------------------------------------------------------------------
   Tech chips
   -------------------------------------------------------------------------- */
.tech {
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.tech-inner {
  display: grid;
  gap: 26px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .tech-inner { grid-template-columns: auto 1fr; gap: 44px; } }
.tech-label { font-size: 14px; font-weight: 700; color: var(--slate); }
.tech-label span { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-tech {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--base);
  color: var(--ink);
}
.chip-tech svg { width: 15px; height: 15px; color: var(--green-600); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
}
.cta-card {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 76px) clamp(28px, 5vw, 68px);
  overflow: hidden;
  isolation: isolate;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(16,185,129,0.30), transparent 70%);
  z-index: -1;
}
.cta-card .hero-grid {
  opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 40%, transparent 85%);
}
.cta-card .eyebrow { color: rgba(255,255,255,0.7); }
.cta-card .eyebrow::before { background: var(--green); }
.cta-card h2 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 50px);
  margin-top: 18px;
  max-width: 16ch;
}
.cta-card p {
  margin-top: 18px;
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  max-width: 46ch;
  line-height: 1.6;
}
.cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-card .btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.cta-card .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.32); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--base);
  padding-block: clamp(48px, 6vw, 72px) 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--secondary); font-size: 14.5px; max-width: 34ch; line-height: 1.6; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--secondary); transition: color 0.2s var(--ease-out); }
.footer-col a:hover { color: var(--ink); }
.footer-col a svg { width: 11px; height: 11px; opacity: 0.6; vertical-align: middle; margin-left: 3px; }

.footer-bottom {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--secondary);
}
.bs-lockup {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--ink);
  padding: 6px 11px; border-radius: 9px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  transition: border-color 0.2s var(--ease-out);
}
.bs-lockup:hover { border-color: var(--hairline-2); }
.bs-lockup .bs {
  font-family: var(--font);
  font-size: 13px;
  color: var(--green-700);
}
.footer-credit .credit-line { max-width: 40ch; }
.footer-credit .credit-line b { color: var(--ink); font-weight: 700; }
.footer-legal { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(20px, 3vw, 36px);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  letter-spacing: -0.035em;
}
.page-hero .lede {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--secondary);
  max-width: 52ch;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: var(--section-y);
  align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 20px; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.field label .req { color: var(--green-600); }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--base);
  border: 1px solid var(--hairline-2);
  border-radius: 11px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--green-glow);
}
.form-submit { margin-top: 6px; }
.form-submit .btn { width: 100%; }
.reassure {
  margin-top: 14px;
  font-size: 13px;
  color: var(--secondary);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
}
.reassure svg { width: 14px; height: 14px; color: var(--green-600); flex: none; }

.contact-aside { display: grid; gap: 18px; }
.aside-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.aside-card h3 { font-size: 16px; margin-bottom: 6px; }
.aside-card p { font-size: 14px; color: var(--secondary); line-height: 1.55; }
.aside-card a.inline-link {
  color: var(--green-700);
  font-weight: 700;
  border-bottom: 1.5px solid var(--green-glow);
  transition: border-color 0.2s var(--ease-out);
}
.aside-card a.inline-link:hover { border-color: var(--green); }
.aside-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.aside-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--secondary); }
.aside-list .ai {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--green-tint); color: var(--green-700);
  display: grid; place-items: center;
}
.aside-list .ai svg { width: 16px; height: 16px; }
.aside-list b { color: var(--ink); display: block; font-weight: 700; font-size: 14px; }

/* --------------------------------------------------------------------------
   Thank-you page
   -------------------------------------------------------------------------- */
.thanks {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(60px, 10vw, 120px);
}
.thanks-inner { max-width: 540px; }
.success-badge {
  width: 82px; height: 82px;
  border-radius: 50%;
  margin: 0 auto 30px;
  display: grid; place-items: center;
  background: var(--green-tint);
  color: var(--green-600);
  position: relative;
  animation: badgePop 0.6s var(--ease-out) both;
}
.success-badge::after {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1.5px solid var(--green-glow);
  animation: badgeRing 1.4s var(--ease-out) infinite;
}
.success-badge svg { width: 40px; height: 40px; }
@keyframes badgePop {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes badgeRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}
.thanks h1 { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -0.03em; }
.thanks p { margin-top: 18px; color: var(--secondary); font-size: 17px; line-height: 1.6; }
.thanks-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.thanks-email {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}
.thanks-email a { color: var(--green-700); font-weight: 700; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .mini-card { opacity: 1 !important; transform: none !important; }
  .shortcut { opacity: 1 !important; transform: none !important; }
  .success-badge::after { display: none; }
  .flyer { display: none !important; }
}
