/* ===== High Country Sites ===== */
:root {
  --bg: #f6f4ef;
  --bg-2: #ecE8df;
  --paper: #ffffff;
  --ink: #18201d;
  --ink-2: #4a5550;
  --line: #ddd8cc;
  --pine: #2d5a4c;
  --pine-dark: #1f4237;
  --sun: #d9733a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(24, 32, 29, .06), 0 12px 32px -12px rgba(24, 32, 29, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 12px;
}
.section-sub { color: var(--ink-2); max-width: 620px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--pine);
  background: var(--pine); color: #fff; font: 600 16px/1 var(--font);
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--pine-dark); border-color: var(--pine-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: rgba(45, 90, 76, .08); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .55; cursor: default; border-style: dashed; }
.btn.is-disabled:hover { background: transparent; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .86); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--pine-dark); letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; color: var(--pine); }
.header-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); margin-left: auto; }
.header-nav a, .nav-disclosure summary, .nav-panel a { text-decoration: none; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.header-nav a:hover, .nav-panel a:hover, .nav-disclosure summary:hover { color: var(--ink); }
.header-nav a[aria-current="page"], .nav-panel a[aria-current="page"] { color: var(--pine); text-decoration: underline; text-underline-offset: .3em; }
.nav-disclosure { position: relative; }
.nav-disclosure summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding-block: 8px; list-style: none; }
.nav-disclosure summary::-webkit-details-marker { display: none; }
.nav-disclosure summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.nav-panel { position: absolute; top: 100%; left: 0; min-width: max-content; padding: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); }
.nav-panel a { display: block; padding: 8px 12px; }
.nav-panel a:hover { background: var(--bg); border-radius: 6px; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .mobile-nav { display: block; margin-left: auto; }
  .mobile-nav .nav-panel { left: auto; right: 0; }
}
@media (max-width: 560px) {
  .header-inner { gap: 12px; }
  .header-cta { display: none; }
}
.header-cta { display: flex; align-items: center; gap: 16px; }

