/* ==========================================================================
   Mini Till — site layer.

   Marketing and content pages only. Sits on top of the tokens in brand.css;
   nothing in here invents a new colour or radius. The app screens (till,
   stock) have their own leaner styles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page scaffold
   -------------------------------------------------------------------------- */

.site { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 1 auto; }

.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }

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

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 100;
}
.site-head .wrap-wide {
  display: flex; align-items: center; gap: 18px;
  min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 750; font-size: 1.02rem; color: var(--text); letter-spacing: -0.01em;
}
.site-brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 11px; border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 600; color: var(--text-soft);
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.site-nav a.is-current { color: var(--text); }
.site-nav .btn { margin-left: 8px; }
/* .site-nav a outranks .btn-primary, so restate the button's own colours */
.site-nav a.btn-primary { padding: 10px 15px; color: #fff; background: var(--brand-600); }
.site-nav a.btn-primary:hover { background: var(--brand-700); color: #fff; }

@media (max-width: 720px) {
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 8px; font-size: .84rem; }
  .site-nav a.nav-secondary { display: none; }
}

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

.hero { padding: 64px 0 24px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800; letter-spacing: -0.028em; line-height: 1.08;
}
.hero .lede {
  margin-top: 16px; font-size: 1.08rem; line-height: 1.6; color: var(--text-soft);
  max-width: 34em;
}
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.btn-lg { padding: 14px 22px; font-size: 1rem; border-radius: 10px; }

.hero-notes {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px;
  font-size: .82rem; font-weight: 600; color: var(--text-soft);
}
.hero-notes span { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes .icon { color: var(--brand-600); }

/* The product, as it actually is. */
.shot-stack { position: relative; padding-bottom: 34px; }
.shot-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.shot-frame .shot-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.shot-frame .shot-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-200); display: inline-block;
}
.shot-frame img { display: block; width: 100%; height: auto; }

.shot-phone {
  position: absolute; right: -6px; bottom: 0; width: 27%; min-width: 118px;
  border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--surface);
}
.shot-phone img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .shot-phone { right: 4px; } }

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.section-head { max-width: 620px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -0.02em; }
.section-head p { margin-top: 10px; color: var(--text-soft); line-height: 1.6; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); box-shadow: var(--shadow-1);
  padding: 20px;
}
.feature .icon { color: var(--brand-600); margin-bottom: 12px; }
.feature h3 { font-size: .98rem; font-weight: 700; }
.feature p { margin-top: 6px; font-size: .88rem; line-height: 1.55; color: var(--text-soft); }
.feature a { font-weight: 650; }

/* --------------------------------------------------------------------------
   "Who it's for" strip
   -------------------------------------------------------------------------- */

.trade-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
@media (max-width: 860px) { .trade-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trade-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.trade {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 20px 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.trade .icon { color: var(--brand-600); }
.trade span { font-size: .86rem; font-weight: 650; }

/* --------------------------------------------------------------------------
   Split band (stock control)
   -------------------------------------------------------------------------- */

.band {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  padding: 32px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.band .band-body { flex: 1 1 380px; }
.band h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.band p { margin-top: 9px; color: var(--text-soft); line-height: 1.6; max-width: 44em; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.plan-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  max-width: 900px;
}
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  padding: 28px; display: flex; flex-direction: column;
}
.plan-pro { border-color: var(--brand-300); box-shadow: var(--shadow-2); }
.plan h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.plan-pro h3 { color: var(--brand-600); }
.plan-price { margin-top: 10px; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price span { font-size: .9rem; font-weight: 600; color: var(--text-soft); letter-spacing: 0; }
.plan-sub { margin-top: 6px; font-size: .9rem; color: var(--text-soft); line-height: 1.55; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1 1 auto; }
.plan li {
  position: relative; padding: 5px 0 5px 26px;
  font-size: .9rem; color: var(--ink-700); line-height: 1.5;
}
.plan li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: rotate(-45deg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light-mode) .plan li { color: var(--text-soft); }
}

.plan-note { margin-top: 14px; font-size: .8rem; color: var(--text-faint); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 2px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: .96rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--text-faint); flex: 0 0 auto; transition: transform .15s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--brand-700); }
.faq-item .faq-a { padding: 0 2px 18px; color: var(--text-soft); line-height: 1.65; font-size: .92rem; max-width: 60em; }

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink-900); color: #fff;
  border-radius: var(--r-lg); padding: 44px 32px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: -0.02em; }
