/* ArchiveOptics — site stylesheet
   Hand-written CSS. No frameworks, no build step, no external assets. */

:root {
  --ink: #101214;        /* page background */
  --ink-raised: #16191d; /* raised surfaces */
  --ink-card: #1c2025;   /* cards */
  --line: #2a2f35;       /* hairlines */
  --text: #e9e7e2;       /* primary text */
  --text-dim: #a7a49d;   /* secondary text */
  --accent: #d99a4e;     /* brass / film-base amber */
  --accent-deep: #b77c33;
  --accent-ink: #171310; /* text on accent surfaces */
  --good: #7fb069;
  --max: 1180px;
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 18, 20, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--text); font-weight: 650; font-size: 19px; letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--text-dim); font-size: 16.5px; font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* Mobile nav */
.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero.hero-product { padding-bottom: 48px; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.08; letter-spacing: -0.015em;
  max-width: 17em;
}
.hero .lead {
  margin-top: 24px; max-width: 44em;
  font-size: clamp(18px, 1.8vw, 22px); color: var(--text-dim); line-height: 1.65;
}
.hero .lead strong { color: var(--text); font-weight: 600; }
.cta-row { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-size: 16px; font-weight: 600; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e2a75f; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15.5px; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px;
}
.status-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ---------- Trust bar ---------- */

.trust-bar { border-bottom: 1px solid var(--line); background: var(--ink-raised); }
.trust-bar ul {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
}
.trust-bar li {
  padding: 18px 12px; text-align: center;
  font-size: 16px; font-weight: 550; color: var(--text-dim);
  border-left: 1px solid var(--line);
}
.trust-bar li:first-child { border-left: none; }
.trust-bar li strong { color: var(--text); font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink-raised); }
.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15;
  letter-spacing: -0.01em; max-width: 20em; margin-bottom: 18px;
}
.section > .wrap > p, .section .body-copy {
  max-width: 46em; color: var(--text-dim); font-size: 19px;
}
.section .body-copy + .body-copy { margin-top: 16px; }
.section .body-copy strong { color: var(--text); }

/* ---------- Figures / screenshots ---------- */

figure.shot { margin: 44px 0 0; }
figure.shot img {
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
figure.shot figcaption {
  margin-top: 14px; font-size: 15.5px; color: var(--text-dim);
}
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.shot-pair figure.shot { margin: 0; }

/* Row of small figures shown at natural pixel size (e.g. heal before/after crops) */
.shot-row { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; align-items: flex-start; }
.shot-row figure.shot { margin: 0; flex: 0 1 auto; }
.shot-row figure.shot img { width: auto; max-width: 100%; }
.shot-row figcaption { max-width: 300px; }

/* ---------- Feature grid ---------- */

.feature-grid {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.feature-grid article {
  padding: 28px 26px 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.feature-grid .num {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  margin-bottom: 14px; display: block;
}
.feature-grid h3 { font-size: 20px; font-weight: 650; margin-bottom: 10px; letter-spacing: -0.005em; }
.feature-grid p { font-size: 17px; color: var(--text-dim); }

/* ---------- Product cards (home) ---------- */

.product-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; padding: 64px 0;
}
.product-card + .product-card { border-top: 1px solid var(--line); }
.product-card h3 {
  font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: -0.01em;
}
.product-card .app-tag {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim); margin: 8px 0 18px;
}
.product-card p { color: var(--text-dim); }
.product-card p strong { color: var(--text); }
.product-card .card-cta { margin-top: 24px; }
.product-card figure { margin: 0; }
.product-card figure img {
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Promise band ---------- */

.promise { background: var(--ink-card); border-bottom: 1px solid var(--line); padding: 72px 0; }
.promise .mark {
  font-family: var(--serif); font-size: 64px; font-weight: 600;
  color: var(--accent); line-height: 1; margin-bottom: 20px;
}
.promise h2 { max-width: 24em; }
.promise p { max-width: 44em; color: var(--text-dim); font-size: 19px; }

/* ---------- Spec / tech strip ---------- */

.spec-list {
  margin-top: 40px; list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px;
}
.spec-list li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 17.5px; color: var(--text-dim);
  display: flex; gap: 14px; justify-content: space-between;
}
.spec-list li strong { color: var(--text); font-weight: 600; flex: none; }
.spec-list li span { text-align: right; }

/* ---------- Cross-sell ---------- */

.crosssell { padding: 64px 0; }
.crosssell .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.crosssell h2 { margin-bottom: 6px; font-size: 28px; }
.crosssell p { color: var(--text-dim); }

/* ---------- Prose pages (support, privacy, terms, company) ---------- */

.prose { padding: 72px 0 96px; }
.prose .wrap { max-width: 860px; }
.prose h1 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 12px; }
.prose .updated { color: var(--text-dim); font-size: 17px; margin-bottom: 40px; }
.prose h2 {
  font-size: 29px; margin: 48px 0 14px; max-width: none;
}
.prose h3 { font-size: 21px; font-weight: 650; margin: 30px 0 10px; }
.prose p { color: var(--text-dim); margin-bottom: 16px; max-width: 46em; font-size: 19px; line-height: 1.7; }
.prose p strong { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 16px 24px; color: var(--text-dim); font-size: 19px; line-height: 1.7; }
.prose li { margin-bottom: 10px; }
.prose li strong { color: var(--text); }

.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 12px;
}
.contact-cards .card {
  background: var(--ink-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px;
}
.contact-cards .card h3 { margin: 0 0 6px; font-size: 19px; }
.contact-cards .card p { font-size: 16.5px; margin-bottom: 12px; }
.contact-cards .card a { font-weight: 600; font-size: 17.5px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 48px; background: var(--ink-raised); }
.site-footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.site-footer .brand { margin-bottom: 14px; }
.site-footer p { color: var(--text-dim); font-size: 16px; max-width: 34em; }
.site-footer h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--text-dim); font-size: 16px; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 15px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .product-card { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .trust-bar ul { grid-template-columns: repeat(2, 1fr); }
  .trust-bar li:nth-child(3) { border-left: none; }
  .trust-bar li { border-top: 1px solid var(--line); }
  .trust-bar li:nth-child(-n+2) { border-top: none; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .shot-pair { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .site-nav {
    position: fixed; inset: 64px 0 auto 0;
    background: var(--ink-raised); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 0; display: none;
  }
  .site-nav a { display: block; width: 100%; padding: 13px 28px; font-size: 17px; }
  .nav-open .site-nav { display: flex; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: none; border: 1px solid var(--line);
    border-radius: 8px; color: var(--text); font-size: 20px; cursor: pointer;
  }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
}
