/* FocusFirst — marketing site
   Palette drawn from the app: mist sky, ink, leaf green, dark engine panels */

:root {
  --leaf: #6fbe2e;
  --leaf-bright: #8ad84a;
  --leaf-deep: #3e7a1f;
  --ink: #131a0d;
  --ink-soft: #3c4634;
  --mist-1: #dfe9e2;
  --mist-2: #f3f7f0;
  --paper: #fbfdf9;
  --bark: #0d1309;
  --bark-2: #141c0e;
  --bark-line: #24301a;
  --bark-text: #e8f1e0;
  --bark-dim: #9db08d;
  --radius: 22px;
  --shadow-soft: 0 24px 60px -24px rgba(19, 26, 13, 0.25);
  --shadow-card: 0 10px 34px -14px rgba(19, 26, 13, 0.18);
  --font-display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.accent { color: var(--leaf); }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 253, 249, 0.82);
  border-bottom: 1px solid rgba(19, 26, 13, 0.07);
}
.site-nav .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { color: var(--leaf-deep); }
.site-nav a.nav-link {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.site-nav a.nav-link:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff !important; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--leaf-deep); transform: translateY(-1px); }
@media (max-width: 720px) { .site-nav a.nav-link { display: none; } }
@media (max-width: 480px) {
  .site-nav .wrap { gap: 12px; }
  .brand { font-size: 1rem; gap: 8px; flex-shrink: 1; min-width: 0; white-space: nowrap; }
  .nav-cta { padding: 8px 14px; font-size: 0.85rem; flex-shrink: 0; }
}

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

.hero {
  position: relative;
  background:
    radial-gradient(90rem 46rem at 85% -10%, rgba(111, 190, 46, 0.16), transparent 60%),
    linear-gradient(178deg, #d8e6dc 0%, var(--mist-1) 34%, var(--mist-2) 72%, var(--paper) 100%);
  overflow: hidden;
}
.hero::after {
  /* grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding-top: 84px; padding-bottom: 40px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--leaf-deep); margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--leaf);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero .lede {
  font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 32px;
}
.hero-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.appstore-badge img { height: 56px; width: auto; }
.appstore-badge { transition: transform 0.2s ease; display: inline-block; }
.appstore-badge:hover { transform: translateY(-2px); }
.ghost-cta {
  color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 2px solid var(--leaf); padding-bottom: 2px;
}
.hero-meta {
  margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 0.9rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { color: var(--leaf-deep); }
.hero-shot { position: relative; display: flex; justify-content: center; gap: 10px; }
.hero-shot img.phone {
  width: min(238px, 40vw);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.hero-shot img.phone-a { border-radius: 24px 6px 6px 24px; }
.hero-shot img.phone-b { border-radius: 6px 24px 24px 6px; }
.hero-shot .float-chip {
  position: absolute; background: var(--bark); color: var(--bark-text);
  font-size: 0.85rem; font-weight: 600; padding: 12px 16px; border-radius: 14px;
  box-shadow: var(--shadow-card); line-height: 1.3;
  border: 1px solid var(--bark-line);
}
.float-chip em { color: var(--leaf-bright); font-style: normal; }
.chip-1 { top: 16%; left: -2%; transform: rotate(-3deg); }
.chip-2 { bottom: 12%; right: -1%; transform: rotate(2deg); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-shot { margin-top: 8px; }
  .chip-1 { left: 2%; } .chip-2 { right: 2%; }
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .kicker {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--leaf-deep); display: block; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: #fff; border: 1px solid rgba(19,26,13,0.08); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-card);
  position: relative;
}
.step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  color: var(--leaf-deep); background: rgba(111,190,46,0.14);
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }
.step .rate {
  margin-top: 16px; font-family: var(--font-display); font-weight: 700;
  background: var(--bark); color: var(--leaf-bright);
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 0.9rem;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Screenshots */
.shots-section { background: linear-gradient(180deg, var(--paper), var(--mist-2) 30%, var(--mist-1)); }
.shots {
  display: grid; grid-auto-flow: column; gap: 22px;
  overflow-x: auto; padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--leaf) transparent;
}
.shots figure {
  scroll-snap-align: start; width: 236px;
}
.shots img {
  border-radius: 26px; box-shadow: var(--shadow-card);
  transition: transform 0.25s ease;
}
.shots figure:hover img { transform: translateY(-6px) rotate(-0.5deg); }
.shots figcaption {
  font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; padding: 0 4px;
}

/* Guides */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card {
  background: #fff; border: 1px solid rgba(19,26,13,0.08); border-radius: 18px;
  padding: 24px 22px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.guide-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(111,190,46,0.5);
}
.guide-card .tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--leaf-deep);
}
.guide-card h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.guide-card p { font-size: 0.9rem; color: var(--ink-soft); }
.guide-card .go { margin-top: auto; font-weight: 600; font-size: 0.88rem; color: var(--leaf-deep); }
@media (max-width: 900px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guides-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 780px; }
.faq-list details {
  border-bottom: 1px solid rgba(19,26,13,0.1);
  padding: 6px 0;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  padding: 18px 44px 18px 0; position: relative; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; font-weight: 400; color: var(--leaf-deep);
  transition: rotate 0.2s ease;
}
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list .faq-body { padding: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }
.faq-list .learn-more {
  display: inline-block; margin-top: 10px; font-weight: 600; color: var(--leaf-deep);
  text-decoration: none; border-bottom: 2px solid rgba(111,190,46,0.4);
}
.faq-list .learn-more:hover { border-bottom-color: var(--leaf); }

