/* Fieldwise — promo site
   Palette lifted straight from the app (FieldwiseColors.swift). */

:root {
  --paper:  #F5F3ED;
  --stone:  #E6E1D6;
  --sage:   #7C8B74;
  --ink:    #1B1C19;
  --clay:   #D9724A;
  --moss:   #4E6B56;
  --steel:  #5B6670;
  --violet: #7E6B8F;
  --quiet:  #9C9A92;
  --ochre:  #C99B3B;
  --red:    #A45145;

  --paper-2: #FBFAF6;
  --line: rgba(27, 28, 25, 0.08);
  --line-strong: rgba(27, 28, 25, 0.14);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle grain / warmth on the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(217,114,74,0.07), transparent 60%),
    radial-gradient(1000px 700px at -10% 20%, rgba(124,139,116,0.10), transparent 55%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
  font-weight: 600;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(245, 243, 237, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(150deg, var(--moss), var(--sage));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.brand-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--steel); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper) !important;
}
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
  font-weight: 700;
}
.hero h1 .accent { color: var(--clay); }
.hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--steel);
  max-width: 30ch;
  margin: 22px 0 30px;
}
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--quiet);
  letter-spacing: 0.04em;
}
.hero-note b { color: var(--moss); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 700px; }
.hero-visual .phone { transform: rotate(-2deg); }
.hero-visual .phone.behind {
  position: absolute;
  transform: rotate(6deg) translate(120px, 30px) scale(0.92);
  filter: saturate(0.96);
  opacity: 0.96;
  z-index: 1;
}
.hero-visual .phone.front { z-index: 2; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { min-height: 560px; margin-top: 8px; }
  .hero-visual .phone.behind { transform: rotate(6deg) translate(90px, 24px) scale(0.9); }
}

/* ---------- App Store badge ---------- */
.appstore {
  display: inline-flex;
  width: 168px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.appstore:hover { transform: translateY(-1px); filter: brightness(1.08); }
.appstore svg { width: 100%; height: auto; display: block; }

/* ---------- Marquee of trust line ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 24px;
}
.trust-inner {
  display: flex; flex-wrap: wrap; gap: 14px 34px;
  align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--quiet);
  letter-spacing: 0.03em; text-align: center;
}
.trust-inner .dot { color: var(--stone); }

/* ---------- Feature rows ---------- */
.feature {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature.reverse .feature-grid { direction: rtl; }
.feature.reverse .feature-copy, .feature.reverse .feature-visual { direction: ltr; }

.feature-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  font-weight: 700;
}
.feature-copy p.body {
  font-size: 17px;
  color: var(--steel);
  margin: 18px 0 0;
  max-width: 46ch;
}
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.feature-list .tick {
  flex: none; margin-top: 2px;
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(124,139,116,0.16); color: var(--moss);
}
.feature-list .tick svg { width: 12px; height: 12px; }
.feature-list b { font-weight: 650; }

.feature-visual { display: grid; place-items: center; }
.feature-visual .phone { --pw: 384px; }

@media (max-width: 900px) {
  .feature { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-grid { direction: ltr; }
  .feature-visual { order: 2; }
}

/* ---------- Small feature grid ---------- */
.grid-section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.grid-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.grid-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em; margin: 12px 0 0; font-weight: 700; line-height: 1.1;
}
.grid-head p { color: var(--steel); font-size: 17px; margin: 16px 0 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(27,28,25,0.4); border-color: var(--line-strong); }
.card-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--steel); margin: 0; line-height: 1.5; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Privacy strip ---------- */
.privacy {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}
.privacy-inner {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 56px clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.privacy-inner::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 10%, rgba(217,114,74,0.22), transparent 60%);
  pointer-events: none;
}
.privacy h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.02em; margin: 12px 0 0; line-height: 1.1; }
.privacy p { color: rgba(245,243,237,0.72); font-size: 16px; margin: 18px 0 0; }
.privacy .eyebrow { color: var(--clay); }
.privacy-points { display: grid; gap: 16px; position: relative; z-index: 1; }
.pp {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(245,243,237,0.05);
  border: 1px solid rgba(245,243,237,0.08);
}
.pp .pp-icon { flex: none; color: var(--sage); margin-top: 1px; }
.pp .pp-icon svg { width: 18px; height: 18px; }
.pp b { display: block; font-size: 14px; margin-bottom: 3px; }
.pp span { font-size: 13px; color: rgba(245,243,237,0.62); }
@media (max-width: 820px) { .privacy-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Final CTA ---------- */
.final { padding: 110px 0 96px; text-align: center; }
.final h2 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.03em; line-height: 1.03; margin: 16px auto 0;
  max-width: 16ch; font-weight: 700;
}
.final p { font-size: 18px; color: var(--steel); margin: 20px auto 32px; max-width: 44ch; }
.final .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  font-size: 13px; color: var(--quiet);
}
.footer .brand { font-size: 16px; color: var(--ink); }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--ink); }

/* =====================================================================
   PHONE MOCKUP
   ===================================================================== */
.phone {
  --pw: 320px;
  width: var(--pw);
  background: #0c0d0b;
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    0 40px 80px -30px rgba(27,28,25,0.55),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
  position: relative;
}
/* The screen area matches the screenshot ratio exactly (1206:2622 device),
   so the full capture shows with zero cropping. Frame height follows the
   screen + bezel padding. */
