/* ============================================================
   The Spanish Map landing page
   Built on the Spanish Hobby design system (ds/styles.css).
   Only layout/composition here; all colors, type, spacing,
   shadows and motion come from the design tokens.
   ============================================================ */

html { scroll-behavior: smooth; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header --------------------------------------------- */
.site-header {
  max-width: var(--width-wide);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-5) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.logo img { width: 40px; height: 40px; }
.logo .wordmark {
  font-size: 24px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo .wordmark .es { color: var(--teal-600); }
.logo .wordmark .hobby { color: var(--brown-500); font-weight: var(--weight-medium); }

.header-note {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Hero ----------------------------------------------- */
.hero {
  position: relative;
  flex: 1;
  background: linear-gradient(
    105deg,
    var(--teal-100) 0%,
    var(--teal-50) 38%,
    var(--brown-50) 76%,
    var(--orange-50) 100%
  );
  padding: var(--space-10) var(--space-8) var(--space-7);
}

.hero-inner {
  max-width: var(--width-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-10);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--orange-500);
}
.eyebrow .rule {
  width: 40px; height: 2px;
  background: currentColor; opacity: 0.55;
  border-radius: 2px;
}
.eyebrow .free {
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  color: var(--orange-500);
}

.hero h1 {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-strong);
}
.hero h1 .accent { color: var(--teal-700); }

.hero .lead {
  max-width: 52ch;
  margin: 0 0 var(--space-7);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--ink-700);
}

/* ---- Email capture form --------------------------------- */
.capture { max-width: 480px; }
.form-row {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
}
.form-row .field { flex: 1; min-width: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.email-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-body);
  background: var(--white);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-input);
  outline: none;
  transition: var(--transition-color), box-shadow var(--duration-base) var(--ease-standard);
}
.email-input::placeholder { color: var(--text-subtle); }
.email-input:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(90, 155, 168, 0.18);
}
.capture.invalid .email-input {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(217, 130, 75, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  color: var(--action-text);
  background: var(--action);
  border: 1.5px solid var(--action);
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: var(--transition-color),
    transform var(--duration-fast) var(--ease-calm),
    box-shadow var(--duration-base) var(--ease-calm);
}
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn:active { transform: scale(var(--press-scale)); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.form-msg {
  min-height: 1.2em;
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  color: var(--orange-600);
}
.form-note {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---- Thank-you / download page -------------------------- */
.thanks {
  max-width: var(--width-content);
  margin: 0 auto;
  text-align: center;
}
.thanks .eyebrow { justify-content: center; }
.thanks h1 {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-strong);
}
.thanks h1 .accent { color: var(--teal-700); }
.thanks .lead {
  max-width: 60ch;
  margin: 0 auto var(--space-7);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--ink-700);
}

/* large primary (teal) download button */
.btn-lg {
  padding: 17px 36px;
  font-size: var(--text-md);
}

/* small "What's inside" block under the button */
.whats-inside {
  max-width: 460px;
  margin: var(--space-9) auto 0;
  padding: var(--space-6);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.whats-inside .eyebrow { margin-bottom: var(--space-4); }
.whats-inside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.whats-inside li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink-700);
}
.whats-inside li:last-child { margin-bottom: 0; }
.whats-inside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-600);
}

