/* Fuzzy Side Up Software — shared base stylesheet.
   Blueprint / worksheet aesthetic. No external dependencies: platform font stacks only.

   Per-app sites re-theme this by importing it and overriding the custom
   properties below — see floored/css/style.css and tradepay/css/style.css.
   Defaults here are Floored's palette. */

:root {
  --ink: #33475b;            /* slate blueprint ink */
  --ink-deep: #24344a;
  --paper: #f7f5ef;          /* warm drafting paper */
  --paper-hi: #fffdf7;
  --grid: rgba(51, 71, 91, 0.08);
  --grid-major: rgba(51, 71, 91, 0.14);
  --rule: rgba(51, 71, 91, 0.25);

  /* accent — the one knob each app site turns */
  --accent: #e8720c;                    /* safety orange (pencil/plan accent) */
  --accent-soft: #f5a04b;
  --accent-glow: rgba(232, 114, 12, .28); /* lifted-card hover shadow */
  --accent-wash: rgba(232, 114, 12, .06); /* faint hover/callout fill */
  --warn: #c2410c;
  --green: #3e7a3a;          /* carpet green from the Floored icon */

  /* legacy aliases: existing rules still say var(--orange) */
  --orange: var(--accent);
  --orange-soft: var(--accent-soft);

  --font-display: "Futura", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Avenir Next", "Avenir", "Gill Sans", "Trebuchet MS", sans-serif;
  --font-anno: "SF Mono", "Menlo", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-deep);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- annotation label (drafting callout) ---------- */
.anno {
  font-family: var(--font-anno);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
}
.anno::before { content: "— "; color: var(--orange); }

/* ---------- header ---------- */
header.site {
  border-bottom: 2px solid var(--ink);
  background: var(--paper-hi);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; gap: 14px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-deep); }
.brand img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 1px 4px rgba(36,52,74,.25); }
.brand span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em;
}
nav.site { margin-left: auto; display: flex; gap: 22px; }
nav.site a {
  font-family: var(--font-anno); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
nav.site a:hover, nav.site a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--ink-deep); }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.01em;
  margin: 14px 0 20px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lede { font-size: 1.15rem; max-width: 34em; color: var(--ink); }

.hero-icon { justify-self: center; position: relative; }
.hero-icon img {
  width: min(280px, 60vw); border-radius: 22%;
  box-shadow: 0 18px 50px rgba(36, 52, 74, 0.35), 0 2px 8px rgba(36,52,74,.2);
  transform: rotate(-3deg);
}
/* dimension line under the icon */
.dim {
  margin-top: 26px; display: flex; align-items: center; gap: 8px;
  font-family: var(--font-anno); font-size: 0.7rem; color: var(--ink);
}
.dim::before, .dim::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
  position: relative;
}
.dim span { white-space: nowrap; letter-spacing: 0.08em; }

.cta-row { margin-top: 34px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; letter-spacing: 0.03em; text-decoration: none;
  padding: 13px 26px; border-radius: 8px;
  background: var(--ink-deep); color: var(--paper-hi);
  border: 2px solid var(--ink-deep);
  box-shadow: 3px 3px 0 var(--orange);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--orange); color: var(--paper-hi); }
.btn.ghost { background: transparent; color: var(--ink-deep); box-shadow: 3px 3px 0 rgba(51,71,91,.25); }
.cta-note { font-family: var(--font-anno); font-size: 0.72rem; color: var(--ink); opacity: .8; }

/* staggered load-in */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise .6s ease forwards; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; }
  .rise.d3 { animation-delay: .3s; }  .rise.d4 { animation-delay: .45s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--paper-hi); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 10px 0 8px;
}
.section-lede { max-width: 40em; color: var(--ink); margin-bottom: 36px; }

/* feature grid — plan-sheet cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 24px 22px 22px;
  position: relative;
  box-shadow: 4px 4px 0 rgba(51,71,91,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--accent-glow); }
.card .num {
  position: absolute; top: -12px; left: 16px;
  font-family: var(--font-anno); font-size: 0.68rem; letter-spacing: .12em;
  background: var(--orange); color: #fff; padding: 2px 9px; border-radius: 4px;
}
.card h3 { font-family: var(--font-display); font-size: 1.12rem; margin: 6px 0 8px; }
.card p { font-size: 0.94rem; color: var(--ink); }

/* screenshots */
.shots {
  display: grid; grid-template-columns: minmax(220px, 1fr) 1.9fr;
  gap: 22px; align-items: start;
}
.shot {
  margin: 0; background: var(--paper-hi);
  border: 1.5px solid var(--ink); border-radius: 12px;
  padding: 10px; box-shadow: 4px 4px 0 rgba(51,71,91,.12);
}
.shot.tall { grid-row: span 2; }
.shot img { width: 100%; border-radius: 6px; border: 1px solid var(--rule); }
.shot figcaption {
  font-family: var(--font-anno); font-size: 0.7rem; letter-spacing: .05em;
  color: var(--ink); padding: 10px 6px 4px; line-height: 1.5;
}

/* pricing */
.price-panel {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--ink-deep); color: var(--paper-hi);
  border-radius: 14px; padding: 46px 34px 40px;
  box-shadow: 6px 6px 0 var(--orange);
  position: relative; overflow: hidden;
}
.price-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.price-panel .anno { color: var(--orange-soft); opacity: 1; }
.price-panel h2 { color: #fff; }
.price {
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 700;
  color: var(--orange-soft); margin: 12px 0 2px;
}
.price small { font-size: 1rem; color: rgba(255,255,255,.75); font-weight: 400; }
.price-panel ul { list-style: none; margin: 22px 0 0; display: grid; gap: 8px; }
.price-panel li { font-size: 0.98rem; color: rgba(255,255,255,.9); }
.price-panel li::before { content: "✓ "; color: var(--orange-soft); }

/* ---------- prose pages (support / privacy) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.prose > .sheet {
  background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 12px;
  box-shadow: 5px 5px 0 rgba(51,71,91,.12); padding: 44px clamp(24px, 5vw, 56px) 52px;
}
.prose h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 8px 0 6px; }
.prose h2 { font-size: 1.25rem; margin: 34px 0 8px; padding-top: 18px; border-top: 1px solid var(--rule); }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; margin: 8px 0; }
.prose .updated { font-family: var(--font-anno); font-size: 0.72rem; color: var(--ink); opacity: .7; margin-bottom: 22px; }

/* FAQ accordion */
details.faq {
  border: 1.5px solid var(--rule); border-radius: 8px;
  background: var(--paper-hi); margin: 12px 0; overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 14px 18px; font-weight: 600;
  font-family: var(--font-display); font-size: 1rem; list-style: none;
  display: flex; align-items: baseline; gap: 10px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; color: var(--orange); font-family: var(--font-anno); }
details.faq[open] summary::before { content: "–"; }
details.faq[open] summary { border-bottom: 1px solid var(--rule); }
details.faq .a { padding: 14px 18px 18px; color: var(--ink); font-size: 0.95rem; }

.contact-block {
  border: 1.5px solid var(--ink); border-left: 6px solid var(--orange);
  background: var(--paper-hi); border-radius: 8px; padding: 20px 22px; margin: 22px 0 34px;
}

/* ---------- guide page ---------- */
.guide-head { padding: 56px 0 30px; }
.guide-head h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); margin: 8px 0 12px; }
.guide-head .lede { max-width: 44em; color: var(--ink); font-size: 1.08rem; }

.guide-layout { display: grid; grid-template-columns: 232px 1fr; gap: 44px; align-items: start; padding-bottom: 80px; }

/* sticky table of contents */
.toc { position: sticky; top: 84px; }
.toc-box {
  background: var(--paper-hi); border: 1.5px solid var(--ink);
  border-radius: 10px; box-shadow: 4px 4px 0 rgba(51,71,91,.12);
  padding: 14px 16px; max-height: calc(100vh - 120px); overflow-y: auto;
}
.toc-box summary {
  font-family: var(--font-anno); font-size: 0.7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); cursor: pointer;
  list-style: none; padding-bottom: 6px;
}
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary::before { content: "☰ "; color: var(--orange); }
.toc-box nav { display: flex; flex-direction: column; }
.toc-box nav a {
  text-decoration: none; color: var(--ink); font-size: 0.88rem;
  padding: 5px 0 5px 10px; border-left: 2px solid var(--rule); line-height: 1.35;
}
.toc-box nav a:hover { color: var(--ink-deep); border-left-color: var(--orange); background: var(--accent-wash); }

