/* ============================================================
   Toledo Technologies — shop.toledotechnologies.com
   Warm dark editorial. Outfit headings, Lora body.
   ============================================================ */

:root {
  --bg: #0d0a08;
  --bg-raised: #171009;
  --bg-panel: #1a1311;
  --bg-inset: #080604;
  --border: #3a2a20;
  --border-soft: #2a1e16;
  --cream: #ffebc8;
  --cream-dim: #decbb0;
  --muted: #a08a70;
  --faint: #725e55;
  --accent: #bd592f;
  --accent-hover: #d96c3c;
  --accent-deep: #6b2b18;
  --accent-tint: rgba(189, 89, 47, 0.14);
  --slate: #3B4856;
  --slate-light: #5c6c7d;
  --ok: #7eb87a;
  --warn: #d6a24a;
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

main, header.site, footer.site { position: relative; z-index: 1; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.4em; margin-bottom: 1.1em; }
li { margin-bottom: 0.4em; }

strong { color: var(--cream); font-weight: 600; }

code, pre { font-family: var(--font-mono); font-size: 0.92em; }

hr { border: 0; border-top: 1px solid var(--border-soft); margin: 3rem 0; }

::selection { background: var(--accent-deep); color: var(--cream); }

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(13, 10, 8, 0.92);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { flex: 0 0 auto; }
.brand .brand-sub {
  font-weight: 400;
  color: var(--faint);
  font-size: 0.82rem;
  margin-left: 0.15rem;
}

nav.site { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
nav.site a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream-dim);
  letter-spacing: 0.02em;
}
nav.site a:hover { color: var(--accent-hover); text-decoration: none; }
nav.site a.active { color: var(--accent-hover); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff4e2; }
.btn-primary:hover { background: var(--accent-hover); color: #fff4e2; }

.btn-ghost {
  background: transparent;
  color: var(--cream-dim);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.88rem; }

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

.hero { padding: 5rem 0 3.5rem; }
.hero .kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero h1 { max-width: 18ch; margin-bottom: 0.5em; }
.hero .lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1.8rem;
}
.hero .hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

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

section { padding: 3.5rem 0; }
section.tight { padding: 2.5rem 0; }

.section-head { margin-bottom: 2.2rem; }
.section-head .kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.section-head p { color: var(--muted); max-width: 60ch; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--border); }

.card .card-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card h3 a { color: var(--cream); }
.card h3 a:hover { color: var(--accent-hover); text-decoration: none; }
.card .card-desc { font-size: 0.96rem; color: var(--muted); flex: 1; }
.card .card-foot {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream);
  font-size: 1.25rem;
}
.price small { font-size: 0.72em; color: var(--muted); font-weight: 500; }

/* product card with cover */
.card-cover { padding: 0; overflow: hidden; }
.card-cover .cover-frame {
  aspect-ratio: 4 / 3;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.card-cover .cover-frame img { width: 100%; height: 100%; object-fit: cover; }
.card-cover .card-body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }

/* ---------- bundle feature ---------- */

.feature {
  background: linear-gradient(160deg, #20130b 0%, var(--bg-panel) 55%);
  border: 1px solid var(--accent-deep);
  border-radius: 14px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.feature h2 { margin-bottom: 0.5em; }
.feature .feature-math {
  font-family: var(--font-display);
  color: var(--cream-dim);
  font-size: 1rem;
  margin: 1.2rem 0;
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
}
.feature .feature-math .strike { color: var(--faint); text-decoration: line-through; }
.feature img { border-radius: var(--radius); border: 1px solid var(--border-soft); }

/* ---------- trust block ---------- */

.trust { background: var(--bg-raised); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.trust .grid-3 { gap: 2rem; }
.trust h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.trust p { font-size: 0.95rem; color: var(--muted); }
.trust .trust-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- forms ---------- */

.subscribe { max-width: 460px; }
.subscribe-row { display: flex; gap: 0.6rem; }
.subscribe input[type="email"] {
  flex: 1;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.75rem 1.2rem;
  min-width: 0;
}
.subscribe input[type="email"]:focus { outline: none; border-color: var(--accent); }
.subscribe input[type="email"]::placeholder { color: var(--faint); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.82rem; color: var(--faint); margin-top: 0.7rem; }
.form-msg { font-size: 0.92rem; margin-top: 0.8rem; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #d97b6c; }

/* ---------- article list ---------- */

.article-list { list-style: none; padding: 0; }
.article-list li {
  border-top: 1px solid var(--border-soft);
  padding: 1.6rem 0;
}
.article-list h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.article-list .meta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.article-list p { color: var(--muted); font-size: 0.98rem; }

/* ---------- article body ---------- */

.article-hero { padding: 4rem 0 2rem; }
.article-hero .meta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1rem;
}
article.body { max-width: 720px; padding-bottom: 3rem; }
article.body h2 { margin-top: 2.2em; font-size: 1.55rem; }
article.body h3 { margin-top: 1.8em; }
article.body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.3rem;
  margin: 1.6rem 0;
  color: var(--cream-dim);
  font-style: italic;
}
article.body pre {
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 1.4rem 0;
  line-height: 1.55;
  color: var(--cream-dim);
}
article.body .callout {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}
article.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
article.body th, article.body td {
  border: 1px solid var(--border-soft);
  padding: 0.6rem 0.9rem;
  text-align: left;
}
article.body th { font-family: var(--font-display); color: var(--cream); background: var(--bg-panel); }

.related-box {
  background: var(--bg-panel);
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin: 2.5rem 0;
}
.related-box .kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---------- product page ---------- */

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  align-items: start;
}
.product-hero .cover-frame {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-inset);
  aspect-ratio: 4 / 3;
}
.product-hero .cover-frame img { width: 100%; height: 100%; object-fit: cover; }
.product-hero .kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.product-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5em; }
.product-hero .lede { color: var(--muted); font-size: 1.1rem; }
.buy-box {
  margin-top: 1.8rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.buy-box .price { font-size: 1.9rem; display: block; margin-bottom: 0.9rem; }
.buy-box .price .anchor {
  font-size: 0.55em;
  color: var(--faint);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 0.5rem;
}
.buy-box .btn { width: 100%; }
.buy-box .buy-note { font-size: 0.82rem; color: var(--faint); margin-top: 0.9rem; text-align: center; }

.included h2, .preview-strip h2 { font-size: 1.4rem; }
.included ul { list-style: none; padding: 0; }
.included li {
  padding: 0.55rem 0 0.55rem 1.9rem;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
}
.included li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
}
.included li:last-child { border-bottom: 0; }

