:root {
  color-scheme: dark;
  --page: #0d1517;
  --paper: #131f22;
  --wash: #1b2c2d;
  --ink: #f1f5ee;
  --muted: #aebfba;
  --line: #2b3d3e;
  --line-strong: #49625f;
  --primary: #caf5d9;
  --primary-hover: #e0fbe8;
  --primary-ink: #10251e;
  --focus: #8de0b7;
  --accent: #86cead;
  --accent-halo: color-mix(in srgb, var(--accent) 15%, transparent);
  --notice: #203529;
  --error: #ffb2a4;
  --stage: #0a1417;
  --stage-glow: #213637;
  --stage-line: #385353;
  --grid-line: color-mix(in srgb, var(--line-strong) 14%, transparent);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans Variable", sans-serif;
  --mono: ui-monospace, "Cascadia Code", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(18px, 4vw, 46px);
  --content-width: 1340px;
  --radius: 18px;
  font-family: var(--sans);
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; color: var(--ink); background: var(--page); }
button, input, textarea, select { font: inherit; }
button, a, input, select, summary, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 10; top: 10px; left: 10px; background: var(--paper); padding: 10px 15px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, .page {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.header-inner {
  min-height: 72px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.wordmark {
  display: inline-flex; align-items: center; flex: none; gap: 9px; width: fit-content;
  text-decoration: none; font-size: 1.2rem; font-weight: 780; letter-spacing: -.055em;
}
.wordmark img { display: block; border: 1px solid var(--line-strong); border-radius: 9px; }
.header-inner nav { display: flex; align-items: center; gap: clamp(14px, 2.7vw, 35px); color: var(--muted); font-size: .875rem; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 40px; white-space: nowrap; text-decoration: none; transition: color .18s var(--ease); }
.header-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--ink); }
.header-inner nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .5em; }
.header-inner nav [data-member-nav] { min-height: 36px; padding-inline: 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.header-inner nav [data-member-nav]:hover { background: var(--wash); }
.local-preview-notice {
  color: var(--muted); background: var(--stage); border-bottom: 1px solid var(--line);
  text-align: center; font-size: .75rem; line-height: 1.4; padding: 6px var(--gutter);
}
.page { flex: 1; padding-bottom: clamp(56px, 8vw, 108px); }
.intro { padding-block: clamp(36px, 6vw, 78px) clamp(22px, 3.6vw, 42px); }
.intro h1 { font-size: clamp(2.6rem, 5.7vw, 4.75rem); font-weight: 650; line-height: 1; letter-spacing: -.065em; text-wrap: balance; }
.intro p { max-width: 56ch; margin-top: 17px; color: var(--muted); font-size: clamp(.98rem, 1.6vw, 1.125rem); line-height: 1.6; }
.section-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 12px;
  color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 650;
}
.section-link:hover { color: var(--primary); }
.section-link span { transition: transform .18s var(--ease); }
.section-link:hover span { transform: translateX(-3px); }

.hero-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  margin-block: clamp(15px, 2.5vw, 36px) 22px; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 24px; background: var(--paper);
}
.hero-intro:not(:has(.hero-map)) { grid-template-columns: minmax(0, 1fr); }
.hero-copy { position: relative; z-index: 1; padding: clamp(28px, 3.25vw, 46px); align-self: center; }
.hero-copy h1 { font-size: clamp(2.8rem, 5.2vw, 4.7rem); text-wrap: initial; }
.hero-copy h1 em { display: inline-block; color: var(--primary); font: italic 400 1.15em/.92 var(--serif); letter-spacing: -.039em; }
.hero-copy p { max-width: 40ch; }
.hero-action { margin-top: 20px; }
.hero-action span { margin-left: 10px; color: var(--primary-ink); font-size: 1.05em; transition: transform .18s var(--ease); }
.hero-action:hover span { transform: translateY(2px); }
.hero-map { position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--stage); }
.hero-map img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.hero-map::after {
  position: absolute; inset: 0; content: ""; pointer-events: none;
  background: linear-gradient(90deg, var(--paper), transparent 28%), linear-gradient(0deg, color-mix(in srgb, var(--stage) 70%, transparent), transparent 34%);
}
.hero-map figcaption {
  position: absolute; z-index: 1; right: clamp(14px, 2vw, 26px); bottom: clamp(13px, 2vw, 22px);
  display: grid; gap: 2px; padding: 9px 12px;
  color: var(--ink); background: var(--stage); border: 1px solid var(--line);
  border-radius: 9px; font-size: .88rem; font-weight: 660;
}
.hero-map figcaption span { color: var(--muted); font-weight: 450; font-size: .74rem; }
.hero-map figcaption a { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.hero-map figcaption a:hover, .hero-map figcaption a span { color: var(--primary); }
.tool-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); align-items: center; gap: 25px; }
.tool-intro:not(:has(.tool-intro-image)) { grid-template-columns: 1fr; }
.tool-intro h1 { font-size: clamp(2.4rem, 5vw, 4.15rem); text-wrap: pretty; }
.tool-intro-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 13px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 13px; min-height: 40px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; text-decoration: none; color: var(--ink); font-size: .87rem; font-weight: 720;
  line-height: 1.25;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.button:not(:disabled):active { transform: translateY(1px); }
