:root {
  --ink: #202020;
  --copy: #343434;
  --muted: #666666;
  --page: #e7ecf1;
  --paper: #ffffff;
  --soft-paper: #f7f8fa;
  --cream: #fff8df;
  --blue: #234c78;
  --blue-dark: #163452;
  --blue-soft: #dce9f5;
  --gold: #efb349;
  --gold-soft: #fff1c4;
  --red: #9d352a;
  --green: #497866;
  --purple: #70527d;
  --line: #b9c2ca;
  --line-dark: #7a8894;
  color-scheme: light;
  font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --ink: #edf2f7;
  --copy: #d3dce7;
  --muted: #a9b7c7;
  --page: #111827;
  --paper: #182231;
  --soft-paper: #121c2a;
  --cream: #2a2438;
  --blue: #8bb7e2;
  --blue-dark: #bcd7ef;
  --blue-soft: #23364d;
  --gold: #f3c55f;
  --gold-soft: #3a2d16;
  --red: #f29c8f;
  --green: #7cc4a7;
  --purple: #a989be;
  --line: #3d4b5c;
  --line-dark: #66778a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #d7e0e8;
  min-height: 100%;
}

html[data-theme="dark"] {
  background: #0d1420;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(#f8fafc 0, #dfe7ef 210px, #cfd9e2 211px, #e9edf1 520px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0 1px, transparent 1px 80px);
  font-size: 14px;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(#101724 0, #162234 210px, #101927 211px, #121b29 520px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 80px);
}

a {
  color: #174f84;
  text-decoration: underline;
}

:root[data-theme="dark"] a {
  color: #95c8ff;
}

img {
  max-width: 100%;
}

main {
  width: min(1240px, calc(100% - 28px));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  position: static;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: end;
  width: 100%;
  margin: 0;
  padding: 12px max(14px, calc((100vw - 1240px) / 2)) 0;
  border-bottom: 1px solid #4e3362;
  background:
    linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0) 48%),
    linear-gradient(#8f6aa4, #5f3c78);
  box-shadow: 0 2px 8px rgba(26, 42, 55, 0.28);
}

.theme-toggle {
  align-self: end;
  min-height: 32px;
  margin-bottom: 0;
  padding: 7px 12px;
  border: 1px solid #9eb2c4;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#ffffff, #dfeaf3);
  color: #153f65;
  font: inherit;
  font-weight: 800;
  text-shadow: 0 1px 0 #ffffff;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: linear-gradient(#ffffff, #edf5fb);
  color: #082f50;
}

:root[data-theme="dark"] .theme-toggle {
  border-color: #705588;
  background: linear-gradient(#2b3d54, #18283c);
  color: #f5e8ff;
  text-shadow: none;
}

.site-header[data-scrolled="true"] {
  background:
    linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0) 48%),
    linear-gradient(#8f6aa4, #5f3c78);
  box-shadow: 0 2px 8px rgba(26, 42, 55, 0.28);
}

