@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0d4f45;
  --navy-soft: #116457;
  --teal: #1a7c69;
  --teal-bright: #2ca58d;
  --mint: #d8f1ea;
  --amber: #d28e2f;
  --amber-soft: #ebb56a;
  --ink: #102225;
  --gray-50: #f6f8f7;
  --gray-100: #eef3f1;
  --gray-200: #dce5e2;
  --gray-300: #bdc9c5;
  --gray-400: #8b9b97;
  --gray-500: #667671;
  --gray-600: #465651;
  --gray-700: #2f3d39;
  --gray-800: #182724;
  --white: #ffffff;
  --green-soft: #e4f7f1;
  --green-strong: #176755;
  --warn-soft: #fbefd9;
  --warn-strong: #885617;
  --danger-soft: #fde8e7;
  --danger-strong: #9b2c2c;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --shadow-sm: 0 4px 14px rgba(16, 34, 37, 0.06);
  --shadow-md: 0 18px 44px rgba(16, 34, 37, 0.08);
  --shadow-lg: 0 30px 90px rgba(16, 34, 37, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--gray-800);
  background:
    radial-gradient(circle at top left, rgba(44, 165, 141, 0.10), transparent 30%),
    radial-gradient(circle at top right, rgba(210, 142, 47, 0.08), transparent 28%),
    var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

body.has-fixed-nav {
  padding-top: 78px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.has-bg {
  min-height: 100vh;
}

.site-header {
  position: relative;
  overflow: hidden;
  background: #183138;
  min-height: 54vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  filter: brightness(.56) saturate(1.08);
  z-index: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.hero-bg-layer.is-active {
  opacity: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.78), transparent);
  opacity: .18;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: .42;
  z-index: 1;
}

.hero-orb-a {
  width: 260px;
  height: 260px;
  top: 84px;
  right: 8%;
  background: rgba(44, 165, 141, 0.42);
}

.hero-orb-b {
  width: 190px;
  height: 190px;
  bottom: 48px;
  left: 10%;
  background: rgba(235, 181, 106, 0.22);
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 35, 39, .86) 0%, rgba(10, 35, 39, .56) 46%, rgba(10, 35, 39, .16) 100%),
    linear-gradient(to top, var(--gray-50) 0%, rgba(10, 35, 39, .92) 11%, rgba(10, 35, 39, .36) 34%, transparent 64%);
  z-index: 1;
}

.header-accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 3;
  background: linear-gradient(90deg, rgba(235, 181, 106, .9), rgba(44, 165, 141, .95), rgba(235, 181, 106, .9));
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: rgba(13, 79, 69, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: .9rem 0;
}

.site-logo {
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.site-logo span {
  color: #b7f3e5;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-left: auto;
}

.site-nav-link {
  font-size: .92rem;
  text-decoration: none;
  color: rgba(255,255,255,.8);
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--white);
}

.site-nav-link-cta,
.primary-button,
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: none;
  border-radius: 14px;
  padding: .95rem 1.3rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), var(--amber-soft));
  box-shadow: 0 16px 40px rgba(210, 142, 47, 0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}

.site-nav-link-cta {
  padding: .55rem .95rem;
  border-radius: 999px;
}

.primary-button:hover,
.hero-cta:hover,
.site-nav-link-cta:hover {
  transform: translateY(-1px);
}

.hero-cta-secondary {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .25rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.header-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  gap: 2rem;
  align-items: center;
}

.header-inner-compact {
  display: block;
  padding: 2.4rem 0 2.8rem;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(183, 243, 229, 0.14);
  color: #b7f3e5;
  border: 1px solid rgba(183, 243, 229, 0.3);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}

.header-title {
  margin: 0 0 .85rem;
  font-size: clamp(2.35rem, 6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.header-title-compact {
  font-size: clamp(2rem, 5vw, 3rem);
}

.header-sub {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero-actions,
.header-stats,
.signal-strip,
.footer-inner,
.footer-links,
.seo-links,
.related-links,
.future-card-top,
.result-block-head {
  display: flex;
  flex-wrap: wrap;
}

.hero-actions {
  gap: .85rem;
  margin: 1.3rem 0 1.5rem;
}

.seo-links {
  gap: .6rem;
  margin-top: 1.2rem;
}

.seo-links a {
  display: inline-flex;
  align-items: center;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  text-decoration: none;
  font-size: .82rem;
  color: rgba(255,255,255,.84);
}

.header-stats {
  gap: .9rem;
}

.hstat {
  min-width: 176px;
  padding: .95rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}

.hstat strong {
  display: block;
  margin-bottom: .24rem;
  font-size: .98rem;
}

.hstat span {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  line-height: 1.5;
}

.header-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-preview-card {
  position: relative;
  width: min(100%, 470px);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-lg);
}

.hero-preview-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 340px;
  object-fit: cover;
}

.hero-preview-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(9, 19, 24, 0.78);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.hero-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  margin-bottom: .55rem;
}

