/* dtc365.com — ink & brass
   ------------------------------------------------------------------ */

:root{
  --ink:        #0F1620;
  --ink-raised: #151F2B;
  --ink-sunk:   #0B111A;
  --line:       #22303F;
  --line-soft:  #1A2531;

  --brass:      #C89B3C;
  --brass-dim:  #7E6428;
  --brass-glow: rgba(200,155,60,.14);

  --text:       #E7ECF3;
  --text-mid:   #A8B4C4;
  --text-dim:   #6E7C8D;

  --good:       #74C99A;
  --warn:       #E0A458;
  --bad:        #E0776A;

  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --disp:  'Space Grotesk', var(--sans);
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r: 10px;
}

*{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin:0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 420px at 82% -8%, var(--brass-glow), transparent 62%);
  background-repeat: no-repeat;
}

a{ color: inherit; }

.wrap{
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 0;
}

.brand{
  font-family: var(--disp);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--text);
}
.brand .dot{ color: var(--brass); }

.nav-links{
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--text-mid);
}
.nav-links a{
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover{ color: var(--text); border-bottom-color: var(--brass-dim); }

/* ---------- hero ---------- */

.hero{
  position: relative;
  padding: 76px 0 58px;
  overflow: hidden;
}

.hero h1{
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0 0 20px;
  max-width: 17ch;
}

.hero p.lede{
  font-size: 17px;
  color: var(--text-mid);
  max-width: 56ch;
  margin: 0;
}

.hero .rule{
  width: 54px;
  height: 3px;
  background: var(--brass);
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero-ghost{
  position: absolute;
  right: -14px;
  top: 6px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(150px, 26vw, 280px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero .wrap{ position: relative; z-index: 1; }

/* ---------- sections ---------- */

.section{ padding: 34px 0; }

.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 26px;
}
.section-head h2{
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
}
.section-head span{
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- tool list ---------- */

.tools{
  display: grid;
  gap: 14px;
}

.tool{
  display: block;
  text-decoration: none;
  background: var(--ink-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 22px 24px;
  position: relative;
}

.tool h3{
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 6px;
}

.tool p{
  margin: 0;
  color: var(--text-mid);
  font-size: 14.5px;
  max-width: 62ch;
}

.tool.live{
  border-color: var(--line);
  border-left: 3px solid var(--brass);
}
.tool.live:hover{ background: #1A2634; }
.tool.live:focus-visible{ outline: 2px solid var(--brass); outline-offset: 3px; }

.tool.soon{ opacity: .62; }
.tool.soon h3{ color: var(--text-mid); }

.status{
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.status.ready{ color: var(--brass); }

/* ---------- note strip ---------- */

.note{
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--ink-sunk);
  padding: 26px 28px;
  margin: 10px 0 0;
}
.note h2{
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -.015em;
}
.note p{
  margin: 0 0 10px;
  color: var(--text-mid);
  font-size: 14.5px;
  max-width: 68ch;
}
.note p:last-child{ margin-bottom: 0; }

/* ---------- footer ---------- */

.foot{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  margin-top: 46px;
  padding: 22px 0 42px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ================= calculator page ================= */

.tool-head{ padding: 52px 0 30px; }
.tool-head h1{
  font-family: var(--disp);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 14px;
}
.tool-head p{
  color: var(--text-mid);
  max-width: 64ch;
  margin: 0;
  font-size: 16px;
}

.calc{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px){
  .calc{ grid-template-columns: 1fr; }
}

.panel{
  background: var(--ink-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 24px;
}
.panel h2{
  font-family: var(--disp);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: -.01em;
}

.field{ margin-bottom: 22px; }
.field:last-child{ margin-bottom: 0; }

.field-top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.field-top label{ font-size: 14.5px; color: var(--text); }
.field-top .val{
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.hint{
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 7px 0 0;
}

.err{
  display: none;
  font-size: 12.5px;
  color: var(--bad);
  margin: 7px 0 0;
}
.err.show{ display: block; }

input[type=range]{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  outline: none;
  margin: 6px 0 0;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brass);
  cursor: pointer;
  border: 3px solid var(--ink-raised);
  box-shadow: 0 0 0 1px var(--brass-dim);
}
input[type=range]::-moz-range-thumb{
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brass);
  cursor: pointer;
  border: 3px solid var(--ink-raised);
}
input[type=range]:focus-visible{ outline: 2px solid var(--brass); outline-offset: 4px; }

.num-row{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.num-row .cur{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}
input[type=number]{
  flex: 1;
  background: var(--ink-sunk);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  width: 100%;
}
input[type=number]:focus{ outline: none; border-color: var(--brass-dim); }
input[type=number]:focus-visible{ outline: 2px solid var(--brass); outline-offset: 1px; }

/* ---------- gauge (signature element) ---------- */

.gauge-wrap{ text-align: left; margin-bottom: 24px; }

.gauge-num{
  font-family: var(--mono);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.gauge-num.good{ color: var(--good); }
.gauge-num.bad{ color: var(--bad); }

.gauge-sub{
  font-size: 13px;
  color: var(--text-dim);
  margin: 8px 0 16px;
}

#gaugeSvg{ width: 100%; height: 22px; display: block; }

.gauge-scale{
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ---------- stats ---------- */

.stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.stat{
  background: var(--ink-raised);
  padding: 15px 16px;
}
.stat .k{
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 5px;
}
.stat .v{
  font-family: var(--mono);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.verdict{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  border: 1px solid var(--line);
  background: var(--ink-sunk);
}
.verdict.good{ border-color: rgba(116,201,154,.32); }
.verdict.bad{ border-color: rgba(224,119,106,.32); }

/* ---------- analysis ---------- */

.analysis{ margin-top: 18px; }

.reads{
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.read{
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--brass-dim);
  border-radius: 8px;
  background: var(--ink-raised);
  padding: 16px 18px;
}
.read .k{
  font-size: 13.5px;
  color: var(--text);
  margin: 0 0 5px;
  font-weight: 500;
}
.read .d{
  font-size: 14px;
  color: var(--text-mid);
  margin: 0;
  max-width: 68ch;
}
.read .d b{
  font-family: var(--mono);
  font-weight: 500;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
