/* ============================================================
   Actio — marketing site styles
   Palette mirrors the app theme (src/constants/theme/colors.ts)
   ============================================================ */

:root {
  --brand: #442117;
  --brand-deep: #2a140e;
  --brand-mid: #5c3826;
  --brand-light: #8a5a45;
  --accent: #e07b16;
  --accent-soft: #f3a24b;
  --cream: #fff3ea;
  --cream-warm: #fffaf5;
  --bg: #f3f3f3;
  --text: #442117;
  --text-muted: #6b5a52;
  --text-faint: #988579;
  --hairline: rgba(68, 33, 23, 0.12);
  --green: #4caf4f;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(68, 33, 23, 0.06);
  --shadow-md: 0 14px 34px rgba(68, 33, 23, 0.12);
  --shadow-lg: 0 26px 60px rgba(31, 14, 9, 0.35);
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  margin: 0 0 12px;
  color: var(--brand);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03rem;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 243, 243, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--brand);
  background: rgba(68, 33, 23, 0.06);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(68, 33, 23, 0.22);
}

.btn-light {
  background: var(--cream);
  color: var(--brand);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 243, 234, 0.35);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(255, 243, 234, 0.08);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-outline {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--cream);
}

.play-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 0;
  background: radial-gradient(
      120% 80% at 50% 0%,
      var(--brand-mid) 0%,
      var(--brand) 45%,
      var(--brand-deep) 100%
    );
  color: var(--cream);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin: 0 0 14px;
  color: #fff;
}

.hero .tagline {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 600;
  color: var(--accent-soft);
  margin: 0 0 18px;
}

.hero .subtitle {
  font-size: 1.06rem;
  color: rgba(255, 243, 234, 0.78);
  margin: 0 auto 30px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: rgba(255, 243, 234, 0.62);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero phone strip */

.hero-shots {
  margin-top: 56px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  padding: 0 24px;
  overflow: hidden;
}

.hero-shots img {
  width: 228px;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  transform-origin: bottom center;
}

/* Scaled from the bottom edge so the middle phone grows upward and never clips. */
.hero-shots img:nth-child(2) {
  transform: scale(1.06);
  z-index: 2;
}

/* ---------- Feature grid ---------- */

.features {
  padding: 104px 0 84px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--cream-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(224, 123, 22, 0.13);
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 1.09rem;
  margin: 0 0 8px;
  color: var(--brand);
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Gallery ---------- */

.gallery {
  padding: 84px 0 70px;
  background: var(--cream);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 24px 26px;
  max-width: var(--maxw);
  margin: 0 auto;
  scrollbar-width: thin;
}

.shot {
  flex: 0 0 auto;
  width: 250px;
  margin: 0;
  scroll-snap-align: center;
}

.shot img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.gallery-hint {
  text-align: center;
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-faint);
}

/* ---------- Deep-dive rows ---------- */

.detail {
  padding: 92px 0;
}

.detail-alt {
  background: var(--cream-warm);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.detail-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.detail-flip .detail-copy {
  order: 2;
}

.detail-copy h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  margin: 0 0 14px;
  color: var(--brand);
}

.detail-copy > p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 22px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.checklist svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--green);
}

.checklist strong {
  color: var(--text);
  font-weight: 600;
}

.detail-shot {
  display: grid;
  place-items: center;
}

.detail-shot img {
  width: 100%;
  max-width: 296px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

/* ---------- Privacy band ---------- */

.privacy-note {
  padding: 88px 0;
  background: radial-gradient(
      120% 100% at 50% 0%,
      var(--brand-mid) 0%,
      var(--brand) 50%,
      var(--brand-deep) 100%
    );
  color: var(--cream);
}

.privacy-note-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.privacy-note h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin: 0 0 14px;
  color: #fff;
}

.privacy-lede {
  color: rgba(255, 243, 234, 0.78);
  font-size: 1.03rem;
  margin: 0 auto 34px;
  max-width: 640px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
  text-align: left;
}

.privacy-card {
  background: rgba(255, 243, 234, 0.07);
  border: 1px solid rgba(255, 243, 234, 0.16);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
}

.privacy-card h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--accent-soft);
}

.privacy-card p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 243, 234, 0.72);
  line-height: 1.55;
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  padding: 96px 24px 104px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--cream) 100%);
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--brand);
}

.cta p {
  margin: 0 auto 30px;
  color: var(--text-muted);
  max-width: 460px;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 56px 24px 88px;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--brand);
  margin: 0 0 10px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.legal-lede {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 26px 0 0;
}

.legal-lede p {
  margin: 0;
}

.legal-lede p + p {
  margin-top: 10px;
}

.toc {
  background: var(--cream-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0 0;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 0.92rem;
}

.toc li {
  margin-bottom: 5px;
  break-inside: avoid;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.legal h2 {
  color: var(--brand);
  font-size: 1.28rem;
  margin: 44px 0 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
  scroll-margin-top: 90px;
}

/* After `.legal h2` on purpose — same specificity, so source order decides. */
.legal .toc h2 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-top: none;
  padding-top: 0;
  margin: 0 0 12px;
}

.legal h3 {
  color: var(--brand);
  font-size: 1.02rem;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal ul ul {
  margin-top: 6px;
  margin-bottom: 0;
}

.legal li {
  margin-bottom: 7px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}

.legal table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-muted);
  vertical-align: top;
}

.legal th {
  background: var(--cream);
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

.legal tbody tr:last-child td {
  border-bottom: none;
}

.callout {
  background: rgba(76, 175, 79, 0.09);
  border: 1px solid rgba(76, 175, 79, 0.28);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 16px;
}

.callout p {
  margin: 0;
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 34px 24px 44px;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-top: 1px solid var(--hairline);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: var(--brand);
}

.footer-fine {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .detail-flip .detail-copy {
    order: 0;
  }

  .detail {
    padding: 64px 0;
  }

  .hero-shots img:first-child,
  .hero-shots img:last-child {
    display: none;
  }
}

@media (max-width: 620px) {
  .nav-link {
    display: none;
  }

  .hero {
    padding-top: 60px;
  }

  .features {
    padding: 72px 0 56px;
  }

  .feature-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .legal table {
    min-width: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .feature {
    transition: none;
  }

  .btn:hover,
  .feature:hover {
    transform: none;
  }
}