.hero-preview-kicker {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b7f3e5;
  font-weight: 700;
}

.hero-preview-score {
  font-size: .76rem;
  font-weight: 700;
  padding: .35rem .65rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(235, 181, 106, 0.92);
}

.hero-preview-main strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: .25rem;
}

.hero-preview-main span {
  color: rgba(255,255,255,.74);
  font-size: .88rem;
  line-height: 1.55;
}

.page-shell {
  position: relative;
  z-index: 1;
  margin-top: -1.6rem;
  padding-bottom: 4rem;
}

.surface-card,
.signal-card,
.step-card,
.related-link {
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(220, 229, 226, 0.94);
  box-shadow: var(--shadow-sm);
}

.section-block,
.calculator-shell,
.faq-section {
  margin-top: 1.4rem;
}

.signal-strip {
  gap: 1rem;
}

.signal-card {
  flex: 1 1 220px;
  padding: 1rem 1.1rem;
}

.signal-card strong {
  display: block;
  margin-bottom: .2rem;
  font-size: .96rem;
}

.signal-card span {
  display: block;
  color: var(--gray-600);
  font-size: .86rem;
  line-height: 1.55;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-kicker,
.result-kicker,
.calculator-card-kicker {
  display: inline-block;
  margin-bottom: .35rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: .73rem;
}

.section-head h2,
.disclaimer-panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.section-head p,
.calculator-card p,
.future-card p,
.step-card p,
.project-note,
.disclaimer-panel p,
.faq-item p {
  margin: .45rem 0 0;
  color: var(--gray-600);
  line-height: 1.72;
}

.calculator-card-grid,
.future-card-grid,
.process-grid {
  display: grid;
  gap: 1rem;
}

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

.future-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.calculator-card,
.future-card,
.step-card {
  padding: 1.2rem;
}

.calculator-card h3,
.calculator-card h2,
.future-card h3,
.step-card strong,
.result-block h3 {
  display: block;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.28;
}

.calculator-card h2 {
  font-size: 1.25rem;
}

.calculator-card-large {
  display: flex;
  flex-direction: column;
}

.calculator-card-large .primary-button {
  margin-top: auto;
  width: fit-content;
}

.future-card-top {
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .3rem;
}

.badge-muted {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .35rem .7rem;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .76rem;
  font-weight: 700;
}

.search-panel,
.search-empty-card {
  padding: 1.4rem 1.5rem;
}

.search-panel-head h2,
.search-group-head h3 {
  margin: 0;
  letter-spacing: -.03em;
}

.search-panel-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.search-panel-head p,
.search-group-head p,
.search-status,
.search-result-hint,
.search-empty-card p {
  color: var(--gray-600);
  line-height: 1.68;
}

.search-panel-head p {
  margin: .45rem 0 0;
}

.search-form {
  margin-top: 1rem;
}

.search-label {
  display: block;
  margin-bottom: .45rem;
  font-size: .9rem;
  font-weight: 800;
  color: var(--gray-700);
}

.search-row,
.search-chip-row,
.search-result-meta,
.search-empty-actions {
  display: flex;
  flex-wrap: wrap;
}

.search-row {
  gap: .75rem;
  align-items: center;
}

.search-row input[type="search"] {
  flex: 1 1 280px;
  min-width: 0;
}

.search-chip-row {
  gap: .55rem;
  margin-top: 1rem;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: .62rem .88rem;
  background: linear-gradient(180deg, rgba(246, 248, 247, 0.95), rgba(255, 255, 255, 1));
  color: var(--gray-700);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}

.search-chip:hover,
.search-chip:focus-visible {
  border-color: rgba(44, 165, 141, 0.34);
  box-shadow: 0 0 0 4px rgba(44, 165, 141, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.search-status {
  margin: .9rem 0 0;
  font-size: .9rem;
}

.search-preview-host {
  margin-top: 1rem;
}

.search-group + .search-group,
.search-empty-card {
  margin-top: 1.1rem;
}

.search-group-head {
  margin-bottom: .85rem;
}

.search-card-grid,
.search-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.search-result-card {
  min-height: 100%;
}

.search-result-card .primary-button,
.search-result-card .search-secondary-button {
  margin-top: auto;
  width: fit-content;
}

.search-result-meta {
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  margin-bottom: .5rem;
}

.search-result-hint {
  margin-top: .65rem;
  font-size: .82rem;
}

.search-result-card-guide {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,248,247,.96));
}

.search-result-card-article,
.article-button {
  background: linear-gradient(180deg, rgba(236, 245, 242, 0.95), rgba(255,255,255,1));
}

.search-secondary-button {
  background: rgba(13, 79, 69, 0.08);
  color: var(--navy);
  border: 1px solid rgba(13, 79, 69, 0.14);
  box-shadow: none;
}

.search-empty-card strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.3;
}

