/* PrinterHealer — printerhealer.com
   Palette mirrors the app: a soft GREEN glow bleeding from the top, a deep
   teal-blue for actions/brand/links, and a vivid green reserved for the
   "Ready to print" success state. Light by default (the app's primary look);
   a dark variant follows via prefers-color-scheme. Two-signal system:
   blue = action, green = healed. */
:root {
  --screen: #F4F9F5;    /* near-white, faint green */
  --card: #FFFFFF;      /* elevated surface */
  --panel: #FFFFFF;     /* device panel in the how-it-works visuals */
  --panel-ico: #E6F0F7; /* printer icon chip */
  --ink: #0F1A14;
  --ink2: #47564E;
  --ink3: #7C8B83;
  --primary: #2E7CA6;   /* deep teal-blue — brand, links, CTA (the app's light accent) */
  --accent: #4F97BE;    /* muted teal — eyebrows, section labels */
  --ready: #22B24C;     /* green — "Ready to print" success (deeper for light contrast) */
  --warn: #C7602F;      /* muted amber-red — diagnostic "problem" markers only */
  --ring-track: #DCE7DF;
  --code-bg: #EEF3EF;
  --callout-ink: #1F6E93;
  --feature-glow: rgba(46,124,166,0.20);
  --separator: #E1E9E3;
  --tip: #E9F5EC;
  --glow-grad: radial-gradient(150% 60% at 50% -14%, rgba(46,200,90,0.22) 0%, rgba(46,200,90,0.07) 26%, rgba(46,200,90,0) 54%);
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Light is the default everyone sees. The app's dark look is preserved here as
   an opt-in (set data-theme="dark" on <html>) for a future theme toggle, so it
   never overrides the light default just because a viewer's OS is in dark mode. */
:root[data-theme="dark"] {
  --screen: #070D0A;    /* near-black, faint green */
  --card: #131C17;
  --panel: #0B1B27;
  --panel-ico: #16324A;
  --ink: #F2F6F3;
  --ink2: #AEBEB5;
  --ink3: #6E827A;
  --primary: #5BB9E8;   /* sky blue — the app's dark-mode action color */
  --accent: #4FA3CE;
  --ready: #35D95F;
  --warn: #E2794B;
  --ring-track: #1E2C24;
  --code-bg: #0B1B27;
  --callout-ink: #7FD3F2;
  --feature-glow: rgba(91,185,232,0.28);
  --separator: #1E2C24;
  --tip: #0E1A13;
  --glow-grad: radial-gradient(150% 60% at 50% -12%, rgba(53,217,95,0.20) 0%, rgba(53,217,95,0.07) 24%, rgba(53,217,95,0) 52%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--screen); }
body {
  margin: 0;
  /* Green glow bleeding from the top — the app's background, both themes. */
  background-color: var(--screen);
  background-image: var(--glow-grad);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; max-width: 1100px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .logo { height: 40px; width: auto; display: block; }
.brand .logo.dark { display: none; }
:root[data-theme="dark"] .brand .logo.light { display: none; }
:root[data-theme="dark"] .brand .logo.dark { display: block; }
.nav a { margin-left: 22px; text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--primary); }

/* Eyebrow */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 12px;
}

/* Hero — breaks a bit wider than the 900px content to give the two phones room */
.hero-band { padding: 0 24px; }
.hero { display: flex; align-items: center; gap: 40px; max-width: 1080px; margin: 0 auto; padding: 48px 0 44px; text-align: left; }
.hero-copy { flex: 1 1 46%; min-width: 0; }
.hero-art { flex: 1 1 54%; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 560px; height: auto; }
.hero h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 18px;
}
.hero p.lead { font-size: clamp(17px, 2.5vw, 20px); color: var(--ink2); max-width: 460px; margin: 0 0 28px; }

.cta-row { display: flex; gap: 12px; justify-content: flex-start; align-items: center; flex-wrap: wrap; }

@media (max-width: 820px) {
  .hero { flex-direction: column; text-align: center; gap: 20px; padding: 32px 0 28px; }
  .hero p.lead { margin: 0 auto 28px; }
  .hero-art img { max-width: 440px; }
  .cta-row { justify-content: center; }
}
.cta {
  display: inline-block; background: var(--primary); color: #06131C;
  font-weight: 600; font-size: 16px; padding: 14px 26px; border-radius: 14px;
  text-decoration: none;
}
.cta.ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--separator); }
.cta { box-shadow: 0 0 28px rgba(91,185,232,0.28); }
.soon {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink2); border: 1.5px solid var(--separator); border-radius: 999px; padding: 11px 18px;
  background: rgba(53,217,95,0.05);
}
.soon .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ready); box-shadow: 0 0 0 0 rgba(70,196,137,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(70,196,137,0.45); } 70% { box-shadow: 0 0 0 8px rgba(70,196,137,0); } 100% { box-shadow: 0 0 0 0 rgba(70,196,137,0); } }
.hero .microcopy { margin-top: 14px; font-size: 13.5px; color: var(--ink3); }

