/* clir Focus landing page — palette from the app design system:
   porcelain #F4F3EF, surface #FCFBF8, ink #22211F, eucalyptus #43594B,
   sage #93AD97; dark: moss black #141614, surface #1D201D, ink #E9E8E3.
   Gold #BE9455 is reserved for logo/PRO marks, never controls.
   Aesthetic: flat, generous whitespace, low sensory load, calm motion only. */

:root {
  --grad-from: #93AD97;
  --grad-mid:  #43594B;
  --grad-to:   #2F4238;
  --brand:     #43594B;
  --brand-deep:#34453C;
  --ink:       #22211F;
  --ink-soft:  #5D5B54;
  --bg:        #FCFBF8;
  --bg-alt:    #F4F3EF;
  --card:      #FCFBF8;
  --card-border: #E5E3DB;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(34, 33, 31, 0.10);
  --container: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #E9E8E3;
    --ink-soft:  #A9ACA5;
    --bg:        #141614;
    --bg-alt:    #1D201D;
    --card:      #1D201D;
    --card-border: #2C302C;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

@font-face {
  font-family: "Inter";
  src: url("/focus/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 34em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--grad-from); outline-offset: 3px; }
.btn-apple { flex: none; margin-top: -2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(34, 33, 31, 0.24); }

.btn-light {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 10px 30px rgba(20, 22, 20, 0.25);
}

.btn-small { padding: 10px 20px; font-size: 0.95rem; background: var(--ink); color: var(--bg); }
@media (prefers-color-scheme: dark) {
  .btn-small { background: #E9E8E3; color: #141614; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.15rem;
}
.brand-icon { border-radius: 9px; }
.brand-name strong { font-weight: 800; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #141614;
  color: #F4F3EF;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/focus/assets/img/hero-bg-2000.jpg") center 42% / cover no-repeat;
}
@media (max-width: 720px) {
  .hero::before { background-image: url("/focus/assets/img/hero-bg-1200.jpg"); }
}
/* Centered copy below 880px wants an even dim, not the left-biased gradient */
@media (max-width: 880px) {
  .hero::after { background: rgba(20, 22, 20, 0.72); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 22, 20, 0.90) 0%, rgba(20, 22, 20, 0.62) 52%, rgba(20, 22, 20, 0.20) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(56px, 9vw, 120px);
}
.eyebrow {
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 14px;
  opacity: 0.85;
}
.hero h1 { color: #FCFBF8; }
.hero .lead { color: rgba(233, 232, 227, 0.9); }
.cta-row { margin-top: 28px; }
.cta-note { font-size: 0.9rem; margin-top: 14px; opacity: 0.8; }

.hero-visual { display: flex; justify-content: center; }
.hero-visual img {
  width: min(360px, 70vw);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
  animation: float 9s ease-in-out infinite;
}
/* Calm motion only: slow, small drift; fully disabled via prefers-reduced-motion. */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.alt-bg { background: var(--bg-alt); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  margin-bottom: 18px;
}
.card p { color: var(--ink-soft); margin: 0; }

.steps-list {
  list-style: none;
  counter-reset: step;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps-list li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--brand);
}
.steps-list p { color: var(--ink-soft); margin: 0; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 4px; color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--grad-mid) 0%, var(--grad-to) 100%);
  padding: clamp(64px, 9vw, 120px) 0;
  color: #fff;
}
.final-cta h2 { color: #fff; }
.final-cta .lead { color: rgba(255, 255, 255, 0.88); margin-inline: auto; }
.final-cta .btn { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; }
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 20px;
}
.site-footer a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal a { color: var(--brand-deep); }
.todo-note {
  border: 1px dashed var(--brand);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(220px, 55vw); }
  .card-grid, .steps-list { grid-template-columns: 1fr; }
  .steps-list { gap: 32px; }
}