.search-empty-card p {
  margin: .55rem 0 0;
}

.search-empty-actions {
  gap: .8rem 1rem;
  margin-top: 1rem;
}

.process-panel,
.project-panel,
.disclaimer-panel,
.article-panel {
  padding: 1.5rem;
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr);
  gap: 1.2rem;
  align-items: start;
}

.form-card,
.result-card {
  padding: 1.4rem;
}

.project-toolbar {
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--gray-200);
}

.project-toolbar-actions,
.saved-project-actions,
.install-banner-actions {
  display: flex;
  flex-wrap: wrap;
}

.project-toolbar-actions {
  gap: .75rem 1rem;
  margin-top: .9rem;
  align-items: center;
}

.project-inline-button {
  width: auto;
}

.project-status {
  min-height: 1.2rem;
  margin-top: .55rem;
}

.form-group + .form-group {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--gray-200);
}

.form-group h2 {
  margin: 0 0 .85rem;
  font-size: 1rem;
  letter-spacing: -.02em;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .38rem;
}

.field span {
  font-size: .86rem;
  font-weight: 700;
  color: var(--gray-700);
}

.field small,
.form-note {
  color: var(--gray-500);
  font-size: .78rem;
  line-height: 1.5;
}

input,
select {
  width: 100%;
  font: inherit;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  padding: .88rem .95rem;
  transition: border-color .12s ease, box-shadow .12s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(44, 165, 141, 0.12);
}

.toggle-card {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding: .95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--gray-200);
  background: linear-gradient(180deg, rgba(246,248,247,.95), rgba(255,255,255,1));
  cursor: pointer;
}

.toggle-card input {
  width: 1rem;
  height: 1rem;
  margin: 0 0 .2rem;
  accent-color: var(--teal);
}

.toggle-card span {
  font-weight: 800;
}

.toggle-card small {
  color: var(--gray-500);
  line-height: 1.5;
}

.field-toggle {
  min-height: 100%;
}

.form-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
}

.form-error {
  margin: 0;
  padding: .8rem 1rem;
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger-strong);
  font-size: .88rem;
  font-weight: 600;
}

.result-card {
  position: sticky;
  top: 1rem;
}

.result-card:focus-visible {
  outline: 3px solid rgba(44, 165, 141, 0.22);
  outline-offset: 3px;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  margin-bottom: .8rem;
}

.result-state {
  display: inline-flex;
  align-items: center;
  padding: .42rem .75rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: .8rem;
  font-weight: 800;
}

.result-card h2 {
  margin: 0 0 .55rem;
  font-size: 1.5rem;
  line-height: 1.16;
  letter-spacing: -.03em;
}

.result-summary {
  margin: 0 0 1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.metric-card {
  padding: .95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238,243,241,.9), rgba(255,255,255,1));
  border: 1px solid var(--gray-200);
}

.metric-card span {
  display: block;
  color: var(--gray-500);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}

.metric-card strong {
  font-size: 1.16rem;
  line-height: 1.2;
}

.result-block {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--gray-200);
}

.result-block-head {
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .55rem;
}

.bullet-list,
.steps-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--gray-700);
}

.bullet-list-soft {
  color: var(--gray-600);
}

.bullet-list li + li,
.steps-list li + li {
  margin-top: .45rem;
}

.steps-list li {
  padding-left: .15rem;
  line-height: 1.65;
}

.button-link,
.text-link {
  color: var(--teal);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
}

.button-link {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.button-link:focus-visible,
.text-link:focus-visible,
.related-link:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid rgba(44, 165, 141, 0.28);
  outline-offset: 3px;
  border-radius: 8px;
}

