/* =========================================================
   Journey Outliner — Landing Page
   ========================================================= */

:root {
  --color-page-bg: #E0966B;
  --color-main-bg: #FFFFFF;
  --color-content-bg: #FAF5ED;
  --color-accent: #DB8757;
  --color-accent-soft: rgba(219, 135, 87, 0.78);
  --color-grid: #F2E8DD;
  --color-tooltip-bg: #3A2A1F;

  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-main: 36px;
  --radius-content: 28px;

  --max-width: 1240px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-page-bg);
  color: var(--color-accent);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Layout ---------- */
.page {
  min-height: 100vh;
  padding: 28px;
  display: flex;
  justify-content: center;
}

.main-card {
  background-color: var(--color-main-bg);
  border-radius: var(--radius-main);
  width: 100%;
  max-width: var(--max-width);
  padding: 10px 10px 0 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-card {
  background-color: var(--color-content-bg);
  background-image:
    linear-gradient(to right, var(--color-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-grid) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -20px -40px;
  border-radius: var(--radius-content);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  min-height: 110px;
  margin: 25px 40px;
  margin-top: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--color-accent);
}

.brand-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-width: 0;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  flex-shrink: 0;
  user-select: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: 0.2px;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-accent);
  line-height: 1.4;
  opacity: 0.92;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 64px 0px;
  flex: 1;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 50px);
  color: var(--color-accent);
  line-height: 1.12;
  letter-spacing: -0.5px;
  max-width: 920px;
  margin-bottom: 20px;
}

.hero-description {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--color-accent);
  line-height: 1.3;
  max-width: 620px;
  margin-bottom: 38px;
}

/* ---------- CTA ---------- */
.cta-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 48px;
  cursor: not-allowed;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
  padding: 8px 28px;
  border-radius: 999px;
  cursor: not-allowed;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(219, 135, 87, 0.18);
  user-select: none;
}

.cta-button:hover {
  opacity: 0.62;
}

.cta-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ---------- Tooltip ---------- */
.tooltip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translate(-50%, 4px);
  background-color: var(--color-tooltip-bg);
  color: #FFFFFF;
  padding: 7px 13px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-tooltip-bg);
}

.cta-wrapper:hover .tooltip,
.cta-button:focus-visible ~ .tooltip {
  opacity: 1;
  transform: translate(-50%, -4px);
}

/* ---------- Hero Image ---------- */
.hero-image {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(92, 61, 46, 0.10));
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px 40px 26px;
  text-align: center;
  font-family: var(--font-sans);
  color: var(--color-accent);
}

.footer-copyright {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.footer-links {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 300;
}

.footer-links a {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(219, 135, 87, 0.35);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.75;
  border-bottom-color: rgba(219, 135, 87, 0.7);
}

.footer-separator {
  margin: 0 10px;
  opacity: 0.55;
}

/* ---------- Legal Page ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 4px 64px 56px;
  color: var(--color-accent);
  font-family: var(--font-sans);
}

.legal-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin-bottom: 32px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.legal-section p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 10px;
}

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

.legal a {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(219, 135, 87, 0.35);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.legal a:hover {
  opacity: 0.75;
  border-bottom-color: rgba(219, 135, 87, 0.7);
}

.legal-back {
  margin-top: 40px;
  font-size: 14px;
  font-weight: 400;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .page {
    padding: 16px;
  }

  .main-card {
    border-radius: 28px;
    padding: 8px 8px 0 8px;
  }

  .content-card {
    border-radius: 22px;
    background-size: 56px 56px;
  }

  .site-header {
    margin: 22px 24px;
    min-height: auto;
  }

  .brand {
    gap: 14px;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-tagline {
    font-size: 10px;
  }

  .hero {
    padding: 16px 24px 48px;
  }

  .hero-description {
    font-size: 14.5px;
  }

  .cta-wrapper {
    margin-bottom: 36px;
  }

  .hero-image {
    max-width: 100%;
  }

  .site-footer {
    padding: 20px 24px 22px;
  }

  .footer-links {
    line-height: 1.8;
  }

  .legal {
    padding: 0 24px 40px;
  }
}

@media (max-width: 540px) {
  .page {
    padding: 10px;
  }

  .logo {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 24px;
  }

  .hero-title {
    letter-spacing: -0.3px;
  }

  .footer-separator {
    display: none;
  }

  .footer-links a {
    display: inline-block;
    margin: 0 6px;
  }

  .legal {
    padding: 0 16px 32px;
  }

  .legal-section h2 {
    font-size: 17px;
  }

  .legal-section p {
    font-size: 14.5px;
  }
}
