/* ============================================================
   Wiredeck — lo-fi UI wireframe / sketch mockup aesthetic
   grayscale ink on paper, hand-drawn sketchy borders, X'd
   placeholder boxes, squiggle "lorem", sticky notes + arrows,
   dashed grid, marker handwriting type.
   ============================================================ */

:root {
  /* palette: paper + graphite, no color */
  --paper:    #f4f2ec;   /* warm off-white sketchpad */
  --paper-2:  #eceae2;   /* alt band */
  --ink:      #1c1b19;   /* marker black */
  --ink-soft: #4a4742;   /* pencil */
  --line:     #2a2824;   /* border ink */
  --ghost:    #c9c6bd;   /* placeholder fill */
  --ghost-2:  #d8d5cc;   /* lighter placeholder */
  --note:     #f3e07a;   /* sticky-note yellow (the one near-color, muted) */
  --shadow:   rgba(28,27,25,.18);

  --hand:   'Kalam', 'Comic Sans MS', cursive;
  --marker: 'Architects Daughter', 'Comic Sans MS', cursive;
  --round:  'Gaegu', 'Comic Sans MS', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--round);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* dashed-grid graph-paper backdrop */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 27px, rgba(42,40,36,.07) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(42,40,36,.07) 27px 28px);
}

/* ---------- shared sketchy border helper ----------
   slightly irregular radius reads as a hand-drawn box */
.sketch {
  border: 2px solid var(--line);
  border-radius: 255px 12px 225px 14px / 14px 225px 12px 255px;
  background: var(--paper);
}

a { color: var(--ink); text-decoration: none; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244,242,236,.92);
  backdrop-filter: blur(2px);
  border-bottom: 2px dashed var(--line);
}

.wordmark {
  font-family: var(--marker);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.mark-box {
  display: inline-grid;
  place-items: center;
  width: 1.4em; height: 1.4em;
  font-size: .7em;
  border: 2px solid var(--line);
  border-radius: 255px 10px 225px 12px / 12px 225px 10px 255px;
  transform: rotate(-3deg);
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 1.3rem;
  font-family: var(--hand);
  font-size: 1.02rem;
}
.nav a { position: relative; padding-bottom: 2px; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 6px;
  background: no-repeat center/100% 6px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6'%3E%3Cpath d='M0 4 Q15 0 30 4 T60 4' stroke='%231c1b19' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity .15s;
}
.nav a:hover::after { opacity: 1; }

.nav-cta { margin-left: .4rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--marker);
  font-size: 1rem;
  padding: .55rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: 255px 12px 225px 14px / 14px 225px 12px 255px;
  background: var(--paper);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
  box-shadow: 3px 3px 0 var(--shadow);
  display: inline-block;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-ghost { background: var(--paper); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) 3rem;
  max-width: 1240px;
  margin: 0 auto;
}

.sticky {
  display: inline-block;
  background: var(--note);
  font-family: var(--hand);
  font-weight: 700;
  padding: .35rem .9rem;
  border: 1.5px solid var(--line);
  box-shadow: 3px 4px 0 var(--shadow);
  margin-bottom: 1.2rem;
}
.note-rot { transform: rotate(-2.5deg); }

.hero-h1 {
  font-family: var(--marker);
  font-size: clamp(2.4rem, 6.2vw, 4.3rem);
  line-height: 1.04;
  margin: 0 0 1rem;
  letter-spacing: .5px;
}
.ink-underline { position: relative; white-space: nowrap; }
.ink-underline::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: .04em;
  height: .42em;
  background: var(--note);
  z-index: -1;
  transform: rotate(-1.2deg);
  border-radius: 40% 60% 55% 45%;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 33ch;
  margin: 0 0 1.4rem;
}
.hero-sub em { font-style: normal; font-family: var(--hand); font-weight: 700; color: var(--ink); }

