/* =========================================================
   Me2You wireframe kit
   Sketch aesthetic for the prototyping deliverable.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Kalam:wght@300;400;700&family=Architects+Daughter&family=Quicksand:wght@500;700&family=Nunito:wght@400;600;700&family=JetBrains+Mono:wght@400;600&display=swap');
@import url('tokens.css');

:root {
  --wf-ink:        #1F1A17;
  --wf-ink-2:      #4a4540;
  --wf-mute:       #8a847d;
  --wf-line:       #2a2520;
  --wf-line-soft:  #b8b1a8;
  --wf-paper:      #fbf8f1;
  --wf-paper-2:    #f4eee2;
  --wf-grey:       #e8e2d4;
  --wf-grey-2:     #d6cfbf;
  --wf-orange:     #F89A1F;
  --wf-orange-soft:#FFE7C8;
  --wf-plum:       #8E7CA0;
  --wf-plum-soft:  #ECE6F2;
  --wf-green:      #2F9E5A;
  --wf-green-soft: #DDF1E4;
  --wf-red:        #D44A3A;
  --wf-red-soft:   #FCE2DD;
  --wf-blue:       #2D7AC7;
  --wf-blue-soft:  #DCEAF8;
  --wf-yellow-soft:#FFF1CD;

  --hand:    'Caveat', cursive;
  --hand-2:  'Kalam', cursive;
  --hand-3:  'Architects Daughter', cursive;
  --sans:    'Quicksand', 'Nunito', sans-serif;
  --body:    'Nunito', sans-serif;
  --mono:    'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--wf-paper);
  font-family: var(--body);
  color: var(--wf-ink);
  -webkit-font-smoothing: antialiased;
}

/* paper grid background */
.wf-paper {
  background-color: var(--wf-paper);
  background-image:
    linear-gradient(to right, rgba(31,26,23,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31,26,23,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.wf-paper-dot {
  background-color: var(--wf-paper);
  background-image: radial-gradient(rgba(31,26,23,0.10) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

/* hand-drawn box */
.wf-box {
  background: #fff;
  border: 1.6px solid var(--wf-line);
  border-radius: 12px 14px 11px 13px / 13px 11px 14px 12px;
  position: relative;
  box-shadow: 2px 2px 0 rgba(31,26,23,0.08);
}
.wf-box--sm { border-radius: 8px 10px 7px 9px / 9px 7px 10px 8px; }
.wf-box--lg { border-radius: 18px 22px 16px 20px / 20px 16px 22px 18px; }
.wf-box--ghost { background: transparent; }
.wf-box--filled { background: var(--wf-grey); }
.wf-box--orange { background: var(--wf-orange-soft); border-color: var(--wf-orange); }
.wf-box--plum   { background: var(--wf-plum-soft);   border-color: var(--wf-plum); }
.wf-box--green  { background: var(--wf-green-soft);  border-color: var(--wf-green); }
.wf-box--red    { background: var(--wf-red-soft);    border-color: var(--wf-red); }
.wf-box--blue   { background: var(--wf-blue-soft);   border-color: var(--wf-blue); }
.wf-box--yellow { background: var(--wf-yellow-soft); border-color: #b88a00; }

/* dashed placeholder */
.wf-placeholder {
  border: 1.6px dashed var(--wf-line-soft);
  border-radius: 10px 12px 9px 11px / 11px 9px 12px 10px;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 8px,
    rgba(31,26,23,0.06) 8px,
    rgba(31,26,23,0.06) 9px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wf-mute);
  font-family: var(--hand);
  font-size: 22px;
}

/* hand-drawn line/divider */
.wf-line {
  height: 0;
  border-top: 1.6px solid var(--wf-line);
  border-radius: 50%;
  position: relative;
}
.wf-line--soft { border-top-color: var(--wf-line-soft); }
.wf-line--dashed { border-top-style: dashed; }

/* sketchy button */
.wf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 20px;
  padding: 8px 18px;
  background: #fff;
  border: 1.6px solid var(--wf-line);
  border-radius: 999px;
  color: var(--wf-ink);
  box-shadow: 2px 2px 0 var(--wf-line);
  cursor: default;
}
.wf-btn--primary { background: var(--wf-orange); border-color: var(--wf-line); }
.wf-btn--ghost { background: transparent; box-shadow: none; }
.wf-btn--sm { font-size: 16px; padding: 4px 12px; box-shadow: 1.5px 1.5px 0 var(--wf-line); }

/* hand label */
.wf-hand    { font-family: var(--hand);   font-weight: 600; }
.wf-hand-2  { font-family: var(--hand-2); font-weight: 400; }
.wf-hand-3  { font-family: var(--hand-3); }
.wf-mono    { font-family: var(--mono); }

/* fake text lines */
.wf-text-line {
  height: 8px;
  background: var(--wf-grey);
  border-radius: 4px;
  margin: 6px 0;
}
.wf-text-line--dark { background: var(--wf-ink-2); opacity: 0.85; }
.wf-text-line--w90 { width: 90%; }
.wf-text-line--w70 { width: 70%; }
.wf-text-line--w50 { width: 50%; }
.wf-text-line--w30 { width: 30%; }
.wf-text-line--thick { height: 14px; }

/* annotation arrow + note */
.wf-note {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--wf-orange);
  line-height: 1.05;
  font-weight: 600;
}
.wf-note--ink { color: var(--wf-ink); }
.wf-note--plum { color: var(--wf-plum); }

/* tag/chip */
.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--wf-grey);
  color: var(--wf-ink-2);
  border: 1.4px solid var(--wf-line);
}
.wf-chip--orange { background: var(--wf-orange-soft); border-color: var(--wf-orange); color: #8a4a00; }
.wf-chip--plum   { background: var(--wf-plum-soft);   border-color: var(--wf-plum);   color: #4a3866; }
.wf-chip--green  { background: var(--wf-green-soft);  border-color: var(--wf-green);  color: #1f6b3e; }
.wf-chip--red    { background: var(--wf-red-soft);    border-color: var(--wf-red);    color: #8c2a1f; }
.wf-chip--blue   { background: var(--wf-blue-soft);   border-color: var(--wf-blue);   color: #1b4f86; }
.wf-chip--yellow { background: var(--wf-yellow-soft); border-color: #b88a00;          color: #8a5e00; }

/* device frames */
.wf-device {
  background: #fff;
  border: 2px solid var(--wf-line);
  border-radius: 28px;
  box-shadow: 4px 4px 0 rgba(31,26,23,0.10);
  position: relative;
  overflow: hidden;
}
.wf-phone {
  width: 320px;
  height: 640px;
  border-radius: 36px;
  padding: 8px;
}
.wf-phone-screen {
  width: 100%;
  height: 100%;
  background: var(--wf-paper);
  border-radius: 28px;
  border: 1.4px solid var(--wf-line-soft);
  overflow: hidden;
  position: relative;
}
.wf-phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 16px;
  background: var(--wf-line);
  border-radius: 999px;
  z-index: 5;
}
.wf-status {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--wf-ink);
}

.wf-tablet {
  width: 560px;
  height: 740px;
  border-radius: 24px;
  padding: 14px;
}
.wf-tablet-screen {
  width: 100%;
  height: 100%;
  background: var(--wf-paper);
  border-radius: 14px;
  border: 1.4px solid var(--wf-line-soft);
  overflow: hidden;
  position: relative;
}

.wf-desktop {
  width: 1100px;
  border-radius: 14px;
  padding: 0;
}
.wf-desktop-bar {
  height: 30px;
  background: var(--wf-grey);
  border-bottom: 1.6px solid var(--wf-line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.wf-desktop-bar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.4px solid var(--wf-line);
  background: #fff;
}
.wf-desktop-bar .url {
  margin-left: 14px;
  background: #fff;
  border: 1.4px solid var(--wf-line-soft);
  border-radius: 6px;
  padding: 2px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--wf-ink-2);
  flex: 1;
  max-width: 540px;
}
.wf-desktop-screen {
  background: var(--wf-paper);
  width: 100%;
  height: 100%;
  position: relative;
}

/* cap header on each page */
.wf-page-head {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 32px 0;
}
.wf-page-head h1 {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.5px;
  margin: 0 0 6px 0;
  color: var(--wf-ink);
}
.wf-page-head .crumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--wf-mute);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.wf-page-head p {
  font-family: var(--body);
  font-size: 16px;
  color: var(--wf-ink-2);
  max-width: 720px;
  margin: 8px 0 0;
}
.wf-page-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 32px;
}
.wf-section-h {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 8px 0 24px;
  border-bottom: 1.6px solid var(--wf-line);
  padding-bottom: 8px;
}
.wf-section-h h2 {
  font-family: var(--hand);
  font-size: 40px;
  font-weight: 700;
  margin: 0;
}
.wf-section-h .step {
  background: var(--wf-orange);
  color: #fff;
  border: 1.6px solid var(--wf-line);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--wf-line);
}
.wf-section-h .lede {
  font-family: var(--body);
  color: var(--wf-mute);
  font-size: 14px;
  margin-left: auto;
  text-align: right;
  max-width: 360px;
}

/* nav header (top of every doc) */
.wf-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,248,241,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1.6px solid var(--wf-line);
}
.wf-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 32px;
}
.wf-nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--hand); font-size: 26px; font-weight: 700;
}
.wf-nav .brand img { height: 28px; }
.wf-nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.wf-nav-links a {
  font-family: var(--hand);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--wf-ink-2);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.4px solid transparent;
}
.wf-nav-links a:hover { background: #fff; border-color: var(--wf-line); }
.wf-nav-links a.is-active {
  background: var(--wf-orange);
  color: var(--wf-ink);
  border-color: var(--wf-line);
  box-shadow: 2px 2px 0 var(--wf-line);
}

/* board layouts (canvas) */
.wf-board {
  display: grid;
  gap: 28px;
  align-items: start;
}
.wf-board--3 { grid-template-columns: repeat(3, 1fr); }
.wf-board--2 { grid-template-columns: repeat(2, 1fr); }
.wf-board--auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

@media (max-width: 1100px) {
  .wf-board--3, .wf-board--2 { grid-template-columns: 1fr; }
}

/* artboard wrapper */
.wf-artboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.wf-artboard-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 700;
  color: var(--wf-ink);
}
.wf-artboard-label .dot {
  width: 10px; height: 10px;
  background: var(--wf-orange);
  border-radius: 50%;
  border: 1.4px solid var(--wf-line);
}
.wf-artboard-sub {
  font-family: var(--body);
  font-size: 13px;
  color: var(--wf-mute);
  margin-top: -8px;
  text-align: center;
}

