/* ════════════════════════════════════════════════════════════════════
 * MyMT Manager — Restyle 2026
 * Light theme only. Mahogany + gold on parchment.
 * Loaded on every restyled marketing page in addition to the existing
 * Tailwind bundle (legacy classes still resolve where pages have not
 * yet been migrated to the new components).
 * Token reference: design_handoff_mymt_restyle/styles.css
 * ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Ink / text */
  --ink: #1a1410;
  --ink-soft: #3d352e;
  --ink-mute: #6b6054;
  --ink-faint: #8a7e6e;
  /* Mahogany — primary */
  --mahogany: #7a3535;
  --mahogany-dark: #4a2020;
  --mahogany-deep: #2e1212;
  /* Gold — secondary */
  --gold: #a88838;
  --gold-light: #c5a24d;
  --gold-soft: #e3cf8a;
  --gold-tint: #f5edcf;
  /* Slate & sage — view accents */
  --slate: #4070a0;
  --slate-light: #88acd0;
  --sage: #2d8a5c;
  --sage-light: #5da982;
  /* Surfaces */
  --surface: #faf7f0;
  --surface-2: #f5f0e1;
  --surface-3: #f0ebdc;
  --surface-4: #e8e0cb;
  --white: #fffefb;
  /* Borders */
  --border: #e1d6b8;
  --border-strong: #d9c59c;
  --border-dark: #b0a594;
}

/* Targeted reset. Scoped to body.mymt-restyle so legacy pages are not
   affected. Crucially, this does NOT do `* { margin: 0; padding: 0; }` —
   that universal reset has specificity (0,0,1,1) which beats every single
   class-level layout rule (`.container`, `.hero`, `.faq-list`, etc.) and
   wipes out paddings and auto-centering across the whole page. Instead
   we only zero out the elements that ship with browser-default margins
   (headings, paragraphs, lists, blockquotes), and explicitly hand out
   `box-sizing: border-box` via inheritance. */
body.mymt-restyle { box-sizing: border-box; font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; overflow-x: hidden; margin: 0; }
body.mymt-restyle *,
body.mymt-restyle *::before,
body.mymt-restyle *::after { box-sizing: inherit; }
body.mymt-restyle h1,
body.mymt-restyle h2,
body.mymt-restyle h3,
body.mymt-restyle h4,
body.mymt-restyle h5,
body.mymt-restyle h6,
body.mymt-restyle p,
body.mymt-restyle figure,
body.mymt-restyle blockquote,
body.mymt-restyle dl,
body.mymt-restyle dd { margin: 0; }
body.mymt-restyle ul,
body.mymt-restyle ol { margin: 0; padding-left: 0; list-style: none; }
body.mymt-restyle button { padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; }
html { scroll-behavior: smooth; }
/* Headings inherit color from their containing section. The body color is
   `var(--ink)`, so by default headings are dark on the parchment surfaces.
   Inside dark slabs like `.cta-final` (which set `color: var(--surface)` on
   the section), headings inherit the lighter color automatically — no need
   to override per-section. Setting `color` here would beat per-section
   overrides on specificity (body.mymt-restyle h2 is (0,0,2,1) vs
   .cta-final h2 is (0,0,1,1)) and silently break the dark-slab type color. */
body.mymt-restyle h1,
body.mymt-restyle h2,
body.mymt-restyle h3,
body.mymt-restyle h4 { font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.02em; }
body.mymt-restyle .italic-display { font-family: 'Cormorant Garamond', serif; font-style: italic; }
body.mymt-restyle img { max-width: 100%; height: auto; display: block; }
body.mymt-restyle a { color: inherit; }