/* the typing prompt bar */
.prompt-bar {
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 2px solid var(--line);
  border-radius: 255px 14px 225px 12px / 12px 225px 14px 255px;
  background: var(--paper);
  padding: .65rem .9rem;
  box-shadow: 3px 3px 0 var(--shadow);
  margin-bottom: 1.4rem;
  min-height: 3rem;
}
.prompt-label {
  font-family: var(--marker);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--ink);
  color: var(--paper);
  padding: .15rem .5rem;
  border-radius: 3px;
  flex: none;
}
.prompt-text { font-family: var(--hand); font-size: 1.05rem; }
.caret { animation: blink 1s steps(1) infinite; font-weight: 700; }
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }

.hero-stats {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  padding: 0; margin: 0;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--marker); font-size: 1.6rem; }
.hero-stats span { font-family: var(--hand); font-size: .9rem; color: var(--ink-soft); }

/* ---------- SIGNATURE: the wireframe app mockup ---------- */
.hero-art { position: relative; }

.mockup {
  position: relative;
  padding: 1.5rem .5rem;
}

.mock-window {
  border: 2.5px solid var(--line);
  border-radius: 8px 10px 8px 10px / 10px 8px 10px 8px;
  background: var(--paper);
  box-shadow: 8px 9px 0 var(--shadow);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform .3s;
}
.mockup[data-state="hi"] .mock-window { transform: rotate(0deg); }

.mock-chrome {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .7rem;
  border-bottom: 2px dashed var(--line);
  background: var(--ghost-2);
}
.mock-chrome i {
  width: 11px; height: 11px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
}
.mock-url {
  margin-left: .6rem;
  font-family: var(--hand);
  font-size: .82rem;
  color: var(--ink-soft);
}

.mock-body { padding: 1rem .9rem 1.2rem; display: grid; gap: .9rem; }

.mock-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .7rem;
  border-bottom: 1.5px dashed var(--ghost);
}
.ph-logo {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border: 2px solid var(--line);
  border-radius: 6px;
  font-size: .7rem;
}

.mock-hero { display: flex; gap: .8rem; align-items: stretch; }
.mock-hero-copy { display: flex; flex-direction: column; gap: .5rem; flex: 1; justify-content: center; }

/* placeholder box with an X */
.ph-box {
  position: relative;
  border: 2px solid var(--line);
  background: var(--ghost);
  border-radius: 4px;
}
.ph-img { width: 44%; min-height: 92px; }
.ph-box .x {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 1.6rem; color: var(--ink-soft);
  font-family: var(--marker);
}
/* the X is actually two crossing lines for the “image” box */
.ph-img::before, .ph-img::after {
  content: "";
  position: absolute; inset: 6px;
  border-top: 1.5px solid var(--ink-soft);
  transform-origin: center;
}
.ph-img::before { transform: rotate(34deg); top: 50%; }
.ph-img::after  { transform: rotate(-34deg); top: 50%; }

/* squiggle "lorem" lines */
.ph-line {
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--ghost) 0 9px, transparent 9px 13px);
  border-radius: 4px;
  position: relative;
}
.ph-line::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 4px; transform: translateY(-50%);
  background: no-repeat left/auto 4px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='4'%3E%3Cpath d='M0 2 Q10 -1 20 2 T40 2' stroke='%234a4742' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  opacity: .55;
}
.w90 { width: 90%; } .w80 { width: 80%; } .w70 { width: 70%; }
.w60 { width: 60%; } .w50 { width: 50%; } .w40 { width: 40%; }
.w20 { width: 20%; } .right { margin-left: auto; }

.ph-pill {
  width: 88px; height: 26px; margin-top: .3rem;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--ghost-2);
}

.mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.ph-card {
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--ghost-2);
  padding: .55rem .5rem;
  display: grid; gap: .35rem;
}