/* product/listing card placeholder */
.wf-card {
  background: #fff;
  border: 1.4px solid var(--wf-line);
  border-radius: 10px 12px 9px 11px / 11px 9px 12px 10px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.wf-card .img {
  aspect-ratio: 1/1;
  background: var(--wf-grey);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
}
.wf-card .img::before, .wf-card .img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 49%, var(--wf-line-soft) 49%, var(--wf-line-soft) 51%, transparent 51%);
  opacity: 0.4;
}
.wf-card .img::after { transform: scaleX(-1); }

/* responsive group label */
.wf-group-label {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 26px;
  color: var(--wf-ink-2);
}
.wf-group-label::before, .wf-group-label::after {
  content: "";
  flex: 1;
  border-top: 1.6px dashed var(--wf-line-soft);
}

/* tab control */
.wf-tabs {
  display: flex;
  gap: 0;
  margin: 12px 0 24px;
  border-bottom: 1.6px solid var(--wf-line);
  flex-wrap: wrap;
}
.wf-tab {
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 600;
  color: var(--wf-mute);
  padding: 6px 18px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-bottom: -1.6px;
  border-bottom: 3px solid transparent;
}
.wf-tab:hover { color: var(--wf-ink-2); }
.wf-tab.is-active {
  color: var(--wf-ink);
  border-bottom-color: var(--wf-orange);
}
.wf-tab-panel { display: none; }
.wf-tab-panel.is-active { display: block; }

/* arrow svg helper class */
.wf-arrow { color: var(--wf-orange); }

/* footer */
.wf-foot {
  max-width: 1400px;
  margin: 60px auto 24px;
  padding: 18px 32px 24px;
  border-top: 1.6px dashed var(--wf-line-soft);
  font-family: var(--body);
  font-size: 13px;
  color: var(--wf-mute);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* print-friendly helpers */
@media print {
  .wf-nav, .wf-foot { display: none; }
  body { background: #fff; }
}