.button [data-icon] { display: inline-flex; }
.button-primary { background: var(--primary); color: var(--primary-ink); min-height: 44px; padding-inline: 15px; }
.button-primary:not(:disabled):hover { background: var(--primary-hover); }
.button-outline { background: var(--paper); border-color: var(--line-strong); }
.button-outline:not(:disabled):hover { background: var(--wash); border-color: var(--accent); }
.button-quiet { color: var(--muted); }
.button-quiet:not(:disabled):hover { background: var(--wash); color: var(--ink); }

.studio {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: 0 20px 52px rgb(0 0 0 / 32%); scroll-margin-top: 12px;
}
#map-startup { margin-block: 6px 14px; }
.studio-bar {
  min-height: 68px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px clamp(14px, 2.1vw, 24px);
}
.project-heading { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
#project-title {
  color: var(--ink); background: var(--page); border: 1px solid var(--line);
  border-radius: 7px; font-weight: 700; min-width: 0; width: min(31ch, 100%); padding: 8px 10px;
}
#project-title:hover, #project-title:focus { border-color: var(--line-strong); }
.project-detail {
  flex: none; white-space: nowrap; padding: 4px 7px; border-radius: 5px; border: 1px solid var(--line);
  font-size: .74rem; color: var(--muted);
}
#export-button { flex: none; }
.export-policy {
  padding: 8px clamp(14px, 2.1vw, 24px); color: var(--muted); font-size: .77rem;
  border-block: 1px solid var(--line); background: var(--page); line-height: 1.5;
}
.export-policy:empty { display: none; }
.studio-grid { display: grid; grid-template-columns: minmax(300px, 355px) minmax(0, 1fr); }
.route-editor { min-width: 0; padding: clamp(15px, 2.2vw, 24px); }
.route-editor-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.route-editor-title h2 { font-size: 1rem; font-weight: 760; letter-spacing: -.018em; }
.count { font: 500 .73rem var(--mono); color: var(--muted); }
.import-actions { display: flex; gap: 5px 7px; flex-wrap: wrap; margin-bottom: 17px; }
.import-actions .button { font-size: .81rem; padding-inline: 10px; }
.import-actions .button svg { width: 15px; height: 15px; }
.gpx-picker { position: relative; cursor: pointer; }
.gpx-picker input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.gpx-picker:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.form-hint.gpx-summary, #gpx-error { margin-bottom: 12px; }
.review-panel {
  border: 1px solid var(--line-strong); color: var(--ink); background: var(--notice);
  border-radius: 9px; font-size: .88rem; line-height: 1.5; padding: 11px; margin-bottom: 12px;
}
.review-panel .button { margin-top: 8px; }
.stops { padding: 0; margin: 0; list-style: none; display: grid; gap: 6px; }
.stops li {
  border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center;
  background: var(--page); padding-right: 4px; min-height: 55px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.stops li.is-active { background: var(--wash); border-color: var(--line-strong); }
.stop-select {
  border: 0; background: transparent; text-align: left; color: var(--ink); flex: 1;
  padding: 8px 5px 8px 11px; display: grid; align-items: center; cursor: pointer;
  grid-template-columns: 12px minmax(0,1fr) auto; gap: 7px; min-width: 0;
}
.stop-dot { border-radius: 100%; width: 7px; height: 7px; border: 1px solid var(--stage-line); }
.is-active .stop-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-halo); }
.stop-details { min-width: 0; display: grid; gap: 2px; }
.stop-details strong, .stop-details > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-details strong { font-size: .87rem; font-weight: 720; }
.stop-details > span { color: var(--muted); font-size: .74rem; }
.stop-select time { font: 500 .7rem var(--mono); color: var(--muted); white-space: nowrap; }
.icon-button {
  border: 0; background: transparent; color: var(--muted); border-radius: 7px;
  display: inline-grid; place-items: center; padding: 0; width: 38px; height: 38px;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.icon-button span, .icon-button svg { display: block; }
.icon-button:hover { color: var(--ink); background: var(--wash); }
.row-action { width: 29px; height: 36px; flex: none; }
.row-action svg { width: 14px; height: 14px; }
.delete-stop:hover { color: var(--error); }
.empty-stops { padding: 12px; color: var(--muted); font-size: .9rem; }
.add-stop { width: 100%; margin-top: 10px; border-style: dashed; background: transparent; color: var(--primary); }
.clip-settings { margin-top: 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); }
.clip-settings summary { cursor: pointer; color: var(--muted); padding-block: 10px; font-size: .85rem; font-weight: 680; }
.clip-settings[open] summary { color: var(--ink); }
.settings-fields { display: grid; gap: 11px; padding-bottom: 12px; font-size: .86rem; }
.settings-fields label { display: flex; gap: 10px; align-items: center; }
.check-label input { accent-color: var(--accent); }
.settings-fields select { color: var(--ink); padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); }
.import-offset { color: var(--muted); font-size: .8rem; }

