/*
 * ReviewFlow marketing site.
 *
 * The palette is lifted verbatim from src/renderer/styles.css so the site and
 * the app are recognisably the same object. If the app is re-skinned, copy the
 * :root block across rather than eyeballing new values.
 */

:root {
  --bg: #fbf4eb;
  --surface: #f2e7d8;
  --surface-2: #fffcf8;
  --line: #e9dccb;
  --line-strong: #e2d2c0;
  --ink: #2e2621;
  --accent: #ff5a2b;
  --on-ink: #fff6f1;
  --folder: #edc281;

  --ink-70: color-mix(in srgb, var(--ink) 70%, var(--bg));
  --ink-55: color-mix(in srgb, var(--ink) 55%, var(--bg));

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Never let a wide element push the page sideways. */
img, svg, table, pre { max-width: 100%; }
img { height: auto; }

a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }

/*
 * Horizontal only, and deliberately `padding-inline` rather than the shorthand.
 * Sections carry this class as well as their own vertical rhythm, and a class
 * beats a type selector: the shorthand here silently zeroed every section's
 * top and bottom padding. Block and inline longhands cannot collide.
 */
.wrap {
  width: 100%;
  max-width: 58rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { width: 26px; height: 26px; display: block; }

.site-head nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-70);
}

.site-head nav a { text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }

/* ---- type ------------------------------------------------------------ */

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }

h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.8rem);
  margin: 0 0 0.85rem;
}

h3 { font-size: 1.0625rem; margin: 0 0 0.35rem; }

p { margin: 0 0 1rem; max-width: var(--measure); }
.lede { font-size: 1.125rem; color: var(--ink-70); }

section { padding-block: 3.25rem; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

.hero { padding-block-start: 4rem; }

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

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.75rem 0 0.85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover { background: var(--surface); }

.meta { font-size: 0.875rem; color: var(--ink-55); margin: 0; }

/* ---- steps ----------------------------------------------------------- */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.steps p { margin: 0; color: var(--ink-70); font-size: 0.9375rem; }

/* ---- the hand-off folder -------------------------------------------- */

.folder-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  max-width: var(--measure);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.85;
}

.folder-card .dir { color: var(--ink); font-weight: 600; }
.folder-card .file { color: var(--ink-70); }
.folder-card .note { color: var(--ink-55); }

/* ---- privacy table --------------------------------------------------- */

.scroller { overflow-x: auto; margin: 0 0 1rem; }

table.data {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.9375rem;
}

table.data th, table.data td {
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th { font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }

.yes { color: var(--accent); font-weight: 600; }

/* ---- pricing --------------------------------------------------------- */

.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
}

.price .amount { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; }
.price .per { color: var(--ink-55); }

.includes { margin: 0 0 1.25rem; padding-left: 1.15rem; color: var(--ink-70); max-width: var(--measure); }
.includes li { margin-bottom: 0.3rem; }

/* ---- faq ------------------------------------------------------------- */

.faq { display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .faq { grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; } }
.faq p { margin: 0; color: var(--ink-70); font-size: 0.9375rem; }

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

.site-foot {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---- legal pages ----------------------------------------------------- */

.legal { padding-block: 3rem 1rem; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal h2 { font-size: 1.1875rem; margin-top: 2.25rem; }
.legal p, .legal li { max-width: 42rem; }
.legal ul, .legal ol { padding-left: 1.15rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .updated { color: var(--ink-55); font-size: 0.9375rem; }

.callout {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  max-width: 42rem;
}

.callout p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* An address is read line by line, so it must not reflow into a paragraph. */
.postal {
  display: inline-block;
  color: var(--ink);
}
