@font-face {
  font-family: Manrope; src: url("fonts/Manrope-500.woff2") format("woff2");
  font-weight: 400 500; font-display: swap;
}
@font-face {
  font-family: Manrope; src: url("fonts/Manrope-700.woff2") format("woff2");
  font-weight: 600 700; font-display: swap;
}
@font-face {
  font-family: Manrope; src: url("fonts/Manrope-800.woff2") format("woff2");
  font-weight: 800 900; font-display: swap;
}
@font-face { font-family: SlopeField; src: url("fonts/slope-field.ttf"); font-display: block; }

:root {
  color-scheme: dark;
  --bg: #1b212d; --surface: #242c3b; --raised: #2b3547; --line: #43526a;
  --text: #f1f4f6; --muted: #bac7d9; --ice: #cdf1ff; --cyan: #67cfff;
  --gutter: clamp(16px, 3.5vw, 56px);
  --width: min(1320px, calc(100% - 2 * var(--gutter)));
  font: 500 16px/1.6 Manrope, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; cursor: pointer; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-weight: 800; text-wrap: balance; line-height: 1.1; letter-spacing: -.04em; }
h2 { font-size: clamp(32px, 3.5vw, 54px); }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--ice); color: #172034; }
.section-anchor { scroll-margin-top: 18px; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 10; transform: translateY(-160%); padding: 8px 16px; border-radius: 8px; background: var(--ice); color: var(--bg); }
.skip-link:focus { transform: none; }
.field-icon { font: 24px/1 SlopeField; speak: never; }
.icon-tile, .article-mark {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  color: var(--ice); border: 1px solid #5c86a5; background: linear-gradient(135deg, #245471, #344363);
}
.eyebrow,.mini-label,.article-meta { font-size: 11px; font-weight: 700; letter-spacing: .11em; color: var(--cyan); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cyan { color: var(--cyan); }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; font-weight: 700; }
.button { padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; }
.button-primary { background: var(--ice); color: #162b40; }
.button-primary:hover { background: white; }
.text-link { color: var(--ice); }
.text-link:hover, .back-link:hover, .read-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.quiet-note { font-size: 13px; color: var(--muted); }
.site-header, .site-footer, .section-pad, .app-section, .feature-ribbon, .hero, .article-main { width: var(--width); margin-inline: auto; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: relative; z-index: 4; }
.brand { display: inline-flex; gap: 10px; align-items: center; min-height: 48px; font-size: 24px; font-weight: 800; letter-spacing: -.05em; }
.brand img { border-radius: 9px; }
.menu-toggle { display: none; }
.main-navigation { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.main-navigation a, .language-select { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 15px; color: var(--muted); border-radius: 10px; }
.main-navigation a.active { background: var(--raised); color: white; }
.main-navigation a:hover { background: #354158; color: white; }
.main-navigation .nav-app { background: linear-gradient(125deg,#096e99,#354fc3); color: white; border: 1px solid #609cd8; gap: 12px; }
.language-select { border: 1px solid var(--line); background: var(--surface); max-width: 100%; }

.hero {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: 24px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px;
  padding: clamp(36px, 4.8vw, 75px); min-height: clamp(465px, 37vw, 555px); background: #1a283a;
}
.hero-photo, .hero-photo picture, .app-landscape, .app-landscape img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; }
.hero-photo img, .article-landscape img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { object-position: 70% 56%; }
.hero-photo::after, .article-landscape::after, .app-landscape::after { content: ""; position: absolute; inset: 0; }
.hero-photo::after { background: linear-gradient(90deg,#152031fa 1%,#172337ec 30%,#1c2d42ad 50%,#19263c05 76%), linear-gradient(0deg,#18283d85,transparent 36%); }
.hero::before, .article-cover::before, .app-section::before {
  content: ""; position: absolute; pointer-events: none; inset: 0; z-index: -1;
  clip-path: polygon(94% 0,100% 0,100% 100%,72% 100%);
  background: linear-gradient(145deg,#4ed3e440,#339ee64f 65%,#494bdda8);
}
.photo-credit { position: absolute; right: 16px; bottom: 6px; z-index: 1; padding: 2px 6px; border-radius: 4px; font-size: 11px; background: #172031e6; text-decoration: underline; }
.hero-copy { max-width: 650px; }
.hero h1 { font-size: clamp(50px, 5.5vw, 86px); letter-spacing: -.06em; line-height: 1.02; }
.hero h1 .cyan { color: #a9e8ff; }
.hero-description { margin-block: 20px; max-width: 42ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: #ecf4fc; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 24px 0 12px; }
.hero .quiet-note { color: #d6e4f0; }
.hero-route { align-self: end; justify-self: end; width: min(100%, 260px); padding: 16px 18px; color: #f5fbff; border: 1px solid #a6c6dd6b; border-radius: 16px; background: #202d42ed; }
.route-heading { display: flex; align-items: center; gap: 12px; }
.route-heading .icon-tile { width: 38px; height: 38px; background: linear-gradient(135deg,#087fa7,#3557d5); color: white; }
.route-heading .mini-label { display: block; margin-bottom: 1px; font-size: 10px; color: #b8d8ec; }
.route-heading strong { font-size: 20px; line-height: 1.2; }
.file-format { margin-left: auto; color: #c9d7e7; font-size: 11px; }
.profile { width: 100%; height: 37px; display: block; margin-block: 12px 6px; }
.profile polygon { fill: #64c8f12b; stroke: none; }
.profile polyline { stroke: #83ddff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.track-metrics { display: flex; gap: 8px; justify-content: space-between; font-size: 13px; font-variant-numeric: tabular-nums; }
.feature-ribbon { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid var(--line); padding: 22px 0; }
.feature-ribbon a { display: flex; gap: 14px; align-items: center; padding: 8px clamp(8px,2vw,30px); color: var(--muted); font-size: 13px; }
.feature-ribbon a+a { border-left: 1px solid var(--line); }
.feature-ribbon strong { display: block; line-height: 1.45; font-size: 17px; color: var(--text); }
.feature-ribbon a:hover strong { color: var(--cyan); }

.section-pad { padding-block: clamp(46px, 5.6vw, 82px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
.section-heading > p { color: var(--muted); max-width: 36ch; }
.feature-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: clamp(24px,4vw,64px); align-items: center; }
.feature-item { display: flex; gap: 16px; padding-block: 22px; }
.feature-item + .feature-item { border-top: 1px solid var(--line); }
.feature-item p,.pro-features p,.section-description,.article-card>p,.article-cta p { color: var(--muted); margin-top: 9px; }
.feature-item .icon-tile { width: 40px; height: 40px; }
.feature-item h3 { font-size: clamp(21px,1.7vw,26px); }
.glass, .article-card, .article-cta { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.terrain-demo { overflow: hidden; background: radial-gradient(ellipse at 55% 40%,#3a5068,#243042 75%); }
.terrain-preview { position: relative; height: clamp(420px,34vw,510px); }
#terrain-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#terrain-canvas.dragging { cursor: grabbing; }
#terrain-canvas:focus-visible { outline-offset: -4px; }
.terrain-topline,.terrain-bottomline,.peak-label,.route-preview { position: absolute; }
.terrain-topline { top: 14px; left: 18px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--ice); }
.peak-label { top: 14%; right: 4%; max-width: 50%; font-size: 13px; color: white; pointer-events: none; }
.peak-label small { display: block; color: var(--muted); font-size: 12px; }
.route-preview { left: 16px; bottom: 80px; background: #202c40f5; padding: 10px 14px; width: min(76%,265px); pointer-events: none; }
.route-preview strong { display: block; margin-block: 3px; }
.route-stats { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.route-stats svg { width: 26%; height: 22px; color: var(--cyan); }
.illustration-label,.preview-caption { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
.terrain-bottomline { bottom: 10px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.terrain-tabs,.billing-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #192233; }
.terrain-tabs button,.billing-toggle button { background: none; border: 0; padding: 8px 12px; min-height: 44px; font-weight: 700; font-size: 14px; color: var(--muted); border-radius: 9px; }
.terrain-tabs button[aria-pressed=true],.billing-toggle button[aria-pressed=true] { background: #344a68; color: white; }
.planning-note { display: flex; align-items: start; gap: 10px; color: var(--muted); margin-top: 20px; font-size: 14px; }
.planning-note svg { width: 20px; height: 20px; flex: none; color: #f9c67f; }

.subscription { border-block: 1px solid var(--line); display: grid; grid-template-columns: 1fr minmax(0,.85fr); align-items: center; gap: clamp(28px,8vw,145px); }
.section-description { max-width: 46ch; margin-block: 18px 24px; }
.pro-features,.pricing-includes { list-style: none; padding: 0; margin: 0; }
.pro-features li { display: flex; align-items: baseline; gap: 12px; padding-block: 11px; }
.pro-features h3 { font-size: 18px; letter-spacing: -.02em; }
.pro-features p { font-size: 14px; margin-top: 5px; }
.check,.pricing-includes li::before { color: var(--cyan); }
.pro-copy .text-link { margin-top: 12px; }
.pricing-card { padding: clamp(20px,3vw,40px); background: linear-gradient(145deg,#304058,var(--surface) 70%); }
.pro-badge { color: var(--ice); font-size: 12px; letter-spacing: .12em; }
.pricing-card h3 { font-size: clamp(26px,2.3vw,36px); margin: 12px 0 18px; }
.pricing-card h3 br { display: none; }
.billing-toggle { width: 100%; }
.billing-toggle button { flex: 1; }
.billing-toggle span { display: inline-block; font-size: 12px; color: var(--ice); }
.price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.price span:first-child { font-size: 44px; font-weight: 800; line-height: 1.3; letter-spacing: -.06em; }
.billing-detail,.pricing-fine,.free-option { font-size: 14px; color: var(--muted); }
.pricing-includes { margin-block: 16px; padding-block: 12px; border-block: 1px solid var(--line); }
.pricing-includes li { padding-block: 3px; }
.pricing-includes li::before { content: "✓"; margin-right: 10px; }
.button-full { display: flex; }
.pricing-fine { margin-top: 10px; font-size: 13px; }
.free-option { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.free-option a, .back-link, .read-link { color: var(--cyan); }

.blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.article-card { min-width: 0; padding: 20px; display: flex; flex-direction: column; overflow: hidden; }
.article-card:hover { border-color: #7598ba; }
.article-art { height: clamp(145px,14vw,200px); margin: -20px -20px 18px; }
.article-art img { width: 100%; height: 100%; object-fit: cover; }
.wind-photo img { object-position: center 25%; }
.article-mark { margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 11px; color: var(--muted); }
.article-meta span:first-child { color: #9cdcff; }
.article-card h3 { font-size: clamp(21px,2.1vw,30px); margin-top: 12px; }
.article-card>p { font-size: 15px; margin-bottom: 16px; }
.read-link { margin-top: auto; font-size: 14px; font-weight: 700; display: flex; gap: 8px; }
.app-section { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; padding: clamp(26px,5vw,64px); margin-bottom: 40px; background: var(--surface); }
.app-landscape { z-index: -2; }
.app-landscape img { object-fit: cover; object-position: center 53%; }
.app-landscape::after { background: linear-gradient(90deg,#172334f5,#19273ad6 53%,#212f444d); }
.app-section>img { display: none; }
.app-section h2 { max-width: 19ch; }
.app-section>p { margin-block: 14px 20px; color: #e3edf7; }
.app-section .quiet-note { display: block; margin-top: 12px; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 30px; }
.footer-top,.footer-top nav,.footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.footer-top nav { margin-left: auto; }
.footer-top a,.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.footer-top p,.footer-bottom { font-size: 13px; color: var(--muted); }
.site-footer a:hover { color: var(--ice); }

.article-main { padding-bottom: 48px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 10px; }
.article-cover { overflow: hidden; isolation: isolate; position: relative; padding: clamp(24px,5vw,72px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.article-cover-copy { width: min(65%,760px); }
.article-main h1 { font-size: clamp(36px,4.5vw,66px); }
.article-landscape { position: absolute; inset: 0; z-index: -2; }
.article-landscape::after { background: linear-gradient(90deg,#162132fc 5%,#1a273ce8 43%,#1b283d5c 85%); }
.article-intro { max-width: 55ch; color: #e6eff8; margin: 16px 0; }
.article-main .article-meta { justify-content: start; gap: 16px; }
.article-body,.article-cta { width: min(100%,72ch); margin: 32px auto 0; }
.article-body h2 { font-size: clamp(23px,2.4vw,31px); margin: 32px 0 12px; }
.article-body p,.article-body li { line-height: 1.8; margin-block: 10px; color: #cfdae8; }
.article-body a,.article-sources a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article-note,.article-sources { border-left: 3px solid #75cfff; padding: 4px 18px; border-radius: 2px; background: var(--surface); margin-block: 24px; }
.article-sources h2 { margin-top: 12px; font-size: 21px; }
.article-cta { padding: 22px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.article-cta h3 { font-size: 22px; }
.article-cta p { margin-top: 6px; }
#app-loading,[data-view=app] #site-shell { display: none; }
[data-view=app] #app-loading { display: flex; position: fixed; inset: 0; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: var(--bg); }
#app-loading h2 { font-size: 26px; }
#app-loading a { display: inline-flex; align-items: center; min-height: 48px; color: var(--cyan); }
.loader { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.noscript-note { padding: 18px; text-align: center; }
@media (max-width: 960px) {
  .feature-layout { grid-template-columns: 1fr; }
  .feature-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .feature-item { display: block; }
  .feature-item .icon-tile { margin-bottom: 12px; }
  .feature-item+.feature-item { border: 0; }
  .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-ribbon a { padding-inline: 10px; gap: 10px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .brand { font-size: 22px; }
  .menu-toggle { width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
  .menu-toggle span { width: 19px; height: 2px; border-radius: 1px; background: var(--text); }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-navigation { display: none; position: absolute; top: calc(100% - 2px); inset-inline: 0; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #263144; box-shadow: 0 12px 30px #10182780; }
  .main-navigation.open { display: grid; gap: 4px; }
  .site-header:not(.has-menu) { flex-wrap: wrap; padding-bottom: 8px; }
  .site-header:not(.has-menu) .menu-toggle { display: none; }
  .site-header:not(.has-menu) .main-navigation { position: static; display: flex; flex-wrap: wrap; width: 100%; }
  .site-header:not(.has-menu) .main-navigation a { width: auto; }
  .main-navigation a,.language-select { width: 100%; justify-content: start; min-height: 48px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 32px; padding: 28px 22px 32px; border-radius: 18px; }
  .hero h1 { font-size: clamp(44px,8.6vw,62px); }
  .hero-photo img { object-position: 63% center; }
  .hero-photo::after { background: linear-gradient(150deg,#152031fc 5%,#152237ee 24%,#1b2a41b8 52%,#19263c16 79%),linear-gradient(0deg,#19263d45,transparent 28%); }
  .photo-credit { right: 8px; bottom: 5px; }
  .hero .eyebrow { font-size: 10px; }
  .hero-actions { margin-block: 16px 8px; }
  .hero-route { width: min(205px, 90%); align-self: end; padding: 10px 14px; }
  .hero-route .profile { height: 24px; margin-block: 6px; }
  .feature-ribbon { grid-template-columns: 1fr; padding-block: 10px; }
  .feature-ribbon a { padding: 10px 6px; }
  .feature-ribbon a+a { border-left: 0; border-top: 1px solid #43526a80; }
  .feature-ribbon a::after { content: "›"; margin-left: auto; padding-right: 8px; font-size: 22px; }
  .section-heading { display: block; }
  .section-heading>p { margin-top: 14px; }
  .section-heading p br { display: none; }
  .feature-list,.subscription { grid-template-columns: 1fr; }
  .feature-list { gap: 0; }
  .feature-item { display: flex; padding-block: 16px; }
  .feature-item+.feature-item { border-top: 1px solid var(--line); }
  .terrain-bottomline { flex-wrap: wrap; gap: 2px; }
  .terrain-tabs button { font-size: 13px; padding-inline: 8px; }
  .terrain-preview { height: 438px; }
  .route-preview { bottom: 90px; }
  .peak-label { top: 12%; right: 6%; }
  .preview-caption { width: 100%; }
  .article-cover-copy { width: 100%; }
  .article-cover { padding-bottom: 66px; }
  .article-landscape::after { background: linear-gradient(135deg,#172234fa,#1b2b41e6 55%,#23314985); }
  .footer-top nav { width: 100%; margin: 0; }
}
@media (max-width: 520px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-art { height: 170px; }
  .hero-actions { gap: 0 15px; }
  .article-main .eyebrow { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .loader { animation: none; }
}
