/* Atlas Augment /v2 preview, second round (founder, 2026-11-28): "just copy the current site
   basically, with that theme, with all the images". This file is laid over the CURRENT pages when
   they are served under /v2 (server.js, serveV2): same words, same pictures, same layout, in the
   look of the "Demo Funnel Restyle" canvas. Cool off-white, ink, one blue for quiet marks, one
   yellow for the thing to tap, Archivo Black headlines over Inter. Light or dark follows the
   visitor's device (the site's own script sets data-theme), as on the live pages.

   It only re-points the site's own tokens and repaints the few places with a colour written in by
   hand. It is loaded after each page's own <style>, so it wins at the same weight. */

:root {
  --bg: #F3F5FA;
  --surface: #FFFFFF;
  --surface-2: #E6ECFA;
  --ink: #0E0E10;
  --muted: #4A5368;
  --border: #D5DDF0;
  --border-strong: #C3D1F5;

  --accent: #FFD400;              /* yellow: fills and buttons, ink on top */
  --accent-hover: #F2C800;
  --accent-soft: rgba(31, 79, 209, .09);
  --accent-ink: #0E0E10;
  --accent-text: #1F4FD1;         /* the blue: accent as text, links, small marks */
  --bad: #C7362F;
  --bad-soft: rgba(199, 54, 47, .10);

  --shadow-sm: 0 1px 2px rgba(31, 79, 209, .06), 0 1px 3px rgba(31, 79, 209, .05);
  --shadow-md: 0 8px 24px rgba(31, 79, 209, .10);
  --shadow-lg: 0 28px 64px -22px rgba(31, 79, 209, .26), 0 10px 28px -14px rgba(31, 79, 209, .14);

  --ff-head: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Archivo Black has one weight. The pages ask for 700 and 800 on headings: without this the
     browser smears a fake bold on top of an already black face. */
  font-synthesis: none;
}

