/* Santa Catarina guide funnel.
   Same Apple tokens and system font as the home page. Standalone: no blog or tours nav. */

:root {
  --apple-dark: #1d1d1f;
  --apple-mid: #3a3a3c;
  --apple-light: #f5f5f7;
  --apple-white: #ffffff;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-gray: #6e6e73;
  --apple-border: rgba(0, 0, 0, 0.08);
  --nav-height: 48px;
  --page: 1120px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--apple-dark);
  background: var(--apple-white);
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--apple-blue);
}

a:hover {
  color: var(--apple-blue-hover);
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

/* The head script sets data-lang before first paint. English is the fallback. */
html[data-lang="es"] .lang-en,
html[data-lang="es"] .lang-pt,
html[data-lang="en"] .lang-es,
html[data-lang="en"] .lang-pt,
html[data-lang="pt"] .lang-es,
html[data-lang="pt"] .lang-en,
html:not([data-lang]) .lang-es,
html:not([data-lang]) .lang-pt {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 1100;
  padding: 8px 14px;
  border-radius: 980px;
  background: var(--apple-white);
  color: var(--apple-dark);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 16px 0 20px;
  background: rgba(22, 22, 23, 0.72);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-brand {
  color: #f5f5f7;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-brand:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.14);
}

.lang-switch button {
  appearance: none;
  min-width: 32px;
  min-height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: rgba(245, 245, 247, 0.82);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: #f5f5f7;
  color: var(--apple-dark);
}

.lang-switch button:focus-visible,
.nav-cta:focus-visible,
.btn:focus-visible,
.sample-zoom:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 3px;
}

.nav-cta {
  display: none;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 980px;
  background: var(--apple-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--apple-blue-hover);
  color: #fff;
}

#inside,
#samples,
#about,
#lead,
#faq {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.hero {
  padding: calc(var(--nav-height) + 28px) 20px 72px;
  background:
    radial-gradient(900px 420px at 80% 20%, rgba(0, 113, 227, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 70%);
}

.hero-grid,
.wrap {
  width: min(100%, var(--page));
  margin-inline: auto;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.kicker {
  margin: 0 0 10px;
  color: var(--apple-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lede {
  margin-bottom: 18px;
  color: var(--apple-mid);
  font-size: 1.05rem;
  line-height: 1.45;
}

.bullets {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 28px;
  color: var(--apple-dark);
  font-size: 16px;
  line-height: 1.4;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--apple-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.4 11 12.5 5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  background: var(--apple-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--apple-blue-hover);
  color: #fff;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.btn-block {
  width: 100%;
  min-height: 52px;
}

.fine {
  margin: 12px 0 0;
  color: var(--apple-gray);
  font-size: 14px;
}

.book {
  width: min(72vw, 340px);
  margin-inline: auto;
}

.book-page {
  position: relative;
  border-radius: 3px 14px 14px 3px;
  overflow: hidden;
  background: #d2d2d7;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.35) inset;
  transform: perspective(1000px) rotateY(-8deg) rotateX(1deg);
  transform-origin: center center;
}

.book-page::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.18) 45%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.book-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1600 / 2263;
  object-fit: cover;
  background: #e8e8ed;
}

.section {
  padding: 64px 20px;
}

.section-muted {
  background: var(--apple-light);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head h2,
.block h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.section-head p,
.prose p {
  color: var(--apple-mid);
  font-size: 17px;
  line-height: 1.5;
}

.route-grid,
.chapter-grid,
.sample-grid {
  display: grid;
  gap: 14px;
}

.route-grid {
  margin-bottom: 14px;
}

.card,
.prose,
.form-card,
.faq details {
  border: 1px solid var(--apple-border);
  border-radius: 18px;
  background: var(--apple-white);
}

.card {
  padding: 20px 18px 16px;
  text-align: left;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card p,
.card li {
  color: var(--apple-mid);
  font-size: 15px;
  line-height: 1.45;
}

.card ol {
  margin: 8px 0 0;
  padding-left: 1.15em;
}

.card li + li {
  margin-top: 3px;
}

.sample-grid figure {
  margin: 0;
}

.sample-zoom {
  display: block;
  overflow: hidden;
  border: 1px solid var(--apple-border);
  border-radius: 16px;
  background: var(--apple-white);
  box-shadow: var(--shadow);
}

.sample-zoom img {
  display: block;
  width: 100%;
  aspect-ratio: 1600 / 2263;
  object-fit: cover;
  background: #f5f5f7;
}

.sample-grid figcaption {
  margin-top: 10px;
  color: var(--apple-gray);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 20px;
  text-align: left;
}

.prose p:last-child {
  margin-bottom: 0;
}

.callout {
  max-width: 760px;
  margin: 14px auto 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.callout p {
  margin: 0;
  color: var(--apple-mid);
  font-size: 15px;
}

.form-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 22px 16px 18px;
  box-shadow: var(--shadow);
}

.form-card h2,
.thanks h2 {
  margin-bottom: 8px;
  text-align: center;
}

.form-card .kicker,
.form-card .fine,
.privacy-note {
  text-align: center;
}

.fields {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

.field .opt {
  color: var(--apple-gray);
  font-weight: 400;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--apple-dark);
  font-size: 16px;
  font-weight: 400;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(0, 113, 227, 0.45);
  border-color: var(--apple-blue);
}

.checks {
  display: grid;
  gap: 12px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--apple-dark);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--apple-blue);
  flex: none;
}

.form-error {
  margin: 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.thanks {
  text-align: center;
}

.thanks h2 {
  margin-bottom: 8px;
}

.thanks .btn {
  margin-top: 8px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.faq {
  width: min(100%, 760px);
  margin: 0 auto;
}

.faq details + details {
  margin-top: 10px;
}

.faq details {
  padding: 0 16px;
  text-align: left;
}

.faq summary {
  padding: 16px 28px 16px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  margin-right: -24px;
  color: var(--apple-gray);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 16px;
  color: var(--apple-mid);
  font-size: 15px;
  line-height: 1.5;
}

.privacy-note {
  width: min(100%, 760px);
  margin: 18px auto 0;
  color: var(--apple-gray);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 20px 40px;
  color: var(--apple-gray);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.site-footer a {
  color: var(--apple-dark);
  font-weight: 600;
  text-decoration: none;
}

.legal {
  padding: calc(var(--nav-height) + 36px) 20px 64px;
}

.legal .prose h1 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
  color: var(--apple-mid);
}

.legal li + li {
  margin-top: 6px;
}

@media (min-width: 720px) {
  .navbar {
    padding-inline: 22px;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 80px;
  }

  .section {
    padding: 88px 24px;
  }

  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .form-card {
    padding: 32px 28px 24px;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: min(100%, var(--page));
    margin-inline: auto;
    text-align: left;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.8fr);
    gap: 48px;
  }

  .book {
    width: min(100%, 380px);
  }

  .book-page {
    transform: perspective(1200px) rotateY(-16deg) rotateX(3deg);
  }

  .route-grid,
  .chapter-grid,
  .sample-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .book-page {
    transform: none;
  }
}
