/* =========================================================================
   A Box For Your Business — "Bento"
   Vanilla CSS. Bunny fonts only. All visuals from CSS/gradients.
   ========================================================================= */

:root {
  /* Surfaces */
  --paper:        #f7f6f3;
  --paper-2:      #ffffff;
  --paper-3:      #efede7;
  --line:         #e4e1da;
  --line-strong:  #d6d2c8;

  /* Ink */
  --ink:          #16140f;
  --ink-2:        #3c382f;
  --ink-soft:     #6b6557;
  --ink-faint:    #98917f;

  /* Accents (precise, restrained) */
  --amber:        #e0612a;   /* warm signal accent */
  --amber-soft:   #f6dcc9;
  --teal:         #157a6e;   /* second precise accent */
  --teal-soft:    #cfe6e1;

  /* Type */
  --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text:    "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-rest: 0 1px 2px rgba(22,20,15,.05), 0 8px 22px -14px rgba(22,20,15,.22);
  --shadow-lift: 0 2px 6px rgba(22,20,15,.07), 0 28px 60px -28px rgba(22,20,15,.40);

  --ease-pack: cubic-bezier(.2, .85, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text);
  color: var(--ink-2);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(224,97,42,.06), transparent 60%),
    radial-gradient(1000px 700px at -10% 110%, rgba(21,122,110,.06), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

p { margin: 0; }

a { color: inherit; }

kbd {
  font-family: var(--display);
  font-size: .82em;
  font-weight: 600;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--ink);
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.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;
}

/* ---------- Focus + skip ---------- */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  transition: top .2s var(--ease-pack);
}
.skip-link:focus { top: 16px; }

/* ---------- Brand mark (CSS box) ---------- */
.brand-mark {
  position: relative;
  display: inline-block;
  width: 30px; height: 28px;
  flex: 0 0 auto;
}
.brand-mark .brand-body {
  position: absolute;
  left: 2px; bottom: 0;
  width: 26px; height: 19px;
  background: linear-gradient(160deg, var(--amber), #c44e1d);
  border-radius: 5px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.12);
}
.brand-mark .brand-lid {
  position: absolute;
  left: 0; top: 5px;
  width: 30px; height: 9px;
  background: var(--ink);
  border-radius: 4px;
  transform: rotate(-4deg);
  transform-origin: left center;
}
.brand-mark-sm { width: 26px; height: 24px; }
.brand-mark-sm .brand-body { width: 22px; height: 16px; left: 2px; }
.brand-mark-sm .brand-lid { width: 26px; height: 8px; top: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,246,243,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name-accent { color: var(--amber); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-nav a {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .18s, background .18s;
}
.header-nav a:hover { color: var(--ink); background: var(--paper-3); }
.header-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-weight: 600 !important;
}
.header-cta:hover { background: #2a261d !important; }

/* ---------- Intro ---------- */
.intro {
  padding: clamp(56px, 9vw, 104px) 0 clamp(28px, 5vw, 52px);
  max-width: 920px;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.eyebrow-centre { color: var(--teal); }

h1 {
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  font-weight: 800;
}
.intro-accent { color: var(--ink-soft); }

.intro-lede {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 56ch;
}
.intro-hint {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.hint-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(21,122,110,.5);
  animation: ping 2.4s var(--ease-pack) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(21,122,110,.5); }
  70%  { box-shadow: 0 0 0 11px rgba(21,122,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,122,110,0); }
}

/* ---------- Bento grid ---------- */
.bento-section { padding-bottom: clamp(48px, 8vw, 96px); }

.bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 188px;
  gap: 16px;
}

.cell { display: flex; min-width: 0; }
.cell-wide { grid-column: span 2; }
.cell-tall { grid-row: span 2; }

/* The card */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 22px 22px 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-rest);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition:
    transform .42s var(--ease-pack),
    box-shadow .42s var(--ease-pack),
    border-color .3s;
  will-change: transform;
}
.tile[role="button"]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.tile[role="button"]:active { transform: translateY(-1px) scale(.995); }

