/* Wrenfold Labs site. Layout: a quiet top bar, one content column (max 1080px); app pages pair every
   section with a real screen of the app and end in a strip of the app's real numbers.
   Each page sets its brand on <body>: .wf (home), .evoke or .keevan. Light and warm by brand rule.
   Fonts are served from this site, so a visit sends nothing to other companies. */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-800.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #1A1D24;
  --muted: #545A66;
  --line: #E4E1D8;
  --accent: #1E3159;      /* text-safe accent */
  --accent-soft: #E9EDF5;
  --spark: #E8840C;       /* decorative only, never small text */
  --display: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --measure: 66ch;
}
body.evoke {
  --bg: #FFF9F4;
  --surface: #FFFFFF;
  --ink: #1C1B1F;
  --muted: #5B5550;
  --line: #F1E2D4;
  --accent: #B5480C;      /* Evoke orange darkened so small text passes contrast */
  --accent-soft: #FFE9D6;
  --spark: #FF7621;       /* the exact Evoke orange, for large marks only */
  --display: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body.keevan {
  --bg: #FDFBF6;
  --surface: #FFFFFF;
  --ink: #1E2233;
  --muted: #555B6E;
  --line: #ECE6D6;
  --accent: #243B8F;      /* Blueberry */
  --accent-soft: #FFF0C9; /* Cream Soda */
  --spark: #16266A;       /* Deep Blueberry */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 22px; font-size: 0.95rem; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
body.wf h3, body.keevan h3 { font-weight: 800; }
p { margin: 0; max-width: var(--measure); }
.lead { font-size: 1.1875rem; color: var(--muted); }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
body.wf .eyebrow, body.keevan .eyebrow { font-weight: 800; }
.small { font-size: 0.9375rem; color: var(--muted); }

/* Hero: text and one real screen */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-block: 56px 48px; }
.hero-text { display: grid; gap: 18px; min-width: 0; }
.wordmark { height: 30px; width: auto; }
body.keevan .wordmark { height: 34px; }
.cta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 6px; }
.cta img { height: 54px; width: auto; }
.cta-note { display: grid; gap: 2px; font-size: 0.9375rem; color: var(--muted); }

/* A real screen of the app: rounded, no drawn device */
.screen { margin: 0; justify-self: center; width: min(100%, 330px); }
.screen img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(30, 20, 10, 0.30); background: var(--surface); }
.screen figcaption { font-size: 0.8125rem; color: var(--muted); text-align: center; margin-top: 10px; }
.screen.wide { width: min(100%, 560px); }
.screen video { width: 100%; display: block; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(30, 20, 10, 0.30); background: var(--surface); aspect-ratio: 540 / 1200; }

/* Two real screens, the second in front of the first, for the Evoke hero */
.pair { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 440 / 560; }
.pair .screen { position: absolute; width: 64%; margin: 0; }
.pair .screen.back { left: 0; top: 0; }
.pair .screen.front { right: 0; bottom: 0; }
.pair .screen.back img { box-shadow: none; opacity: 0.96; }
.pair figcaption { display: none; }
.pair-caption { font-size: 0.8125rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.pair.tall { aspect-ratio: 440 / 660; }

/* Sections: text beside a screen, alternating sides */
.section .wrap { padding-block: 48px; display: grid; gap: 24px; }
.section + .section .wrap { border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); gap: 56px; align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); }
.feature.flip > .screen { order: -1; }
.stack { display: grid; gap: 14px; min-width: 0; align-content: start; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: var(--measure); }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* The app's real numbers, set like a spec label */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.fact { padding: 18px 20px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact span { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
body.evoke .fact b::after { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--spark); margin-top: 8px; }
body.keevan .fact b { color: var(--spark); }

/* Video that loads YouTube only after a click */
.video { margin: 0; display: grid; gap: 10px; max-width: 860px; }
.video-box { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #10131C; }
.video-box img, .video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
/* The button sits in the bottom corner, so it never covers the words in the poster. */
.video-play { position: absolute; inset: 0; display: grid; place-items: end start; border: 0; padding: 16px; background: transparent; cursor: pointer; color: #FFFFFF; }
.video-play span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: rgba(16, 19, 28, 0.82); font: 700 1rem/1 var(--body); }
.video-play span::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #FFFFFF; }
.video-play:hover span, .video-play:focus-visible span { background: var(--accent); }
.video figcaption { font-size: 0.875rem; color: var(--muted); }

/* Plan comparison */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; }
.plan h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan .price { font-size: 0.875rem; font-weight: 600; color: var(--muted); }

