/* WerkLens — site styles. Tokens mirror WLTheme in the app (WLDesignSystem/WLTheme.swift). */

:root {
  --bg: #FFFFFF;
  --bg-deep: #F2F2F6;
  --surface: #F7F7FA;
  --surface-hi: #ECECF1;
  --text: #0A0A0C;
  --text-2: rgba(10, 10, 12, 0.72);
  --muted: rgba(10, 10, 12, 0.58);
  --line: rgba(10, 10, 12, 0.10);
  --accent: #FF9F0A;
  --accent-bright: #FFB340;
  --accent-ink: #8F5200;
  --accent-soft: rgba(255, 159, 10, 0.14);
  --on-accent: #0A0A0C;
  --ok: #1E8E3E;
  --shadow: 0 1px 2px rgba(10, 10, 12, 0.06), 0 12px 32px rgba(10, 10, 12, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1120px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1D1C1A;
    --bg-deep: #131211;
    --surface: #2B2A28;
    --surface-hi: #343330;
    --text: #FFFFFF;
    --text-2: rgba(255, 255, 255, 0.76);
    --muted: rgba(255, 255, 255, 0.60);
    --line: rgba(255, 255, 255, 0.12);
    --accent-ink: #FFB340;
    --accent-soft: rgba(255, 159, 10, 0.16);
    --ok: #34C759;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #1D1C1A;
  --bg-deep: #131211;
  --surface: #2B2A28;
  --surface-hi: #343330;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.76);
  --muted: rgba(255, 255, 255, 0.60);
  --line: rgba(255, 255, 255, 0.12);
  --accent-ink: #FFB340;
  --accent-soft: rgba(255, 159, 10, 0.16);
  --ok: #34C759;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 550; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-hi); }
.nav .lang { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .site-head .wrap { flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; padding-bottom: 6px; }
  .nav { margin-left: 0; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; padding: 6px 9px; font-size: 0.9rem; }
  .nav .lang { margin-left: auto; }
}

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: var(--on-accent); box-shadow: 0 6px 18px rgba(255, 159, 10, 0.28); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.04); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-hi); text-decoration: none; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px;
  border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 650; font-size: 0.98rem;
}
.soon svg { width: 18px; height: 18px; }

/* ---------- stamp (the app's time + place stamp) ---------- */

.stamp {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.35; letter-spacing: 0.02em;
  color: #fff; background: rgba(0, 0, 0, 0.52); padding: 7px 10px; border-radius: 8px;
  display: inline-block; font-variant-numeric: tabular-nums;
}
.stamp b { color: var(--accent-bright); font-weight: 600; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 40px; background: linear-gradient(var(--bg-deep), var(--bg)); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } .hero { padding: 84px 0 64px; } }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 14px; display: block; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 36em; margin-top: 18px; }
.hero .actions { margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

.shot { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.shot .stamp { position: absolute; left: 14px; bottom: 14px; }
.shot figcaption { position: absolute; right: 12px; top: 12px; font-size: 0.72rem; color: #fff; background: rgba(0, 0, 0, 0.42); padding: 4px 9px; border-radius: 999px; }

/* ---------- sections ---------- */

.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 1.06rem; }
.tint { background: var(--bg-deep); }

/* contrast: camera roll vs per project */
.split { display: grid; gap: 16px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 24px; } }
.panel { border-radius: var(--radius-lg); padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.panel h3 { margin-bottom: 8px; }
.panel p { color: var(--text-2); }
.panel.good { background: var(--accent-soft); border-color: transparent; }
.panel .tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.panel.good .tag { color: var(--accent-ink); }

/* example projects strip */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
@media (min-width: 760px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.project { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); position: relative; }
.project img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.project figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; }
.project .chip { font-size: 0.8rem; font-weight: 650; color: #fff; background: rgba(0, 0, 0, 0.5); padding: 5px 10px; border-radius: 999px; }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* feature rows: alternate text and visual */
.feature { display: grid; gap: 24px; align-items: start; padding: 36px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .feature.flip > :first-child { order: 2; }
}
.feature h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }
.feature p { color: var(--text-2); margin-top: 10px; }
.verb { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; display: block; margin-bottom: 10px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 5px var(--accent); }
.ticks .pro-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-ink); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.phone { margin: 0 auto; max-width: 300px; border-radius: 38px; padding: 10px; background: #0A0A0C; box-shadow: var(--shadow); }
.phone img { border-radius: 29px; width: 100%; }

/* privacy band */
.band { background: #131211; color: #fff; }
.band .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: 1fr 1fr; align-items: center; } }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.78); margin-top: 12px; }
.band a { color: var(--accent-bright); }
.facts { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.12); border-radius: var(--radius); overflow: hidden; }
.facts div { background: #1D1C1A; padding: 16px 18px; display: flex; gap: 14px; align-items: baseline; }
.facts dt { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-bright); min-width: 7.5em; }
.facts dd { margin: 0; color: rgba(255, 255, 255, 0.86); }

