/* Hotelling module — additions on top of main.css tokens.
   Loaded after main.css; defines nothing that module 1 uses. */

/* Tolerance curves */
.curve-linear { fill: none; stroke: var(--wine); stroke-width: 2.5; }
.curve-convex { fill: none; stroke: var(--petrol); stroke-width: 2.5; }
.curve-live { fill: none; stroke: var(--petrol); stroke-width: 2.5; transition: stroke .4s var(--ease); }
.curve-live.is-linear { stroke: var(--wine); }

.readline { stroke: var(--gray); stroke-width: 1.5; stroke-dasharray: 5 4; }
.readdot { stroke: #fff; stroke-width: 2; }
.readdot-linear { fill: var(--wine); }
.readdot-convex { fill: var(--petrol); }

/* Reading the chart — kept in HTML so it stays legible on a phone */
.reading { margin-top: 18px; display: grid; gap: 10px; }
.read-line {
  margin: 0;
  font-size: 16px;
  padding-left: 24px;
  position: relative;
}
.read-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.read-linear::before { background: var(--wine); }
.read-convex::before { background: var(--petrol); }
.read-cross::before { background: var(--gray); }

/* Beach illustration in section 01 — static, no interactivity */
.beach-illustration .beach-ghost { opacity: .3; }
.beach-arrow { stroke: var(--gray); stroke-width: 2; }

/* The line ("beach") in the lab */
.beach-line { stroke: var(--hairline); stroke-width: 3; stroke-linecap: round; }
.end-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .06em;
  fill: var(--gray);
}
.firm {
  stroke: #fff;
  stroke-width: 3;
  transition: cx .5s var(--ease);
}
.firm-a { fill: var(--wine); }
.firm-b { fill: var(--petrol); }
.firm-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  transition: x .5s var(--ease);
}
.sep-bracket { stroke: var(--gray); stroke-width: 1.5; fill: none; transition: d .5s var(--ease); }
.sep-label { font-family: var(--font-head); font-size: 12px; fill: var(--gray); }

.stat.is-unstable .value { color: var(--wine); animation: jitter .9s steps(2, end) infinite; }
@keyframes jitter {
  0%   { transform: translateX(-2px); }
  50%  { transform: translateX(2px); }
  100% { transform: translateX(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .stat.is-unstable .value { animation: none; }
}

.profit-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin: 8px 0 4px;
}
.profit-bar > div {
  height: 100%;
  border-radius: 999px;
  background: var(--petrol);
  transition: width .5s var(--ease), background-color .5s var(--ease);
}
.profit-bar.is-negative > div { background: var(--wine); }
.profit-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.fixed-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}
.fixed-toggle input { accent-color: var(--wine); width: 18px; height: 18px; margin-top: 3px; }

/* The three strategic paths + the Symbian test inside path 3 */
section h3 { margin-top: 32px; }
.symbian-head {
  margin: 28px 0 0;
  font-family: var(--font-head);
  font-size: 19px;
}
.symbian-questions {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--petrol);
  border-radius: var(--radius);
  padding: 14px 18px;
  line-height: 1.7;
}

/* Market test questions in section 08 */
.test-q { margin-top: 22px; }
.test-q h3 { margin: 0 0 8px; font-size: 19px; }
.test-q p { margin: 0 0 8px; }