body.mymt-restyle .container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
body.mymt-restyle .narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ────────────────────────── TOP NAV ────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { max-width: 1320px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--mahogany) 0%, var(--mahogany-dark) 100%);
  color: var(--gold-soft); display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 13px;
  box-shadow: 0 2px 8px rgba(122, 53, 53, 0.25);
}
.brand-text { line-height: 1.1; }
.brand-word { font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; color: var(--mahogany); letter-spacing: 0.04em; }
.brand-tag  { font-family: 'Inter', sans-serif; font-size: 10px; color: var(--ink-mute); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 1px; font-weight: 500; }

.topbar .nav { display: flex; gap: 2px; align-items: center; }
.topbar .nav a {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--ink-soft); padding: 7px 12px;
  border-radius: 6px; transition: all 0.15s; text-decoration: none;
  position: relative;
}
.topbar .nav a:hover { background: var(--surface-3); color: var(--ink); }
.topbar .nav a.active { color: var(--mahogany); font-weight: 600; }
.topbar .nav a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; background: var(--mahogany); border-radius: 2px; }
.nav-divider { width: 1px; height: 20px; background: var(--border); margin: 0 8px; }

.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-right .signin { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 7px 14px; text-decoration: none; transition: color 0.15s; }
.topbar-right .signin:hover { color: var(--mahogany); }
.topbar-right .cta {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  background: var(--ink); color: var(--white);
  padding: 9px 16px; border-radius: 8px; text-decoration: none;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.topbar-right .cta:hover { background: var(--mahogany-deep); transform: translateY(-1px); }

/* Mobile menu */
.menu-btn { display: none; background: transparent; border: 1px solid var(--border-strong); width: 38px; height: 38px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; color: var(--mahogany); }
.menu-btn:hover { background: var(--surface-3); }
.mobile-menu {
  display: none; padding: 8px 16px 16px;
  border-bottom: 1px solid var(--border); background: rgba(250, 247, 240, 0.95);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 11px 14px; text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; border-radius: 8px; }
.mobile-menu a:hover { background: var(--surface-3); }
.mobile-menu a.active { color: var(--mahogany); font-weight: 600; background: rgba(122, 53, 53, 0.05); }
.mobile-menu .cta { display: block; margin-top: 10px; padding: 12px; text-align: center; background: var(--ink); color: var(--white); border-radius: 8px; }

/* ────────────────────────── BUTTONS ────────────────────────── */
/* Scoped to body.mymt-restyle so the new .btn-primary/.btn-secondary
   do not collide with the legacy Tailwind-based versions on un-restyled pages. */
body.mymt-restyle .btn { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid transparent; transition: all 0.15s; line-height: 1.2; }
body.mymt-restyle .btn-primary { background: var(--mahogany); color: var(--white); border-color: var(--mahogany-dark); box-shadow: 0 1px 3px rgba(74, 32, 32, 0.2), inset 0 1px 0 rgba(255,255,255,0.1); }
body.mymt-restyle .btn-primary:hover { background: var(--mahogany-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(122, 53, 53, 0.25); color: var(--white); }
body.mymt-restyle .btn-secondary { background: var(--white); color: var(--ink); border-color: var(--border-strong); }
body.mymt-restyle .btn-secondary:hover { background: var(--surface); border-color: var(--ink-faint); }
body.mymt-restyle .btn-ghost { background: transparent; color: var(--ink-soft); }
body.mymt-restyle .btn-ghost:hover { background: var(--surface-3); color: var(--mahogany); }
body.mymt-restyle .btn-gold { background: var(--gold); color: var(--mahogany-deep); border-color: var(--gold-light); }
body.mymt-restyle .btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(168, 136, 56, 0.3); color: var(--mahogany-deep); }
body.mymt-restyle .btn-lg { padding: 13px 22px; font-size: 15px; }
body.mymt-restyle .btn-sm { padding: 7px 13px; font-size: 13px; }
body.mymt-restyle .btn-icon { display: inline-flex; }

/* ────────────────────────── EYEBROW ────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  color: var(--mahogany); letter-spacing: 0.04em;
  background: rgba(122, 53, 53, 0.08);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(122, 53, 53, 0.15);
}
.eyebrow svg { width: 14px; height: 14px; }
.eyebrow.gold { color: var(--gold); background: rgba(168, 136, 56, 0.10); border-color: rgba(168, 136, 56, 0.2); }
.eyebrow.slate { color: var(--slate); background: rgba(64, 112, 160, 0.08); border-color: rgba(64, 112, 160, 0.2); }
.eyebrow.sage { color: var(--sage); background: rgba(45, 138, 92, 0.08); border-color: rgba(45, 138, 92, 0.2); }

/* ────────────────────────── PRODUCT FRAMES & MOCKS ────────────────────────── */
.product-frame {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(122, 53, 53, 0.18), 0 8px 28px rgba(26, 20, 16, 0.05);
  transition: transform 0.3s;
}
.pf-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--surface-3); border-bottom: 1px solid var(--border);
}
.pf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.pf-dot:nth-child(1) { background: #d9534f; opacity: 0.6; }
.pf-dot:nth-child(2) { background: #f0ad4e; opacity: 0.6; }
.pf-dot:nth-child(3) { background: #5cb85c; opacity: 0.6; }
.pf-url { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--ink-faint); margin-left: 10px; }
.pf-body { padding: 18px; }

.mock-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mock-title { font-family: 'Cinzel', serif; font-weight: 600; font-size: 14px; color: var(--mahogany); letter-spacing: 0.04em; }
.mock-count { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--ink-mute); background: var(--surface-2); padding: 3px 8px; border-radius: 999px; }
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  margin-bottom: 6px;
}
.mock-row .name { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12.5px; color: var(--ink); line-height: 1.2; }
.mock-row .sub { font-family: 'Inter', sans-serif; font-size: 10px; color: var(--ink-mute); margin-top: 2px; }