/* Accent seam down the left edge of each compartment */
.tile::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--accent, var(--ink-faint));
  opacity: .9;
  transition: top .42s var(--ease-pack), bottom .42s var(--ease-pack);
}
.cell[data-accent="amber"] { --accent: var(--amber); }
.cell[data-accent="teal"]  { --accent: var(--teal); }
.cell[data-accent="ink"]   { --accent: var(--ink); }

.tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: auto;
}
.tile-tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tile-title {
  font-size: 1.42rem;
  font-weight: 700;
  margin-top: 14px;
}
.tile-sub {
  margin-top: 7px;
  font-size: .96rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* Expand cue (a tidy plus that becomes a minus) */
.tile-cue {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.tile-cue::before,
.tile-cue::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--ink-soft);
  transition: transform .34s var(--ease-pack), opacity .34s var(--ease-pack);
}
.tile-cue::before { width: 11px; height: 2px; transform: translate(-50%,-50%); }
.tile-cue::after  { width: 2px; height: 11px; transform: translate(-50%,-50%); }

/* The detail panel: collapsed by default via grid-rows trick */
.tile-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows .46s var(--ease-pack),
    opacity .3s ease,
    margin-top .46s var(--ease-pack);
}
.tile-detail > * { min-height: 0; overflow: hidden; }
.tile-detail p { font-size: .95rem; color: var(--ink-soft); }
.detail-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.detail-list li {
  position: relative;
  padding-left: 24px;
  font-size: .92rem;
  color: var(--ink-2);
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 13px; height: 8px;
  border-left: 2px solid var(--accent, var(--teal));
  border-bottom: 2px solid var(--accent, var(--teal));
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ---------- Expanded state ---------- */
.tile.is-open {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent, var(--line-strong));
}
.tile.is-open::before { top: 14px; bottom: 14px; }
.tile.is-open .tile-detail {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 16px;
}
.tile.is-open .tile-cue { border-color: var(--accent); background: var(--accent); }
.tile.is-open .tile-cue::before { background: var(--paper-2); }
.tile.is-open .tile-cue::after  { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

/* When a tile opens we let the cell span its natural content height */
.cell.is-open { align-items: stretch; }

/* ---------- Mini CSS illustrations ---------- */
.tile-icon { flex: 0 0 auto; }
.art {
  position: relative;
  display: block;
  width: 48px; height: 40px;
  border-radius: 9px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* Website: a tiny browser */
.art-website { padding: 0; }
.art-website .ui-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: var(--line-strong);
}
.art-website .ui-bar::before {
  content: ""; position: absolute; left: 5px; top: 3px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 6px 0 0 var(--ink-faint), 12px 0 0 var(--line);
}
.art-website .ui-row {
  position: absolute; left: 6px; height: 3px; border-radius: 2px;
  background: var(--ink-faint); opacity: .55;
}
.art-website .ui-row { top: 15px; width: 30px; }
.art-website .ui-row.short { top: 22px; width: 18px; }
.art-website .ui-block {
  position: absolute; left: 6px; bottom: 6px;
  width: 36px; height: 7px; border-radius: 3px;
  background: var(--amber); opacity: .85;
}

/* Plugin grid */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 7px;
}
.art-grid span {
  background: var(--ink-faint);
  border-radius: 2px;
  opacity: .45;
}
.art-grid .lit { background: var(--amber); opacity: 1; }

/* Hosting pulse */
.art-pulse { background: var(--ink); border-color: var(--ink); }
.art-pulse .pulse-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px;
  background:
    linear-gradient(90deg, transparent 0 14%, var(--teal) 14% 22%, transparent 22% 30%,
      var(--teal) 30% 33%, transparent 33% 60%, var(--teal) 60% 64%, transparent 64%);
  transform: translateY(-50%);
}
.art-pulse::after {
  content: ""; position: absolute; right: 7px; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(21,122,110,.6);
  animation: ping 2.4s var(--ease-pack) infinite;
}

/* Email envelope */
.art-mail { background: var(--teal-soft); border-color: var(--teal-soft); }
.art-mail .mail-flap {
  position: absolute; inset: 9px 8px;
  border: 2px solid var(--teal); border-radius: 4px;
  background: var(--paper-2);
}
.art-mail .mail-flap::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -2px;
  height: 14px;
  background:
    linear-gradient(135deg, transparent 49%, var(--teal) 49% 53%, transparent 53%),
    linear-gradient(225deg, transparent 49%, var(--teal) 49% 53%, transparent 53%);
}