/* hi-fi state: the boxes "fill in" */
.mockup[data-state="hi"] {
  --ghost: #2f2c27;
  --ghost-2: #46423b;
}
.mockup[data-state="hi"] .mock-window { box-shadow: 8px 9px 0 var(--shadow); border-color: var(--line); }
.mockup[data-state="hi"] .ph-img { background: linear-gradient(135deg,#3a362f,#615b50); }
.mockup[data-state="hi"] .ph-img .x { opacity: 0; }
.mockup[data-state="hi"] .ph-img::before,
.mockup[data-state="hi"] .ph-img::after { opacity: 0; }
.mockup[data-state="hi"] .ph-line { background: var(--ink); opacity: .85; }
.mockup[data-state="hi"] .ph-line::after { opacity: 0; }
.mockup[data-state="hi"] .ph-pill { background: var(--ink); border-color: var(--ink); }
.mockup[data-state="hi"] .ph-card { background: var(--paper); }
.mockup[data-state="hi"] .ph-card .ph-line { background: var(--ink-soft); }
.mockup[data-state="hi"] .build-stamp { opacity: 0; }

/* annotations: arrows + handwritten labels */
.anno {
  position: absolute;
  font-family: var(--hand);
  font-size: .9rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: .3rem;
  z-index: 4;
}
.anno-note {
  background: var(--note);
  border: 1.5px solid var(--line);
  padding: .1rem .45rem;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 var(--shadow);
}
.anno-arrow { font-size: 1.5rem; line-height: 1; color: var(--ink); }
.anno-arrow.up { transform: translateY(-2px); }
.anno-1 { top: .1rem; left: 1rem; }
.anno-2 { bottom: .2rem; right: .6rem; }

.build-stamp {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-8deg);
  font-family: var(--marker);
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: .2rem .8rem;
  background: rgba(243,224,122,.85);
  box-shadow: 3px 3px 0 var(--shadow);
  pointer-events: none;
  opacity: .9;
  transition: opacity .3s;
}

/* ============================================================
   BANDS / SECTIONS
   ============================================================ */
.band {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
}
.band-alt {
  max-width: none;
  background: var(--paper-2);
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
}
.band-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.sect-h {
  font-family: var(--marker);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 .4rem;
  display: flex;
  align-items: baseline;
  gap: .7rem;
}
.sect-h .num {
  font-family: var(--hand);
  font-size: .9rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  width: 2.2em; height: 2.2em;
  display: inline-grid; place-items: center;
  flex: none;
  transform: rotate(-4deg);
}
.sect-lead {
  font-family: var(--hand);
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  max-width: 56ch;
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.step {
  border: 2px solid var(--line);
  border-radius: 255px 14px 225px 12px / 12px 225px 14px 255px;
  background: var(--paper);
  padding: 1.4rem 1.3rem;
  box-shadow: 5px 6px 0 var(--shadow);
  position: relative;
}
.step-tag {
  position: absolute;
  top: -.85rem; left: 1.1rem;
  background: var(--note);
  border: 1.5px solid var(--line);
  font-family: var(--hand);
  font-weight: 700;
  font-size: .82rem;
  padding: .05rem .6rem;
  transform: rotate(-2deg);
}
.step h3 { font-family: var(--marker); font-size: 1.35rem; margin: .5rem 0 .4rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; }
.feat {
  border: 2px solid var(--line);
  border-radius: 12px 225px 14px 255px / 255px 14px 225px 12px;
  background: var(--paper);
  padding: 1.4rem 1.3rem;
  box-shadow: 5px 6px 0 var(--shadow);
}
.feat-x {
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border: 2px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: .6rem;
  background: var(--ghost-2);
}
.feat h3 { font-family: var(--marker); font-size: 1.28rem; margin: 0 0 .35rem; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.feat code {
  font-family: var(--hand);
  background: var(--ghost-2);
  border: 1px solid var(--ghost);
  padding: 0 .25rem;
  border-radius: 3px;
}

/* templates */
.tpl-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; }
.tpl {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 1rem;
  box-shadow: 4px 5px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: transform .1s, box-shadow .1s;
}
.tpl:hover { transform: translate(-2px,-2px) rotate(-.6deg); box-shadow: 7px 8px 0 var(--shadow); }
.tpl-thumb {
  position: relative;
  height: 96px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(42,40,36,.12) 13px 14px),
    var(--ghost);
  display: grid; place-items: center;
  margin-bottom: .4rem;
}
.tpl-thumb .x { font-family: var(--marker); font-size: 1.8rem; color: var(--ink-soft); }
.tpl b { font-family: var(--marker); font-size: 1.18rem; }
.tpl span { font-family: var(--hand); color: var(--ink-soft); font-size: .92rem; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; align-items: start; }
.price {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 255px 14px 225px 12px / 12px 225px 14px 255px;
  background: var(--paper);
  padding: 1.6rem 1.4rem;
  box-shadow: 5px 6px 0 var(--shadow);
  text-align: center;
}
.price-feature {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-.8deg) scale(1.02);
}
.price-feature .price-amt span,
.price-feature ul li { color: var(--ghost-2); }
.price-flag {
  position: absolute;
  top: -.9rem; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--note);
  color: var(--ink);
  border: 1.5px solid var(--line);
  font-family: var(--hand);
  font-weight: 700;
  font-size: .8rem;
  padding: .1rem .7rem;
  white-space: nowrap;
}
.price h3 { font-family: var(--marker); font-size: 1.5rem; margin: 0 0 .3rem; }
.price-amt { font-family: var(--marker); font-size: 2.6rem; margin: 0 0 1rem; }
.price-amt span { font-family: var(--hand); font-size: 1rem; color: var(--ink-soft); }
.price ul { list-style: none; padding: 0; margin: 0 0 1.4rem; font-family: var(--hand); }
.price ul li { padding: .25rem 0; border-bottom: 1.5px dashed var(--ghost); }
.price-feature ul li { border-bottom-color: rgba(255,255,255,.18); }
.price .btn-solid { background: var(--note); color: var(--ink); }
.price-feature .btn-solid { box-shadow: 3px 3px 0 rgba(0,0,0,.4); }