.preview {
  display: grid; grid-template-rows: auto 1fr auto; min-width: 0; padding: 16px clamp(15px, 2.5vw, 27px);
  background-color: var(--stage);
  background-image:
    radial-gradient(ellipse at 50% 42%, transparent 3%, var(--stage) 80%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(ellipse at center, var(--stage-glow), var(--stage));
  background-size: auto, 33px 33px, 33px 33px, auto;
  border-left: 1px solid var(--line);
}
.preview-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font: 500 .73rem var(--mono); letter-spacing: .025em; color: var(--muted);
}
.preview-caption { display: flex; align-items: center; gap: 7px; }
.preview-meta > span:last-child { white-space: nowrap; }
.preview-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-halo); }
.canvas-wrap { min-width: 0; display: grid; justify-items: center; align-items: center; padding: 16px 0; }
#map {
  display: block; width: auto; height: clamp(306px, 45vh, 490px); max-width: 100%; object-fit: contain;
  border-radius: 10px; background: var(--paper); border: 1px solid var(--stage-line);
  box-shadow: 0 18px 46px rgb(0 0 0 / 66%), 0 0 0 5px var(--grid-line);
}
.transport {
  display: grid; grid-template-columns: 40px minmax(0,1fr) 56px; align-items: end; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 10px;
}
.play-button { background: var(--primary); color: var(--primary-ink); width: 40px; height: 40px; }
.play-button:not(:disabled):hover { background: var(--primary-hover); color: var(--primary-ink); }
.play-button svg { width: 17px; height: 17px; }
.timeline { padding-bottom: 4px; }
.ruler {
  color: var(--muted); display: flex; justify-content: space-between;
  font: 500 .68rem var(--mono); padding-bottom: 3px;
}
.timeline-track { position: relative; display: flex; align-items: center; height: 16px; }
#timeline-stops { position: absolute; inset: 6px 6px auto; height: 0; pointer-events: none; z-index: 1; }
#timeline-stops span { position: absolute; width: 4px; height: 4px; background: var(--primary-hover); border-radius: 6px; transform: translateX(-2px); }
#seek {
  --progress: 0%; width: 100%; height: 16px; margin: 0; background: transparent;
  appearance: none; border-radius: 6px; cursor: pointer;
}
#seek::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--accent) var(--progress), var(--stage-line) var(--progress)); }
#seek::-webkit-slider-thumb {
  appearance: none; position: relative; z-index: 2; width: 13px; height: 13px;
  border-radius: 8px; margin-top: -4px; background: var(--primary); border: 2px solid var(--stage);
}
#seek::-moz-range-track { height: 5px; border-radius: 5px; background: var(--stage-line); }
#seek::-moz-range-progress { height: 5px; border-radius: 5px; background: var(--accent); }
#seek::-moz-range-thumb { width: 11px; height: 11px; border-radius: 8px; background: var(--primary); border: 2px solid var(--stage); }
#timecode { padding-bottom: 8px; color: var(--ink); font: 500 .77rem var(--mono); text-align: end; }
.export-status {
  min-height: 54px; padding: 9px clamp(14px, 2.1vw, 24px); display: flex; align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--line); gap: 9px 13px; color: var(--muted); font-size: .88rem;
}
.export-status progress { width: 90px; height: 8px; accent-color: var(--accent); }

