/* Ridgify website. Tokens follow the brand kit (brand/BRANDKIT.md in the ridgify repo). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --ink: #0F1D1A; --ridge: #1C5B4B; --ridge-deep: #154436; --paper: #F5F2EA; --mist: #DCE8E1;
  --line: #D9D5C8; --stone: #5A665F; --thermal: #F4A52E; --thermal-text: #8F5200; --sky: #296C99; --signal: #C23B2B;
  --card: #FFFEFA;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px; --gutter: clamp(20px, 5vw, 40px); --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--ridge); text-underline-offset: 3px; }
a:hover { color: var(--ridge-deep); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--thermal); }
h1, h2, h3 { font-family: var(--display); font-weight: 750; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.eyebrow { font: 700 0.78rem/1.5 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin: 0 0 18px; }
.on-dark .eyebrow { color: #B9CFC5; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; max-width: 36em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: 700 1rem/1 var(--text); text-decoration: none; border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--ridge); color: var(--paper); }
.btn-primary:hover { background: var(--ridge-deep); color: var(--paper); }
.btn-thermal { background: var(--thermal); color: var(--ink); }
.btn-thermal:hover { background: #FFB84A; color: var(--ink); }
.btn-ghost { border-color: currentColor; color: inherit; }
.on-dark .btn-ghost { color: var(--paper); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--paper); }
.btn-ghost:hover { background: rgba(15,29,26,.06); color: var(--ink); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.site-header img { display: block; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.site-nav a:not(.btn):hover { background: var(--mist); }
.site-nav .btn { min-height: 44px; padding: 10px 18px; margin-left: 8px; }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #1F6652 0%, var(--ridge-deep) 100%); color: var(--paper); }
.hero .ridges { position: absolute; inset: auto 0 0 0; width: 100%; height: 46%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); }
.hero h1 { color: var(--paper); }
.hero .lead { margin-top: 22px; color: #E3EDE8; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { margin-top: 20px; font-size: 0.95rem; color: #B9CFC5; max-width: 34em; }
.hero-art { position: relative; min-height: 520px; }
.hero-art .phone { position: absolute; left: 6%; top: 0; width: min(56%, 300px); filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.hero-art .watch { position: absolute; width: min(46%, 230px); border-radius: 26%; box-shadow: 0 0 0 5px #0F1D1A, 0 24px 40px rgba(0,0,0,.4); }
.hero-art .watch-a { right: 0; top: 54px; }
.hero-art .watch-b { right: 12%; top: 300px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 440px; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 460px) { .hero-art { min-height: 400px; } .hero-art .watch-b { top: 240px; } }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 5vw, 52px); }
.section-head p { color: var(--stone); font-size: 1.15rem; margin-top: 16px; }

/* Timeline */
.timeline { margin-top: 8px; }
.timeline-bar { display: flex; gap: 4px; height: 56px; }
.timeline-bar span { display: block; border-radius: 10px; }
.timeline-bar .trail { background: var(--ridge); }
.timeline-bar .flight { background: var(--thermal); }
.timeline-bar .ride { background: #9AA79F; }
.timeline-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.timeline-legend div { font-size: 0.95rem; color: var(--stone); }
.timeline-legend strong { display: block; font: 750 1.15rem/1.2 var(--display); color: var(--ink); }
.timeline-legend .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.timeline-foot { margin-top: 22px; font-size: 0.95rem; color: var(--stone); }
@media (max-width: 640px) { .timeline-legend { grid-template-columns: 1fr 1fr; } }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ridge); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--stone); font-size: 1rem; line-height: 1.55; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Watch gallery */
.band { background: var(--mist); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; max-width: 250px; margin-inline: auto; border-radius: 26%; box-shadow: 0 0 0 5px var(--ink), 0 18px 30px rgba(15,29,26,.2); }
.gallery figcaption { margin-top: 22px; text-align: center; font-size: 0.98rem; color: var(--stone); }
.gallery figcaption strong { display: block; font: 750 1.15rem/1.2 var(--display); color: var(--ink); margin-bottom: 4px; }
.fine { font-size: 0.9rem; color: var(--stone); margin-top: 28px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }

/* Phone */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split img { display: block; margin-inline: auto; border-radius: 26px; box-shadow: 0 20px 40px rgba(15,29,26,.18); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--thermal); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split img { max-width: 420px; } }

/* Limits band */
.dark { background: var(--ink); color: var(--paper); }
.dark h2 { color: var(--paper); }
.dark .section-head p { color: #B9CFC5; }
.limits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.limits article { border: 1px solid #2B3D38; border-radius: var(--radius); padding: 26px; }
.limits h3 { color: var(--paper); margin-bottom: 8px; }
.limits p { margin: 0; color: #C9D8D1; font-size: 1rem; line-height: 1.55; }
.limits .badge { display: inline-block; margin-bottom: 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--thermal); }
@media (max-width: 720px) { .limits { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 46rem; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; font: 700 1.1rem/1.4 var(--text); padding: 16px 36px 16px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 1.6rem/1 var(--text); color: var(--ridge); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--stone); padding-right: 36px; }

/* CTA */
.cta { background: var(--ridge); color: var(--paper); text-align: center; }
.cta h2 { color: var(--paper); }
.cta p { color: #DDEAE4; max-width: 34em; margin: 16px auto 28px; font-size: 1.15rem; }

/* Footer */
.site-footer { background: var(--ridge-deep); color: #C9DAD2; font-size: 0.95rem; }
.site-footer .wrap { padding-block: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.site-footer a { color: var(--paper); }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #2A5A4B; padding-top: 22px; font-size: 0.85rem; color: #A5BDB3; }
.site-footer p { margin: 14px 0 0; max-width: 30em; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Text pages */
.page { padding-block: clamp(40px, 7vw, 88px); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.page h2 { font-size: 1.6rem; margin: 2.2em 0 0.5em; }
.page h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.page .meta { color: var(--stone); font-size: .95rem; margin-bottom: 28px; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .5em; }
.callout { background: var(--mist); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.legend { list-style: none; padding: 0; }
.legend li { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legend svg { flex: none; width: 44px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legend svg .solid { fill: var(--ink); stroke: none; }

/* Brand page */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 18px 0; }
.swatch { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); font-size: .85rem; }
.swatch i { display: block; height: 64px; }
.swatch b, .swatch span { display: block; padding: 0 10px; }
.swatch b { padding-top: 8px; }
.swatch span { padding-bottom: 8px; color: var(--stone); }
.logo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.logo-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; place-items: center; min-height: 150px; background: var(--card); }
.logo-tile.dark-tile { background: var(--ridge); border-color: var(--ridge); }
.logo-tile img { max-width: 100%; height: auto; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .hero-art { display: none; } }

/* Timeline segment sizes, in minutes of the example outing (no inline styles: the site CSP forbids them) */
.timeline-bar .m100 { flex: 100 1 0; } .timeline-bar .m34 { flex: 34 1 0; } .timeline-bar .m12 { flex: 12 1 0; } .timeline-bar .m14 { flex: 14 1 0; }
.timeline-legend .k-trail { color: var(--ridge); } .timeline-legend .k-flight { color: var(--thermal-text); } .timeline-legend .k-ride { color: var(--stone); }

/* Brand swatches */
.sw-ink { background: #0F1D1A; }
.sw-ridge { background: #1C5B4B; }
.sw-deep { background: #154436; }
.sw-paper { background: #F5F2EA; }
.sw-mist { background: #DCE8E1; }
.sw-thermal { background: #F4A52E; }
.sw-sky { background: #296C99; }
.sw-signal { background: #C23B2B; }
.sw-paper { box-shadow: inset 0 0 0 1px var(--line); }
