/* PromptLens website styles. No external dependencies, no remote fonts, no analytics. */
:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --bg-soft: #fbfaf7;
  --surface: #ffffff;
  --surface-muted: #f1f0ec;
  --border: #e4e1da;
  --border-strong: #cbc6bb;
  --text: #1f1f1c;
  --muted: #6e6a62;
  --faint: #9a9489;
  --accent: #3f3a32;
  --accent-hover: #26231f;
  --accent-soft: #ece8ff;
  --success: #087f5b;
  --success-bg: #e7f8ef;
  --danger: #c92a2a;
  --danger-bg: #fff0f0;
  --warning: #b35c00;
  --warning-bg: #fff7df;
  --info: #2563eb;
  --info-bg: #eef4ff;
  --cream: #fff6d8;
  --radius-control: 10px;
  --radius-card: 18px;
  --radius-large: 24px;
  --shadow-soft: 0 8px 24px rgba(40, 36, 28, 0.06);
  --shadow-card: 0 18px 48px rgba(40, 36, 28, 0.08);
  --shadow-deep: 0 28px 80px rgba(40, 36, 28, 0.16);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(79, 70, 229, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(63, 58, 50, 0.22);
  outline-offset: 2px;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.shell {
  width: min(var(--shell), calc(100% - 36px));
  margin-inline: auto;
}

.narrow {
  width: min(860px, calc(100% - 36px));
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 760;
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 225, 218, 0.86);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  letter-spacing: -0.05em;
  box-shadow: var(--shadow-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover,
.prose a:hover,
.support-toc a:hover {
  color: var(--text);
}

.nav-links [aria-current="page"] {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 18px rgba(40, 36, 28, 0.05);
}

.language-option {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.language-option.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(38, 35, 31, 0.12);
}

.language-option:not(.is-active):hover {
  color: var(--text);
  background: var(--surface-muted);
}

.nav-cta,
.button,
.secondary-link,
.copy-button-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.nav-cta {
  min-height: 38px;
  padding: 8px 13px;
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(38, 35, 31, 0.12);
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: rgba(241, 240, 236, 0.72);
}

.section-dark,
.section-dark-soft {
  color: #fffaf0;
  background:
    radial-gradient(circle at 12% 8%, rgba(236, 232, 255, 0.26), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(255, 246, 216, 0.12), transparent 32%),
    linear-gradient(135deg, #3f3a32 0%, #26231f 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 92px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -30% 48%;
  height: 420px;
  border-radius: 999px;
  background: rgba(236, 232, 255, 0.10);
  filter: blur(20px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 54px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.section-dark-soft .eyebrow {
  color: rgba(236, 232, 255, 0.86);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 780px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-lede,
.page-hero p {
  color: rgba(255, 250, 240, 0.80);
  font-size: 18px;
  line-height: 1.65;
}

.trust-list,
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li,
.check-list li,
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 250, 240, 0.84);
  font-size: 13px;
  font-weight: 720;
}

.trust-list li::before,
.check-list li::before,
.badge-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 44px;
  padding: 11px 16px;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(38, 35, 31, 0.16);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf0;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.13);
}

.availability-note {
  margin: 14px 0 0;
  color: rgba(255, 250, 240, 0.62);
  font-size: 13px;
}

.availability-note.dark {
  color: var(--muted);
}

.hero-media {
  position: relative;
  min-height: 620px;
}

.screenshot-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(228, 225, 218, 0.28);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-deep);
}

.screenshot-card::before,
.screenshot-feature::before {
  content: "";
  display: block;
  height: 34px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 18px 17px, #ff6b6b 0 4px, transparent 5px),
    radial-gradient(circle at 34px 17px, #ffd43b 0 4px, transparent 5px),
    radial-gradient(circle at 50px 17px, #51cf66 0 4px, transparent 5px),
    linear-gradient(180deg, #fff, #fbfaf7);
}

.screenshot-card img,
.screenshot-feature img {
  width: 100%;
}

.screenshot-card-large {
  right: 0;
  top: 34px;
  width: min(94%, 660px);
}

.screenshot-card-small {
  width: min(52%, 338px);
}

.screenshot-card-menu {
  left: 0;
  top: 0;
}

.screenshot-card-options {
  left: 32px;
  bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}

.card-grid,
.steps,
.screenshot-grid,
.note-grid,
.install-grid,
.privacy-grid,
.footer-grid,
.support-grid,
.error-list {
  display: grid;
  gap: 14px;
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.step-card,
.install-card,
.error-list article,
details,
.note-grid p,
.support-toc,
.screenshot-feature {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.card,
.step-card,
.install-card,
.error-list article,
details,
.note-grid p {
  padding: 22px;
}

.card p,
.step-card p,
.install-card p,
.error-list p,
details p,
.note-grid p,
.prose p,
.prose li {
  color: var(--muted);
}

.card p,
.step-card p,
.install-card p,
.error-list p,
details p,
.note-grid p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.6;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(38, 35, 31, 0.16);
}

.callout {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: var(--info-bg);
  color: var(--info);
  font-size: 13px;
  line-height: 1.55;
}

.screenshot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-feature {
  overflow: hidden;
}

.screenshot-feature img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--border);
}

.screenshot-feature div {
  padding: 18px 20px 20px;
}

.screenshot-feature.wide {
  grid-column: 1 / -1;
}

.privacy-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.privacy-grid p,
.section-dark-soft li {
  color: rgba(255, 250, 240, 0.78);
}

.text-link,
.prose a {
  color: var(--accent);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.section-dark-soft .text-link {
  color: var(--cream);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.table-wrap.in-prose {
  margin: 22px 0;
  box-shadow: none;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-muted);
  color: var(--faint);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.note-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.install-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 22px;
}

.install-card ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  box-shadow: none;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 760;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--faint);
  transition: transform 150ms ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details p {
  margin-top: 12px;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: rgba(241, 240, 236, 0.72);
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.page-hero {
  padding: 84px 0 72px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.last-updated {
  color: rgba(255, 250, 240, 0.64) !important;
  font-size: 13px !important;
}

.prose h2 {
  margin-top: 42px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 26px;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.policy-content,
.support-layout {
  background: var(--bg);
}

.support-grid {
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.support-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.support-toc a {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.support-toc a:hover {
  background: var(--surface-muted);
}

.support-content section {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.support-content section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.error-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 4px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 9px 0;
  }

  .nav-cta,
  .language-switcher {
    text-align: center;
    justify-content: center;
  }

  .hero-grid,
  .privacy-grid,
  .install-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 560px;
  }

  .four-up,
  .steps,
  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .shell,
  .narrow {
    width: min(100% - 24px, var(--shell));
  }

  .section {
    padding: 62px 0;
  }

  .hero,
  .page-hero {
    padding: 68px 0 60px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-media {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .screenshot-card {
    position: static;
    width: 100%;
  }

  .four-up,
  .steps,
  .screenshot-grid,
  .note-grid,
  .error-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-feature.wide {
    grid-column: auto;
  }

  .footer-grid {
    align-items: start;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