.how, .tool-copy { padding-top: clamp(38px, 6.5vw, 78px); scroll-margin-top: 8px; }
.how h2, .tool-copy h2 {
  font-size: clamp(1.75rem, 3.7vw, 2.55rem); font-weight: 650; line-height: 1.1; letter-spacing: -.045em;
}
.tool-links {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; padding: 0; margin: 20px 0 0; list-style: none;
}
.tool-links a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line);
  border-radius: 13px; background: var(--paper); text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.tool-links a:hover { background: var(--wash); border-color: var(--line-strong); transform: translateY(-3px); }
.tool-links img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-bottom: 1px solid var(--line); }
.tool-link-copy { position: relative; flex: 1; padding: 15px 26px 16px 14px; }
.tool-link-copy strong { font-size: .96rem; line-height: 1.3; }
.tool-link-copy p { margin-top: 6px; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.tool-link-copy span { position: absolute; top: 14px; right: 12px; color: var(--accent); }
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 20px 0 0;
  padding: 0; list-style: none; counter-reset: step;
}
.steps li { border-top: 1px solid var(--line-strong); padding: 17px 0 0; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px; color: var(--accent); font: 500 .75rem var(--mono); }
.steps h3 { font-size: 1.03rem; letter-spacing: -.02em; }
.steps p { margin-top: 6px; color: var(--muted); font-size: .91rem; line-height: 1.6; max-width: 38ch; }
.map-faq { display: grid; max-width: 810px; margin-top: 18px; border-top: 1px solid var(--line); }
.map-faq details { border-bottom: 1px solid var(--line); }
.map-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 53px; padding-block: 12px; cursor: pointer; font-weight: 660; line-height: 1.35; list-style: none;
}
.map-faq summary::-webkit-details-marker { display: none; }
.map-faq summary::after { content: "+";
  color: var(--accent); font: 500 1.2rem var(--mono); transition: transform .18s var(--ease);
}
.map-faq details[open] summary::after { transform: rotate(45deg); }
.map-faq details p { padding: 0 24px 15px 0; color: var(--muted); font-size: .93rem; line-height: 1.65; }
.tool-copy { max-width: 74ch; }
.tool-copy h3 { margin: 26px 0 8px; font-size: 1.13rem; }
.tool-copy p, .tool-copy li { color: var(--muted); line-height: 1.65; }
.tool-copy h2 + *, .tool-copy p + p, .tool-copy li + li { margin-top: 10px; }
.tool-copy ol { padding-left: 22px; }
.tool-copy a, .article-body a, .billing-notice a { color: var(--primary); }

