/*
 * Skeuomorphic theme: a desk calculator and its paper receipt.
 * Loaded after styles.css and only overrides how things look. To go back to
 * the flat design, remove the theme-skeuo.css <link> from index.html and
 * results.html.
 *
 * Materials:  desk mat (page) · moulded plastic (chat device, keys) ·
 *             LCD glass (the big numbers) · paper receipt (results panels)
 */
:root {
  --plastic-top: #FFFFFF;
  --plastic-bottom: #EEF1F7;
  --plastic-edge: #8390AC;
  --plastic-under: #6F7C99;
  --lcd-top: #C2D1AE;
  --lcd-bottom: #E0EAD1;
  --lcd-ink: #10180B;
  --paper: #FFFFFB;
  --paper-rule: #9C957E;
  --mono: "Share Tech Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ---------- desk surface ---------- */
body, body.results {
  background-color: #F9FAFB;
  /* One soft highlight at the top. A tiled grain texture over the whole page
     was tried and removed: it made tall pages slow to paint. */
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  background-size: 100% 520px;
  background-repeat: no-repeat;
}
.tint { background: transparent; }
.section.tint { background: #E6EDF1; box-shadow: inset 0 2px 3px rgba(27, 36, 64, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.7); }
.hero h1, .section h2 { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9); }
.demo-banner { background: linear-gradient(180deg, #24425F, #11263A); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.5); }
.brand__logo { filter: none; }

/* ---------- keys: anything you press ---------- */
.chip, .starter, .btn--ghost, .guess, .cost-card, .icon-btn--soft, .faq details {
  background: linear-gradient(180deg, var(--plastic-top), var(--plastic-bottom));
  border: 1px solid var(--plastic-edge);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 var(--plastic-under), 0 5px 9px rgba(27, 36, 64, 0.22);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.chip:hover, .starter:hover, .btn--ghost:hover, .guess:hover, .cost-card:hover {
  background: linear-gradient(180deg, #FFFFFF, #F1F4FA);
  border-color: #8F9BB5;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 var(--plastic-under), 0 5px 9px rgba(27, 36, 64, 0.22);
}
.chip:active, .starter:active, .btn--ghost:active, .guess:active, .cost-card:active, .icon-btn--soft:active {
  transform: translateY(2px);
  background: linear-gradient(180deg, #E3E7F0, #EEF1F7);
  box-shadow: inset 0 2px 4px rgba(27, 36, 64, 0.28), 0 0 0 var(--plastic-under);
}
.chip { color: var(--blue-dark); }

.btn--primary, .icon-btn--send {
  background: linear-gradient(180deg, #2F6AA3, #1A4168);
  border: 1px solid #122E4A;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #0E2439, 0 8px 14px rgba(27, 36, 64, 0.3);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.btn--primary:hover { background: linear-gradient(180deg, #3876B3, #1F4D7A); }
.btn--peach {
  background: linear-gradient(180deg, #339933, #226B22);
  border: 1px solid #1B5A1B;
  color: #FFFFFF;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 0 #1B5A1B, 0 8px 14px rgba(27, 36, 64, 0.3);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.btn--peach:hover { background: linear-gradient(180deg, #3BA63B, #277827); color: #FFFFFF; }
.btn--primary:active, .btn--peach:active, .icon-btn--send:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35), 0 0 0 transparent;
}
.icon-btn--send:disabled, .btn:disabled {
  background: linear-gradient(180deg, #B4BCD0, #8E99B6);
  border-color: #7A859F;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 0 #7A859F;
}

/* ---------- the chat: a moulded device with a screen ---------- */
.chat {
  background: linear-gradient(180deg, #DDE3ED, #C2CAD9);
  border: 1px solid var(--plastic-edge);
  border-radius: 28px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.85), inset 0 -8px 12px rgba(27, 36, 64, 0.12), 0 4px 0 var(--plastic-under), 0 34px 54px rgba(27, 36, 64, 0.28);
}
.chat__log {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  box-shadow: inset 0 3px 7px rgba(27, 36, 64, 0.22), inset 0 0 0 1px #8390AC, 0 1px 0 #fff;
}
.msg__bubble { background: linear-gradient(180deg, #EDF3F7, #DCE6EE); border: 1px solid #A5B6C6; box-shadow: 0 1px 2px rgba(27, 36, 64, 0.12); }
.msg--user .msg__bubble {
  background: linear-gradient(180deg, #2A6199, #1A4168);
  border: 1px solid #122E4A;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 3px rgba(27, 36, 64, 0.3);
}
.msg--error .msg__bubble { background: linear-gradient(180deg, #FFF3F3, #FBDCDC); border-color: #E3A9A9; }
.msg__avatar, .step__num {
  background: radial-gradient(circle at 32% 26%, #6FA8DC 0%, #255A8C 55%, #143350 100%);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.3), 0 2px 3px rgba(27, 36, 64, 0.35);
}
.step__num { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); }
.composer {
  background: #fff;
  border: 1px solid #6F7C99;
  box-shadow: inset 0 3px 6px rgba(27, 36, 64, 0.2), 0 1px 0 #fff;
}
.composer--disabled { background: #E4E8F1; border-color: var(--plastic-edge); }
.bar { height: 8px; background: #A9B3C8; border-radius: 4px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 0 #fff; }
.bar > span { background: linear-gradient(180deg, #5C9BD1, #1F4D7A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); border-radius: 4px; }

/* ---------- dark housings with LCD glass ---------- */
.band, .sample, .summary, .loading {
  background: linear-gradient(180deg, #24425F, #11263A);
  border: 1px solid #0B1B2A;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -10px 16px rgba(0, 0, 0, 0.25), 0 4px 0 #081521, 0 24px 40px rgba(27, 36, 64, 0.38);
}
.band__value, .sample__range, .summary h1 {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--lcd-ink);
  background: linear-gradient(180deg, var(--lcd-top), var(--lcd-bottom));
  border-radius: 10px;
  padding: 0.14em 0.4em;
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.5), inset 0 0 0 1px #6F7C62, 0 1px 0 rgba(255, 255, 255, 0.16);
  text-shadow: 2px 2px 0 rgba(28, 38, 22, 0.12);
  width: fit-content;
  max-width: 100%;
}
.band__value { display: inline-block; margin-top: 4px; font-size: 1.2rem; }
.summary h1 { font-size: clamp(1.45rem, 6.4vw, 3.6rem); margin: 10px 0; }
.sample__range { font-size: clamp(1.4rem, 4.4vw, 2.3rem); }
.stat {
  background: #0C1C2B;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.13);
  border-radius: 14px;
}
.stat__value { font-family: var(--mono); font-weight: 400; color: #D9EBC4; text-shadow: 0 0 8px rgba(190, 230, 150, 0.45); }
.scale__bars span, .sample__row .track {
  background: #0A1826;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.12);
}
.scale__bars span.is-on, .sample__row .track span {
  background: linear-gradient(180deg, #9BD8F6, #30ABE8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 10px rgba(48, 171, 232, 0.75);
}
.sample__row .num { font-family: var(--mono); }
.loading__steps li.is-done::before { background: linear-gradient(180deg, #9BD8F6, #30ABE8); box-shadow: 0 0 8px rgba(48, 171, 232, 0.7); }

/* ---------- raised cards ---------- */
.step {
  background: linear-gradient(180deg, #FFFFFF, #EEF1F7);
  border: 1px solid var(--plastic-edge);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 var(--plastic-under), 0 14px 22px rgba(27, 36, 64, 0.16);
}
.cost-card .price, .version .price, .part__hours, .part__cost { font-family: var(--mono); font-weight: 400; }
.cost-card .price { color: var(--blue-dark); }
.faq details { border-radius: 14px; }
.faq details[open] { background: linear-gradient(180deg, #EEF1F7, #F8F9FC); box-shadow: inset 0 2px 5px rgba(27, 36, 64, 0.18), 0 1px 0 #fff; }
.cta {
  background: linear-gradient(180deg, #2A6199, #173A5C);
  border: 1px solid #0E2439;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -12px 20px rgba(0, 0, 0, 0.18), 0 5px 0 #0C2033, 0 28px 44px rgba(27, 36, 64, 0.35);
}
.cta h2 { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); }

/* ---------- results: paper receipts ---------- */
.panel {
  position: relative;
  background: var(--paper);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 3px rgba(27, 36, 64, 0.18), 0 18px 26px -10px rgba(27, 36, 64, 0.35);
}
.panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -7px; height: 8px;
  background:
    linear-gradient(-45deg, var(--paper) 5.5px, transparent 0),
    linear-gradient(45deg, var(--paper) 5.5px, transparent 0);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: left bottom;
}
.part { border-top: 1px dashed var(--paper-rule); }
.part--total { border-top: 2px solid var(--ink); }
.part__track span { background: linear-gradient(180deg, #4F8EC4, #1F4D7A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 2px rgba(27, 36, 64, 0.3); }
.version { background: #fff; border: 1px solid var(--paper-rule); box-shadow: 0 2px 0 #D9D4C2, 0 6px 10px rgba(27, 36, 64, 0.12); padding: 20px; }
.version--on { border: 2px solid var(--blue); background: linear-gradient(180deg, #EEF4F8, #DFE9F1); box-shadow: inset 0 2px 5px rgba(31, 77, 122, 0.2); padding: 19px; }
.field input, .rate-row input {
  background: #fff;
  border: 1px solid #6F7C99;
  box-shadow: inset 0 3px 5px rgba(27, 36, 64, 0.18), 0 1px 0 #fff;
}
.rate-row input { font-family: var(--mono); }

/* The email card is a glossy blue device, not paper. */
.panel--blue {
  background: linear-gradient(180deg, #2A6199, #173A5C);
  border: 1px solid #0E2439;
  border-radius: 22px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -10px 18px rgba(0, 0, 0, 0.18), 0 4px 0 #0C2033, 0 22px 34px rgba(27, 36, 64, 0.35);
}
.panel--blue::before { content: none; }
.panel--blue h2 { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); }
.panel--blue .field input { border-color: #0E2439; box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3); }

@media (prefers-reduced-motion: reduce) {
  .chip, .starter, .btn, .guess, .cost-card, .icon-btn { transition: none; }
}

/* Shared typeface for both pages */
body { font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ---------- results: proposal form, cheaper platform, spec ---------- */
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px 16px; }
.lead-wide { grid-column: 1 / -1; }
.lead-form .field input, .lead-form .field textarea, .lead-select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid #6F7C99; background: #fff;
  box-shadow: inset 0 3px 5px rgba(27, 36, 64, 0.14), 0 1px 0 #fff; font: inherit; color: var(--ink); box-sizing: border-box;
}
.lead-form .field textarea { resize: vertical; }
.lead-form .field label { font-size: 14px; font-weight: 500; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--blue); }
.lead-form .btn { align-self: flex-start; }
.cheaper-options { display: flex; flex-wrap: wrap; gap: 10px; }
.cheaper-option { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF, #EEF1F7); border: 1px solid #8390AC; box-shadow: inset 0 1px 0 #fff, 0 3px 0 #6F7C99, 0 6px 10px rgba(26, 51, 77, 0.16); min-width: 170px; }
.cheaper-option:hover { color: var(--blue); }
.cheaper-option b { font-size: 16px; }
.cheaper-option span { font-size: 13px; color: var(--muted); }
.tick-list--dark li::before { color: #2A822A; }