.phone-screen {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  background: var(--paper);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* real simulator screenshots (include their own status bar + island) */
.phone-screen.photo { background: #000; }
.phone-screen.photo img {
  width: 100%; height: 100%;
  object-fit: fill;
  display: block;
}
.notch {
  position: absolute;
  top: 9px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px;
  background: #0c0d0b;
  border-radius: 14px;
  z-index: 30;
}

/* status bar */
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 22px 6px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  flex: none;
}
.statusbar .icons { display: flex; gap: 5px; align-items: center; }
.statusbar .icons svg { height: 11px; width: auto; }

/* app scroll body */
.app-body {
  flex: 1;
  overflow: hidden;
  padding: 4px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-body::-webkit-scrollbar { display: none; }

.screen-head { display: flex; align-items: flex-end; justify-content: space-between; }
.screen-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.screen-sub {
  font-family: var(--mono); font-size: 10px; color: var(--quiet);
  letter-spacing: 0.05em; margin-top: 2px;
}
.gear { color: var(--quiet); }
.gear svg { width: 18px; height: 18px; }

.sec-label {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--quiet); font-weight: 600;
  margin: 2px 0 -2px;
}

/* generic card in the phone */
.p-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 14px;
}
.p-card.tint-left { border-left: 3px solid var(--sage); }
.p-row { display: flex; align-items: center; gap: 10px; }
.p-title { font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }
.p-meta { font-size: 11px; color: var(--quiet); margin-top: 2px; line-height: 1.35; }
.p-body { font-size: 11.5px; color: var(--steel); margin-top: 6px; line-height: 1.45; }

.pill {
  font-family: var(--mono);
  font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600;
  padding: 3px 7px; border-radius: 999px;
  white-space: nowrap;
}
.pill.sage   { background: rgba(124,139,116,0.16); color: var(--moss); }
.pill.clay   { background: rgba(217,114,74,0.15);  color: var(--clay); }
.pill.moss   { background: rgba(78,107,86,0.14);   color: var(--moss); }
.pill.steel  { background: rgba(91,102,112,0.14);  color: var(--steel); }
.pill.violet { background: rgba(126,107,143,0.15); color: var(--violet); }
.pill.ochre  { background: rgba(201,155,59,0.16);  color: #9a751f; }
.pill.red    { background: rgba(164,81,69,0.14);   color: var(--red); }

.avatar {
  flex: none;
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
  letter-spacing: 0.01em;
}

/* tab bar */
.tabbar {
  flex: none;
  display: flex; justify-content: space-around; align-items: center;
  padding: 9px 8px 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.tab { display: grid; place-items: center; gap: 3px; color: var(--quiet); }
.tab svg { width: 21px; height: 21px; }
.tab span { font-size: 8.5px; font-weight: 600; }
.tab.active { color: var(--ink); }

/* chat bubbles */
.bubble {
  max-width: 84%;
  font-size: 12px; line-height: 1.45;
  padding: 10px 12px; border-radius: 15px;
}
.bubble.me { background: var(--ink); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 5px; }
.bubble.ai { background: var(--paper-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.ai .draft {
  margin-top: 8px; padding: 9px 10px;
  background: rgba(124,139,116,0.10);
  border: 1px solid rgba(124,139,116,0.25);
  border-radius: 10px; font-size: 11.5px; color: var(--ink);
}
.bubble-actions { display: flex; gap: 6px; margin-top: 8px; }
.mini-btn {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.04em;
  padding: 5px 9px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600;
}
.mini-btn.ghost { background: transparent; color: var(--steel); border: 1px solid var(--line-strong); }
.chat-input {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--paper-2); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 9px 12px;
  font-size: 11.5px; color: var(--quiet);
}
.chat-input .send {
  margin-left: auto; flex: none;
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--clay); color: #fff; display: grid; place-items: center;
}
.chat-input .send svg { width: 12px; height: 12px; }

/* prayer / progress */
.pray-row { display: flex; align-items: center; gap: 10px; }
.dots { display: flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 999px; background: var(--stone); }
.dots i.on { background: var(--sage); }

/* stage bar (pipeline) */
.stage-track { display: flex; gap: 4px; margin-top: 9px; }
.stage-track .seg { flex: 1; height: 4px; border-radius: 999px; background: var(--stone); }
.stage-track .seg.on { background: var(--clay); }
.stage-track .seg.on.moss { background: var(--moss); }

/* rhythm calendar week */
.week { display: flex; justify-content: space-between; gap: 4px; }
.day {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 11px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.day .dow { font-family: var(--mono); font-size: 8px; color: var(--quiet); letter-spacing: 0.05em; }
.day .num { font-size: 13px; font-weight: 650; margin-top: 3px; }
.day.today { background: var(--ink); border-color: var(--ink); }
.day.today .dow { color: rgba(245,243,237,0.6); }
.day.today .num { color: var(--paper); }
.day .load { display: flex; gap: 2px; justify-content: center; margin-top: 5px; height: 4px; }
.day .load i { width: 4px; height: 4px; border-radius: 999px; background: var(--sage); }
.day.today .load i { background: var(--clay); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