.member-page { max-width: 1060px; }
.member-intro h1 { font-size: clamp(2.65rem, 5.9vw, 4.45rem); }
.pricing-intro { text-align: center; }
.pricing-intro p { margin-inline: auto; }
.member-panel {
  min-width: 0; padding: clamp(17px, 4vw, 28px); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper);
}
.member-panel h2 { font-size: 1.37rem; font-weight: 680; line-height: 1.15; letter-spacing: -.032em; margin-bottom: 10px; }
.member-panel p, #account-delete p { color: var(--muted); line-height: 1.55; }
.member-panel .button { margin-top: 13px; }
.member-panel strong { color: var(--ink); }
.member-email { overflow-wrap: anywhere; }
.member-actions { display: flex; flex-wrap: wrap; gap: 0 8px; }
.member-danger, #account-delete .form-error { color: var(--error); }
.account-layout { display: grid; align-items: start; gap: 16px; }
.account-layout:not(:has([data-gf-if-member]:not([hidden]))) { max-width: 570px; margin-inline: auto; }
.member-page:has(.account-layout):not(:has(.account-layout [data-gf-if-member]:not([hidden]))) .member-intro { text-align: center; }
.member-page:has(.account-layout):not(:has(.account-layout [data-gf-if-member]:not([hidden]))) .member-intro p { margin-inline: auto; }
.account-settings { display: grid; gap: 16px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.pricing-grid:not(:has(.plan-card-creator:not([hidden]))) { grid-template-columns: minmax(0, 490px); justify-content: center; }
.plan-card { display: flex; flex-direction: column; }
.plan-card-creator {
  background: linear-gradient(150deg, var(--notice), var(--paper) 68%);
  border-color: var(--line-strong);
}
.plan-card-creator h2 { color: var(--primary); }
.member-panel .plan-price { margin: 5px 0 0; font-size: clamp(2.45rem, 6vw, 3.65rem); font-weight: 650; line-height: 1.06; letter-spacing: -.062em; color: var(--ink); }
.plan-period { white-space: nowrap; color: var(--muted); font-weight: 450; font-size: .88rem; letter-spacing: normal; }
.plan-inclusions {
  display: grid; gap: 10px; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line);
  list-style: none; color: var(--muted); font-size: .94rem; line-height: 1.48;
}
.plan-inclusions li { display: grid; grid-template-columns: 15px 1fr; gap: 7px; }
.plan-inclusions li::before { content: "✓"; color: var(--accent); }
.plan-action { margin-top: auto; padding-top: 14px; }
.plan-action .button { width: 100%; justify-content: space-between; }
.billing-caption, .billing-availability { margin-top: 15px; text-align: center; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.billing-notice { padding: 10px 13px; margin-bottom: 12px; background: var(--notice); border-radius: 8px; color: var(--ink); }
.billing-availability { padding: 0; background: transparent; color: var(--muted); }

.guide-copy, .legal-copy { max-width: 1100px; }
.article-intro { border-bottom: 1px solid var(--line); margin-bottom: clamp(21px, 4vw, 37px); }
.article-intro h1 { max-width: 19ch; font-size: clamp(2.4rem, 6vw, 4.65rem); text-wrap: pretty; }
.article-layout { display: grid; align-items: start; gap: 32px; }
.article-body { min-width: 0; max-width: 69ch; }
.article-body p, .article-body li, .article-example figcaption { color: var(--muted); line-height: 1.7; }
.article-body p + p { margin-top: 16px; }
.article-body h2 { font-size: 1.55rem; letter-spacing: -.034em; line-height: 1.26; margin-block: 27px 9px; }
.article-body pre {
  max-width: 100%; overflow-x: auto; border: 1px solid var(--line);
  border-radius: 10px; padding: 16px; background: var(--paper); font: .87rem/1.55 var(--mono);
}
.article-example { width: min(100%, 238px); margin: 0; }
.article-example img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-strong); }
.article-example figcaption { margin-top: 8px; font-size: .82rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; min-height: 74px; padding-block: 14px; }
.footer-inner nav { display: flex; gap: 17px; flex-wrap: wrap; }
.footer-inner a:hover { color: var(--primary); }
.footer-inner .wordmark { font-size: 1rem; color: var(--ink); }
.footer-inner .wordmark img { border-radius: 7px; }

