/* The Imara landing page, served at / by nginx (platform: apps/imara/base/nginx.conf). Static, so the signed-out
   front door doesn't load the app bundle. Tokens are the app's "chalk and iron" palette (CLAUDE.md, src/css/app.scss). */

@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #131416;
  --surface: #1e2024;
  --surface-2: #282b30;
  --border: #34373d;
  --text: #f3f0ea;
  --muted: #a9a59c;
  --accent: #ff7a2f;
  --info: #7fb2ff;
  --teal: #3fcfb4;
  --gold: #f2c14e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; }
h3 { margin: 0; font-size: 1.3125rem; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: #ff9a5c; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 104px; }
.eyebrow { margin-bottom: 14px; font-size: 0.9375rem; font-weight: 600; color: var(--gold); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--accent); color: var(--bg); border-radius: 10px; }
.skip:focus { top: 12px; color: var(--bg); }

.top { position: sticky; top: 0; z-index: 20; background: rgb(19 20 22 / 0.88); backdrop-filter: blur(12px); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 1.875rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--accent); }
.menu { display: none; position: relative; }
.menu summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; border-radius: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 52px; min-width: 210px; padding: 8px; display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.45); }
.menu nav a { padding: 12px; color: var(--text); text-decoration: none; border-radius: 10px; }
.menu nav a:hover { background: var(--surface-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 44px; padding: 0 20px; }
.btn-line, .btn-line:hover { border: 1.5px solid var(--border); color: var(--text); }
.btn-orange, .btn-orange:hover { background: var(--accent); color: var(--bg); }
.btn-gold, .btn-gold:hover { flex: none; background: var(--gold); color: var(--bg); }
.text-link { display: inline-block; margin-top: 18px; font-weight: 600; }

.hero { padding-block: 56px 104px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 0.92; letter-spacing: 0.005em; }
h1 span, h1 em { display: block; }
h1 em { font-style: normal; color: var(--accent); }
.lead { max-width: 32em; margin-top: 26px; font-size: 1.25rem; color: var(--muted); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stores.center { justify-content: center; margin-top: 8px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 16px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--border); color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.15; }
.store small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
a.store { background: var(--accent); border-color: var(--accent); color: var(--bg); }
a.store small { color: #3a2010; }

.phone { flex: 1 1 380px; min-width: 0; max-width: 410px; margin-inline: auto; padding: 22px; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: 0 40px 90px rgb(255 122 47 / 0.09); }
.phone-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.title { font: 700 1.75rem/1.1 var(--display); text-transform: uppercase; }
.chip { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.8125rem; }
.progress { display: grid; gap: 6px; }
.progress-row { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); }
.bar i { display: block; width: 50%; height: 8px; border-radius: 999px; background: var(--accent); }
.swap { padding: 16px; display: grid; gap: 10px; border-radius: 18px; background: var(--surface-2); }
.swap small { color: var(--muted); font-size: 0.875rem; }
.swap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.swap-head b { font-weight: 600; }
.swap-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.use { padding: 6px 14px; border-radius: 10px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 0.875rem; }
.rest { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
.rest strong { font: 700 1.625rem/1 var(--display); color: var(--text); }
.next { margin-left: auto; padding: 6px 12px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; border: 1px solid var(--border); font-size: 0.9375rem; }
.note svg { flex: none; margin-top: 3px; }
.note b { display: block; font-weight: 600; }
.note small { color: var(--muted); font-size: 0.9375rem; }
.best { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #10332e; color: var(--teal); font-size: 0.9375rem; font-weight: 600; }

.surface { background: var(--surface); }
.surface h2 { margin-bottom: 44px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.tile { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--accent); }
.tile p { color: var(--muted); }

.beyond { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 64px; align-items: start; padding-bottom: 40px; }
.beyond > div p:last-child { max-width: 30em; margin-top: 16px; color: var(--muted); }
.beyond ul { list-style: none; margin: 0; padding: 0; display: grid; }
.beyond li { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--border); }
.beyond li:last-child { border-bottom: 1px solid var(--border); }
.beyond li b { font-weight: 600; }
.beyond li span { color: var(--muted); }

.coaches { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.coach-copy { flex: 999 1 480px; min-width: 0; }
.coach-copy > p:not(.eyebrow) { max-width: 34em; margin-top: 16px; color: var(--muted); }
.ticks { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.panel { flex: 1 1 380px; min-width: 0; padding: 22px; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel-head b { font-weight: 600; }
.panel-head small { color: var(--muted); font-size: 0.875rem; }
.client { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.client b { font-size: 0.875rem; font-weight: 600; }
.c-red { color: #ff8a8e; }
.c-teal { color: var(--teal); }
.c-blue { color: var(--info); }

.band { background: #0e6b60; }
.band-row { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: space-between; padding-block: 80px; }
.band-row > div { flex: 999 1 480px; min-width: 0; }
.band h2 { color: #f6f1e7; }
.band p { max-width: 34em; margin-top: 12px; color: #e3f4f0; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; padding-top: 80px; }
.trust h3 { font-size: 1.0625rem; }
.trust p { margin-top: 4px; color: var(--muted); }

.get { display: grid; justify-items: center; gap: 22px; text-align: center; padding-top: 72px; }
.get img { border-radius: 22px; }

.end { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9375rem; }
.end-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-block: 32px 44px; }
.end nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile, .beyond li { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 40%; }
    @keyframes rise { from { opacity: 0; translate: 0 18px; } }
  }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .top-row > .btn { margin-left: auto; }
  .menu { display: block; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .section { padding-block: 72px; }
  .top-row { gap: 10px; min-height: 66px; }
  .brand { font-size: 1.625rem; }
  .brand img { width: 34px; height: 34px; }
  .hero { padding-block: 32px 72px; }
  .lead { font-size: 1.125rem; }
  .store { flex: 1 1 100%; }
  .btn-gold { width: 100%; }
  .beyond { grid-template-columns: minmax(0, 1fr); }
}