.brand,
.desktop-nav,
.menu-button {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 4px;
  background: linear-gradient(#2e6599, #173c61);
  color: #ffffff;
  font-size: 0.92rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.desktop-nav {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 800;
}

.desktop-nav a,
.mobile-nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid #9eb2c4;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#ffffff, #dfeaf3);
  color: #153f65;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 1px 0 #ffffff;
}

:root[data-theme="dark"] .desktop-nav a,
:root[data-theme="dark"] .mobile-nav a,
:root[data-theme="dark"] .button {
  border-color: #4d6380;
  background: linear-gradient(#27394f, #172638);
  color: #e7f2ff;
  text-shadow: none;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.button:hover {
  background: linear-gradient(#ffffff, #edf5fb);
  color: #082f50;
}

:root[data-theme="dark"] .desktop-nav a:hover,
:root[data-theme="dark"] .mobile-nav a:hover,
:root[data-theme="dark"] .button:hover {
  background: linear-gradient(#334963, #1d3148);
  color: #ffffff;
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  border-color: #8d671f;
  background: linear-gradient(#fff7da, #f3c76a);
  color: #2a1800;
}

:root[data-theme="dark"] .desktop-nav a[aria-current="page"],
:root[data-theme="dark"] .mobile-nav a[aria-current="page"] {
  border-color: #d5ad52;
  background: linear-gradient(#5a4520, #332713);
  color: #ffe9a6;
}

.menu-button {
  display: none;
  width: 40px;
  height: 34px;
  margin-bottom: 8px;
  border: 1px solid #9eb2c4;
  border-radius: 4px;
  background: linear-gradient(#ffffff, #dfeaf3);
  color: var(--ink);
}

:root[data-theme="dark"] .menu-button {
  border-color: #4d6380;
  background: linear-gradient(#27394f, #172638);
  color: #e7f2ff;
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-nav {
  position: static;
  display: grid;
  width: 100%;
  gap: 4px;
  margin: 0;
  padding: 8px max(14px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line-dark);
  border-top: 0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 42, 55, 0.18);
}

:root[data-theme="dark"] .mobile-nav {
  background: #111b29;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.mobile-nav a {
  border-radius: 4px;
}

.mobile-nav[hidden] {
  display: none;
}

main {
  flex: 1 0 auto;
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

:root[data-theme="dark"] main {
  background: var(--paper);
}

.hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88)),
    radial-gradient(circle at 82% 18%, rgba(239,179,73,0.32), transparent 28%),
    linear-gradient(#f9fbfd, #edf3f8);
  color: var(--ink);
}

:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .dinosaur-hero {
  background:
    linear-gradient(90deg, rgba(24,34,49,0.97), rgba(18,28,42,0.91)),
    radial-gradient(circle at 82% 18%, rgba(169,137,190,0.24), transparent 28%),
    linear-gradient(#172235, #111b29);
}

.hero-image,
.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .eyebrow {
  color: #f3c55f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 670px;
  margin-bottom: 12px;
  color: #17395f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.75vw, 1.52rem);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3 {
  color: #dbeafe;
}

h2 {
  margin-bottom: 11px;
  color: #153f65;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.85vw, 1.55rem);
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  color: #17395f;
  font-size: 1rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 760px;
  color: var(--copy);
  font-size: 0.98rem;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 18px;
}

.button {
  border-radius: 4px;
}

.button.primary {
  border-color: #9b6b18;
  background: linear-gradient(#ffd879, #e5a233);
  color: #231600;
}

.button.secondary {
  border-color: #9eb2c4;
  background: linear-gradient(#ffffff, #dfeaf3);
  color: #153f65;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 2px 0 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.hero-stats div {
  min-height: 0;
  padding: 13px;
  border: 1px solid #d5bf78;
  border-radius: 5px;
  background: linear-gradient(#fffdf4, #fff2c4);
  box-shadow: inset 0 1px 0 #ffffff;
}

:root[data-theme="dark"] .hero-stats div {
  border-color: #5a4a24;
  background: linear-gradient(#2b2f3f, #211f31);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-stats dt {
  margin-bottom: 5px;
  color: var(--red);
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--copy);
  line-height: 1.45;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line-dark);
  background: linear-gradient(#2d5d8b, #183c60);
  color: #ffffff;
}

.proof-strip span {
  padding: 8px 6px;
  border-right: 1px solid rgba(255,255,255,0.18);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.proof-strip span:last-child {
  border-right: 0;
}

.switch-offer,
.section {
  padding: 26px 24px;
}

.switch-offer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.38)),
    linear-gradient(#fff4c2, #f6df88);
  color: var(--ink);
}

:root[data-theme="dark"] .switch-offer {
  background:
    linear-gradient(rgba(23,34,53,0.88), rgba(18,28,42,0.82)),
    linear-gradient(#2a2438, #171f2f);
}

.switch-offer h2 {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
}

.switch-steps {
  display: grid;
  gap: 9px;
}

.switch-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  padding: 11px;
  border: 1px solid #d1bf8a;
  border-radius: 5px;
  background: rgba(255,255,255,0.94);
  box-shadow: inset 0 1px 0 #ffffff;
}

:root[data-theme="dark"] .switch-steps article {
  border-color: var(--line);
  background: #1f2b3d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.switch-steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #a56f18;
  border-radius: 4px;
  background: linear-gradient(#ffc76f, #e7972d);
  color: #201000;
  font-weight: 900;
}

.switch-steps h3 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.switch-steps p {
  margin-bottom: 0;
  color: var(--copy);
  line-height: 1.5;
}

.section {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.section:nth-of-type(odd) {
  background: var(--soft-paper);
}

:root[data-theme="dark"] .section,
:root[data-theme="dark"] .section:nth-of-type(odd) {
  background: var(--paper);
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 16px;
}

.section-heading p:not(.eyebrow),
.compare-copy p,
.taste-copy p {
  color: var(--copy);
  font-size: 0.94rem;
  line-height: 1.6;
}

.fine-print {
  padding-top: 10px;
  border-top: 1px dashed #c8b979;
  font-size: 0.85rem !important;
}

.service-grid,
.work-grid,
.pricing-grid,
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.promise-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.work-card,
.price-card,
.promise-grid article,
.process-list li {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31, 52, 70, 0.12);
}

:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .work-card,
:root[data-theme="dark"] .price-card,
:root[data-theme="dark"] .promise-grid article,
:root[data-theme="dark"] .process-list li,
:root[data-theme="dark"] .compare-table {
  border-color: var(--line);
  background: #1f2b3d;
  box-shadow: 0 1px 3px rgba(0,0,0,0.32);
}

.service-card,
.price-card,
.promise-grid article,
.process-list li {
  padding: 14px;
}

.service-card p,
.work-card h3,
.price-card p,
.price-card li,
.process-list p,
.promise-grid p {
  color: var(--copy);
  line-height: 1.55;
}

.service-card a,
.portfolio-card a {
  font-weight: 900;
}

a.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-icon,
.work-type,
.plan {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.taste-section,
.compare-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.range-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.range-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 5px;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.range-tile span {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.range-tile strong {
  font-size: 0.98rem;
  line-height: 1.28;
}

.range-tile.refined {
  background: linear-gradient(#315f92, #23466f);
}

.range-tile.bold {
  background: linear-gradient(#815c8e, #62426c);
}

.range-tile.practical {
  background: linear-gradient(#5a907b, #3f705e);
}

.range-tile.inventive {
  background: linear-gradient(#9b6d34, #795025);
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31, 52, 70, 0.12);
}

:root[data-theme="dark"] .guide-table {
  border-color: var(--line);
  background: #172234;
  box-shadow: 0 1px 3px rgba(0,0,0,0.32);
}

.table-wrap {
  overflow-x: auto;
}

.guide-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31, 52, 70, 0.12);
}

.guide-table th,
.guide-table td {
  padding: 10px;
  border-bottom: 1px solid #d7dfe5;
  border-left: 1px solid #d7dfe5;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

:root[data-theme="dark"] .guide-table th,
:root[data-theme="dark"] .guide-table td {
  border-color: #334357;
}

.guide-table th:first-child,
.guide-table td:first-child {
  border-left: 0;
}

.guide-table thead th {
  background: linear-gradient(#2d5d8b, #183c60);
  color: #ffffff;
}

.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid #d7dfe5;
}

:root[data-theme="dark"] .compare-row,
:root[data-theme="dark"] .compare-row span + span {
  border-color: #334357;
}

.compare-row:first-child {
  border-top: 0;
}

.compare-row span {
  padding: 10px;
  line-height: 1.42;
}

.compare-row span + span {
  border-left: 1px solid #d7dfe5;
}

.compare-head {
  background: linear-gradient(#2d5d8b, #183c60);
  color: #ffffff;
  font-weight: 900;
}

.work-section {
  background: linear-gradient(#224e78, #153552);
  color: #ffffff;
}

.work-section h2,
.work-section h3,
.work-section .eyebrow {
  color: #ffe99a;
}

.work-section .section-heading p:not(.eyebrow),
.work-card h3 {
  color: #ffffff;
}

.work-card {
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.work-card h3,
.work-card p {
  padding: 0 12px;
}

.work-card h3 {
  padding-bottom: 14px;
}

.mockup {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 7px;
  min-height: 150px;
  padding: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.24);
  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.55)),
    repeating-linear-gradient(0deg, #dfefff 0 12px, #cfe2f0 12px 24px);
}

.mockup span {
  display: block;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 4px;
  background: var(--blue);
}

.mockup span:first-child {
  grid-row: span 2;
  background: linear-gradient(#2f679a, #1f466f);
}

.mockup span:nth-child(2) {
  background: linear-gradient(#f0b65c, #cc7d24);
}

.mockup span:nth-child(3) {
  background: linear-gradient(#5a927c, #3b6e5a);
}

.ecommerce-site span:first-child {
  background: linear-gradient(#ad5c91, #7e3766);
}

.ecommerce-site span:nth-child(2) {
  background: linear-gradient(#55a87d, #2f7a55);
}

.app-site span:first-child {
  background: linear-gradient(#2b71ad, #174f84);
}

.app-site span:nth-child(3) {
  background: linear-gradient(#d86650, #a93b2c);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  overflow: visible;
  border: 0;
  list-style: none;
  background: transparent;
}

.process-list span {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-weight: 900;
}

.pricing-section {
  background: linear-gradient(#fff8df, #f7ecc7);
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.price-card.featured {
  border: 2px solid var(--red);
  transform: none;
}

.price-card h3 {
  font-size: 1.45rem;
}

.price-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: auto 0 0;
  list-style: none;
}

.price-card li {
  padding-top: 8px;
  border-top: 1px dashed #c8b979;
}

.contact-section {
  background: linear-gradient(#224e78, #153552);
  color: #ffffff;
}

.contact-panel {
  width: min(520px, 100%);
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  background: #fffdf4;
  color: var(--ink);
}

:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .calculator-panel,
:root[data-theme="dark"] .planner-panel,
:root[data-theme="dark"] .planner-notes,
:root[data-theme="dark"] .dino-detail-section {
  border-color: var(--line);
  background: #1f2b3d;
  box-shadow: 0 1px 3px rgba(0,0,0,0.32);
  color: var(--ink);
}

.contact-form label {
  display: grid;
  gap: 5px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #b8c4cd;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 8px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form select,
:root[data-theme="dark"] .contact-form textarea,
:root[data-theme="dark"] .calculator-panel input,
:root[data-theme="dark"] .calculator-panel select,
:root[data-theme="dark"] .planner-panel input,
:root[data-theme="dark"] .planner-panel select {
  border-color: #4b5f78;
  background: #111b29;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.45);
}

.contact-form textarea {
  resize: vertical;
}

.dinosaur-hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94), rgba(255,255,255,0.84)),
    radial-gradient(circle at 86% 20%, rgba(73,120,102,0.28), transparent 26%),
    linear-gradient(#f9fbfd, #e8f1ec);
}

.calculator-section {
  padding: 0;
  border-bottom: 0;
  background: transparent;
  font-size: 0.74rem;
}

.calculator-section .table-wrap {
  margin-top: 8px;
}

.calculator-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(6, minmax(100px, 0.65fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf4;
  box-shadow: 0 1px 3px rgba(31, 52, 70, 0.12);
}

.calculator-panel label {
  display: grid;
  gap: 3px;
  color: #17395f;
  font-size: 0.7rem;
  font-weight: 900;
}

:root[data-theme="dark"] .calculator-panel label,
:root[data-theme="dark"] .planner-panel label {
  color: #dbeafe;
}

.calculator-panel input,
.calculator-panel select {
  width: 100%;
  min-height: 30px;
  border: 1px solid #b8c4cd;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 5px 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.calculator-panel .button {
  min-height: 30px;
  padding: 5px 10px;
}

.habitat-planner {
  margin-top: 8px;
}

.planner-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(72px, 0.18fr) auto auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf4;
  box-shadow: 0 1px 3px rgba(31, 52, 70, 0.12);
}

.planner-panel label {
  display: grid;
  gap: 3px;
  color: #17395f;
  font-size: 0.7rem;
  font-weight: 900;
}

.planner-panel input,
.planner-panel select {
  width: 100%;
  min-height: 30px;
  border: 1px solid #b8c4cd;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 5px 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.planner-panel .button {
  min-height: 30px;
  padding: 5px 10px;
}

.planner-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1.4fr) minmax(220px, 0.62fr) minmax(260px, 0.8fr);
  gap: 8px;
  margin-top: 8px;
  align-items: start;
}

.planner-block {
  overflow-x: auto;
}

.planner-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  font-size: 0.72rem;
}

.planner-table th,
.planner-table td {
  padding: 5px 7px;
  white-space: nowrap;
}

.planner-notes {
  min-height: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf4;
  box-shadow: 0 1px 3px rgba(31, 52, 70, 0.12);
  color: var(--copy);
  font-size: 0.72rem;
  line-height: 1.35;
}

.planner-notes p {
  margin: 0 0 7px;
}

.planner-notes p:last-child {
  margin-bottom: 0;
}

.planner-remove {
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 4px;
}

.tool-note {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.dinosaur-table th,
.dinosaur-table td {
  min-width: 0;
  width: auto;
}

.dinosaur-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.dinosaur-table thead th,
.dinosaur-table tbody th,
.dinosaur-table tbody td {
  white-space: nowrap;
}

.dinosaur-table th:nth-child(1),
.dinosaur-table td:nth-child(1) {
  min-width: 150px;
}

.dinosaur-table th:nth-child(2),
.dinosaur-table td:nth-child(2) {
  min-width: 86px;
}

.dinosaur-table th:nth-child(3),
.dinosaur-table td:nth-child(3) {
  min-width: 116px;
}

.dinosaur-table th:nth-child(4),
.dinosaur-table td:nth-child(4) {
  min-width: 64px;
}

.dinosaur-table th:nth-child(5),
.dinosaur-table td:nth-child(5) {
  min-width: 74px;
}

.dinosaur-table th:nth-child(6),
.dinosaur-table td:nth-child(6) {
  min-width: 92px;
}

.dinosaur-table th:nth-child(7),
.dinosaur-table td:nth-child(7) {
  min-width: 220px;
}

.dinosaur-table th:nth-child(8),
.dinosaur-table td:nth-child(8) {
  min-width: 96px;
}

.dinosaur-table tbody th,
.dinosaur-table tbody td {
  height: 30px;
  padding: 0;
}

.field-button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  padding: 0 6px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #153f65;
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-overflow: clip;
  white-space: nowrap;
  cursor: pointer;
}

:root[data-theme="dark"] .field-button {
  color: #dbeafe;
}

.field-button:hover,
.field-button:focus-visible {
  background: linear-gradient(#fff7da, #f3c76a);
  color: #9d352a;
  outline: 2px solid #8d671f;
  outline-offset: -2px;
}

:root[data-theme="dark"] .field-button:hover,
:root[data-theme="dark"] .field-button:focus-visible {
  background: linear-gradient(#3d3151, #251b34);
  color: #ffe9a6;
  outline-color: #d5ad52;
}

.modal-open {
  overflow: hidden;
}

.dino-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: auto;
  background: rgba(16, 32, 48, 0.62);
}

:root[data-theme="dark"] .dino-modal {
  background: rgba(3, 8, 14, 0.76);
}

.dino-modal[hidden] {
  display: none;
}

.dino-modal-panel {
  width: min(1800px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(10, 22, 34, 0.38);
}

:root[data-theme="dark"] .dino-modal-panel {
  border-color: var(--line-dark);
  background: #172234;
  box-shadow: 0 16px 42px rgba(0,0,0,0.58);
}

.dino-modal-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  padding: 7px 9px 5px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0) 48%),
    linear-gradient(#f9cf68, #df9f2f);
}

:root[data-theme="dark"] .dino-modal-bar {
  border-color: var(--line);
  background:
    linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0) 48%),
    linear-gradient(#4a3860, #271b39);
}

.dino-modal-bar h2 {
  margin: 0;
  color: #17395f;
  font-size: 1rem;
}

.dino-modal-content {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  background:
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.98)),
    repeating-linear-gradient(90deg, rgba(73,120,102,0.08) 0 1px, transparent 1px 86px);
}

:root[data-theme="dark"] .dino-modal-content {
  background:
    linear-gradient(rgba(23,34,52,0.96), rgba(18,28,42,0.98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 86px);
}

.dino-detail-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf4;
}

.dino-detail-section h3 {
  margin: 0;
  padding: 4px 6px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#2d5d8b, #183c60);
  color: #ffffff;
  font-size: 0.68rem;
}

.dino-detail-section dl {
  margin: 0;
}

.dino-detail-section div {
  display: grid;
  grid-template-columns: minmax(72px, 0.32fr) minmax(0, 1fr);
  border-top: 1px solid #d7dfe5;
}

:root[data-theme="dark"] .dino-detail-section div {
  border-color: #334357;
}

.dino-detail-section div:first-child {
  border-top: 0;
}

.dino-detail-section dt,
.dino-detail-section dd {
  margin: 0;
  padding: 2px 5px;
  line-height: 1.12;
  font-size: 0.66rem;
}

:root[data-theme="dark"] .dino-detail-section dt {
  color: #bcd7ef;
}

.dino-detail-section dt {
  color: #17395f;
  font-weight: 900;
}

.dino-detail-section dd {
  border-left: 1px solid #d7dfe5;
  color: var(--copy);
}

:root[data-theme="dark"] .dino-detail-section dd {
  border-color: #334357;
}

.dino-detail-section details summary {
  color: #174f84;
  font-weight: 900;
  cursor: pointer;
}

.dino-detail-section details p {
  margin: 4px 0 0;
}

.site-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 10px max(14px, calc((100vw - 1240px) / 2));
  border-top: 1px solid #4e3362;
  background: linear-gradient(#8f6aa4, #5f3c78);
  color: #ffffff;
  font-size: 0.82rem;
  box-shadow: 0 -2px 8px rgba(26, 42, 55, 0.16);
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

@media (max-width: 980px) {
  body {
    font-size: 13px;
    overflow-x: hidden;
  }

  main,
  .mobile-nav {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    overflow: hidden;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-top: 10px;
  }

  main,
  .mobile-nav {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .brand {
    padding-bottom: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-stats,
  .proof-strip,
  .switch-offer,
  .service-grid,
  .calculator-panel,
  .planner-panel,
  .planner-grid,
  .taste-section,
  .range-board,
  .compare-section,
  .work-grid,
  .promise-grid,
  .process-list,
  .pricing-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .proof-strip span {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.22);
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-row span + span {
    border-top: 1px solid #d7dfe5;
    border-left: 0;
  }

  .dino-modal {
    padding: 10px;
  }

  .dino-modal-panel {
    max-height: none;
  }

  .dino-modal-bar {
    display: grid;
  }

  .dino-modal-content {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .dino-detail-section div {
    grid-template-columns: 1fr;
  }

  .dino-detail-section dd {
    border-top: 1px solid #d7dfe5;
    border-left: 0;
  }

  h1 {
    font-size: 1.08rem;
    overflow-wrap: anywhere;
  }

  h2,
  h3,
  p,
  dd,
  li,
  strong,
  span {
    overflow-wrap: anywhere;
  }

  .hero::before {
    white-space: normal;
    line-height: 1.35;
  }

  .section,
  .switch-offer,
  .hero {
    padding: 14px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