dialog {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--radius); width: min(490px, calc(100% - 24px)); max-height: calc(100% - 26px);
  padding: clamp(16px, 4vw, 23px); box-shadow: 0 18px 70px rgb(0 0 0 / 76%);
}
dialog[open] { animation: open-dialog .22s var(--ease); }
dialog::backdrop { background: rgb(0 0 0 / 72%); }
@keyframes open-dialog { from { opacity: 0; transform: translateY(7px); } }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.dialog-header h2 { font-size: clamp(1.4rem, 5vw, 1.85rem); font-weight: 675; line-height: 1.1; letter-spacing: -.045em; }
.dialog-header .icon-button { flex: none; }
.file-picker {
  display: flex; justify-content: center; align-items: center; gap: 9px; position: relative;
  min-height: 49px; padding: 8px; border: 1px dashed var(--line-strong); border-radius: 9px;
  font-size: .88rem; font-weight: 660; cursor: pointer; color: var(--primary);
}
.file-picker:hover, .file-picker.dragging { background: var(--wash); }
.file-picker:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.file-picker input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-picker > [data-icon] { display: inline-flex; }
.field-label { display: block; font-size: .86rem; font-weight: 720; margin: 14px 0 5px; }
dialog input:not([type=file]):not([type=radio]), dialog textarea, dialog select {
  display: block; width: 100%; min-height: 40px; padding: 8px 10px; color: var(--ink);
  background: var(--page); border: 1px solid var(--line-strong); border-radius: 7px;
}
dialog textarea { resize: vertical; font: 500 .85rem/1.5 var(--mono); }
dialog input::placeholder, dialog textarea::placeholder { color: var(--muted); }
.place-method {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--page); padding: 3px; margin: 0;
}
.place-method label { display: grid; position: relative; min-width: 0; user-select: none; }
.place-method input { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.place-method span {
  display: grid; place-items: center; text-align: center; min-height: 38px; cursor: pointer;
  border: 1px solid transparent; border-radius: 6px; padding: 4px;
  color: var(--muted); font-size: .85rem; font-weight: 690;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.place-method input:checked + span { color: var(--primary); background: var(--wash); border-color: var(--line-strong); }
.place-method input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-hint, .form-error, .selected-place, .place-results { margin-top: 7px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.form-error { color: var(--error); }
.selected-place { color: var(--primary); }
.place-results { display: grid; gap: 4px; max-height: 145px; overflow: auto; }
.place-results:empty { display: none; }
.place-results button { text-align: left; background: var(--page); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 7px 8px; }
.place-results button:hover { background: var(--wash); }
.dialog-footer { display: flex; justify-content: flex-end; gap: 6px; margin-top: 18px; }

@media (min-width: 760px) {
  .account-layout:has([data-gf-if-member]:not([hidden])) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .article-layout:has(.article-example) { grid-template-columns: minmax(0, 1fr) minmax(0, 225px); }
  .article-example { position: sticky; top: 18px; }
}
@media (max-width: 900px) {
  .tool-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .header-inner { min-height: 60px; }
  .hero-intro { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: clamp(23px, 5vw, 40px); }
  .hero-map { min-height: clamp(180px, 50vw, 265px); }
  .hero-map figcaption { right: auto; left: 13px; }
  .hero-map::after { background: linear-gradient(180deg, var(--paper), transparent 20%), linear-gradient(0deg, color-mix(in srgb, var(--stage) 50%, transparent), transparent 30%); }
  .tool-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tool-intro-image { display: none; }
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .preview { border-left: 0; border-top: 1px solid var(--line); }
  #map { height: clamp(290px, 47vh, 410px); }
  .project-heading { gap: 4px; align-items: start; flex-direction: column; }
  #project-title { padding-block: 6px; }
  .project-detail { border: 0; padding: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .article-example { grid-row: 1; }
}
@media (max-width: 520px) {
  .header-inner { flex-wrap: wrap; gap: 3px 12px; padding-block: 9px 5px; }
  .header-inner nav { width: 100%; gap: clamp(10px, 3vw, 16px); font-size: .777rem; }
  .header-inner nav a { min-height: 36px; }
  .header-inner nav [data-member-nav] { min-height: 30px; padding-inline: 8px; margin-left: auto; }
  .hero-copy h1 { font-size: clamp(2.28rem, 10vw, 3.15rem); }
  .hero-copy p { margin-top: 12px; }
  .hero-action { margin-top: 17px; }
  .tool-links { gap: 9px; }
  .tool-link-copy { padding: 11px 21px 12px 10px; }
  .tool-link-copy span { right: 7px; top: 10px; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner > span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/*$vite$:1*/