/* Questions */
.faq { display: grid; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
body.wf .faq summary, body.keevan .faq summary { font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* Guide links */
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.guide-card { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.guide-card b { font-family: var(--display); }
.guide-card span { font-size: 0.9rem; color: var(--muted); }
.guide-card:hover { border-color: var(--accent); }

/* Article (guides) */
.article .wrap { max-width: 760px; padding-block: 44px 24px; display: grid; gap: 22px; }
.crumbs { font-size: 0.875rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.article h2 { margin-top: 18px; }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; max-width: var(--measure); }
.steps li::marker { color: var(--accent); font-weight: 700; }
.path { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; background: var(--accent-soft); color: var(--ink); padding: 1px 6px; border-radius: 5px; }
.note { border-left: 3px solid var(--spark); background: var(--surface); padding: 14px 18px; border-radius: 0 10px 10px 0; max-width: var(--measure); }
.howto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: 32px; align-items: start; }
.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band img { height: 50px; width: auto; }

/* Guides */
.byline { font-size: 0.875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; display: grid; gap: 8px; max-width: var(--measure); }
.answer b:first-child { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: var(--surface); max-width: var(--measure); }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.article h3 { margin-top: 6px; }
.article section { display: grid; gap: 14px; scroll-margin-top: 20px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 100%; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.9375rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
/* On phones a table becomes one labelled card per row, so no column hides off-screen. */
@media (max-width: 640px) {
  .table-wrap.stack-sm table { min-width: 0; }
  .table-wrap.stack-sm thead { display: none; }
  .table-wrap.stack-sm tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table-wrap.stack-sm tr:last-child { border-bottom: 0; }
  .table-wrap.stack-sm td { display: block; padding: 3px 0; border: 0; }
  .table-wrap.stack-sm td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
  .table-wrap.stack-sm td.rt { font-weight: 700; font-size: 1rem; padding-bottom: 4px; }
  .table-wrap.stack-sm td.rt::before { content: none; }
}
.sources { font-size: 0.9rem; color: var(--muted); display: grid; gap: 8px; }
.sources ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.sources a { color: var(--muted); overflow-wrap: anywhere; }
.related { display: grid; gap: 12px; }
.guide-hub { display: grid; gap: 30px; }
.guide-hub h2 { display: flex; align-items: center; gap: 12px; }
.guide-hub h2 img { height: 24px; width: auto; }

/* Home */
.home-hero .wrap { padding-block: 64px 24px; display: grid; gap: 18px; }
.home-hero h1 { max-width: 20ch; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.app-card { border-radius: 20px; padding: 26px 26px 0; display: grid; gap: 14px; grid-template-rows: auto auto 1fr auto auto; border: 1px solid var(--line); overflow: hidden; }
.app-card.evoke-card { background: #FFF4EA; border-color: #F6DCC4; --accent: #B5480C; font-family: "Poppins", sans-serif; }
.app-card.keevan-card { background: #F2F3FA; border-color: #DCDFF0; --accent: #243B8F; }
.app-card .wordmark { height: 28px; }
.app-card .what { font-weight: 800; font-size: 1.125rem; font-family: "Manrope", sans-serif; }
.app-card.evoke-card .what { font-family: "Poppins", sans-serif; font-weight: 700; }
.app-card .links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.app-card .links img { height: 46px; width: auto; }
.app-card .more { font-weight: 700; }
.app-card .peek { margin: 8px auto 0; width: min(100%, 300px); border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -6px 24px -14px rgba(30, 20, 10, 0.25); aspect-ratio: 300 / 210; object-fit: cover; object-position: top; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.principles div { display: grid; gap: 6px; align-content: start; }
.principles b { font-family: var(--display); font-size: 1.0625rem; font-weight: 800; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 24px; font-family: "Manrope", sans-serif; }
.footer .wrap { padding-block: 28px 40px; display: grid; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.footer .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--muted); }
.footer .legal { font-size: 0.8125rem; }

/* Not found */
.notfound .wrap { padding-block: 80px; display: grid; gap: 16px; justify-items: start; }

@media (max-width: 860px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero .wrap, .feature, .feature.flip, .howto { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip > .screen { order: 0; }
  .hero .wrap { padding-block: 36px 28px; }
  .screen { width: min(100%, 290px); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-last-child(-n + 2) { border-bottom: 0; }
  .howto .screen { width: min(100%, 250px); }
}
@media (max-width: 420px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .video-play { padding: 10px; }
  .video-play span { padding: 8px 14px; font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Privacy policies: the box that names the app and developer, and plain bullet lists */
.policy-id dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.policy-id dt { font-weight: 700; }
.policy-id dd { margin: 0; overflow-wrap: anywhere; }
.policy-id .note { color: var(--muted); font-size: 0.9375rem; }
.plain { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; max-width: var(--measure); }
.plain li::marker { color: var(--accent); }
@media (max-width: 560px) {
  .policy-id dl { grid-template-columns: 1fr; gap: 2px; }
  .policy-id dd { margin-bottom: 10px; }
}
