@import url("../transitions.css");

:root {
  color-scheme: dark;
  --accent: #ff5a1f;
  --accent-soft: #ff9460;
  --canvas: #12100f;
  --surface: #1f1b19;
  --surface-raised: #292320;
  --ink: #fff8f1;
  --muted: #b9aea7;
  --line: rgba(255, 255, 255, 0.13);
  --display: "Manrope", sans-serif;
}

body.beershelf {
  --accent: #d89a33;
  --accent-soft: #f0c56e;
  --canvas: #140e08;
  --surface: #21170f;
  --surface-raised: #302116;
  --ink: #f5e9d2;
  --muted: #bca98c;
  --line: rgba(216, 154, 51, 0.25);
  --display: "Lora", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header,
.site-footer,
.hero,
.statement,
.feature-grid,
.screens,
.document-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
}

.wordmark {
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.wordmark img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.motivator .wordmark img { view-transition-name: motivator-icon; }
body.beershelf .wordmark img { view-transition-name: beershelf-icon; }

.site-header nav { gap: 26px; font-size: 12px; font-weight: 700; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--ink); }
.nav-portfolio { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; }

.hero {
  display: grid;
  min-height: 750px;
  align-items: center;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 60px;
  padding: 90px 0 110px;
}

.hero-copy > * { animation: motion-rise var(--motion-slow) var(--motion-enter) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 200ms; }
.hero-copy > :nth-child(5) { animation-delay: 260ms; }
.hero-stage { animation: motion-rise 700ms var(--motion-enter) 140ms backwards; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; font-family: var(--display); letter-spacing: -0.055em; }
.hero h1 { margin-bottom: 0; font-size: clamp(64px, 9vw, 124px); line-height: 0.84; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lede { max-width: 560px; margin: 32px 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.status-button,
.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 19px;
  border-radius: 12px;
  background: var(--accent);
  color: #160f0b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.text-link { color: var(--muted); font-size: 12px; font-weight: 700; text-underline-offset: 5px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 20px; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: 11px; font-weight: 700; list-style: none; }
.trust-list li::before { margin-right: 7px; color: var(--accent); content: "•"; }

.hero-stage { position: relative; display: grid; min-height: 590px; place-items: center; }
.hero-stage::before { position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, transparent); content: ""; filter: blur(70px); }
.app-icon-hero { position: relative; z-index: 2; width: min(310px, 60vw); height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 25%; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45); transform: rotate(-6deg); }
.metric-chip { position: absolute; z-index: 3; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 16, 14, 0.82); box-shadow: 0 18px 45px rgba(0,0,0,.3); backdrop-filter: blur(18px); }
.metric-chip strong { display: block; font-family: var(--display); font-size: 24px; }
.metric-chip span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.metric-one { top: 15%; right: 1%; }
.metric-two { bottom: 15%; left: 2%; }

.statement { padding: 110px 0; border-top: 1px solid var(--line); }
.statement p:last-child { max-width: 1000px; margin: 0; font-family: var(--display); font-size: clamp(38px, 6vw, 70px); font-weight: 700; letter-spacing: -.05em; line-height: 1.06; }

