/* Raw Smith — rawsmith.app
   Dark, photographic, precise. One typeface (Inter Tight) for display, the system font for text,
   the system monospace for readouts. Accent: the icon's curve, warm amber to white. */

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --panel: #141416;
  --panel-2: #1a1a1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ecebe7;
  --muted: #a3a29c;
  --dim: #75746f;
  --amber: #ff9636;
  --amber-2: #ffc46e;
  --warm-white: #f5efe3;
  --curve: linear-gradient(90deg, #ff8a2a 0%, #ffd27a 52%, #eef1f8 100%);
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--text-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--amber-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--warm-white); }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--warm-white); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.88em; }
kbd {
  display: inline-block; min-width: 1.7em; padding: 0.1em 0.45em; text-align: center;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
  background: var(--panel-2); color: var(--warm-white); font-size: 0.8em; line-height: 1.5;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.grad { background: var(--curve); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--warm-white); text-decoration: none; font: 650 1.08rem/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--warm-white); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--warm-white); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 0.92rem; cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0;
         background: rgba(12, 12, 13, 0.98); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 12px 0 0; border-bottom: 0; justify-content: center; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; background: none; border: 0; }
  .no-js .menu-btn { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 0.98rem/1 var(--text-font); text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--warm-white); color: #121212; }
.btn-primary:hover { background: #fff; color: #000; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--warm-white); }
.btn-small { padding: 9px 14px; font-size: 0.9rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 12px;
  background: #000; border: 1px solid var(--line-2); color: var(--warm-white); text-decoration: none;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.store-badge strong { font: 600 1.12rem/1.1 var(--display); }

/* Sections */
.section { padding: 112px 0; border-top: 1px solid var(--line); position: relative; }
.section.tight { padding: 80px 0; }
@media (max-width: 640px) { .section { padding: 72px 0; } .section.tight { padding: 56px 0; } }
.eyebrow { font: 500 0.78rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-2); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--curve); border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.split-head h2 { margin: 0; }
.split-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; gap: 16px; } }

/* Hero */
.hero { padding: 88px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 140, 50, 0.16), transparent 70%); pointer-events: none;
}
.hero-copy { position: relative; max-width: 860px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 span { display: block; }
.hero .lede { font-size: clamp(1.1rem, 1.8vw, 1.32rem); color: var(--muted); max-width: 700px; margin-bottom: 32px; }
.hero .lede strong { color: var(--text); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 0.92rem; color: var(--dim); margin-top: 16px; }
.hero-curve { position: absolute; right: -40px; top: 40px; width: 520px; opacity: 0.55; pointer-events: none; }
@media (max-width: 960px) { .hero-curve { display: none; } }

.window {
  position: relative; margin-top: 64px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2); background: #101012;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 -30px 120px -60px rgba(255, 150, 60, 0.35);
}
.window img { width: 100%; }
.readout { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 2px 0; font: 400 0.82rem/1.4 var(--mono); color: var(--dim); }
.readout b { color: var(--amber-2); font-weight: 500; }

