/* landing.css - custodywinner.com's landing page (www/index.php) only.
 *
 * Colors come from the "Chaos to case" picture (img/chaos-to-case.svg):
 * dark navy ground, cyan for the AI, amber and cyan exhibit tabs, near-white
 * for ordered paper. A dark page in both light and dark mode, like the art.
 */

@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/poppins-700.woff2") format("woff2");
}

:root {
  --navy: #070e1a;
  --navy-2: #0e1f33;
  --navy-3: #15304d;
  --cyan: #39d6ff;
  --cyan-soft: #9af2ff;
  --amber: #e3b341;
  --paper: #e8eef3;
  --ink: #dfe6ec;
  --muted: #9fb0bf;
  --line: #22394f;
  --heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: var(--heading); color: #fff; line-height: 1.15; margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 46rem; }
.center { text-align: center; }
.fine { font-size: 0.85rem; color: var(--muted); }
section { padding: 3.5rem 0; }

/* --- Top bar ------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 14, 26, 0.92);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 3.25rem; }
.brand { font-family: var(--heading); font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none; letter-spacing: 0.01em; }
.brand span { color: var(--cyan); }
.top-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.top-link:hover { color: var(--cyan); }

/* --- Buttons ------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0; }
.center .actions { justify-content: center; }
.button {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 6px;
  background: var(--cyan); color: var(--navy); font-weight: 700; text-decoration: none;
  box-shadow: 0 0 18px rgba(57, 214, 255, 0.35);
}
.button:hover { background: var(--cyan-soft); }
.button.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: none; }
.button.ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* --- Hero: the picture full width at 3:2, words on its lower edge -------- */
.hero { position: relative; padding: 0; background: var(--navy); }
.hero-img { width: 100%; aspect-ratio: 3 / 2; background: center / cover no-repeat; }   /* a background: no "Save image" */
.hero-text { padding: 1.5rem 0 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--cyan); margin-bottom: 0.5rem; }
.hero h1 { font-size: clamp(1.9rem, 5.2vw, 4rem); max-width: 24ch; }
.hero h1 em { display: block; font-style: normal; color: var(--cyan); text-shadow: 0 0 24px rgba(57, 214, 255, 0.45); }   /* the blue part on its own line */
.lede { font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 40rem; color: var(--ink); }
.hero .lede strong { color: var(--cyan); }   /* "CustodyWinner.com" in the intro, in the headline blue */

@media (min-width: 84rem) {
  /* Darken the bottom of the picture (the desk) and set the words on it. */
  .hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72%;
    background: linear-gradient(to bottom, rgba(7, 14, 26, 0) 0%, rgba(7, 14, 26, 0.75) 45%, rgba(7, 14, 26, 0.96) 100%);
    pointer-events: none;
  }
  .hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 0 clamp(1.5rem, 4vw, 3.5rem); }
  .hero-text h1, .hero-text .lede { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }
  .hero-text .eyebrow { text-shadow: 0 0 6px #070e1a, 0 0 12px #070e1a, 0 1px 2px #000; }
}

