/* === Octopus Switch Guide — Global Styles === */
/* Aesthetic: Editorial warmth. Trustworthy, not corporate. Clean, not sterile. */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --clr-bg: #faf9f6;
  --clr-surface: #ffffff;
  --clr-text: #1a1a1a;
  --clr-text-muted: #5a5a5a;
  --clr-accent: #e84393;
  --clr-accent-dark: #c2185b;
  --clr-cta: #00b894;
  --clr-cta-hover: #00a37d;
  --clr-border: #e8e5e0;
  --clr-highlight: #ffeaa7;
  --clr-dark-bg: #1a1a2e;
  --clr-dark-text: #f0ece6;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  --max-w: 1140px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--clr-text); background: var(--clr-bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clr-accent-dark); }

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

/* === HEADER === */
.site-header { background: var(--clr-surface); border-bottom: 1px solid var(--clr-border); position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; color: var(--clr-text); }
.site-logo img { width: 36px; height: 36px; border-radius: 6px; }

.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; font-size: .9rem; font-weight: 500; }
.nav-links a { color: var(--clr-text-muted); }
.nav-links a:hover { color: var(--clr-accent); }

.nav-cta { background: var(--clr-cta); color: #fff !important; padding: 8px 18px; border-radius: var(--radius); font-weight: 600; font-size: .85rem; transition: background .2s, transform .15s; }
.nav-cta:hover { background: var(--clr-cta-hover); transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--clr-text); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--clr-surface); border-bottom: 1px solid var(--clr-border); padding: 16px 24px; gap: 12px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
}

/* === HERO === */
.hero { padding: 64px 0 56px; text-align: center; }
.hero-badge { display: inline-block; background: var(--clr-highlight); color: #6b5b00; font-size: .8rem; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 20px; letter-spacing: .03em; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 20px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero h1 span { color: var(--clr-accent); }
.hero-sub { font-size: 1.15rem; color: var(--clr-text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--clr-cta); color: #fff; padding: 16px 36px; border-radius: var(--radius); font-size: 1.1rem; font-weight: 600; transition: background .2s, transform .15s, box-shadow .2s; box-shadow: var(--shadow-sm); }
.hero-cta:hover { background: var(--clr-cta-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.hero-trust { margin-top: 16px; font-size: .82rem; color: var(--clr-text-muted); }

/* === CONTENT SECTIONS === */
section { padding: 56px 0; }
section:nth-child(even) { background: var(--clr-surface); }

.section-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--clr-accent); margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.2; margin-bottom: 16px; }

h2 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.3; margin: 40px 0 16px; }
h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 28px 0 12px; }

p { margin-bottom: 16px; }
ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 6px; }

/* === CARDS === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 32px 0; }
.card { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .15s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 8px; }
.card p { font-size: .92rem; color: var(--clr-text-muted); margin: 0; }
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }

/* === STEPS === */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.step::before { counter-increment: step; content: counter(step); flex-shrink: 0; width: 44px; height: 44px; background: var(--clr-accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.2rem; }
.step-content h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step-content p { margin: 0; font-size: .92rem; color: var(--clr-text-muted); }

/* === TABLE === */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .92rem; }
.comparison-table th { background: var(--clr-dark-bg); color: var(--clr-dark-text); padding: 12px 16px; text-align: left; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--clr-border); vertical-align: top; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(232,67,147,.03); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--clr-border); }

/* === CTA BANNER === */
.cta-banner { background: var(--clr-dark-bg); color: var(--clr-dark-text); padding: 48px 0; text-align: center; }
.cta-banner h2 { font-family: var(--font-display); color: #fff; font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.7); margin-bottom: 24px; }
.cta-banner .hero-cta { display: inline-flex; }

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--clr-border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--clr-accent); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { font-size: .92rem; color: var(--clr-text-muted); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 300px; }

/* === SIDEBAR CTA === */
.sidebar-cta { background: linear-gradient(135deg, var(--clr-accent) 0%, #6c5ce7 100%); color: #fff; border-radius: var(--radius); padding: 32px; text-align: center; margin: 32px 0; }
.sidebar-cta h3 { font-family: var(--font-display); color: #fff; margin: 0 0 8px; font-size: 1.3rem; }
.sidebar-cta p { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 20px; }
.sidebar-cta a { background: #fff; color: var(--clr-accent); padding: 12px 28px; border-radius: var(--radius); font-weight: 600; display: inline-block; transition: transform .15s, box-shadow .2s; }
.sidebar-cta a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--clr-accent); }

/* === CONTENT LAYOUT === */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.content-main { min-width: 0; }
.content-sidebar { position: sticky; top: 80px; }
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
}

/* === FOOTER === */
.site-footer { background: var(--clr-dark-bg); color: rgba(255,255,255,.6); padding: 48px 0 32px; font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 12px; }
.footer-grid a { color: rgba(255,255,255,.6); display: block; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--clr-cta); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .8rem; }

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* === BREADCRUMB === */
.breadcrumb { font-size: .82rem; color: var(--clr-text-muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--clr-text-muted); }
.breadcrumb a:hover { color: var(--clr-accent); }

/* === IMAGE FEATURE === */
.feature-img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 24px 0; }

/* === ARTICLE BODY === */
.article-body h2 { border-bottom: 2px solid var(--clr-border); padding-bottom: 8px; }
.article-body blockquote { border-left: 3px solid var(--clr-accent); padding: 12px 20px; margin: 24px 0; background: rgba(232,67,147,.04); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--clr-text-muted); }

/* === ANIMATIONS === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }

/* === PRINT === */
@media print {
  .site-header, .site-footer, .nav-toggle, .sidebar-cta, .cta-banner { display: none; }
}
