/* RenCapture public site. One stylesheet, no build step.
   Palette mirrors the app's Porcelain (light) and Onyx (dark) themes. */

@font-face { font-family: "Manrope"; src: url("fonts/Manrope_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces_500Medium_Italic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-alt: #EEEBE2;
  --border: #E4E0D5;
  --border-strong: #CFC9BB;
  --text: #171D1B;
  --text-2: #57615C;
  --text-3: #6F7873;
  --accent: #0E8C6D;
  --accent-ink: #0B6B53;
  --accent-soft: #DCF1E9;
  --on-accent: #FFFFFF;
  --amber-soft: #F7ECD8;
  --amber-ink: #7A5210;
  --shadow: 0 1px 2px rgba(23, 29, 27, .06), 0 12px 32px rgba(23, 29, 27, .10);
  --radius: 20px;
  --max: 1120px;
  --prose: 720px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C100F;
    --surface: #161D1A;
    --surface-alt: #1D2521;
    --border: #27312B;
    --border-strong: #374439;
    --text: #ECF2EE;
    --text-2: #A9B6AE;
    --text-3: #85928A;
    --accent: #35DBA8;
    --accent-ink: #35DBA8;
    --accent-soft: #12382C;
    --on-accent: #05231A;
    --amber-soft: #33270F;
    --amber-ink: #E8A93E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
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: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
em.serif { font-family: var(--serif); font-style: italic; font-weight: 500; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand .brand-logo { height: 28px; width: auto; display: block; flex: none; }
.brand .brand-mark { fill: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--surface-alt); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.lede { font-size: 1.2rem; color: var(--text-2); max-width: 34em; }
.hero-note { font-size: .9rem; color: var(--text-3); margin-top: 16px; }

/* Phone frames around screenshots */
.phone { position: relative; border-radius: 40px; padding: 10px; background: #111614; box-shadow: var(--shadow); max-width: 300px; margin: 0 auto; }
.phone img { border-radius: 31px; width: 100%; aspect-ratio: 660 / 1434; background: #F6F4EF; }
.hero .phone { transform: rotate(2deg); }

/* Feature rows */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature.flip .feature-media { order: -1; }
.feature .phone { max-width: 260px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%230E8C6D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%2335DBA8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* Privacy grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.section:not(.section-alt) .card { background: var(--surface); }
.card h3 { font-family: var(--sans); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.005em; margin-bottom: 6px; }
.card p { color: var(--text-2); margin: 0; font-size: .97rem; }

.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; border-radius: 0 14px 14px 0; color: var(--text); margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--amber-ink); background: var(--amber-soft); }

.cta { text-align: center; }
.cta .lede { margin: 0 auto; }
.cta .actions { justify-content: center; }

/* Long-form pages */
.page-head { padding: 56px 0 8px; }
.page-head p { color: var(--text-2); }
.meta { font-size: .92rem; color: var(--text-3); }
.prose { max-width: var(--prose); padding-bottom: 72px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; scroll-margin-top: 80px; }
.prose h3 { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--text-3); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin: 24px 0 8px; }
.toc strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-alt); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.ph { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--amber-soft); color: var(--amber-ink); padding: 0 4px; border-radius: 4px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 14px 32px 14px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--text-3); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 12px; color: var(--text-2); }

.contact-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 8px; }
.contact-card .card { background: var(--surface); }
.contact-card .card a { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--text-3); font-size: .92rem; }
.site-footer .wrap { 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(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-media { order: 0; }
  .hero .phone { transform: none; max-width: 260px; }
  .feature .phone { max-width: 240px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; row-gap: 4px; }
  .nav { margin-left: -10px; }
  .nav a { padding: 6px 10px; }
  .section { padding: 48px 0; }
  .grid, .contact-card { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .lede { font-size: 1.08rem; }
  .site-header { position: static; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color .15s, border-color .15s, filter .15s; }
}
@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  body { background: #fff; color: #000; }
}
.note-gap { margin-top: 16px; }
.card h3, .prose .card h3 { margin-top: 0; }
