/* MyHomeBase Manager — marketing site
   Plain CSS. No framework. No JS.
   Color tokens:
     --navy:  #1E3A5F  (header/footer)
     --teal:  #2E86AB  (accents)
     --bg:    #F7FAFC  (page background)
     --card:  #FFFFFF
     --text:  #1F2937
     --muted: #6B7280
     --border:#E5E7EB
*/

:root {
  --navy: #1E3A5F;
  --navy-deep: #16304F;
  --teal: #2E86AB;
  --teal-deep: #226F92;
  --bg: #F7FAFC;
  --card: #FFFFFF;
  --text: #1F2937;
  --muted: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); text-decoration: underline; }

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

/* Layout */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--navy);
  color: #FFFFFF;
  padding: 18px 0;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: #FFFFFF; text-decoration: none; opacity: 0.9; }
.brand-mark { width: 26px; height: 26px; display: block; }
.nav { display: flex; gap: 24px; }
.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover { color: #FFFFFF; text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--teal-deep) 100%);
  color: #FFFFFF;
  padding: 88px 0 104px;
  text-align: center;
  overflow: hidden;
}
/* Oversized brand mark bleeding off the top-right corner, plus a warm glow
   behind the badge — texture and color for the hero without a generic
   gradient blob or stock photo. */
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: url("assets/logo-mark-white.png") no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.hero-badge {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge img { width: 44px; height: 44px; }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
  font-weight: 400;
}
.hero .lede {
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* Coming-soon badge area */
.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.store-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.store-badge .badge-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.store-badge .badge-icon svg { width: 100%; height: 100%; }
.store-badge .badge-line-1 { font-size: 11px; opacity: 0.75; display: block; }
.store-badge .badge-line-2 { font-size: 15px; font-weight: 700; display: block; }

/* Section */
.section { padding: 72px 0; }
.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 48px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  /* Per-card accent set inline via style="--accent: ...": a tinted
     background derived from the accent at low opacity, icon drawn in
     the full-strength accent. */
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.feature p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* CTA strip */
.cta-strip {
  background: var(--teal);
  color: #FFFFFF;
  padding: 48px 0;
  text-align: center;
}
.cta-strip h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.cta-strip p {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 32px;
  font-size: 14px;
}
.site-footer .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  margin-right: 20px;
}
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer a:last-child { margin-right: 0; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { width: 20px; height: 20px; opacity: 0.85; }

/* Article (Privacy / Terms) */
.article-page {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.article {
  padding: 56px 0 72px;
}
.article h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.article .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}
.article h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.article h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--text);
}
.article p { margin: 0 0 16px; line-height: 1.75; }
.article ul, .article ol { padding-left: 24px; line-height: 1.75; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); font-weight: 700; }
.article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.article th, .article td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article th {
  background: var(--bg);
  font-weight: 700;
}
.article code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
}

/* Support / FAQ */
.faq { margin-top: 24px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.faq-item p { margin: 0; color: var(--text); line-height: 1.7; }
.faq-item p + p { margin-top: 8px; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}
.contact-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}
.contact-card .email {
  font-size: 18px;
  font-weight: 600;
  color: var(--teal);
}
.contact-card .meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

/* Page-title bar (for Privacy / Terms / Support) */
.page-title-bar {
  position: relative;
  background: var(--navy);
  color: #FFFFFF;
  padding: 56px 0;
  text-align: center;
  overflow: hidden;
}
.page-title-bar::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -70px;
  width: 260px;
  height: 260px;
  background: url("assets/logo-mark-white.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}
.page-title-bar .container { position: relative; z-index: 1; }
.page-title-bar h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.page-title-bar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

/* Highlights / call-out lists used inside privacy + terms */
.callout {
  background: var(--bg);
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}
.do-not-list { padding-left: 0; list-style: none; }
.do-not-list li {
  padding: 6px 0 6px 28px;
  position: relative;
}
.do-not-list li::before {
  content: "✗";
  color: #B91C1C;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 6px;
}

/* Mobile */
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero .tagline { font-size: 18px; }
  .hero .lede { font-size: 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; margin-bottom: 32px; }
  .article h1 { font-size: 28px; }
  .article h2 { font-size: 20px; }
  .article { padding: 40px 0 56px; }
  .page-title-bar { padding: 40px 0; }
  .page-title-bar h1 { font-size: 28px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .features { grid-template-columns: 1fr; }
  .cta-strip h2 { font-size: 22px; }
  .site-footer .footer-row { flex-direction: column; align-items: flex-start; }
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #FFFFFF;
  padding: 12px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }
