@font-face {
  font-family: "Horizon Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Horizon Serif";
  src: url("source-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Horizon Serif";
  src: url("source-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f7ef;
  --white: #fffdf7;
  --forest: #122f25;
  --deep: #10291f;
  --ink: #1d3126;
  --muted: #4b5b51;
  --gold: #e8c675;
  --rule: #c8cbbf;
  --sage: #e7ecdf;
  --glass-solid: #294a3e;
  --glass-tint: rgb(255 255 255 / .09);
  --glass-edge: rgb(245 244 220 / .28);
  --serif: "Horizon Serif", Georgia, serif;
  --sans: "Horizon Sans", system-ui, sans-serif;
  --gutter: clamp(1.125rem, 5.5vw, 5rem);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 2px solid #8a570a; outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font: 400 clamp(2.25rem, 5vw, 4.375rem)/1.04 var(--serif); letter-spacing: -.034em; }
h3 { font-weight: 700; line-height: 1.3; }
p { margin: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; pointer-events: none; }
.icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(80rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .65rem 1rem; background: var(--gold); color: var(--deep); transform: translateY(calc(-100% - 1rem)); }
.skip-link:focus { transform: none; }

.site-header { background: var(--deep); color: var(--paper); border-bottom: 1px solid var(--glass-edge); position: relative; z-index: 4; }
.site-header :focus-visible { outline-color: var(--gold); }
.nav { min-height: 5.25rem; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; color: var(--forest); text-decoration: none; }
.brand img { object-fit: contain; mix-blend-mode: multiply; }
.brand strong, .brand small { display: block; }
.brand strong { font: 400 1.55rem/.98 var(--serif); letter-spacing: -.03em; }
.brand small { font-size: .73rem; font-weight: 700; line-height: 1.2; margin-top: .25rem; }
.site-header .brand { justify-self: start; color: inherit; }
.site-header .brand img { background: var(--paper); border-radius: .55rem; padding: .3rem; mix-blend-mode: normal; }
.glass { background: var(--glass-solid); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
.main-nav { display: flex; gap: .18rem; justify-self: center; padding: .23rem; border-radius: 999px; }
.main-nav a, .text-link { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 700; text-decoration: underline transparent 1px; text-underline-offset: .35em; }
.main-nav a { justify-content: center; padding: .4rem 1.04rem; border-radius: inherit; }
.main-nav a[aria-current="page"] { background: var(--paper); color: var(--deep); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.125rem; padding: .7rem 1.16rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .91rem; font-weight: 700; line-height: 1.3; }
.header-action { justify-self: end; border-color: var(--glass-edge); color: var(--paper); }
.button-outline { border-color: #87968a; }
.button-gold { background: var(--gold); color: var(--deep); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.15rem; }

.hero, .close { background: var(--forest); color: var(--paper); }
.hero :focus-visible, .close :focus-visible { outline-color: var(--gold); }
.hero {
  padding-block: clamp(4rem, 8vw, 7.7rem);
  background: radial-gradient(ellipse at 80% 15%, #3d6652 0%, transparent 52%),
    radial-gradient(ellipse at 88% 110%, #51654e 0%, transparent 55%), var(--deep);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.25rem, 6vw, 6rem); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 5.2vw, 5rem); line-height: .99; text-wrap: initial; }
.hero-title-line { white-space: nowrap; }
.hero h1 em { display: block; color: var(--gold); }
.hero-copy p { max-width: 35ch; margin-block: 1.6rem 1.8rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #dbe6d9; }

.demo { padding: 0 .75rem .75rem 0; isolation: isolate; }
.demo-frame { position: relative; padding: .55rem; background: #193a2e; color: var(--paper); border: 1px solid var(--glass-edge); border-radius: 1.15rem; box-shadow: 0 24px 54px rgb(8 20 14 / .35); }
.demo-frame::before { content: ""; position: absolute; pointer-events: none; z-index: -1; inset: 1rem -.8rem -.8rem 1rem; border: 1px solid var(--glass-edge); border-radius: inherit; background: rgb(255 255 255 / .07); }
.demo-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem .45rem .65rem; font-size: .78rem; color: #dfebdf; }
.demo-heading span:first-child { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--paper); }
.demo-heading i { width: .42rem; height: .42rem; border-radius: 50%; background: var(--gold); }
.demo-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .23rem; padding: .24rem; margin-bottom: .55rem; border-radius: 999px; }
.demo-tabs button { min-height: 2.75rem; padding: .35rem .4rem; background: none; color: var(--paper); font-size: .82rem; font-weight: 700; border: 0; border-radius: inherit; cursor: pointer; }
.demo-tabs button[aria-selected="true"] { background: var(--paper); color: var(--deep); }
.demo-tabs button:focus-visible { outline-offset: -2px; }
.demo-tabs button[aria-selected="true"]:focus-visible, .demo-img:focus-visible { outline-color: #8a570a; outline-offset: -3px; }
.demo-img { display: block; overflow: hidden; background: #edf2ff; border-radius: .6rem; }
.demo-img picture { display: block; }
.demo-img img { width: 100%; height: auto; }
.demo-panel > p { padding: .66rem .45rem .28rem; font-size: .81rem; color: #dfebdf; min-height: 2.2rem; }
.demo-panel > p strong { color: var(--paper); }

.demo-visual[data-lens] {
  position: relative;
  display: grid;
  grid-template: auto auto / minmax(0, 1fr);
}
.demo-visual[data-lens] .demo-panel { grid-area: 1 / 1 / 3 / 2; display: grid; grid-template-rows: subgrid; }
.demo-visual[data-lens] .demo-tabs {
  position: relative;
  grid-area: 1 / 1;
  align-self: end;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  justify-self: center;
  width: min(31rem, 100% - 1rem);
  margin: 0 0 .66rem;
  background: var(--paper);
  border-color: rgb(255 255 255 / .74);
  box-shadow: 0 6px 20px rgb(8 23 15 / .30);
}
.demo-refraction { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; opacity: .40; pointer-events: none; }
.demo-shader { opacity: 1; }
.demo-visual[data-lens] .demo-tabs::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 2px #fff, inset 0 -4px 7px rgb(33 62 44 / .23);
  background: radial-gradient(ellipse 85px 27px at var(--light-x, 30%) 0, rgb(255 255 255 / .9), transparent);
}
.demo-visual[data-lens] .demo-tabs button { color: var(--deep); }
.demo-visual[data-lens="shader"] .demo-tabs::before { background: none; box-shadow: none; }
.demo-visual[data-lens] .demo-tabs button[aria-selected="true"] { background: var(--forest); color: var(--paper); }
.demo-visual[data-lens="shader"] .demo-tabs button[aria-selected="true"] { background: transparent; color: var(--deep); }
.demo-visual[data-lens] .demo-tabs button:focus-visible { outline-color: #754d10; }
.demo-visual[data-lens] .demo-tabs button[aria-selected="true"]:focus-visible { outline-color: var(--gold); }
.demo-visual[data-lens="shader"] .demo-tabs button[aria-selected="true"]:focus-visible { outline-color: #754d10; }

.hero-services .hero-copy p { max-width: 38ch; }
.workflow-example { background: var(--paper); color: var(--ink); padding: clamp(1.25rem, 4vw, 3rem); border-radius: 1rem; box-shadow: 0 22px 52px rgb(8 20 14 / .32); }
.example-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; padding-bottom: 1.15rem; border-bottom: 1px solid #87968a; }
.example-heading h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
.example-heading > span { color: var(--muted); font-size: .81rem; }
.example-stages { list-style: none; counter-reset: workflow-step; padding: 0; margin: .5rem 0 0; }
.example-stages li { counter-increment: workflow-step; position: relative; display: grid; grid-template-columns: 2.15rem minmax(0, 1fr); column-gap: .85rem; padding-block: .9rem; }
.example-stages li::before { content: counter(workflow-step, decimal-leading-zero); display: grid; place-items: center; grid-row: span 2; align-self: start; min-height: 2.15rem; background: var(--sage); border-radius: 50%; color: var(--deep); font: 400 .95rem/1 var(--serif); }
.example-stages li + li::after { content: ""; position: absolute; inset: 0 0 auto 3rem; border-top: 1px solid var(--rule); }
.example-stages li span { color: var(--muted); font-size: .9rem; }

.section-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1rem clamp(2rem, 7vw, 7rem); align-items: end; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-intro > p, .rollout-copy > p { color: var(--muted); max-width: 39ch; font-size: 1.06rem; }
.workflow-table { border-top: 1px solid #87968a; }
.workflow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, .95fr); gap: 1.1rem 4vw; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.workflow h3 { font: 400 clamp(1.7rem, 3vw, 2.5rem)/1.12 var(--serif); }
.workflow p { color: var(--muted); }
.workflow .workflow-result { color: var(--ink); font-weight: 700; font-size: .97rem; }
.workflow-result span { display: block; font-size: .77rem; color: var(--muted); font-weight: 500; margin-bottom: .18rem; }

.rollout { background: var(--sage); }
.rollout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem clamp(2rem, 9vw, 8.5rem); }
.rollout-copy h2 { max-width: 12ch; }
.rollout-copy > p { margin: 1.2rem 0 .85rem; }
.rollout-list { counter-reset: phase; margin: 0; padding: 0; list-style: none; border-top: 1px solid #87968a; }
.rollout-list li { counter-increment: phase; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .9rem; padding: 1.3rem 0; border-bottom: 1px solid #aebbad; }
.rollout-list li::before { content: counter(phase, decimal-leading-zero); color: #3c5946; font: 400 1.2rem/1.3 var(--serif); font-variant-numeric: tabular-nums; }
.rollout-list h3 { font-size: 1.13rem; margin-bottom: .27rem; }
.rollout-list p { color: var(--muted); }

.pricing { background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 6vw, 5rem); }
.setup { border-top: 1px solid #87968a; padding-top: 1.5rem; }
.setup h3, .calculator h3 { font: 400 clamp(1.65rem, 3vw, 2.25rem)/1.15 var(--serif); }
.price { margin-block: 1rem; display: flex; flex-wrap: wrap; gap: .1rem .8rem; align-items: baseline; }
.price strong { font: 400 clamp(2.8rem, 5.5vw, 4.65rem)/1 var(--serif); letter-spacing: -.035em; }
.price span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.setup-description { color: var(--muted); max-width: 43ch; }
.included { margin: 1rem 0 0; padding-left: 1.15rem; }
.included li { padding-left: .18rem; margin: .4rem 0; }
.included li::marker { color: #8a6424; }
.calculator { padding: clamp(1.25rem, 3.5vw, 2.6rem); background: var(--sage); border-radius: .75rem; }
.calculator > p { color: var(--muted); margin-top: .85rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .8rem; margin: 1.25rem 0; }
.fields label { display: grid; gap: .32rem; font-size: .83rem; line-height: 1.25; font-weight: 700; }
.fields input { width: 100%; min-height: 2.75rem; padding: .45rem .6rem; border-radius: .25rem; border: 1px solid #869586; color: var(--forest); background: var(--white); font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.estimate { display: grid; gap: .15rem; border-top: 1px solid #aebbad; padding-top: .9rem; }
.estimate output { font: 400 clamp(1.65rem, 3vw, 2.5rem)/1.1 var(--serif); overflow-wrap: anywhere; }
.estimate span { font-weight: 700; font-size: .87rem; }
.calc-note, .calculator #calc-formula { color: var(--muted); font-size: .82rem; margin: .65rem 0 0; }

.product-reviews { background: var(--sage); }
.questions { padding-block: clamp(3.75rem, 8vw, 6.5rem); border-top: 1px solid var(--rule); }
.questions-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 1.6rem 6vw; }
.question-list { border-top: 1px solid #87968a; }
.question-list details { border-bottom: 1px solid var(--rule); }
.question-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; min-height: 3.25rem; padding: .8rem 0; font-weight: 700; line-height: 1.4; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list details[open] .icon { transform: rotate(45deg); }
.question-list details p { padding: 0 2rem 1rem 0; color: var(--muted); max-width: 66ch; }
.close { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.close-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: end; gap: 1.75rem 4vw; }
.close h2 { max-width: 18ch; }
.close p { color: #dbe6d9; margin-top: 1rem; max-width: 50ch; }
.close-actions { justify-content: flex-end; }
.custom-builds { border-bottom: 1px solid var(--rule); }
.custom-builds h2 { max-width: none; }
.custom-builds h2 em { display: block; color: #3c5946; }
.custom-builds .button { margin-top: .4rem; }
.detail-list { margin: 0; border-top: 1px solid #87968a; }
.detail-list div { padding-block: 1.15rem; border-bottom: 1px solid var(--rule); }
.detail-list dt { font-weight: 700; }
.detail-list dd { margin: .25rem 0 0; color: var(--muted); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; min-height: 6rem; padding-block: .9rem; }
.footer-content p { color: var(--muted); font-size: .87rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: place-register 460ms var(--ease-out) both; transform-origin: 50% 85%; }
  @keyframes place-register {
    from { transform: perspective(1100px) translateY(10px) rotateX(4deg); }
    to { transform: perspective(1100px) translateY(0) rotateX(0); }
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .button { transition: transform 150ms var(--ease-out), background-color 150ms var(--ease-out); }
  .button:hover { transform: translateY(-2px); }
  .button:active { transform: scale(.98); transition-duration: 100ms; }
  .demo-tabs button { transition: background-color 150ms var(--ease-out); }
}

@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover, .text-link:hover { text-decoration-color: currentColor; }
  .button-outline:hover { background-color: #e0eadb; }
  .header-action:hover, .demo-tabs button[aria-selected="false"]:hover { background-color: var(--glass-solid); }
  .button-gold:hover { background-color: #f4d996; }
  .demo-visual[data-lens] .demo-tabs button[aria-selected="false"]:hover { background-color: rgb(255 255 255 / .26); }
}

@media (min-width: 51.26rem) {
  html { scroll-padding-top: 6.5rem; }
  .site-header { position: sticky; top: 0; }
  .hero-services { min-height: calc(100svh - 5.25rem); display: grid; align-items: center; }
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass { background: var(--glass-tint); }
  .site-header { background: transparent; }
  .site-header::before, .site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .site-header::before {
    z-index: -2;
    -webkit-backdrop-filter: blur(5px) saturate(1.12);
    backdrop-filter: blur(5px) saturate(1.12);
  }
  .site-header::after {
    z-index: -1;
    background: linear-gradient(180deg, rgb(28 61 48 / .78), rgb(16 41 31 / .78));
    box-shadow: inset 0 1px 0 rgb(245 244 220 / .20);
  }
  .demo-frame { background: linear-gradient(155deg, #345545, #17352a 63%); }
}

@media (min-width: 51.26rem) {
  @supports (backdrop-filter: url("#liquid-refraction")) {
    /* The first layer stays frosted when the engine skips SVG backdrop filters. */
    .site-header::after { backdrop-filter: url("#liquid-refraction") blur(8px) saturate(1.6); }
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .site-header { background: var(--deep); }
  .site-header::before, .site-header::after { content: none; }
  .glass { background: var(--glass-solid); }
  .demo-frame { background: #193a2e; }
}

@media (max-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; }
  .close-actions { justify-content: flex-start; }
}

@media (max-width: 51.25rem) {
  .nav { display: flex; flex-wrap: wrap; padding-block: .7rem; gap: .7rem 1rem; min-height: 0; }
  .main-nav { margin-left: auto; }
  .header-action { display: none; }
  .hero { padding-block: 3.2rem 3.5rem; }
  .hero-grid, .section-intro, .rollout-grid, .questions-grid, .close-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .hero-copy p { margin-block: 1.1rem 1.3rem; }
  .demo { width: min(100%, 40rem); }
  .workflow { grid-template-columns: minmax(7rem, .7fr) minmax(0, 1.3fr); gap: .55rem 1.25rem; }
  .workflow .workflow-result { grid-column: 2; }
  .rollout-copy h2 { max-width: none; }
}

@media (max-width: 45rem) {
  .demo { width: min(100%, 29rem); }
}

@media (max-width: 38rem) {
  .main-nav { width: 100%; margin-left: 0; }
  .main-nav a { flex: 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-content { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1.3rem; }
}

@media (max-width: 26rem) {
  .hero-grid { gap: 1.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 10.8vw, 3rem); }
  .demo-heading { padding-inline: .65rem; font-size: .75rem; }
  .demo-tabs button { font-size: .76rem; }
  .demo-panel > p { padding-inline: .65rem; }
  .workflow { grid-template-columns: 1fr; gap: .45rem; }
  .workflow .workflow-result { grid-column: auto; }
}
