/* ===== MyPersonalOps marketing site ===== */

:root {
  /* Mirrors the mobile app's design tokens (tailwind.config.js / global.css) */
  --bg: #f3f2f2;
  --bg-alt: #ffffff;
  --bg-inset: #eae9e9;
  --text: #201f1d;
  --text-muted: #7d7979;
  --border: rgba(32, 31, 29, 0.14);
  --brand: #b68235;
  --brand-dark: #a06f24;
  --brand-light: #fff3e4;
  --accent: #7d5411;
  --accent-light: #fff3e4;
  --warn: #ac803e;
  --danger: #bb0000;
  --radius-sm: 4px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow: 0 3px 14px rgba(45, 43, 43, 0.08);
  --shadow-lg: 0 12px 32px rgba(45, 43, 43, 0.22);
  --max-width: 1160px;
  --header-h: 72px;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a19;
    --bg-alt: #252423;
    --bg-inset: #2d2b2b;
    --text: #f3f2f2;
    --text-muted: #bab6b6;
    --border: rgba(243, 242, 242, 0.14);
    --brand: #e1ad66;
    --brand-dark: #c28d41;
    --brand-light: #3a270d;
    --accent: #dbaf70;
    --accent-light: #382810;
    --warn: #dbaf70;
    --danger: #ff6b6b;
    --shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.brand,
.plan .amount,
.mock-card b {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

img { max-width: 100%; }
[hidden] { display: none !important; }

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  height: var(--header-h);
  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.05rem;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  flex: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.main-nav a[aria-current="page"] {
  border-bottom-color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg { width: 20px; height: 20px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent);
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

.coming-soon-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Store badges ---------- */

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.store-btn:hover { transform: translateY(-2px); opacity: 0.92; }
.store-btn:active { transform: translateY(0); }

.store-btn svg { width: 22px; height: 22px; flex: none; }

.store-btn .label { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn .label small { font-size: 0.68rem; font-family: var(--font-body); opacity: 0.8; }
.store-btn .label strong { font-size: 0.98rem; font-family: var(--font-heading); font-weight: 700; }

.store-btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

.hero {
  padding: 76px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 30% 20%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
              radial-gradient(50% 60% at 80% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero h1 .accent-text {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.trust-row .stat b {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.trust-row .stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* phone mock */

.phone-mock {
  position: relative;
  margin-inline: auto;
  width: min(300px, 100%);
  border-radius: 34px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}

.phone-mock .screen {
  background: var(--bg-inset);
  border-radius: 22px;
  padding: 18px 16px;
  min-height: 460px;
}

.phone-mock .screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.phone-mock .screen-header b { font-size: 0.95rem; }
.phone-mock .screen-header span { font-size: 0.75rem; color: var(--text-muted); }

.mock-card {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.mock-card .dot {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.mock-card .body { flex: 1; min-width: 0; }
.mock-card .body b { display: block; font-size: 0.86rem; }
.mock-card .body span { font-size: 0.74rem; color: var(--text-muted); }
.mock-card .pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  flex: none;
}

.pill-warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill-danger { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.pill-ok { background: var(--accent-light); color: var(--accent); }

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

section { padding: 88px 0; }
section.tight { padding: 64px 0; }

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

.section-head.left { margin: 0 0 44px; text-align: left; }

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}

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

.bg-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

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

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

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

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

.card.pro { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); position: relative; }

.badge-pro {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Category chips (used on features page) ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--bg-inset);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Steps / how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step .num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 16px;
}

.step h3 { margin: 0 0 8px; font-size: 1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Pricing ---------- */

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  cursor: pointer;
  flex: none;
}

.switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  transition: transform 0.18s ease;
}

.switch[data-on="true"] .knob { transform: translateX(20px); }

.save-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 999px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}

.plan.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.plan .most-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}

.plan h3 { margin: 0 0 6px; font-size: 1.15rem; }
.plan .plan-desc { color: var(--text-muted); font-size: 0.87rem; margin: 0 0 22px; min-height: 34px; }

.plan .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.plan .price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.plan .price .period { color: var(--text-muted); font-size: 0.9rem; }
.plan .price-note { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 24px; }

.plan .btn { margin-bottom: 26px; }

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

.plan li.muted { color: var(--text-muted); }

.plan li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.plan li.muted svg { color: var(--text-muted); }

/* comparison table */

.compare-table-wrap { overflow-x: auto; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}

table.compare th, table.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

table.compare th:first-child, table.compare td:first-child {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
}

table.compare thead th {
  font-weight: 700;
  font-size: 0.95rem;
}

table.compare td svg { width: 18px; height: 18px; color: var(--accent); }
table.compare td .dash { color: var(--text-muted); }

/* FAQ */

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

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .chevron {
  transition: transform 0.15s ease;
  flex: none;
  color: var(--text-muted);
}

.faq-item[open] summary .chevron { transform: rotate(180deg); }

.faq-item p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 0 0 28px; opacity: 0.88; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: #f2f2f2; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid p { color: var(--text-muted); font-size: 0.88rem; max-width: 32ch; }

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--text); }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page hero (features/pricing) ---------- */

.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 auto;
}

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

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-mock { order: -1; width: min(260px, 70vw); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .grid, .grid.cols-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 60px 0; }
}