/* Support chat bubbles */
.art-chat { background: var(--amber-soft); border-color: var(--amber-soft); }
.art-chat .chat-a, .art-chat .chat-b {
  position: absolute; border-radius: 7px 7px 7px 2px;
}
.art-chat .chat-a {
  left: 7px; top: 8px; width: 24px; height: 12px;
  background: var(--amber);
}
.art-chat .chat-b {
  right: 7px; bottom: 8px; width: 18px; height: 11px;
  background: var(--paper-2); border: 1.5px solid var(--amber);
  border-radius: 7px 7px 2px 7px;
}

/* ---------- Pricing tile ---------- */
.tile-pricing { background: linear-gradient(170deg, var(--paper-2), #fbfaf7); }
.price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: 16px;
  font-family: var(--display);
  color: var(--ink);
  line-height: 1;
}
.price-currency { font-size: 1.6rem; font-weight: 600; margin-top: 6px; }
.price-figure { font-size: clamp(3.2rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; }
.price-period { font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Quote tile ---------- */
.tile-quote { background: var(--ink); border-color: var(--ink); }
.tile-quote::before { background: var(--amber); opacity: 1; }
.tile-quote .tile-tag { color: rgba(247,246,243,.5); }
.quote-body { margin: 14px 0 0; }
.quote-body p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.28;
}
.quote-by {
  margin-top: 14px;
  font-size: .9rem;
  color: rgba(247,246,243,.6);
}
.tile-quote .tile-detail p { color: rgba(247,246,243,.78); }
.tile-quote .tile-cue { background: rgba(247,246,243,.06); border-color: rgba(247,246,243,.22); }
.tile-quote .tile-cue::before,
.tile-quote .tile-cue::after { background: var(--paper); }
.tile-quote.is-open .tile-cue { background: var(--amber); border-color: var(--amber); }

/* ---------- CTA tile ---------- */
.tile-cta {
  background: linear-gradient(150deg, var(--amber), #c0481a);
  border-color: transparent;
  cursor: default;
}
.tile-cta::before { display: none; }
.tile-cta .tile-title { color: #fff; margin-top: 14px; }
.tile-tag-light { color: rgba(255,255,255,.7) !important; }
.tile-sub-light { color: rgba(255,255,255,.86) !important; }
.cta-button {
  align-self: flex-start;
  margin-top: 16px;
  display: inline-block;
  padding: 11px 20px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .2s var(--ease-pack), box-shadow .2s;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }

/* ---------- Closing ---------- */
.closing {
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px);
  max-width: 760px;
}
#closing-heading {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800;
}
.closing-lede {
  margin: 22px auto 0;
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 52ch;
}
.closing-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.cta-button-lg {
  background: var(--ink);
  color: var(--paper);
  padding: 15px 28px;
  font-size: 1rem;
}
.cta-button-lg:hover { background: #2a261d; }
.cta-link {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.cta-link:hover { color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.footer-inner {
  padding: 40px 0;
  display: grid;
  gap: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-name {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
}
.footer-tag { color: var(--ink-soft); font-size: .95rem; }
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--amber); }
.footer-fine {
  font-size: .82rem;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .cell-wide { grid-column: span 2; }
  .cell-tall { grid-row: span 2; }
}

@media (max-width: 620px) {
  .header-nav { gap: 4px; }
  .header-nav a:not(.header-cta) { display: none; }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }
  .cell, .cell-wide, .cell-tall {
    grid-column: auto;
    grid-row: auto;
  }
  .tile {
    min-height: 168px;
    padding: 20px;
  }
  .tile-quote, .tile-cta { min-height: 0; }
  .closing-actions { gap: 16px; }
}

/* =========================================================================
   Motion preference — keep everything usable, drop the movement
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hint-dot, .art-pulse::after { animation: none; }
  /* detail still toggles, just without the slide */
  .tile-detail {
    transition: none;
  }
}