/* Dark CTA */
.cta-dark {
  background:
    radial-gradient(60rem 30rem at 20% 120%, rgba(111,190,46,0.22), transparent 60%),
    var(--bark);
  color: var(--bark-text);
  border-radius: 34px;
  margin: 0 24px;
}
.cta-dark .inner {
  max-width: 1160px; margin: 0 auto; padding: 84px 40px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.cta-dark h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; color: #fff; }
.cta-dark p { color: var(--bark-dim); font-size: 1.1rem; max-width: 32em; }
.cta-dark .hero-ctas { margin-top: 30px; }
.cta-dark .cta-shot img {
  width: min(280px, 70vw); border-radius: 30px; margin: 0 auto;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.65);
  transform: rotate(-2deg);
}
@media (max-width: 860px) { .cta-dark .inner { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  padding: 64px 0 48px; color: var(--ink-soft); font-size: 0.92rem;
}
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 40px;
}
.site-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 14px; color: var(--ink); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--leaf-deep); }
.site-footer .fine { border-top: 1px solid rgba(19,26,13,0.09); padding-top: 24px; font-size: 0.82rem; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Entrance: CSS-only staggered fade-up on the hero (content never gated on JS) */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * , .hero-shot { animation: rise-in 0.7s ease both; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.hero-copy > :nth-child(3) { animation-delay: 0.25s; }
.hero-copy > :nth-child(4) { animation-delay: 0.35s; }
.hero-copy > :nth-child(5) { animation-delay: 0.45s; }
.hero-shot { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-shot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Guide article pages ---------- */

.article-hero {
  background: linear-gradient(178deg, #d8e6dc 0%, var(--mist-2) 90%);
  padding: 64px 0 44px;
}
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumbs a { color: var(--leaf-deep); text-decoration: none; }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 18em; margin-bottom: 16px; }
.article-hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; }

.article {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px;
  padding: 56px 0 80px;
}
.article-body { max-width: 68ch; }
.article-body h2 {
  font-size: 1.6rem; margin: 44px 0 14px; scroll-margin-top: 90px;
}
.article-body h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; color: #2a3323; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: #2a3323; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.callout {
  background: rgba(111,190,46,0.1); border-left: 4px solid var(--leaf);
  border-radius: 0 14px 14px 0; padding: 18px 20px; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.article-shot { margin: 30px 0; }
.article-shot img { width: min(300px, 100%); border-radius: 24px; box-shadow: var(--shadow-card); }
.article-shot figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

.article-aside { position: relative; }
.aside-card {
  position: sticky; top: 92px;
  background: var(--bark); color: var(--bark-text);
  border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--bark-line);
}
.aside-card img.icon { width: 58px; height: 58px; border-radius: 14px; margin-bottom: 16px; }
.aside-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.aside-card p { color: var(--bark-dim); font-size: 0.92rem; margin-bottom: 18px; }
.aside-card .appstore-badge img { height: 46px; }
.aside-related { margin-top: 26px; font-size: 0.92rem; }
.aside-related h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 12px; }
.aside-related ul { list-style: none; }
.aside-related li { margin-bottom: 10px; }
.aside-related a { color: var(--ink-soft); text-decoration: none; }
.aside-related a:hover { color: var(--leaf-deep); }
@media (max-width: 940px) {
  .article { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}