.store-badge { display: inline-block; transition: opacity 0.15s ease; }
.store-badge:hover { opacity: 0.85; }
.store-badge img { display: block; }

/* How-it-works steps */
.steps { padding: 12px 0 56px; }
.steps-head {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-align: center;
  font-size: clamp(24px, 4vw, 34px); margin: 6px 0 30px;
}

/* How-it-works — alternating device rows */
.steps-flow { display: flex; flex-direction: column; gap: 10px; }
.tour-row { display: flex; align-items: center; gap: 32px; padding: 22px 0; }
.tour-row:nth-child(even) { flex-direction: row-reverse; }
.tour-art { flex: 1 1 42%; display: flex; justify-content: center; }
.tour-art img { width: 100%; max-width: 290px; height: auto; }
.tour-copy { flex: 1 1 58%; max-width: 440px; }
.tour-copy .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tour-copy h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; margin: 10px 0 10px; }
.tour-copy p { color: var(--ink2); font-size: 16px; line-height: 1.6; margin: 0; }
@media (max-width: 760px) {
  .tour-row, .tour-row:nth-child(even) { flex-direction: column; text-align: center; gap: 14px; padding: 20px 0; }
  .tour-copy { max-width: 480px; }
  .tour-art img { max-width: 240px; }
}

/* Pricing */
.pricing { padding: 12px 0 56px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 820px; margin: 0 auto; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--separator); border-radius: 18px; padding: 22px 22px 24px; display: flex; flex-direction: column; }
.plan.feature { border-color: var(--primary); box-shadow: 0 0 0 1px var(--feature-glow); }
.plan .tier { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.plan.feature .tier { color: var(--primary); }
.plan .amt { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .amt small { font-size: 15px; font-weight: 500; color: var(--ink3); letter-spacing: 0; }
.plan .note { font-size: 13px; color: var(--ink3); margin: 0 0 14px; min-height: 18px; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 0; }
.plan li { font-size: 14px; color: var(--ink2); padding: 6px 0 6px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ready); font-weight: 700; }
.plan li.off { color: var(--ink3); }
.plan li.off::before { content: "–"; color: var(--ink3); }
.price-foot { text-align: center; color: var(--ink3); font-size: 13.5px; margin: 22px auto 0; max-width: 640px; }

/* FAQ */
.faq { padding: 12px 0 56px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--separator); border-radius: 14px;
  padding: 0 18px; margin-bottom: 12px;
}
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 30px 16px 0;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--text); font-weight: 500; font-size: 24px; line-height: 1; color: var(--accent);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0 0 16px; color: var(--ink2); font-size: 15.5px; line-height: 1.6; }
.faq-item p:first-of-type { margin-top: -2px; }

/* Legal / article + support pages. Vertical padding only, so .wrap's 24px side
   padding survives on phone widths. */
.article { padding-top: 40px; padding-bottom: 72px; }
.article h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.025em; margin: 0 0 6px; }
.article .updated { font-family: var(--mono); font-size: 12px; color: var(--ink3); margin: 0 0 28px; }
.article h2 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 34px 0 8px; }
.article h3 { font-size: 17px; margin: 22px 0 6px; }
.article p, .article li { color: var(--ink2); font-size: 16px; }
.article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article a { color: var(--primary); }
.article code { font-family: var(--mono); font-size: 13.5px; color: var(--ink); background: var(--code-bg); border: 1px solid var(--separator); border-radius: 5px; padding: 1px 6px; }
.callout {
  background: var(--tip); border: 1px solid var(--separator); border-radius: 14px; padding: 16px 18px; margin: 20px 0;
  color: var(--callout-ink); font-size: 15px;
}

/* Support quick-fix cards */
.fix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 8px; }
@media (max-width: 620px) { .fix-grid { grid-template-columns: 1fr; } }
.fix { background: var(--card); border: 1px solid var(--separator); border-radius: 14px; padding: 16px 18px; }
.fix h3 { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0 0 6px; color: var(--ink); }
.fix p { margin: 0; font-size: 14px; color: var(--ink2); }
.contact-card {
  background: var(--card); border: 1px solid var(--separator); border-radius: 16px;
  padding: 22px 24px; margin: 22px 0; text-align: center;
}
.contact-card .email { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--primary); text-decoration: none; letter-spacing: -0.01em; }
.contact-card p { margin: 8px 0 0; font-size: 14px; color: var(--ink3); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--separator); margin-top: 24px;
  padding: 28px 24px; text-align: center; color: var(--ink3); font-size: 14px;
}
.site-footer .links { display: flex; gap: 4px; justify-content: center; align-items: center; flex-wrap: wrap; }
.site-footer a { color: var(--ink2); text-decoration: none; margin: 0 10px; }
.site-footer a:hover { color: var(--primary); }
.site-footer .sep { color: var(--separator); }