/* guide content */
.guide-body { max-width: 46em; }
.guide-body section {
  padding: 0 0 12px; margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.guide-body section:last-child { border-bottom: none; }
.guide-body h2 {
  font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 8px 0 14px; scroll-margin-top: 90px;
}
.guide-body section { scroll-margin-top: 84px; }
.guide-body h3 {
  font-family: var(--font-display); font-size: 1.08rem;
  margin: 26px 0 6px; color: var(--ink-deep);
}
.guide-body p, .guide-body li { color: var(--ink); }
.guide-body p { margin: 8px 0; }
.guide-body ul { padding-left: 1.15em; margin: 10px 0; display: grid; gap: 6px; }
.guide-body b { color: var(--ink-deep); font-weight: 600; }
.guide-body code {
  font-family: var(--font-anno); font-size: 0.85em;
  background: rgba(51,71,91,.08); padding: 1px 5px; border-radius: 4px;
}

/* numbered walkthrough */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
ol.steps > li {
  counter-increment: step; position: relative;
  background: var(--paper-hi); border: 1.5px solid var(--rule); border-radius: 10px;
  padding: 18px 20px 16px 58px;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 17px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-family: var(--font-anno); font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
ol.steps > li h3 { margin: 0 0 4px; font-size: 1.05rem; }
ol.steps > li p { margin: 4px 0 0; font-size: 0.95rem; }
ol.steps.tight > li { padding-top: 14px; padding-bottom: 12px; }
p.tip {
  font-size: 0.88rem !important; color: var(--ink); opacity: .9;
  border-left: 2px solid var(--orange-soft); padding-left: 10px; margin-top: 10px !important;
}

/* callouts */
.callout {
  border: 1.5px solid var(--rule); border-left: 5px solid var(--orange);
  background: var(--paper-hi); border-radius: 8px;
  padding: 14px 18px; margin: 16px 0; font-size: 0.94rem; color: var(--ink);
}
.callout b { color: var(--ink-deep); }
.callout.warn { border-left-color: var(--warn); background: var(--accent-wash); }

/* Q&A list */
dl.qa { margin: 16px 0 0; }
dl.qa dt {
  font-family: var(--font-display); font-weight: 600; color: var(--ink-deep);
  margin-top: 18px; font-size: 1rem;
}
dl.qa dt::before { content: "▸ "; color: var(--orange); }
dl.qa dd { margin: 4px 0 0 1.1em; color: var(--ink); font-size: 0.95rem; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .toc-box { max-height: none; }
  .toc-box nav { display: block; columns: 2; column-gap: 16px; }
  .toc-box nav a { display: block; break-inside: avoid; }
  .guide-body { max-width: none; }
}
@media (max-width: 560px) {
  .toc-box nav a { font-size: 0.8rem; padding: 4px 0 4px 8px; }
  ol.steps > li { padding-left: 20px; padding-top: 46px; }
  ol.steps > li::before { top: 12px; left: 18px; }
}

/* ---------- footer ---------- */
footer.site {
  border-top: 2px solid var(--ink); background: var(--ink-deep); color: rgba(255,255,255,.8);
  padding: 36px 0; margin-top: 40px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer.site a { color: var(--orange-soft); text-decoration: none; font-size: 0.9rem; }
footer.site a:hover { color: #fff; }
footer.site .fine { margin-left: auto; font-family: var(--font-anno); font-size: 0.7rem; opacity: .7; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-icon { order: -1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shot.tall { grid-row: auto; }
  .shot.tall img { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  header.site .wrap { flex-wrap: wrap; row-gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 1.15rem; }
  nav.site { gap: 14px; }
  footer.site .fine { margin-left: 0; }
}