.disclaimer-inline {
  margin-top: 1.2rem;
  padding: .95rem 1rem;
  border-radius: 18px;
  background: rgba(44, 165, 141, 0.08);
  border: 1px solid rgba(44, 165, 141, 0.15);
}

.disclaimer-inline strong {
  display: block;
  margin-bottom: .18rem;
  color: var(--green-strong);
}

.disclaimer-inline span,
.disclaimer-inline a {
  color: var(--gray-700);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: .8rem;
}

.faq-item {
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--gray-200);
  padding: .2rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  padding: 1rem 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.article-section h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.article-section-spaced {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.saved-projects-list {
  display: grid;
  gap: .85rem;
}

.saved-project-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(246,248,247,.96), rgba(255,255,255,1));
  border: 1px solid var(--gray-200);
}

.saved-project-card strong {
  display: block;
  margin-bottom: .28rem;
}

.saved-project-meta {
  display: block;
  color: var(--gray-500);
  font-size: .83rem;
  line-height: 1.5;
}

.saved-project-actions {
  gap: .9rem;
  margin-top: .7rem;
}

.saved-project-delete {
  color: var(--danger-strong);
}

.related-links {
  gap: 1rem;
}

.related-link {
  flex: 1 1 240px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.related-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(44, 165, 141, 0.25);
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-inner {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--gray-500);
  font-size: .86rem;
}

.footer-links {
  gap: .45rem 1rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
  color: var(--gray-700);
}

.install-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: min(560px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.install-banner strong {
  display: block;
  margin-bottom: .2rem;
}

.install-banner p {
  margin: 0;
  color: var(--gray-600);
  font-size: .88rem;
  line-height: 1.55;
}

.install-banner-actions {
  gap: .65rem .9rem;
  align-items: center;
}

.install-button {
  width: auto;
}

.mobile-result-bar {
  position: fixed;
  left: .5rem;
  right: .5rem;
  bottom: .65rem;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .8rem .9rem;
  box-shadow: var(--shadow-md);
}

.mobile-result-bar strong {
  font-size: .88rem;
  line-height: 1.4;
}

.mobile-result-button {
  width: auto;
  min-width: 132px;
}

.legal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.legal-shell {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.legal-shell h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.12;
}

.legal-shell h2 {
  margin: 1.7rem 0 .5rem;
  font-size: 1.16rem;
}

.legal-shell p,
.legal-shell ul {
  color: var(--gray-700);
  line-height: 1.72;
}

.legal-shell ul {
  padding-left: 1.15rem;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 1rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--teal);
}

.legal-actions {
  margin-top: 1.8rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .header-inner,
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .calculator-card-grid,
  .future-card-grid,
  .process-grid,
  .search-card-grid,
  .search-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-visual {
    justify-content: stretch;
  }

  .result-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .container,
  .site-nav-row,
  .header-inner {
    width: min(100%, calc(100% - 1rem));
  }

  body.has-fixed-nav {
    padding-top: 76px;
  }

  .page-shell {
    margin-top: -1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav-links {
    position: absolute;
    left: .5rem;
    right: .5rem;
    top: calc(100% + .45rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
    padding: .75rem;
    border-radius: 18px;
    background: rgba(13, 79, 69, 0.97);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open .site-nav-links {
    display: flex;
  }

  .site-nav-link {
    display: block;
    padding: .7rem .75rem;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }

  .site-nav-link-cta {
    text-align: center;
  }

  .header-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta,
  .primary-button {
    width: 100%;
  }

  .search-card-grid,
  .search-preview-grid {
    grid-template-columns: 1fr;
  }

  .calculator-card-grid,
  .future-card-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .result-block-head,
  .project-toolbar-actions,
  .install-banner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-result-bar {
    display: flex;
  }

  .project-inline-button,
  .install-button {
    width: 100%;
  }

  .legal-shell {
    width: min(100%, calc(100% - 1rem));
    padding: 1.4rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-nav,
  .site-header,
  .signal-strip,
  .faq-section,
  .related-panel,
  .install-banner,
  .mobile-result-bar,
  .site-footer,
  .button-link,
  .primary-button,
  .hero-cta,
  .search-panel {
    display: none !important;
  }

  body.has-fixed-nav {
    padding-top: 0;
  }

  .page-shell {
    margin-top: 0;
    padding-bottom: 0;
  }

  .surface-card,
  .project-panel,
  .article-panel,
  .result-card,
  .form-card {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
  }

  .calc-layout {
    grid-template-columns: 1fr;
  }
}