/* cards for next steps */
.next { display: grid; gap: 16px; }
@media (min-width: 760px) { .next { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.next a { display: block; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.next a:hover { background: var(--surface-hi); }
.next h3 { margin-bottom: 6px; }
.next p { color: var(--text-2); font-size: 0.97rem; }
.next .go { display: inline-block; margin-top: 12px; color: var(--accent-ink); font-weight: 650; font-size: 0.95rem; }

/* ---------- article pages ---------- */

.page-head { padding: 48px 0 24px; background: linear-gradient(var(--bg-deep), var(--bg)); }
@media (min-width: 900px) { .page-head { padding: 72px 0 32px; } }
.page-head .lede { margin-top: 14px; }
.prose { max-width: 40em; }
.prose p, .prose ul { margin: 0 0 1.05em; }
.prose h2 { font-size: 1.45rem; margin: 1.8em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose .meta { color: var(--muted); font-size: 0.9rem; }
.pull { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 1.6em 0; color: var(--text); }

/* launch price (only rendered while it runs) */
.launch { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text); max-width: 46em; }
.launch-tag { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-ink); }
.launch-mini { margin-top: 8px; font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); }

/* free vs pro */
.compare { display: grid; gap: 16px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; gap: 24px; } }
.plan { border-radius: var(--radius-lg); padding: 26px; background: var(--surface); border: 1px solid var(--line); }
.plan.pro { background: var(--accent-soft); border-color: transparent; }
.plan h2 { font-size: 1.5rem; }
.plan .sub { color: var(--text-2); margin: 6px 0 18px; }
.plan dl { margin: 0; display: grid; gap: 12px; }
.plan dt { font-weight: 650; }
.plan dd { margin: 2px 0 0; color: var(--text-2); font-size: 0.95rem; }

/* ---------- questions ---------- */

.q-tools { display: grid; gap: 14px; margin: 8px 0 28px; }
.q-search { position: relative; max-width: 560px; }
.q-search input {
  width: 100%; min-height: 50px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px 12px 44px;
}
.q-search input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.q-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.q-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.q-cats a { font-size: 0.88rem; font-weight: 600; color: var(--text-2); text-decoration: none; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.q-cats a:hover { color: var(--text); background: var(--surface-hi); }
.q-group { margin-top: 36px; max-width: 46em; }
.q-group > h2 { font-size: 1.3rem; margin-bottom: 10px; }
.q-item { border-bottom: 1px solid var(--line); }
.q-item summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; font-weight: 650; position: relative; }
.q-item summary::-webkit-details-marker { display: none; }
.q-item summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--accent-ink); }
.q-item[open] summary::after { content: "–"; }
.q-body { padding: 0 0 20px; color: var(--text-2); }
.q-body p + p, .q-body p + ol, .q-body ol + p { margin-top: 10px; }
.q-body ol { margin: 10px 0 0; padding-left: 1.4em; }
.q-body ol li { margin-bottom: 4px; }
.q-body ol li::marker { color: var(--accent-ink); font-weight: 700; }
.q-then { display: flex; gap: 8px; }
.q-then::before { content: "✓"; color: var(--ok); font-weight: 700; }
.q-more { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.q-link { font-size: 0.85rem; margin-top: 10px; display: inline-block; color: var(--muted); }
.q-empty { color: var(--text-2); margin-top: 24px; }
[hidden] { display: none !important; }

/* contact block */
.contact-card { border-radius: var(--radius-lg); padding: 26px; background: var(--surface); border: 1px solid var(--line); max-width: 46em; }
.contact-card h2 { font-size: 1.35rem; }
.contact-card p { color: var(--text-2); margin-top: 8px; }
.contact-card .actions { margin-top: 18px; }
.mail { font-family: var(--font-mono); font-size: 0.95rem; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; background: var(--bg-deep); font-size: 0.93rem; }
.site-foot .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h2 { font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }
.site-foot .small { color: var(--muted); margin-top: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .next a, .q-cats a { transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease; }
}

@media print {
  .site-head, .site-foot, .q-tools { display: none; }
  .q-item { break-inside: avoid; }
}

/* ---------- utilities (no inline styles: the CSP allows only our own CSS) ---------- */
.pt-s { padding-top: 24px; } .pt-xs { padding-top: 16px; }
.mt-0 { margin-top: 0; } .mt-s { margin-top: 16px; } .mt-m { margin-top: 22px; } .mt-l { margin-top: 24px; } .mt-xl { margin-top: 48px; }
.mb-s { margin-bottom: 16px; } .ml-s { margin-left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stamp-lg { font-size: 13px; } .photo-wide { width: 100%; max-width: 520px; margin: 0 auto; }
.w-0 { width: 0%; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; } 
.c-proj { background: var(--proj, #14B8A6); } .c-red { background: #EF4444; } .c-green { background: #22C55E; }