/* Chips */
.chip { font-size: 9.5px; padding: 2px 7px; border-radius: 4px; font-family: 'Inter', sans-serif; letter-spacing: 0.02em; font-weight: 600; display: inline-block; }
.chip-mahogany { background: rgba(122, 53, 53, 0.10); color: var(--mahogany); }
.chip-gold { background: rgba(168, 136, 56, 0.14); color: var(--gold); }
.chip-sage { background: rgba(45, 138, 92, 0.12); color: var(--sage); }
.chip-slate { background: rgba(64, 112, 160, 0.10); color: var(--slate); }
.chip-outline { background: var(--white); border: 1px solid var(--border-strong); color: var(--ink-mute); }

/* ────────────────────────── PAGE HEROES ────────────────────────── */
.page-hero { padding: 60px 0 50px; }
.page-hero .container { text-align: center; }
.page-hero h1 { font-size: 56px; line-height: 1.05; margin: 14px auto 16px; }
.page-hero h1 .italic { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; color: var(--mahogany); }
.page-hero .lede { font-size: 19px; color: var(--ink-mute); max-width: 700px; margin: 0 auto; }

/* ────────────────────────── FOOTER ────────────────────────── */
footer.site-footer { background: var(--ink); color: var(--surface); padding: 60px 0 30px; margin-top: 80px; position: relative; }
footer.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(168, 136, 56, 0.4), transparent); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 0 32px; max-width: 1320px; margin: 0 auto; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { color: var(--surface); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.foot-brand .brand-tag { color: var(--gold-soft); }
.foot-brand p { color: var(--ink-faint); font-size: 14px; line-height: 1.55; }
.foot-col h4 { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: var(--gold-light); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col li a { font-size: 14px; color: var(--ink-faint); text-decoration: none; transition: color 0.15s; }
.foot-col li a:hover { color: var(--gold-soft); }
.foot-social { display: flex; flex-direction: column; gap: 8px; }
.foot-social a { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); text-decoration: none; font-size: 13px; padding: 6px 0; transition: color 0.15s; }
.foot-social a:hover { color: var(--gold-soft); }
.foot-social a svg { width: 16px; height: 16px; }
.foot-bottom { margin: 40px 32px 0; padding: 22px 0 0; border-top: 1px solid rgba(168, 136, 56, 0.15); max-width: 1320px; margin-left: auto; margin-right: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-faint); }
.foot-bottom-links { display: flex; gap: 18px; }
.foot-bottom-links a { color: var(--ink-faint); text-decoration: none; }
.foot-bottom-links a:hover { color: var(--gold-soft); }

