/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Brand palette — light cream ── */
:root {
  --orange:         #E8720C;
  --orange-dark:    #C45E08;
  --orange-dim:     rgba(232, 114, 12, 0.10);
  --orange-border:  rgba(232, 114, 12, 0.28);
  --bg:             #FAF8F5;
  --surface:        #FFFFFF;
  --surface-raised: #F2EFE9;
  --border:         #E0DAD0;
  --border-subtle:  #EAE5DC;
  --text:           #1A1714;
  --text-muted:     #6B6257;
  --text-faint:     #A89F93;
}

html { scroll-behavior: smooth; }

body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Main ── */
main { display: flex; flex-direction: column; }

/* ── Sections ── */
.section {
  padding: 4rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

/* ── Brand lockup (replaces header) ── */
.section-hero {
  padding-top: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.brand img { flex-shrink: 0; }

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ── Hero heading ── */
h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.accent { color: var(--orange); }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

/* ── Data-only rationale ── */
.section-why {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.why-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  border-left: 2px solid var(--orange-border);
  padding-left: 0.85rem;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.step-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
}

footer a { color: var(--orange); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── WIP badge ── */
.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 1.75rem;
}

/* ── Destination picker ── */
.destination-picker {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.destination-search-wrap {
  position: relative;
  max-width: 420px;
}

.destination-search-wrap .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

.destination-search-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 0.625rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.destination-search-wrap input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.destination-search-wrap input::placeholder { color: var(--text-faint); }

.plan-preview {
  background: var(--surface);
  border: 1.5px solid var(--orange-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 480px;
  box-shadow: 0 2px 10px rgba(232, 114, 12, 0.08);
}

.plan-preview[hidden] { display: none; }

.plan-preview-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.plan-flag { font-size: 2.25rem; line-height: 1; }

.plan-preview-inner h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-preview-inner p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.plan-wip {
  font-size: 0.76rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

/* ── Trust strip ── */
.section-trust {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.65rem;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
}

.trust-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.trust-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.trust-card a {
  color: var(--orange);
  text-decoration: none;
}

.trust-card a:hover { text-decoration: underline; }

/* ── Plan builder steps ── */
.plan-step {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.plan-step[hidden] { display: none; }

.plan-step-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.9rem;
}

/* ── Picker chips (duration + data) ── */
.picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.picker-chip {
  padding: 0.45rem 0.9rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.picker-chip:hover {
  border-color: var(--orange);
  color: var(--text);
}

.picker-chip.selected {
  border-color: var(--orange);
  background: var(--orange-dim);
  color: var(--text);
}

/* ── Date range ── */
.date-range-wrap {
  margin-top: 1rem;
}

.date-inputs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.date-inputs input[type="date"] {
  padding: 0.55rem 0.8rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.85rem;
  transition: border-color 0.15s;
}

.date-inputs input[type="date"]:focus {
  outline: none;
  border-color: var(--orange);
}

.date-sep {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.date-result {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
}

/* ── Calculator output ── */
.calc-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.calc-summary strong { color: var(--text); }

/* Slider rows */
.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Quick-use preset buttons */
.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.usage-preset-btn {
  padding: 0.38rem 0.85rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.usage-preset-btn:hover {
  border-color: var(--orange);
  color: var(--text);
  background: var(--orange-dim);
}

.calc-slider-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 0.85rem 1rem;
}

.calc-slider-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.calc-slider-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }

.calc-slider-label {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.calc-slider-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  min-width: 4.5rem;
  text-align: right;
}

/* Range input */
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(232,114,12,0.35);
  transition: transform 0.1s;
}

.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(232,114,12,0.35);
}

.calc-range::-webkit-slider-thumb:active { transform: scale(1.2); }

/* Video quality selector */
.video-quality-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.video-quality-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.video-quality-select {
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.video-quality-select:focus {
  border-color: var(--orange);
}

/* Usage budget bar */
.usage-budget-bar {
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.usage-budget-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.usage-budget-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.usage-budget-labels strong { color: var(--text); }

.usage-disclaimer {
  font-size: 0.74rem;
  color: var(--text-faint);
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: #fef9f0;
  border-left: 3px solid var(--orange);
  border-radius: 0 0.35rem 0.35rem 0;
  line-height: 1.5;
}

/* Date range hint */
.date-range-hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
  font-style: italic;
}

/* ── Buy now ── */
.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: var(--orange);
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.buy-btn:hover  { background: var(--orange-dark); }
.buy-btn:active { transform: scale(0.98); }

.buy-note {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  color: var(--text-faint);
}

/* ── Custom GB input ── */
.custom-gb-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.custom-gb-input {
  width: 7rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1.5px solid var(--orange);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: box-shadow 0.15s;
}

.custom-gb-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-dim);
}

/* hide browser spinner */
.custom-gb-input::-webkit-inner-spin-button,
.custom-gb-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.custom-gb-input { -moz-appearance: textfield; appearance: textfield; }

.custom-gb-unit {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Email capture section ── */
.section-capture {
  border-top: 1px solid var(--border-subtle);
}

.capture-form {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.capture-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 0.625rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.capture-form input[type="email"]:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.capture-form input[type="email"]::placeholder { color: var(--text-faint); }

.capture-form button {
  padding: 0.7rem 1.5rem;
  background: var(--orange);
  border: none;
  border-radius: 0.625rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.capture-form button:hover    { background: var(--orange-dark); }
.capture-form button:active   { transform: scale(0.98); }
.capture-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.capture-note {
  margin-top: 0.55rem;
  font-size: 0.76rem;
  color: var(--text-faint);
}

.capture-status {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  min-height: 1.2em;
}

.capture-status.success { color: #16a34a; }
.capture-status.error   { color: #dc2626; }

/* ── 404 page ── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
}

.not-found-code {
  font-size: 4rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.05em;
  line-height: 1;
}

.not-found h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.not-found p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.not-found a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: var(--orange);
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}

.not-found a:hover { background: var(--orange-dark); }

/* ── Polar embedded checkout overlay ── */
/* Ensures the embed iframe sits above all site content */
iframe[src*="polar.sh"] { z-index: 9999 !important; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .section        { padding: 2.5rem 1rem; }
  .section-hero   { padding-top: 2rem; }
  h1              { font-size: clamp(1.85rem, 7vw, 2.5rem); }
  .steps          { grid-template-columns: 1fr; }
  .destination-search-wrap input { font-size: 1rem; }
  .picker-chips   { gap: 0.4rem; }
  .capture-form   { flex-direction: column; }
  .capture-form input,
  .capture-form button { width: 100%; }
  footer          { flex-direction: column; gap: 0.3rem; text-align: center; }
}