:root[data-theme="dark"] {
  --bg: #0D1120;
  --surface: #161B2C;
  --surface-2: #222A45;
  --ink: #F3F5FA;
  --muted: #98A2BF;
  --border: #2A3352;
  --border-strong: #3A4570;

  --accent: #FFD400;
  --accent-hover: #FFE04D;
  --accent-soft: rgba(138, 170, 255, .13);
  --accent-ink: #0E0E10;
  --accent-text: #8AAAFF;
  --bad: #FF9A93;
  --bad-soft: rgba(255, 154, 147, .12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 28px 64px -22px rgba(0, 0, 0, .6);
}

body { font-family: var(--ff-body); background: var(--bg); }

/* Headlines: the black face reads tighter than the old one, so the tracking is opened a little. */
h1, h2, h3, .h1, .h2, .h3, .vh-title, .brand, .call-name, .stat .num { letter-spacing: -.01em; }
h1, .h1, .vh-title { line-height: 1.1; }

/* The yellow button, flat, as in the funnel. */
.btn-primary, .btn-primary:hover { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 0 rgba(14, 14, 16, .12); }
.btn-primary:hover { background: var(--accent-hover); }
.btn { border-radius: 14px; font-weight: 800; }

/* The logo (leaf legs, 2026-11-28): a bare mark, no tile, big enough to read. Ink + blue in light, white + yellow in dark. */
.brand { font-size: 1.5rem; gap: .7rem; }
.brand .mark { width: 37px; height: 45px; border-radius: 0; box-shadow: none; overflow: visible; --leaf-ink: #0E0E10; --leaf-acc: #1F4FD1; }
:root[data-theme="dark"] .brand .mark { --leaf-ink: #FFFFFF; --leaf-acc: #FFD400; }
.footer-grid a.brand { display: inline-flex; color: var(--ink); padding: 0 0 .4rem; }
@media (max-width: 640px) { .brand { font-size: 1.3rem; gap: .55rem; } .brand .mark { width: 32px; height: 39px; } }

/* The home hero's two glows were red and orange. One quiet blue, and it does not pulse. */
.vhero::before { background: radial-gradient(52% 44% at 50% -4%, rgba(31, 79, 209, .13), transparent 70%); animation: none; }
.vhero::after { background: radial-gradient(40% 46% at 84% 60%, rgba(31, 79, 209, .08), transparent 72%); animation: none; }
:root[data-theme="dark"] .vhero::before { background: radial-gradient(52% 44% at 50% -4%, rgba(138, 170, 255, .16), transparent 70%); }
:root[data-theme="dark"] .vhero::after { background: radial-gradient(40% 46% at 84% 60%, rgba(138, 170, 255, .09), transparent 72%); }
.vh-title, .jny-title, .h2, :root[data-theme="dark"] .vh-title, :root[data-theme="dark"] .jny-title, :root[data-theme="dark"] .h2 { text-shadow: none; }

/* The line that fills down the journey was an orange gradient with a glow. One quiet blue. */
.pas.tl .pas-fill { background: var(--accent-text); box-shadow: none; }

/* Text selection keeps ink on yellow. */
::selection { background: var(--accent); color: var(--accent-ink); }

/* Cards a touch rounder and on the cool shadow. */
:root { --radius: 18px; --radius-sm: 12px; --radius-lg: 24px; }

/* ---------- the four accent shapes ----------
   Fixed behind the page, in the gutters. They keep one layout per visit (picked at random by the
   small script the server adds) and only breathe a few pixels (founder: "a little bit of movement
   is good, but way too much"). Hidden on a phone, where there is no gutter to hold them. */
.rk-acc { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; display: none; }
.rk-acc > * { position: absolute; }
.rk-ring { width: 120px; height: 120px; border-radius: 50%; border: 13px solid #FFD400; }
.rk-dots circle { fill: #C3D1F5; }
:root[data-theme="dark"] .rk-dots circle { fill: #2F3B66; }
.rk-spark path { fill: #FFD400; }
.rk-glow { width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 79, 209, .12), rgba(31, 79, 209, 0) 70%); }
:root[data-theme="dark"] .rk-glow { background: radial-gradient(circle, rgba(138, 170, 255, .14), rgba(138, 170, 255, 0) 70%); }
@media (min-width: 1100px) {
  .rk-acc { display: block; }
  .rk-acc > * { animation: rk-float 16s ease-in-out infinite; }
  .rk-dots { animation-delay: -5s; }
  .rk-spark { animation-delay: -9s; }
  .rk-glow { animation-delay: -3s; }
}
@keyframes rk-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .rk-acc > * { animation: none; } }
/* six layouts; every shape stays in a gutter (outside the 1180px column) */
.rk-acc[data-pose="0"] .rk-ring { right: -46px; top: 30vh; }  .rk-acc[data-pose="0"] .rk-dots { left: 18px; top: 62vh; }  .rk-acc[data-pose="0"] .rk-spark { right: 34px; top: 16vh; }  .rk-acc[data-pose="0"] .rk-glow { left: -150px; top: 10vh; }
.rk-acc[data-pose="1"] .rk-ring { left: -50px; top: 58vh; }   .rk-acc[data-pose="1"] .rk-dots { right: 18px; top: 24vh; } .rk-acc[data-pose="1"] .rk-spark { left: 30px; top: 30vh; }   .rk-acc[data-pose="1"] .rk-glow { right: -160px; top: 48vh; }
.rk-acc[data-pose="2"] .rk-ring { right: -40px; top: 66vh; }  .rk-acc[data-pose="2"] .rk-dots { left: 18px; top: 22vh; }  .rk-acc[data-pose="2"] .rk-spark { right: 30px; top: 44vh; }  .rk-acc[data-pose="2"] .rk-glow { left: -170px; top: 52vh; }
.rk-acc[data-pose="3"] .rk-ring { left: -44px; top: 22vh; }   .rk-acc[data-pose="3"] .rk-dots { right: 18px; top: 70vh; } .rk-acc[data-pose="3"] .rk-spark { left: 34px; top: 74vh; }   .rk-acc[data-pose="3"] .rk-glow { right: -150px; top: 8vh; }
.rk-acc[data-pose="4"] .rk-ring { right: -52px; top: 46vh; }  .rk-acc[data-pose="4"] .rk-dots { left: 18px; top: 40vh; }  .rk-acc[data-pose="4"] .rk-spark { left: 40px; top: 14vh; }   .rk-acc[data-pose="4"] .rk-glow { right: -170px; top: 64vh; }
.rk-acc[data-pose="5"] .rk-ring { left: -48px; top: 40vh; }   .rk-acc[data-pose="5"] .rk-dots { right: 18px; top: 46vh; } .rk-acc[data-pose="5"] .rk-spark { right: 38px; top: 80vh; }  .rk-acc[data-pose="5"] .rk-glow { left: -160px; top: 66vh; }
/* the page's own blocks sit above the shapes */
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { z-index: 50; }

/* ---------- the pricing block the server adds to the home page (founder's numbers) ---------- */
.rk-price { padding: clamp(3rem, 7vw, 5rem) 0; }
.rk-price .rk-wrap { width: min(100% - 2.4rem, var(--maxw)); margin: 0 auto; }
.rk-price .rk-eyebrow { font: 800 .78rem/1.3 var(--ff-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.rk-price h2 { margin-top: .7rem; font-family: var(--ff-head); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; color: var(--ink); max-width: 20ch; }
.rk-price .rk-grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.rk-price .rk-card { background: var(--surface); border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: .5rem; }
.rk-price .rk-num { font-family: var(--ff-head); font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.05; color: var(--ink); }
.rk-price .rk-num span { background: linear-gradient(transparent 62%, #FFD400 62%, #FFD400 92%, transparent 92%); padding: 0 2px; }
:root[data-theme="dark"] .rk-price .rk-num span { background: none; color: #FFD400; padding: 0; }
.rk-price .rk-what { font: 800 1rem/1.3 var(--ff-body); color: var(--ink); }
.rk-price .rk-card p { font: 500 1rem/1.5 var(--ff-body); color: var(--muted); }

/* The founder under the hero buttons (his ask: "I generally wanna have my face around there, so
   it's easy to know this is the guy I'm agreeing to call with"). It jumps to his story below. */
.vh-founder { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.1rem; padding: .35rem .95rem .35rem .35rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; font: 600 .92rem/1.2 var(--ff-body); color: var(--ink); }
.vh-founder img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.vh-founder:hover { box-shadow: var(--shadow-md); }

/* ---------- booking (fixes from the independent check, 2026-11-28) ----------
   The pop-up has a header row: the founder's face, who the call is with, and the close button. The
   close button used to float over the calendar and covered its 12h/24h switch. */
html { scrollbar-gutter: stable; } /* the page no longer jumps sideways when the pop-up locks scrolling */
.book-modal__dialog { display: flex; flex-direction: column; }
.book-modal__head { display: flex; align-items: center; gap: .8rem; padding: .7rem .7rem .7rem 1rem; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.book-modal__head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex: 0 0 auto; }
.book-modal__who { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }
.book-modal__who b { font: 400 1.12rem/1.2 var(--ff-head); color: var(--ink); }
.book-modal__who span { font: 500 .84rem/1.3 var(--ff-body); color: var(--muted); }
.book-modal__close { position: static; flex: 0 0 auto; }
.book-modal__embed { min-height: min(540px, calc(100svh - 1.4rem - 76px)); max-height: calc(100svh - 1.4rem - 76px); }
/* The calendar inside the page: its box is the calendar's own size, not a larger white card around it. */
.cal-inline { min-height: 570px; max-width: 1002px; margin-inline: auto; }

/* The footer in four balanced columns (founder, 2026-11-28: "a bit too long... one side is big").
   server.js (footerColumns) splits the old Company column into Learn and Company. */
.footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; }
.footer-grid a { padding: .17rem 0; }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { column-count: 2; column-gap: 1rem; }
  .footer-grid > div:last-child h4 { column-span: all; }
  .footer-grid > div:last-child a[href^="mailto:"] { column-span: all; overflow-wrap: anywhere; }
}
/* The quiet Admin link after the copyright line (server.js, reskin()): the founder's way in to the demo app. */
.footer-admin { color: inherit; opacity: .6; text-decoration: none; padding: .35rem 0; }
.footer-admin:hover, .footer-admin:focus-visible { opacity: 1; text-decoration: underline; }
.footer-admin-sep { opacity: .5; }