/* Hero */
.hero { position: relative; padding: 96px 0 180px; overflow: hidden; text-align: center; }
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); margin-bottom: 24px; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 680px; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--ink-2); font-size: 15px; }
.hero-trust li::before { content: "✓"; color: var(--pine); font-weight: 700; margin-right: 8px; }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; }
.ridge-back { fill: #dfe6df; }
.ridge-front { fill: #c7d5cb; }

/* ===== Template select ===== */
.select { position: relative; background: linear-gradient(#c7d5cb 0, var(--bg-2) 160px); }
.select-inner { padding: 40px 0 48px; }
.select-head { text-align: center; }
.select-head h2 { margin-bottom: 8px; }
.select-intro { margin: 0 0 8px; color: var(--ink-2); }
.select-hint { font-size: 14px; color: var(--ink-2); margin: 0; }
.hint-mobile { display: none; }

.stage {
  position: relative; height: 380px; margin: 20px 0 8px; overflow: clip;
  touch-action: pan-y; cursor: grab; outline: none;
}
.stage.is-dragging { cursor: grabbing; }
.stage:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.ring { position: absolute; inset: 0; perspective: 1600px; perspective-origin: 50% 40%; }
.card {
  position: absolute; left: 50%; top: 50%;
  width: 520px; margin: -150px 0 0 -260px;
  visibility: hidden; backface-visibility: hidden; will-change: transform;
  user-select: none; -webkit-user-select: none;
}
.card.is-active { visibility: visible; }
.card.is-active .browser { box-shadow: 0 30px 60px -20px rgba(24, 32, 29, .45), 0 0 0 2px var(--pine); }

/* Browser frame */
.browser { background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .3s; }

.template-preview { display: block; width: 100%; height: 300px; object-fit: cover; pointer-events: none; }

/* The embedded page keeps a desktop viewport inside the scaled preview. */
.site-preview { position: relative; height: 300px; overflow: hidden; background: var(--paper); }
.site-preview iframe {
  position: absolute; top: 0; left: 0; display: block; width: 1040px; height: var(--preview-height, 600px);
  border: 0; transform: scale(var(--preview-scale, .5)); transform-origin: top left; pointer-events: none;
}

/* Info panel */
.select-info {
  display: grid; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow);
  max-width: 980px;
}
.info-kicker { font-size: 13px; font-weight: 600; color: var(--pine); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.info-main h3 { font-family: var(--display); font-size: 30px; margin-bottom: 8px; }
.info-main p:last-child { color: var(--ink-2); margin: 0; }
.info-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ring-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.ctrl { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 18px; cursor: pointer; color: var(--ink); }
.ctrl:hover { border-color: var(--pine); color: var(--pine); }
.dots { display: flex; }
.dots button { display: grid; place-items: center; width: 22px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.dots button::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--pine); }
.dots button[aria-pressed="true"]::after { background: var(--pine); transform: scale(1.2); }

.featured-sites { max-width: 980px; margin-top: 24px; text-align: center; }
.featured-sites h3 { font-size: 16px; margin: 0 0 8px; }
.featured-sites ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.featured-sites a { font-size: 15px; color: var(--pine); text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 819px) {
  .select .stage { height: calc(min(320px, 82vw) * 600 / 1040 + 64px); }
  .select .card { width: min(320px, 82vw); margin: 0; left: max(calc(50% - 160px), 9vw); top: 17px; }
  .select .card .template-preview { height: auto; }
  .select .card .site-preview { height: auto; aspect-ratio: 1040 / 600; }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}

/* Two paths */
.paths { padding: 96px 0 40px; }
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.path h3 { font-family: var(--display); font-size: 28px; }
.path p:last-child { color: var(--ink-2); margin: 0; }

/* How */
.how { padding: 80px 0; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { position: relative; padding-top: 8px; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pine); color: #fff; font-weight: 700; margin-bottom: 18px; }
.steps p { color: var(--ink-2); }

/* Pricing */
.pricing { padding: 80px 0; background: var(--bg-2); }
.pricing-action { margin-top: 28px; text-align: center; }
.pricing-action p { margin: 8px 0 0; color: var(--ink-2); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; align-items: stretch; }
.price { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.price-featured { border: 2px solid var(--pine); box-shadow: var(--shadow); }
.price-tag { position: absolute; top: -13px; left: 32px; background: var(--pine); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin: 0; }
.price-amt { font-family: var(--display); font-size: 40px; font-weight: 600; margin-bottom: 8px; }
.price-amt small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.price-desc { color: var(--ink-2); }
.price ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 15px; }
.price li::before { content: "✓"; color: var(--pine); font-weight: 700; margin-right: 10px; }

/* Local */
.local { padding: 96px 0; }
.local-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.local-inner p { color: var(--ink-2); font-size: 18px; }
.cities { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cities li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 15px; }
.cities li:last-child { border-style: dashed; color: var(--ink-2); }

/* FAQ */
.faq { padding: 80px 0; border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--pine); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-2); margin: 12px 0 0; }

/* Contact */
.contact { padding: 96px 0; background: var(--pine-dark); color: #f1efe9; }
.contact .eyebrow { color: #9fd0bd; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy p { color: #c9d6cf; }
.contact-ways { display: grid; gap: 12px; margin-top: 28px; }
.way { display: flex; flex-direction: column; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; text-decoration: none; transition: background .2s; }
.way:hover { background: rgba(255, 255, 255, .06); }
.way span { font-size: 13px; color: #9fd0bd; }
.way strong { font-size: 18px; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field legend { margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); outline: 2px solid rgba(45, 90, 76, .25); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.field textarea { resize: vertical; }
.form-help { color: var(--ink-2); font-size: 14px; margin: 8px 0 0; }
.form-note:empty { display: none; }
.form-note { margin: 0; font-size: 14px; min-height: 1.4em; color: var(--pine); }
.form-note.is-error { color: #c0392b; }

/* Footer */
.site-footer { padding: 28px 0; font-size: 14px; color: var(--ink-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .card { width: 440px; margin: -130px 0 0 -220px; }
  .card .template-preview, .card .site-preview { height: 260px; }
}
@media (max-width: 900px) {
  .header-nav { display: none; }
  .select-info { padding: 24px; }
  .paths-grid, .steps, .price-grid, .local-inner, .faq-inner, .contact-inner { grid-template-columns: 1fr; }
  .price-grid { gap: 28px; }
  .faq-inner, .local-inner, .contact-inner { gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 150px; }
  .ridge { height: 130px; }
  .path, .price, .form { padding: 24px; }
  .info-actions .btn { flex: 1 1 100%; }
}
.mobile-bar { display: none; }
@media (max-width: 560px) {
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 244, 239, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { flex: 1; padding: 12px; }
  .mobile-bar .btn-ghost { background: #fff; }
  .header-cta .btn-small { display: none; }
  .site-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Main site pages */
html { scroll-padding-top: 76px; }
.content-page { max-width: 900px; padding-block: clamp(24px, 4vw, 52px) 32px; }
.content-page h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 12px; text-wrap: balance; }
.page-intro { color: var(--ink-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.5; }
.content-page section { margin-block: 22px; }
.content-page p { margin-bottom: 10px; }
.content-page h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.content-page + .site-footer { padding-bottom: 28px; }
.content-page a:not(.btn, .resource-card) { color: var(--pine); text-underline-offset: .17em; }

.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 12px 0 0; }
.resource-card { display: block; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; }
.resource-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--bg); }
.resource-copy { padding: 16px; }
.resource-copy p { margin-bottom: 0; color: var(--ink-2); font-size: 15px; }
.resource-copy .resource-source { margin-bottom: 6px; color: var(--pine); font-size: 13px; font-weight: 600; }
.resource-copy h3 { margin-bottom: 6px; font-size: 18px; }
.resource-card:hover h3 { text-decoration: underline; text-underline-offset: .15em; }

@media (max-width: 560px) {
  .resource-grid { grid-template-columns: 1fr; }
}