/* Key messages */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg-2); padding: 32px 28px; }
.pillar .n { font: 500 0.78rem/1 var(--mono); color: var(--amber-2); display: block; margin-bottom: 18px; }
.pillar h3 { font-size: 1.32rem; margin-bottom: 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Prose + figure rows */
.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.row.flip { grid-template-columns: 1.25fr 1fr; }
.row.flip > :first-child { order: 2; }
@media (max-width: 960px) { .row, .row.flip { grid-template-columns: 1fr; gap: 36px; } .row.flip > :first-child { order: 0; } }
.row h2 { margin-bottom: 18px; }
.row p { color: var(--muted); }
.row p strong { color: var(--text); font-weight: 500; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #101012; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
figure { margin: 0; }
figcaption { font-size: 0.86rem; color: var(--dim); margin-top: 12px; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 2px; border-radius: 2px; background: var(--curve); }
.ticks li strong { color: var(--text); font-weight: 500; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; background: var(--bg-2); }
.stat b { display: block; font: 650 1.9rem/1.1 var(--display); color: var(--warm-white); letter-spacing: -0.02em; }
.stat span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.chips li { font: 500 0.8rem/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 11px; }

/* Tools in Lightroom order */
.tools { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .tools { grid-template-columns: 1fr; } }
.toollist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: tool; }
.toollist li { counter-increment: tool; border-bottom: 1px solid var(--line); }
.toollist button, .toollist .item {
  all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 0 8px; padding: 14px 6px; cursor: default; color: var(--muted);
}
.toollist button { cursor: pointer; }
.toollist button::before, .toollist .item::before { content: counter(tool, decimal-leading-zero); font: 500 0.78rem/1.7 var(--mono); color: var(--dim); grid-row: span 2; }
.toollist strong { color: var(--text); font-weight: 550; font-size: 1rem; }
.toollist small { color: var(--dim); font-size: 0.86rem; line-height: 1.45; }
.toollist button:hover strong { color: var(--warm-white); }
.toollist button[aria-selected="true"] strong { color: var(--amber-2); }
.toollist button[aria-selected="true"]::before { color: var(--amber-2); }
.toollist button:focus-visible { outline: 2px solid var(--amber-2); outline-offset: -2px; border-radius: 6px; }
.stage { position: sticky; top: 96px; }
.js .stage .panel-shot { display: none; }
.js .stage .panel-shot.on { display: block; }
.stage .panel-shot + .panel-shot { margin-top: 24px; }
.js .stage .panel-shot + .panel-shot { margin-top: 0; }
@media (max-width: 960px) { .stage { position: static; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.card p + p { margin-top: 0.7em; }
.card .k { font: 500 0.74rem/1 var(--mono); color: var(--amber-2); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 14px; }

/* Shortcuts table */
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 28px 0 0; }
.keys div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.keys div span:last-child { white-space: nowrap; }
@media (max-width: 620px) { .keys { grid-template-columns: 1fr; } }

/* Privacy band */
.band { border: 1px solid var(--line); border-radius: 20px; padding: 56px; background: radial-gradient(120% 140% at 0% 0%, rgba(255, 150, 60, 0.10), transparent 55%), var(--bg-2); }
@media (max-width: 640px) { .band { padding: 32px 22px; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 1.08rem/1.35 var(--display); color: var(--warm-white); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 400 1.5rem/1 var(--mono); color: var(--amber-2); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Download CTA */
.download { text-align: center; padding: 120px 0 128px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.download::before { content: ""; position: absolute; left: 50%; top: 60%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 140, 50, 0.16), transparent 70%); pointer-events: none; }
.download > .wrap { position: relative; }
.download img.icon { width: 112px; height: 112px; border-radius: 25px; margin: 0 auto 28px; box-shadow: 0 20px 60px -20px rgba(255, 140, 50, 0.45); }
.download p { color: var(--muted); max-width: 620px; margin-left: auto; margin-right: auto; }
.download .ctas { justify-content: center; margin-top: 28px; }

/* Page heads and docs */
.page-head { padding: 80px 0 40px; }
.page-head .lede { font-size: 1.2rem; color: var(--muted); max-width: 760px; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.doc { max-width: 760px; }
.doc h2 { font-size: 1.6rem; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.5em; color: var(--muted); }
.doc li strong { color: var(--text); font-weight: 550; }
.doc p { color: var(--muted); }
.doc p strong { color: var(--text); font-weight: 550; }
.doc .lede { color: var(--text); font-size: 1.15rem; }

/* Feature page */
.feature-block { padding: 72px 0; border-top: 1px solid var(--line); }
.feature-block:first-of-type { border-top: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 0.88rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; }
.toc a:hover { color: var(--warm-white); border-color: rgba(255, 255, 255, 0.3); }
.spec { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 0.95rem; }
.spec th, .spec td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--text); font-weight: 550; width: 28%; }
.spec td { color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Cameras */
.cam-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 8px 0 32px; }
.cam-search { flex: 1 1 320px; max-width: 460px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: inherit; padding: 12px 14px; }
.cam-search::placeholder { color: var(--dim); }
.cam-count { font: 400 0.86rem/1.4 var(--mono); color: var(--dim); }
.makers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 40px; padding: 0; list-style: none; }
.makers a { font-size: 0.85rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.makers a:hover { color: var(--warm-white); border-color: var(--line-2); }
.makers a span { color: var(--dim); font-family: var(--mono); font-size: 0.78rem; margin-left: 4px; }
.maker { padding: 28px 0; border-top: 1px solid var(--line); }
.maker h2 { font-size: 1.45rem; display: flex; align-items: baseline; gap: 12px; }
.maker h2 small { font: 400 0.8rem/1 var(--mono); color: var(--dim); }
.maker > p { color: var(--muted); font-size: 0.95rem; max-width: 760px; }
.models { list-style: none; padding: 0; margin: 0; columns: 4 200px; column-gap: 28px; }
.models li { break-inside: avoid; font-size: 0.92rem; color: var(--muted); padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); }
.models li[hidden] { display: none; }
.maker[hidden] { display: none; }
.empty { color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; background: var(--bg-2); display: flex; flex-direction: column; }
.plan.best { border-color: rgba(255, 180, 100, 0.45); background: radial-gradient(120% 80% at 50% 0%, rgba(255, 150, 60, 0.12), transparent 60%), var(--bg-2); }
.plan .tag { align-self: flex-start; font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: #111; background: var(--amber-2); border-radius: 999px; padding: 6px 9px; margin-bottom: 16px; }
.plan .tag.quiet { background: none; color: var(--dim); border: 1px solid var(--line-2); }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price { font: 650 2.6rem/1 var(--display); color: var(--warm-white); letter-spacing: -0.03em; margin: 14px 0 6px; }
.price small { font: 400 0.95rem/1 var(--text-font); color: var(--muted); letter-spacing: 0; }
.plan .note { color: var(--amber-2); font-size: 0.9rem; margin: 0 0 8px; }
.plan .sub { color: var(--muted); font-size: 0.95rem; }
.plan .ticks { margin-top: 12px; }
.plan .ticks li { font-size: 0.94rem; }
.fineprint { color: var(--dim); font-size: 0.88rem; margin-top: 24px; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 640px; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font: 600 0.95rem/1.3 var(--display); color: var(--warm-white); }
.compare thead th:nth-child(2) { color: var(--amber-2); }
.compare tbody th { color: var(--text); font-weight: 550; width: 22%; }
.compare td { color: var(--muted); }
.compare td:nth-child(2) { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--dim); font-size: 0.9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--warm-white); }
.site-footer .brand { font-size: 1rem; }
.site-footer .legal { grid-column: 1 / -1; font-size: 0.8rem; color: var(--dim); margin: 0; max-width: 900px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer nav { justify-content: flex-start; } }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.notfound .wrap { max-width: 680px; }
.notfound img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; }
.notfound p { color: var(--muted); }
.notfound .ctas { justify-content: center; margin-top: 24px; }
.nav a.btn-primary { color: #121212; }
.nav a.btn-primary:hover { color: #000; background: #fff; }