.cta-band p { margin: 10px auto 0; color: rgba(255,255,255,.7); max-width: 36em; line-height: 1.6; }
.cta-band .btn { margin-top: 22px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line-soft); background: var(--surface);
  margin-top: 56px; padding: 36px 0 28px;
}
.site-foot .cols {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between;
}
.site-foot .foot-brand { max-width: 300px; }
.site-foot .foot-brand p { margin-top: 10px; font-size: .84rem; color: var(--text-soft); line-height: 1.55; }
.site-foot nav { display: flex; gap: 48px; flex-wrap: wrap; }
.site-foot .foot-col h3 {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-faint); margin-bottom: 10px;
}
.site-foot .foot-col a {
  display: block; padding: 4px 0; font-size: .87rem; color: var(--text-soft); font-weight: 550;
}
.site-foot .foot-col a:hover { color: var(--text); text-decoration: none; }
.site-foot .legal {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--text-faint);
}
.site-foot .legal a { color: var(--text-soft); }

/* --------------------------------------------------------------------------
   Article / content pages
   -------------------------------------------------------------------------- */

.page-head { padding: 44px 0 8px; }
.page-head .kicker {
  font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--brand-600);
}
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.025em; margin-top: 8px; }
.page-head .standfirst { margin-top: 12px; font-size: 1.02rem; color: var(--text-soft); line-height: 1.6; max-width: 40em; }
.page-head .meta { margin-top: 12px; font-size: .82rem; color: var(--text-faint); }

.prose { padding: 28px 0 8px; line-height: 1.7; font-size: .97rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.32rem; letter-spacing: -0.015em; margin-top: 2.2em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { color: var(--ink-700); }
.prose li { color: var(--ink-700); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--line-soft); margin: 2.2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.prose thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-faint); border-bottom: 1.5px solid var(--line);
}
.prose .table-scroll { overflow-x: auto; }
.prose blockquote {
  border-left: 3px solid var(--brand-300); margin: 1.4em 0; padding: 2px 0 2px 16px;
  color: var(--text-soft); font-style: normal;
}
.prose code {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 5px; padding: 1px 5px; font-size: .88em;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light-mode) .prose p,
  :root:not([data-theme="light"]):not(.light-mode) .prose li { color: var(--text-soft); }
}

/* Card used inside articles for asides, notes, steps */
.note-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); box-shadow: var(--shadow-1); padding: 18px 20px;
}
.note-card.note-accent { border-left: 3px solid var(--brand-500); }
.prose .note-card p, .prose .note-card li { font-size: .92rem; }

/* Article listing (blog index) */
.post-list { display: grid; gap: 14px; padding: 8px 0 8px; }
.post-card {
  display: block; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); box-shadow: var(--shadow-1); padding: 22px 24px;
  color: inherit;
}
.post-card:hover { text-decoration: none; border-color: var(--brand-300); }
.post-card h2 { font-size: 1.12rem; letter-spacing: -0.012em; }
.post-card:hover h2 { color: var(--brand-700); }
.post-card p { margin-top: 8px; font-size: .9rem; color: var(--text-soft); line-height: 1.6; }
.post-card .meta { margin-top: 10px; font-size: .78rem; color: var(--text-faint); font-weight: 600; }

/* In-page ad container: reserves nothing, just keeps ads clear of the text edge */
.ad-slot { margin: 32px 0; }