/* ────────────────────────── COMMON BLOCKS ────────────────────────── */
body.mymt-restyle section { position: relative; }
body.mymt-restyle .section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2 { font-size: 40px; line-height: 1.1; margin: 14px 0; }
.section-head .lede { font-size: 18px; color: var(--ink-mute); }

/* Final CTA — dark slab */
.cta-final { padding: 100px 0; background: var(--ink); color: var(--surface); position: relative; overflow: hidden; }
.cta-final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(168, 136, 56, 0.12) 0%, transparent 60%); pointer-events: none; }
.cta-final-inner { text-align: center; max-width: 720px; margin: 0 auto; padding: 0 32px; position: relative; }
.cta-final h2 { color: var(--surface); font-size: 44px; line-height: 1.05; margin: 16px 0; font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.02em; }
.cta-final h2 .italic { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; color: var(--gold-light); }
.cta-final p { font-size: 18px; color: var(--ink-faint); margin-bottom: 28px; }
.cta-final .btn-primary { background: var(--gold); color: var(--mahogany-deep); border-color: var(--gold-light); }
.cta-final .btn-primary:hover { background: var(--gold-light); color: var(--mahogany-deep); }
.cta-final .btn-secondary { background: transparent; color: var(--gold-soft); border-color: var(--gold); }
.cta-final .btn-secondary:hover { background: rgba(168, 136, 56, 0.1); color: var(--gold-soft); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.15s; }
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: var(--mahogany); box-shadow: 0 4px 14px rgba(122, 53, 53, 0.08); }
.faq-item summary {
  cursor: pointer; padding: 16px 22px;
  font-family: 'Cinzel', serif; font-size: 17px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.02em;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a3535' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat;
  transition: transform 0.2s;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-body { padding: 4px 22px 18px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.faq-body p { margin-bottom: 10px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { padding-left: 20px; margin: 8px 0; }
.faq-body li { margin-bottom: 4px; }
.faq-body strong { color: var(--ink); }
.faq-body a { color: var(--mahogany); font-weight: 500; }

/* Focus rings — visible on every interactive element */
body.mymt-restyle a:focus-visible,
body.mymt-restyle button:focus-visible,
body.mymt-restyle summary:focus-visible {
  outline: 2px solid var(--mahogany);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip-link */
body.mymt-restyle .skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--mahogany); color: var(--white);
  padding: 10px 16px; border-radius: 0 0 8px 0;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  text-decoration: none;
}
body.mymt-restyle .skip-link:focus { left: 0; }

/* ────────────────────────── RESPONSIVE ────────────────────────── */
@media (max-width: 980px) {
  .topbar .nav, .topbar-right .signin { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar-right .cta { padding: 8px 14px; font-size: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; max-width: 100%; }
  .page-hero h1 { font-size: 40px; }
  body.mymt-restyle .section { padding: 60px 0; }
}
@media (max-width: 580px) {
  body.mymt-restyle .container, body.mymt-restyle .narrow { padding: 0 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero h1 { font-size: 32px; }
}

/* Reduced motion — disable lifts/transforms */
@media (prefers-reduced-motion: reduce) {
  body.mymt-restyle *, body.mymt-restyle *::before, body.mymt-restyle *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  body.mymt-restyle a:hover,
  body.mymt-restyle button:hover,
  body.mymt-restyle .product-frame:hover,
  body.mymt-restyle .test-card:hover,
  body.mymt-restyle .feat3:hover {
    transform: none !important;
  }
}