.preview-strip .strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.preview-strip .strip.two { grid-template-columns: repeat(2, 1fr); }
.preview-strip .strip a, .preview-strip .strip img {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-inset);
}
.preview-strip .strip img { width: 100%; transition: opacity 0.15s ease; }
.preview-strip .strip a:hover img { opacity: 0.85; }
.preview-strip .strip-caption { font-size: 0.85rem; color: var(--faint); margin-top: 0.9rem; }

.fine-print { font-size: 0.88rem; color: var(--faint); }

/* ---------- calculator ---------- */

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.calc-form {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.calc-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.calc-form .field { margin-bottom: 1.2rem; }
.calc-form input[type="number"], .calc-form input[type="text"] {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 0.65rem 0.9rem;
}
.calc-form input:focus { outline: none; border-color: var(--accent); }
.calc-form .hint { font-size: 0.8rem; color: var(--faint); margin-top: 0.35rem; }
.oneoff-row { display: grid; grid-template-columns: 1fr 110px 64px 40px; gap: 0.5rem; margin-bottom: 0.5rem; }
.oneoff-row button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--faint);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.oneoff-row button:hover { border-color: #d97b6c; color: #d97b6c; }
.add-oneoff {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-top: 0.4rem;
}
.add-oneoff:hover { border-color: var(--accent); color: var(--accent-hover); }

.result-card {
  background: var(--bg-panel);
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: sticky;
  top: 90px;
}
.result-card .result-big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.05;
}
.result-card .result-big .unit { font-size: 0.4em; color: var(--muted); font-weight: 600; }
.result-card .result-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-soft);
  padding: 0.75rem 0;
  font-size: 0.95rem;
}
.result-card .result-row dt { color: var(--muted); font-family: var(--font-display); font-size: 0.88rem; }
.result-card .result-row dd { color: var(--cream); font-family: var(--font-display); font-weight: 600; text-align: right; }
.result-card .verdict { margin-top: 1rem; font-size: 0.95rem; color: var(--cream-dim); }
.result-card .print-btn { margin-top: 1.4rem; }
.result-card.status-ok .result-big { color: var(--ok); }
.result-card.status-warn .result-big { color: var(--warn); }
.result-card.status-bad .result-big { color: #d97b6c; }

@media print {
  header.site, footer.site, .calc-form, .no-print, .hero, .upsell-band { display: none !important; }
  body { background: #fff; color: #111; }
  body::before { display: none; }
  .result-card { border-color: #999; background: #fff; position: static; }
  .result-card .result-big, .result-card .result-row dd { color: #111; }
  .result-card .result-row dt, .result-card .verdict { color: #333; }
  .result-card .result-row { border-top-color: #ccc; }
}

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

footer.site {
  border-top: 1px solid var(--border-soft);
  padding: 2.8rem 0;
  margin-top: 3rem;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}
footer.site .foot-note { font-size: 0.88rem; color: var(--faint); }
footer.site nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
footer.site nav a { font-size: 0.88rem; color: var(--muted); }
footer.site nav a:hover { color: var(--accent-hover); }

/* ---------- 404 ---------- */

.center-stage { text-align: center; padding: 6rem 0; }
.center-stage h1 { margin-bottom: 0.4em; }
.center-stage p { margin-left: auto; margin-right: auto; }
.center-stage .hero-cta { display: flex; gap: 0.9rem; justify-content: center; margin-top: 1.8rem; flex-wrap: wrap; }

/* ---------- thanks ---------- */

.check-list { list-style: none; padding: 0; max-width: 560px; }
.check-list li {
  padding: 0.9rem 0 0.9rem 2.2rem;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 1.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; padding: 1.8rem; }
  .product-hero { grid-template-columns: 1fr; gap: 2rem; }
  .calc { grid-template-columns: 1fr; }
  .result-card { position: static; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .preview-strip .strip, .preview-strip .strip.two { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 2.5rem; }
  section { padding: 2.5rem 0; }
  header.site .wrap { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .brand .brand-sub { display: none; }
  nav.site { gap: 1rem; }
  nav.site a { font-size: 0.84rem; }
  .subscribe-row { flex-direction: column; }
  .subscribe-row .btn { width: 100%; }
  .oneoff-row { grid-template-columns: 1fr 90px 56px 40px; }
}
