/* TruTag site: a clothing care label, sewn onto linen. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-condensed-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700.woff2') format('woff2'); }

:root {
  --fabric: #e7e0d0;          /* the garment the labels are sewn onto */
  --on-fabric: #1e2620;
  --on-fabric-soft: #555d56;
  --label: #fbf9f3;           /* label cloth */
  --ink: #1e2620;             /* printed label text */
  --ink-soft: #626a63;
  --rule: #d9d3c4;
  --stitch: rgba(30, 38, 32, 0.32);
  --green: #286547;           /* woven brand label */
  --green-ink: #f4efe2;
  --pass: #286547;
  --fail: #9b2f23;
  --unsure: #8a6100;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fabric: #1b221e;
    --on-fabric: #e9e6dc;
    --on-fabric-soft: #a9b0a8;
    --label: #f3efe4;
    --stitch: rgba(30, 38, 32, 0.3);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--on-fabric);
  font: 16px/1.6 var(--sans);
  background-color: var(--fabric);
  /* a faint linen weave */
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.022) 0 1px, transparent 1px 4px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--on-fabric-soft); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); }

/* ---------- Pieces of cloth ---------- */

/* A printed care label: off-white cloth, dashed stitching just inside the edge. */
.label {
  position: relative;
  padding: 30px 32px;
  background: var(--label);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 14px 34px rgba(30, 38, 32, 0.14);
  outline: 1.5px dashed var(--stitch);
  outline-offset: -10px;
}
.label .muted { color: var(--ink-soft); }

/* A woven brand label, like the one at the back of a collar. */
.woven {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 6px;
  background-color: var(--green);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
  color: var(--green-ink);
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  outline: 1px dashed rgba(255, 255, 255, 0.4);
  outline-offset: -4px;
}

