/**
 * Site-wide styles for addonclimbing.com.
 *
 * Palette is taken from the logo and the printed posters so the site, the
 * posters, and the app icon read as one brand.
 *
 * The .choices/.redirecting rules near the bottom are toggled at runtime by the
 * inline script in get/index.html. Renaming them breaks the QR redirect.
 */

:root {
  --paper: #faf7f1;
  --surface: #ffffff;
  --ink: #2a2620;
  --ink-soft: #6b6257;
  --accent: #21a83a;
  --accent-dark: #1a8630;
  --warm: #c96a20;
  --warm-light: #f8b26a;
  --line: #e8dfd0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(42, 38, 32, 0.08), 0 6px 20px rgba(42, 38, 32, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-dark);
}

a:hover {
  text-decoration: underline;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Long-form pages: legal documents, stubs. */
.doc {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.doc h1 {
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.doc h2 {
  margin-top: 32px;
}

.doc ul {
  margin-top: 10px;
}

.doc .brand {
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

/* ---------- Brand lockup ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 22.37%;
  box-shadow: var(--shadow);
}

.brand h1 {
  margin: 0;
  font-size: 1.75em;
  border-bottom: none;
  padding-bottom: 0;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, #2a2620 0%, #3b332a 55%, #4a3a28 100%);
  color: #f5efe4;
  padding: 28px 0 56px;
  text-align: center;
}

.hero .brand {
  justify-content: center;
  margin-bottom: 36px;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Placeholder band standing in for the marketing banner. Swap the background
   for the real artwork when it lands; the sizing here is what it will occupy. */
.banner-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1526 / 381;
}

/* Sits over the dark-brown panel to the right of the diagonal logo artwork. */
.banner-wordmark {
  position: absolute;
  left: 44%;
  right: 4%;
  top: 50%;
  transform: translateY(-50%) translateX(1.5ch);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 8.5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  user-select: none;
}

.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.1rem);
  margin: 0 0 16px;
  max-width: 16ch;
  margin-inline: auto;
}

.hero .lede {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: #d9cfbe;
  max-width: 46ch;
  margin: 0 auto 8px;
}

.hero .fine {
  color: #a89c8a;
  font-size: 0.95rem;
  margin-top: 20px;
}

/* ---------- Buttons ---------- */

.cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: #f5efe4;
  border: 1.5px solid rgba(245, 239, 228, 0.4);
}

.btn-secondary:hover {
  border-color: #f5efe4;
}

/* ---------- Value strip ---------- */

.strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.strip ul {
  list-style: none;
  margin: 0;
  padding: 22px 20px;
  display: flex;
  gap: 12px 40px;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Flex keeps wrapped lines aligned with the text rather than the checkmark. */
.strip li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.strip li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* Centred wrapping leaves ragged checkmarks once an item breaks across lines. */
@media (max-width: 620px) {
  .strip ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- Feature sections ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.feature .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--warm);
  margin: 0 0 10px;
}

.feature h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 14px;
}

.feature p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 14px;
  max-width: 52ch;
}

.feature ul {
  color: var(--ink-soft);
  padding-left: 20px;
  max-width: 52ch;
}

.shots {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Dark frame insulates the app's blue UI from the warm page palette. */
.phone {
  width: 100%;
  max-width: 260px;
  border: 9px solid #221f1a;
  border-radius: 32px;
  box-shadow: var(--shadow);
  display: block;
  background: #221f1a;
}

@media (min-width: 800px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 88px 0;
  }

  .feature.flip .copy {
    order: 2;
  }

  .feature.flip .shots {
    order: 1;
  }
}

/* ---------- Link lists ---------- */

.links {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.links li {
  margin: 12px 0;
}

.links a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: bold;
}

.links a:hover {
  text-decoration: underline;
}

.links span {
  display: block;
  color: var(--ink-soft);
  font-weight: normal;
  font-size: 0.95em;
}

/* ---------- Panels ---------- */

.panel {
  padding: 64px 0;
  text-align: center;
}

.panel h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 12px;
}

.panel p {
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 auto 24px;
}

.email {
  font-weight: bold;
  color: var(--accent-dark);
}

/* ---------- Footer ---------- */

footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9em;
  color: var(--ink-soft);
}

footer nav a {
  color: var(--accent-dark);
  text-decoration: none;
}

footer nav a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 0;
  background: #2a2620;
  color: #b9ad9c;
  border-top: none;
  padding: 44px 0;
  text-align: center;
}

.site-footer nav {
  margin-bottom: 14px;
}

.site-footer a {
  color: #f5efe4;
}

.site-footer nav a {
  margin: 0 6px;
}

.site-footer p {
  margin: 6px 0;
}

/* ---------- Terms page ---------- */

.dates {
  color: var(--ink-soft);
}

.legal {
  background: #f4efe6;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
}

/* ---------- /get redirect page ---------- */
/* Toggled by the inline script in get/index.html. Do not rename. */

.redirecting {
  display: none;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 40px;
}

.redirecting.active {
  display: block;
}

.choices.hidden {
  display: none;
}

.choices p {
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