/* quotes */
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.quote {
  margin: 0;
  background: var(--note);
  border: 1.5px solid var(--line);
  padding: 1.3rem 1.2rem 1.1rem;
  box-shadow: 4px 6px 0 var(--shadow);
  font-family: var(--hand);
}
.quote:nth-child(1) { transform: rotate(-1.4deg); }
.quote:nth-child(2) { transform: rotate(1deg); background: var(--paper); }
.quote:nth-child(3) { transform: rotate(-.6deg); }
.quote p { margin: 0 0 .8rem; font-size: 1.06rem; }
.quote footer { font-family: var(--marker); font-size: .95rem; }
.quote footer span { color: var(--ink-soft); font-family: var(--hand); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 2px dashed var(--line);
  background: var(--paper-2);
  padding: 2.6rem clamp(1rem, 4vw, 3rem) 1.6rem;
}
.foot-cols {
  max-width: 1180px;
  margin: 0 auto 1.6rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.foot-tag { font-family: var(--hand); color: var(--ink-soft); margin: .5rem 0 0; }
.foot-cols h4 {
  font-family: var(--marker);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 .5rem;
}
.foot-cols a { display: block; font-family: var(--hand); padding: .15rem 0; color: var(--ink-soft); }
.foot-cols a:hover { color: var(--ink); }

.foot-base {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1.5px dashed var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--hand);
  font-size: .92rem;
  color: var(--ink-soft);
}
.foot-base span:first-child { font-family: var(--marker); color: var(--ink); }
.hand-scrawl { transform: rotate(-1.5deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .steps, .feat-grid, .tpl-grid, .price-grid, .quote-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .price-feature { transform: none; }
  .nav { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .mock-cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.1rem; }
  .foot-cols { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
}
