/* Web to Image website. Colours match the extension. */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f0f3f7;
  --border: #dde2e8;
  --text: #1c2129;
  --muted: #5e6875;
  --accent: #1a73e8;
  --accent-hover: #1765cc;
  --accent-text: #ffffff;
  --accent-soft: #e8f0fe;
  --accent-strong: #1558b0; /* accent text on --accent-soft, meets 4.5:1 */
  --success: #188038;
  --success-soft: #e6f4ea;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.08);
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151719;
    --surface: #1f2225;
    --surface-2: #272b2f;
    --border: #353a40;
    --text: #e8eaed;
    --muted: #9aa0a8;
    --accent: #8ab4f8;
    --accent-hover: #a7c6fa;
    --accent-text: #0b1d3a;
    --accent-soft: #23324a;
    --accent-strong: #8ab4f8;
    --success: #81c995;
    --success-soft: #1e3527;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
img { max-width: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
/* mockups.css limits <main> for the help page; the home page uses full-width sections instead. */
main.site-main { max-width: none; margin: 0; padding: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .btn { margin-left: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn svg { width: 18px; height: 18px; }
.nav .btn { padding: 7px 14px; font-size: 14px; color: var(--accent-text); }

/* Home: hero */
.hero { padding: 72px 0 48px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
}
.hero h1 { margin: 0 0 16px; font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; }
.hero p.lead { margin: 0 0 28px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .popup-shot {
  width: 300px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.18);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(circle at 30% 30%, #a8c3f3, transparent 60%), radial-gradient(circle at 70% 70%, #c5b8f0, transparent 60%);
  filter: blur(30px);
  opacity: 0.7;
}

/* Sections */
.section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature .tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature .tile svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.privacy-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.privacy-band .tile { width: 56px; height: 56px; border-radius: 14px; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.privacy-band .tile svg { width: 28px; height: 28px; }
.privacy-band h2 { margin: 0 0 4px; font-size: 22px; }
.privacy-band p { margin: 0; color: var(--muted); }

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta {
  padding: 48px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a73e8, #6b4fd8);
  color: #fff;
  text-align: center;
}
.cta h2 { margin: 0 0 10px; font-size: 32px; }
.cta p { margin: 0 0 24px; opacity: 0.9; }
.cta .btn { background: #fff; border-color: #fff; color: #1a56c4; }
.cta .btn:hover { background: #eef3fe; }

/* Legal and text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.doc h1 { margin: 0 0 6px; font-size: 38px; line-height: 1.15; letter-spacing: -0.01em; }
.doc .updated { margin: 0 0 32px; color: var(--muted); }
.doc h2 { margin: 40px 0 10px; font-size: 22px; }
.doc h3 { margin: 24px 0 6px; font-size: 17px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}
.doc .summary p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); }
.doc code { padding: 1px 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; font: 14px Consolas, monospace; }
.toc { margin: 0 0 8px; padding: 16px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }

/* Footer */
.site-footer { margin-top: 40px; padding: 36px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Not found */
.not-found { padding: 120px 20px; text-align: center; }
.not-found h1 { margin: 0 0 8px; font-size: 64px; }
.not-found p { margin: 0 0 24px; color: var(--muted); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-band { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 640px) {
  /* Keep Help and Privacy reachable on phones; the page itself has an Add to Chrome button. */
  .nav a[href$="#features"], .nav .btn { display: none; }
  .nav a { padding: 6px 8px; }
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 32px; }
  .section-head h2, .cta h2 { font-size: 26px; }
  .doc h1 { font-size: 30px; }
}