/* --- Three pillars ------------------------------------------------------- */
.pillars { padding: 1.5rem 0; background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars .wrap { display: grid; gap: 0.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.pillars p { margin: 0; color: var(--muted); }
.pillars strong { color: #fff; font-family: var(--heading); font-weight: 600; display: block; }

/* --- Exhibit tabs: each section is labeled like a tabbed exhibit --------- */
.tab {
  display: inline-block; margin: 0 0 0.9rem; padding: 0.25rem 0.7rem; border-radius: 4px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
}
.tab.cyan, .card-tab.cyan { background: var(--cyan); }
/* Dark text on the bright tabs, always - a section's own "p" color must not win. */
.tab.cyan, .tab.amber, .card-tab.cyan, .card-tab.amber { color: #04101e; }
.tab.amber, .card-tab.amber { background: var(--amber); }

/* --- The problem --------------------------------------------------------- */
.problem { background: linear-gradient(to bottom, var(--navy), var(--navy-2)); }
.problem p { color: var(--ink); }
/* Text and the playbook graphic side by side; the graphic drops below on a phone. */
.problem-grid { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem); align-items: center; max-width: 64rem; }
.playbook { width: 100%; height: auto; }
@media (max-width: 48rem) { .problem-grid { grid-template-columns: 1fr; } .playbook { max-width: 20rem; } }

/* --- How it works: the Chaos to case picture ----------------------------- */
.how { background: radial-gradient(ellipse at 50% 55%, rgba(57, 214, 255, 0.10), transparent 60%), var(--navy-2); }
.how-art { margin: 1.5rem auto 2rem; max-width: 90rem; }
.how-art img { width: 100%; height: auto; }
/* Tablet and up: the picture lines up with the text column (.wrap) instead of
   running wider (owner, 2026-10-25). On a phone it keeps the full width. */
@media (min-width: 48rem) { .how-art { max-width: 72rem; padding: 0 1rem; } .how-art img { border-radius: 10px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.steps li { border-top: 2px solid var(--cyan); padding-top: 0.9rem; }
.steps p { color: var(--muted); margin: 0; }
.step-n { font-family: var(--heading); font-weight: 700; color: var(--cyan); font-size: 0.9rem; }

/* --- Feature cards: little exhibits with a colored tab ------------------- */
.features { background: var(--navy); }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); margin-top: 1.5rem; }
.card {
  position: relative; padding: 1.4rem 1.2rem 1.1rem; border-radius: 6px;
  background: linear-gradient(to bottom, #12263c, #0c1a2b);
  border: 1px solid var(--line);
}
.card:hover { border-color: rgba(57, 214, 255, 0.6); box-shadow: 0 0 22px rgba(57, 214, 255, 0.12); }
.card-tab {
  position: absolute; top: -0.6rem; right: 1rem; padding: 0.05rem 0.55rem; border-radius: 3px;
  font-size: 0.75rem; font-weight: 700; color: var(--navy);
}
.card p { color: var(--muted); margin: 0; }

/* --- Plans --------------------------------------------------------------- */
.pricing { background: var(--navy-2); }
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); margin: 1.5rem 0 1rem; text-align: left; }
.plan { display: block; padding: 1.2rem; border: 1px solid var(--line); border-radius: 6px; background: var(--navy);
        color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.plan h3 { color: #fff; }
/* Each plan is a link to /welcome (owner, 2026-11-08): it glows when pointed at. */
.plan:hover, .plan:focus-visible { border-color: var(--cyan); box-shadow: 0 0 22px rgba(57, 214, 255, 0.45); }
.plan.best { border-color: var(--amber); }
.plan p { margin: 0; color: var(--muted); }
.price { font-family: var(--heading); font-weight: 700; font-size: 2rem; color: #fff !important; }

/* --- Call to action and footer ------------------------------------------- */
.cta { background: radial-gradient(ellipse at 50% 100%, rgba(57, 214, 255, 0.18), transparent 70%), var(--navy); }
footer { padding: 2rem 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
footer p { margin: 0 0 0.6rem; }
.disclaimer { max-width: 46rem; }
.price .per { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-left: 0.2rem; }

/* Footer links (owner, 2026-11-08: no underlines): a shade brighter than the words around them, cyan when pointed at. */
footer .legal-links a { color: var(--ink); font-weight: 600; text-decoration: none; transition: color 0.15s; }
footer .legal-links a:hover, footer .legal-links a:focus-visible { color: var(--cyan); }

/* Top bar: Sign in, then the Custody Blog button (owner, 2026-10-26). */
.top-links { display: flex; align-items: center; gap: 1rem; }
.top-button { padding: 0.35rem 0.85rem; border: 1px solid var(--cyan); border-radius: 999px; color: var(--cyan);
              font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.top-button:hover, .top-button:focus-visible { background: var(--cyan); color: var(--navy-2); }
@media (max-width: 380px) { .top-links { gap: 0.6rem; } .top-button { padding: 0.3rem 0.6rem; font-size: 0.82rem; } }
/* Blogs (owner, 2026-11-08): beside Get Started, quieter - no border until hovered - so the two fit 320px. */
.top-button.top-blogs { border-color: transparent; color: var(--ink); }
.top-button.top-blogs:hover, .top-button.top-blogs:focus-visible { border-color: var(--cyan); background: transparent; color: var(--cyan); }
@media (max-width: 350px) { .top-links { gap: 0.25rem; } .top-button { padding: 0.25rem 0.45rem; font-size: 0.78rem; } .brand { font-size: 1rem; } }

/* --- Sign in and Join (owner, 2026-10-26): Google, or email and password. --- */
.signin-page .wrap { max-width: 28rem; }
.signin-form { display: flex; flex-direction: column; gap: 0.75rem; margin: 0.5rem 0 1rem; }
.signin-form label { display: flex; flex-direction: column; gap: 0.3rem; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.signin-form input[type="email"], .signin-form input[type="password"], .signin-form input[type="text"] {
  padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--navy-2); color: #fff; font-size: 1rem; }
.signin-form input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.signin-form label.agree { flex-direction: row; align-items: flex-start; gap: 0.5rem; font-weight: 400; font-size: 0.9rem; }
.signin-form label.agree input { margin-top: 0.2rem; }
.signin-form .button { align-self: flex-start; }
.signin-google { display: inline-block; }
.signin-or { display: flex; align-items: center; gap: 0.75rem; margin: 1.2rem 0 0.4rem; color: var(--muted); font-size: 0.85rem; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.signin-page .problem { margin: 0; color: #ff9c8f; font-weight: 600; }
.signin-page .done { color: #7ee2a8; }
/* The bots-only field: hidden from people and screen readers. */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Sign in / Join, simplified (owner, 2026-10-26): email first, a big OR, then
   each provider's button in its own brand style. */
.signin-page h1, .signin-lede { text-align: center; }
.signin-lede { margin: -0.4rem 0 1.2rem; color: var(--muted); }
.signin-form .button { align-self: stretch; text-align: center; }
.signin-links { margin: 0.9rem 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.big-or { display: flex; align-items: center; gap: 1rem; margin: 2.4rem 0 1.6rem; color: #fff;
          font-family: var(--heading); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.08em; }
.big-or::before, .big-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.providers { display: flex; flex-direction: column; gap: 1.3rem; max-width: 20rem; margin: 0 auto; }
.provider { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.75rem;
            height: 44px; padding: 0 1rem; border-radius: 4px; font-size: 15px; font-weight: 500; text-decoration: none; }
.provider svg { width: 20px; height: 20px; flex: 0 0 20px; }
/* Google: white, grey outline, dark text, Roboto-like (Google's guidelines). */
.provider-google { background: #fff; border: 1px solid #747775; color: #1f1f1f; font-family: Roboto, Arial, sans-serif; }
.provider-google:hover { background: #f2f2f2; }
/* Microsoft: white, grey outline, Segoe UI semibold (Microsoft's guidelines). */
.provider-microsoft { background: #fff; border: 1px solid #8c8c8c; color: #5e5e5e; font-family: "Segoe UI", Arial, sans-serif; font-weight: 600; }
.provider-microsoft:hover { background: #f2f2f2; }
/* More room before "New here?" / "Have an account?" under the buttons (owner, 2026-10-26). */
.providers + .signin-links { margin-top: 2.4rem; }
/* The public footer, centered; the copyright on its own line. */
footer .legal-links { text-align: center; }
footer .disclaimer { text-align: justify; hyphens: auto; }   /* the words justified to both edges, the links centered (owner, 2026-11-08) */
footer .disclaimer { margin-left: auto; margin-right: auto; }
footer .legal-links { line-height: 1.8; }
/* The email form, its button and the two links are as wide as the brand buttons, centered (owner, 2026-10-26). */
.signin-form, .signin-links.split { max-width: 20rem; margin-left: auto; margin-right: auto; }
.signin-links.split { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; }
/* The footer sits at the bottom of the window when a page is short (sign in,
   join...); on a long page it simply follows the content. */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
.signin-page { padding-bottom: 4rem; }
/* 12px more between the last field and the button (owner, 2026-10-26). */
.signin-form .button { margin-top: 12px; }

/* The emblem (no name in it) on the hero's top left (owner, 2026-10-28), with its
   4px white ring drawn into the picture itself (logo-emblem-ring-240.png) so the two
   always stay together; around it the picture is transparent -
   no card behind it, only a soft shadow
   that follows its shape so it stands out from the photo. */
.hero-logo { position: absolute; top: 1rem; left: 1rem; z-index: 2; width: clamp(64px, 9vw, 120px); height: auto;
             filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)); }

/* GET STARTED (owner, 2026-10-28): the only sign-in - one plain box, then
   the blogs, all centered; 60px more room before the blogs (100px in all). */
.get-started h1, .get-started .start-box, .start-blogs-title, .blogs-page h1, .blogs-page .lede { text-align: center; }
.blogs-page .lede { margin: 0 auto 2rem; }
.start-box { max-width: 28rem; margin: 1rem auto 96px; padding: 1.2rem 1rem 1.4rem;
             border: 1px solid var(--line); border-radius: 10px; background: var(--navy); }
.start-lede { margin: 0 0 1rem; color: var(--ink); }
.start-box .signin-form { text-align: left; }
.start-box .providers { margin-top: 1.2rem; }
.start-fine { margin: 1.2rem 0 0; font-size: 0.82rem; color: var(--muted); }
/* THE TWO KINDS OF ACCOUNT under the sign-in box (owner, 2026-11-18): stacked, as wide as it, 96px below it
   (.start-box's margin), each like a blog tile - the name on a plain band, the words under it. */
.plan-teasers { display: flex; flex-direction: column; gap: 36px; max-width: 28rem; margin: 0 auto 2rem; }
.plan-teaser { overflow: hidden; padding: 0; border: 1px solid rgba(57, 214, 255, 0.22); border-radius: 14px;
               background: linear-gradient(160deg, var(--navy-3) 0%, var(--navy-2) 70%);
               box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.plan-teaser .plan-teaser-name { margin: 0; border: 0; padding: 1.1rem 1rem; background: #0b1626; color: #fff; text-align: center;
                    font-size: 1.2rem; line-height: 1.3; }
.plan-teasers .plan-teaser p { margin: 0; padding: 0.9rem 1rem 1.1rem; color: var(--ink); font-size: 0.92rem; line-height: 1.55; }
.plan-teasers .plan-teaser p.plan-teaser-more { padding-top: 0; }   /* a second paragraph: no double gap */
/* The paid box in a faint green, at the same shading levels as the navy one (owner, 2026-11-18). */
.plan-teaser-paid { border-color: rgba(111, 211, 147, 0.25); background: linear-gradient(160deg, #15402f 0%, #0e2b21 70%); }
.plan-teaser-paid .plan-teaser-name { background: #0b2019; }

/* SMALL PHONES (owner, 2026-10-28): everything fits a 320px screen. Under
   420px the headline shrinks with the screen, and the buttons, cards and
   plans tighten so nothing runs off the side. */
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(1.35rem, 7.6vw, 1.9rem); }
  h2 { font-size: clamp(1.25rem, 6.4vw, 1.5rem); }
  section { padding: 2.5rem 0; }
  .actions { gap: 0.5rem; }
  .actions .button { padding: 0.6rem 0.8rem; font-size: 0.92rem; }
  .card { padding: 1.2rem 0.9rem 0.9rem; }
  .plan { padding: 0.9rem; }
  .price { font-size: 1.7rem; }
  .tab { font-size: 0.72rem; letter-spacing: 0.05em; }
  .playbook { max-width: 100%; }
  .start-box { padding: 1rem 0.75rem 1.2rem; }
}


/* Under the last Start for free button (owner, 2026-11-08): more room above the note. */
.cta .cta-note { margin-top: 2rem; }
/* ...and its heading two points smaller on the smallest phones, so it keeps to one or two lines. */
@media (max-width: 400px) { .cta .cta-head { font-size: 1.3rem; } }

/* ACCESSIBILITY (2026-11-12): a visible focus ring, and the skip link shown when focused (skip_link(), lib/layout.php). */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 0.4rem 0.8rem; border-radius: 4px;
             background: var(--cyan); color: var(--navy-2); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; }
#content:focus { outline: none; }