.feature-grid { display: grid; padding: 110px 0; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.section-heading { grid-column: 1 / -1; padding-bottom: 45px; }
.section-heading h2, .screens h2 { margin-bottom: 0; font-size: clamp(48px, 7vw, 82px); line-height: .96; }
.feature-card { display: flex; min-height: 330px; justify-content: space-between; flex-direction: column; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: border-color var(--motion-base) ease, transform var(--motion-base) var(--motion-spring); }
.feature-card:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); transform: translateY(-3px); }
.feature-card-large { min-height: 500px; grid-row: span 2; }
.feature-number { color: var(--accent-soft); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.feature-card h3 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 42px); }
.feature-card p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.65; }
.feature-card-accent { background: var(--accent); color: #160f0b; }
.feature-card-accent .feature-number,
.feature-card-accent p { color: rgba(22, 15, 11, .72); }
.feature-card a { display: inline-block; margin-top: 22px; font-size: 12px; font-weight: 800; text-underline-offset: 5px; }
.feature-visual { display: grid; min-height: 230px; place-items: center; }
.route-line { position: relative; width: 80%; height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); }
.route-line::before { position: absolute; width: 64%; height: 100%; border-radius: inherit; background: var(--accent); content: ""; box-shadow: 0 0 25px var(--accent); }
.route-line::after { position: absolute; top: 50%; left: 64%; width: 24px; height: 24px; border: 5px solid var(--surface); border-radius: 50%; background: var(--accent); content: ""; transform: translate(-50%, -50%); }
.shelf-preview { position: relative; width: min(100%, 470px); height: 270px; overflow: hidden; border: 1px solid rgba(216, 154, 51, .36); border-radius: 22px; background: radial-gradient(circle at 24% 30%, rgba(216, 154, 51, .16), transparent 42%), #100b07; box-shadow: 0 24px 55px rgba(0, 0, 0, .32); }
.shelf-preview::after { position: absolute; right: 0; bottom: 0; left: 0; height: 36%; background: linear-gradient(transparent, rgba(16, 11, 7, .72)); content: ""; pointer-events: none; }
.shelf-preview > img { position: absolute; top: 20px; left: 24px; width: 185px; max-width: none; height: auto; border: 1px solid rgba(245, 233, 210, .12); border-radius: 22px 22px 0 0; box-shadow: 0 20px 42px rgba(0, 0, 0, .46); transform: rotate(-2deg); }
.shelf-preview-summary { position: absolute; z-index: 1; top: 68px; right: 24px; display: grid; width: min(46%, 190px); gap: 8px; padding: 18px; border: 1px solid rgba(216, 154, 51, .28); border-radius: 16px; background: rgba(33, 23, 15, .88); box-shadow: 0 16px 34px rgba(0, 0, 0, .28); backdrop-filter: blur(16px); }
.shelf-preview-summary span { color: var(--accent-soft); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.shelf-preview-summary strong { font-family: var(--display); font-size: 18px; line-height: 1.15; }
.shelf-preview-summary small { color: var(--muted); font-size: 10px; font-weight: 700; }
.coach-wave { position: relative; width: min(100%, 500px); padding: 26px; overflow: hidden; border: 1px solid rgba(255, 90, 31, .28); border-radius: 24px; background: linear-gradient(145deg, rgba(255, 90, 31, .12), rgba(255, 255, 255, .025)); box-shadow: 0 24px 60px rgba(0, 0, 0, .24); }
.coach-wave::before { position: absolute; top: -70%; left: 22%; width: 70%; height: 180%; border: 1px dashed rgba(255, 90, 31, .16); border-radius: 50%; content: ""; transform: rotate(-15deg); }
.coach-wave-cue { position: relative; z-index: 1; display: grid; align-items: center; grid-template-columns: auto 1fr; gap: 16px; }
.coach-wave-avatar { display: grid; width: 58px; height: 58px; place-items: center; border: 2px solid rgba(255, 148, 96, .72); border-radius: 50%; background: linear-gradient(145deg, #0a6872, #17333a); color: white; font-size: 22px; font-weight: 800; box-shadow: 0 0 28px rgba(255, 90, 31, .18); }
.coach-wave-cue small { display: block; margin-bottom: 6px; color: var(--accent-soft); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.coach-wave-cue strong { display: block; max-width: 310px; font-size: 15px; line-height: 1.45; }
.soundwave { position: relative; z-index: 1; display: flex; height: 64px; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; }
.soundwave span { width: 6px; height: 18px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 14px rgba(255, 90, 31, .36); animation: voice-pulse 1.1s ease-in-out infinite alternate; }
.soundwave span:nth-child(2n) { height: 36px; animation-delay: -700ms; }
.soundwave span:nth-child(3n) { height: 54px; background: var(--accent-soft); animation-delay: -350ms; }
.soundwave span:nth-child(4n) { height: 28px; animation-delay: -900ms; }
@keyframes voice-pulse { to { height: 12px; opacity: .48; } }

.screens { padding: 110px 0 130px; border-top: 1px solid var(--line); }
.screens-heading { display: grid; align-items: end; grid-template-columns: 1.4fr .6fr; gap: 40px; }
.screens-heading > p { color: var(--muted); line-height: 1.65; }
.screens-track { display: grid; margin-top: 55px; grid-template-columns: repeat(3, 1fr); gap: 22px 14px; }
.screen-card { margin: 0; transition: opacity var(--motion-base) ease, transform var(--motion-base) var(--motion-spring); }
.screen-card:hover { transform: translateY(-7px); }
.screens-track:has(.screen-card:hover) .screen-card:not(:hover) { opacity: .72; transform: scale(.985); }
.screen-card img { width: 100%; height: auto; aspect-ratio: 660 / 1428; object-fit: cover; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 28px 65px rgba(0, 0, 0, .28); }
.screen-card figcaption { padding: 14px 4px 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.site-footer { display: grid; align-items: center; grid-template-columns: 1fr auto auto; gap: 40px; padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer div { display: flex; flex-direction: column; gap: 4px; }
.site-footer strong { color: var(--ink); }
.site-footer nav { gap: 22px; }

.document-shell { max-width: 840px; padding: 90px 0 130px; }
.document-header { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.document-header h1 { margin-bottom: 24px; font-size: clamp(56px, 9vw, 98px); line-height: .9; }
.document-header > p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.document section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.document h2 { margin-bottom: 14px; font-size: clamp(27px, 4vw, 38px); }
.document p, .document li { color: var(--muted); line-height: 1.75; }
.document li + li { margin-top: 8px; }
.document a { color: var(--ink); }
.document details { padding: 19px 0; border-top: 1px solid var(--line); }
.document details:first-of-type { margin-top: 18px; }
.document summary { cursor: pointer; font-weight: 800; }
.document details p { margin-bottom: 0; }
.document .support-button { margin: 8px 0 14px; color: #160f0b; }
.document-header small { display: block; color: var(--muted); line-height: 1.6; }
.contact-card { padding: 34px !important; border: 1px solid var(--line) !important; border-radius: 20px; background: var(--surface); }

@media (max-width: 760px) {
  .site-header { min-height: 74px; }
  .site-header nav a:not(.nav-portfolio) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding: 72px 0 90px; }
  .hero-stage { min-height: 420px; }
  .app-icon-hero { width: 230px; }
  .metric-chip { padding: 12px 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-large { min-height: 430px; grid-row: auto; }
  .shelf-preview { height: 250px; }
  .shelf-preview > img { left: 16px; width: 165px; }
  .shelf-preview-summary { top: 62px; right: 16px; width: 46%; padding: 14px; }
  .screens-heading { grid-template-columns: 1fr; }
  .screens-track { overflow-x: auto; padding-bottom: 14px; grid-template-columns: repeat(3, minmax(240px, 75vw)); scroll-snap-type: x mandatory; }
  .screens-track-six { grid-template-columns: repeat(6, minmax(240px, 75vw)); }
  .screen-card { scroll-snap-align: start; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .soundwave span, .hero-copy > *, .hero-stage { animation: none; } .feature-card:hover, .screen-card:hover, .screens-track:has(.screen-card:hover) .screen-card:not(:hover) { transform: none; } }