.rule { height: 0; margin: 18px 0; border: 0; border-top: 1.5px solid var(--ink); }
.rule.thin { border-top-width: 1px; border-color: var(--rule); }
.fine { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Top bar ---------- */
.topbar { padding: 18px 0 0; }
.topbar .wrap { display: flex; align-items: center; gap: 20px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px 11px;
  background: var(--green); color: var(--green-ink);
  border: 0; border-radius: 2px;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  outline: 1px dashed rgba(255, 255, 255, 0.45); outline-offset: -5px;
}
.button:hover { filter: brightness(1.1); }
.button.plain { background: transparent; color: inherit; outline: 0; box-shadow: inset 0 0 0 1.5px currentColor; }
.button.disabled { cursor: default; filter: none; opacity: 0.8; }
.nav .button { padding: 8px 14px 7px; font-size: 15px; }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(52px, 8vw, 96px); }
.hero .lede { margin-top: 22px; max-width: 520px; font-size: 18.5px; color: var(--on-fabric-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Fabric compositions, printed the way real labels do it */
.comp { transform: rotate(1.2deg); max-width: 440px; justify-self: center; width: 100%; }
.comp .woven { font-size: 16px; }
.comp-item { font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.comp-name { margin-bottom: 6px; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.1em; }
.comp-line { display: flex; justify-content: space-between; gap: 12px; line-height: 1.7; }
.verdict { font-weight: 700; white-space: nowrap; }
.verdict.pass { color: var(--pass); }
.verdict.fail { color: var(--fail); }
.verdict.unsure { color: var(--unsure); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-title { font-size: clamp(38px, 5.5vw, 60px); margin-bottom: 26px; }

/* The back of the label: numbered instructions */
.instructions { padding: 12px 32px; }
.instruction { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.instruction:last-child { border-bottom: 0; }
.instruction .num { font-family: var(--mono); font-size: 14px; color: var(--ink-soft); padding-top: 6px; }
.instruction h3 { font-size: 30px; margin-bottom: 6px; }
.instruction p { margin: 0; color: var(--ink-soft); }

/* ---------- Hang tags (pricing) ---------- */
.tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 32px; align-items: start; }
.hangtag {
  position: relative;
  padding: 64px 32px 34px;
  background: var(--label); color: var(--ink);
  clip-path: polygon(16% 0, 84% 0, 100% 8%, 100% 100%, 0 100%, 0 8%);
  filter: drop-shadow(0 12px 22px rgba(30, 38, 32, 0.16));
}
.hangtag::before { /* the punched hole */
  content: ""; position: absolute; top: 22px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--fabric); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.hangtag::after { /* stitching */
  content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--stitch); pointer-events: none;
  clip-path: polygon(15% 0, 85% 0, 100% 7%, 100% 100%, 0 100%, 0 7%);
}
.hangtag.pro { background: var(--green); color: var(--green-ink); }
.hangtag.pro::after { border-color: rgba(255, 255, 255, 0.4); }
.hangtag h3 { font-size: 40px; text-align: center; }
.hangtag .price { margin: 8px 0 4px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: 0.04em; }
.hangtag .per { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.hangtag ul { margin: 22px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.02em; }
.hangtag li { padding: 9px 0; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.hangtag.pro li { border-top-color: rgba(255, 255, 255, 0.18); }

/* ---------- How it works ---------- */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(50px, 8vw, 92px); }
.page-head .lede { margin-top: 18px; max-width: 620px; font-size: 18px; color: var(--on-fabric-soft); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 48px 0; border-top: 1.5px solid var(--on-fabric); }
.step:first-child { border-top: 0; }
.step .num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--on-fabric-soft); }
.step h2 { margin: 10px 0 14px; font-size: clamp(34px, 4.5vw, 48px); }
.step p { color: var(--on-fabric-soft); }
.shot { margin: 0; background: #fff; padding: 8px; border-radius: 2px; box-shadow: 0 14px 34px rgba(30, 38, 32, 0.16); }
.shot img { display: block; width: 100%; border: 1px solid #e8e4da; }
.shot.popup { max-width: 330px; justify-self: center; }
.shot.popup .clip { max-height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.chip { display: inline-block; padding: 0 7px; font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; border-radius: 2px; }
.chip.pass { background: #dcebe1; color: var(--pass); }
.chip.unsure { background: #f1e8cf; color: var(--unsure); }

/* Free vs Pro, printed like a label */
.compare { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; }
.compare th, .compare td { padding: 11px 6px; border-bottom: 1px solid var(--rule); text-align: left; }
.compare th:not(:first-child), .compare td:not(:first-child) { width: 84px; text-align: center; }
.compare thead th { font-family: var(--display); font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1.5px solid var(--ink); }
.compare tbody td:not(:first-child) { color: var(--pass); font-weight: 700; }
.compare tr.group td { padding-top: 22px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.compare tfoot td { border-bottom: 0; padding-top: 16px; font-weight: 700; }

/* ---------- Text pages (privacy, terms, support) ---------- */
.doc { margin-top: 40px; padding: 44px 48px; background: var(--label); color: var(--ink); border-radius: 3px; box-shadow: 0 14px 34px rgba(30, 38, 32, 0.12); outline: 1.5px dashed var(--stitch); outline-offset: -12px; }
.doc h1 { font-size: clamp(44px, 6vw, 64px); margin-bottom: 10px; }
.doc h2 { margin: 34px 0 10px; font-size: 28px; }
.doc h3 { margin: 24px 0 6px; font-size: 21px; }
.doc .muted { color: var(--ink-soft); }
.doc a { color: var(--green); }
.doc ul { padding-left: 22px; }
.doc li { margin: 7px 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; padding: 26px 0 44px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-fabric-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; border-top: 1.5px solid var(--on-fabric); padding-top: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .woven { font-size: 14px; padding: 5px 12px 4px; }
.site-footer .legal { width: 100%; margin: 6px 0 0; }

@media (max-width: 800px) {
  .hero, .step { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; }
  .comp { transform: none; }
  .nav .hide-sm, .nav .button { display: none; }
  .nav { gap: 16px; }
  .nav a { white-space: nowrap; }
  .compare { font-size: 13px; }
  .compare th:not(:first-child), .compare td:not(:first-child) { width: 44px; }
  .compare thead th { font-size: 19px; letter-spacing: 0.04em; }
  .compare tfoot td:last-child { font-size: 12px; }
  .label, .instructions { padding-left: 24px; padding-right: 24px; }
  .doc { padding: 34px 26px; }
}

/* Logo: the angled tag */
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 0; text-decoration: none; color: var(--on-fabric); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 4px; }
.logo.small .wordmark { font-size: 19px; }
.logo img { width: 52px; height: 52px; transition: transform 0.2s; }
.logo:hover img { transform: rotate(-6deg); }
.logo.small img { width: 34px; height: 34px; }