/* ---- Guide cover (right column) ------------------------- */
.cover-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cover {
  position: relative;
  width: clamp(240px, 34vw, 340px);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  background: var(--teal-700);
  box-shadow: var(--shadow-xl);
  transform: rotate(-2.2deg);
  overflow: hidden;
  color: var(--paper);
}
/* cover photo fills the whole cover */
.cover-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* book spine highlight */
.cover::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; z-index: 1;
  width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.28), rgba(255,255,255,0.05));
}
/* soft top wash for legibility (no block behind the text) */
.cover::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 61, 71, 0.58) 0%,
    rgba(11, 61, 71, 0.30) 22%,
    rgba(11, 61, 71, 0.06) 42%,
    rgba(11, 61, 71, 0) 58%
  );
}
/* overlaid text */
.cover-content {
  position: absolute; inset: 0; z-index: 2;
}
.cover-kicker {
  position: absolute; top: 5%; left: var(--space-5); right: var(--space-5);
  margin: 0; text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.40);
}
/* title + rule sit in the clear teal band ABOVE the blocks */
.cover-titleblock {
  position: absolute; top: 21%; left: var(--space-5); right: var(--space-5);
  transform: translateY(-50%);
  text-align: center;
}
.cover .cover-title {
  font-family: var(--font-serif);
  font-weight: var(--weight-bold);
  font-size: clamp(1.7rem, 2.9vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--paper);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
/* subtitle sits in the empty band BETWEEN the blocks and the house */
.cover .cover-sub {
  position: absolute; top: 54%; left: var(--space-5); right: var(--space-5);
  transform: translateY(-50%);
  margin: 0; text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-xs);
  line-height: 1.3;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* ---- "Inside" trio -------------------------------------- */
.inside {
  background: var(--surface-page);
  padding: var(--space-8) var(--space-8) var(--space-7);
}
.inside-inner {
  max-width: var(--width-content);
  margin: 0 auto;
}
.inside > .inside-inner > .eyebrow { margin-bottom: var(--space-7); color: var(--teal-600); }
.inside-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-9);
}
.inside-item h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  color: var(--text-strong);
}
.inside-item p {
  margin: 0;
  font-size: var(--text-base);
  color: var(--ink-700);
  line-height: var(--leading-relaxed);
}

/* ---- What's inside (map preview) ------------------------ */
.preview {
  background: var(--surface-page);
  padding: var(--space-8) var(--space-8) var(--space-7);
  text-align: center;
}
.preview-inner { max-width: var(--width-content); margin: 0 auto; }
.preview .eyebrow { margin-bottom: var(--space-7); }
.map-teaser {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 300px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: var(--space-4) var(--space-4) 0;
}
.map-teaser img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
/* gradient fade that dissolves the map into the page background */
.map-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-6);
  background: linear-gradient(
    to bottom,
    rgba(247, 245, 241, 0) 0%,
    rgba(247, 245, 241, 0.70) 48%,
    var(--surface-page) 90%
  );
}

/* ---- Go Deeper (paid teasers) --------------------------- */
.deeper {
  background: var(--surface-sunken);
  padding: var(--space-8) var(--space-8) var(--space-7);
  border-top: 1px solid var(--border-subtle);
}
.deeper-inner { max-width: var(--width-content); margin: 0 auto; }
.deeper > .deeper-inner > .eyebrow { margin-bottom: var(--space-7); }
.eyebrow-teal { color: var(--teal-600); }

.deeper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.deeper-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}
.deeper-card h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
  color: var(--teal-700);
}
.deeper-desc {
  margin: 0 0 var(--space-6);
  font-size: var(--text-base);
  color: var(--ink-700);
  line-height: var(--leading-relaxed);
}
.deeper-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}
.price {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.btn-buy {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.005em;
  color: var(--action-text);
  background: var(--action);
  border: 1.5px solid var(--action);
  border-radius: var(--radius-button);
  padding: 10px 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-color), transform var(--duration-fast) var(--ease-calm);
}
.btn-buy:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-buy:active { transform: scale(var(--press-scale)); }

/* ---- Footer --------------------------------------------- */
.site-footer {
  background: var(--brown-500);
  padding: var(--space-5) var(--space-8);
  text-align: center;
}
.site-footer p {
  margin: 0;
  color: var(--white);
  font-size: var(--text-sm);
  opacity: 0.95;
}

/* ---- Responsive ----------------------------------------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-9); }
  .cover-stage { order: -1; }
  .cover { transform: rotate(-1.5deg); }
  .inside-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .deeper-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media (max-width: 560px) {
  .site-header { padding: var(--space-4) var(--space-5); }
  .header-note { display: none; }
  .hero { padding: var(--space-8) var(--space-5) var(--space-7); }
  .inside { padding: var(--space-8) var(--space-5) var(--space-7); }
  .preview { padding: var(--space-8) var(--space-5) var(--space-7); }
  .deeper { padding: var(--space-8) var(--space-5) var(--space-7); }
  .form-row { flex-direction: column; }
  .btn { width: 100%; }
}
