:root{
  --blue:#2F73DA;
  --soft:#F3F6FB;
  --ink:#0F172A;
  --ring: rgba(47,115,218,.25);
  --radius: 18px;
}
html { overflow-y: scroll; }

*{box-sizing:border-box}
body{margin:0;color:var(--ink);font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif}
.container{max-width:1100px;margin:0 auto;padding:24px}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid #e8eef9;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:12px;
  padding-bottom:12px;
}
.site-brand{display:flex;align-items:center;text-decoration:none}
.site-brand img{height:40px;width:auto;display:block}

/* Nav */
.site-nav a{margin-left:16px;text-decoration:none;color:var(--ink);font-weight:500;font-size:.96rem}
.site-nav a:hover{color:var(--blue)}

.nav-toggle{display:none; border:1px solid #e8eef9; background:#fff; border-radius:12px; padding:10px 12px; font-weight:700; cursor:pointer}
.nav-group{position:relative; display:inline-block; margin-left:16px}
.nav-group > button{border:0;background:transparent;font:inherit;color:var(--ink);font-weight:500;cursor:pointer;padding:0}
.nav-group > button:hover{color:var(--blue)}
.nav-dropdown{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:210px;
  background:#fff;
  border:1px solid #e8eef9;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(20,37,63,.12);
  padding:8px;
}
.nav-dropdown a{display:block;margin:0;padding:10px 10px;border-radius:10px}
.nav-dropdown a:hover{background:var(--soft)}
.nav-group[data-open="true"] .nav-dropdown{display:block}

/* Social icons normalize everywhere */
.social-link svg{width:18px;height:18px;display:block;flex:0 0 auto}

/* Mobile */
@media (max-width: 900px){
  .nav-toggle{display:inline-flex;align-items:center;gap:8px}
  .site-nav{width:100%; display:none; flex-direction:column; gap:10px; margin-top:10px}
  .site-nav a{margin-left:0}
  .nav-group{margin-left:0}
  .site-header .container{flex-wrap:wrap}
  .site-nav[data-open="true"]{display:flex}
  .nav-dropdown{position:static; box-shadow:none; border-radius:12px; margin-top:6px}
}
/* ---------------------------
   Shared “app site” helpers
--------------------------- */
.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:var(--soft);
  color:var(--blue);
  border:1px solid #e7ecf7;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:.88rem;
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow:0 4px 16px rgba(20,37,63,.05);
}

footer{padding:28px 0;color:#6b7280}
footer a{color:var(--blue);text-decoration:none}
footer a:hover{text-decoration:underline}
footer .foot-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  font-size:.9rem;
}

.social-link svg{
  width:18px;
  height:18px;
  display:block;
  flex:0 0 auto;
}

:root{
  --blue:#2F73DA;
  --soft:#F3F6FB;
  --ink:#0F172A;
  --bg:#ffffff;
  --muted:#42526b;
  --text:#374151;
  --subtle:#4b5563;
  --border:#e8eef9;
  --border2:#e7ecf7;
  --ring: rgba(47,115,218,.25);
  --radius: 18px;
  --shadow-sm: 0 4px 16px rgba(20,37,63,.05);
  --shadow-md: 0 6px 24px rgba(20,37,63,.08);
  --shadow-lg: 0 12px 30px rgba(20,37,63,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
p{margin:0 0 10px}
ul{margin:10px 0;padding-left:18px}

/* Site wrapper used on most pages */
.container{max-width:1100px;margin:0 auto;padding:24px}

/* =========================================================
   HEADER (robust even if .container is OUTSIDE the header)
   ========================================================= */

/* Make header itself stable */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--border);
}

/* If a .container exists inside header, use it.
   If not, style the header itself like a container row. */
.site-header .container,
.site-header{
  /* the second selector ensures pages without inner .container still align */
}

/* Layout row: prefer inner container if present */
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 24px;             /* consistent with container padding */
  max-width:1100px;
  margin:0 auto;
}

/* If header does NOT contain a container, apply row layout directly */
.site-header:not(:has(.container)){
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 24px;
  max-width:1100px;
  margin:0 auto;
}

/* Brand */
.site-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.site-brand img{height:40px;width:auto}

/* Nav */
.site-nav{
  display:flex;
  align-items:center;
}
.site-nav a{
  margin-left:16px;
  text-decoration:none;
  color:var(--ink);
  font-weight:500;
  font-size:.96rem;
}
.site-nav a:hover{color:var(--blue)}

/* Dropdown */
.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
}
.nav-group{position:relative;display:inline-block;margin-left:16px}
.nav-group > button{
  border:0;
  background:transparent;
  font:inherit;
  color:var(--ink);
  font-weight:500;
  cursor:pointer;
  padding:0;
}
.nav-group > button:hover{color:var(--blue)}

.nav-dropdown{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:210px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow-lg);
  padding:8px;
}
.nav-dropdown a{
  display:block;
  margin:0;
  padding:10px 10px;
  border-radius:10px;
}
.nav-dropdown a:hover{background:var(--soft)}
.nav-group[data-open="true"] .nav-dropdown{display:block}

/* =========================================================
   SHARED COMPONENTS (match your existing class names)
   ========================================================= */

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:var(--soft);
  color:var(--blue);
  border:1px solid var(--border2);
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:.88rem;
}

.title{
  font-size:clamp(2rem,4.4vw,3.1rem);
  line-height:1.05;
  margin:14px 0 10px;
  font-weight:800;
}
.subtitle{
  font-size:1.05rem;
  color:var(--muted);
  margin:0 0 18px;
}

/* Your existing “card” class is used in multiple places */
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow-sm);
  color:inherit;
}
.card img{
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
}
.card h3{margin:0 0 8px;font-size:1.05rem}
.card p{margin:0;color:var(--subtle);font-size:.95rem}

/* Optional hover lift for cards that are links */
a.card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(20,37,63,.10);
  transition:transform .12s ease, box-shadow .12s ease;
}

/* Sections */
.section{padding:26px 0}
.section h2{margin:0 0 10px;font-size:1.65rem}
.section p{margin:0 0 10px;color:var(--text)}

/* Two column content blocks */
.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:flex-start}

/* HERO (used on Cameratrician and FrameVault overview) */
.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
  padding:30px 0 32px;
}
.hero p{max-width:650px}

.hero-card{
  background:linear-gradient(180deg,#fff,#f8fbff);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow-md);
}
.hero-card img{
  width:100%;
  max-height:340px;
  object-fit:contain;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
}
.hero-card p{margin:10px 0 0;font-size:.92rem;color:var(--subtle)}

/* Make FrameVault hero image a bit bigger without breaking other pages.
   (Only affects pages that use .hero-card img) */
@media (min-width: 901px){
  .hero-card img{max-height:360px}
}

/* Projects grid on Cameratrician */
.projects-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.projects{padding:26px 0 30px}

/* Feature grid on FrameVault */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}

/* Plans grid */
.plan-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.plan-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow-sm);
}
.plan-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.plan-name{margin:0;font-size:1.08rem}
.plan-price{margin:0;color:var(--subtle);font-weight:700;font-size:.98rem}
.plan-meta{margin:10px 0 0;color:var(--subtle);padding-left:18px}
.plan-meta li{margin:4px 0}
.plan-foot{margin-top:10px;color:#6b7280;font-size:.92rem}
.plans-note{
  margin-top:16px;
  background:var(--soft);
  border:1px solid var(--border2);
  border-radius:16px;
  padding:16px 18px;
  color:var(--muted);
}
.plans-note strong{color:#111827}

/* Scenarios / FAQ details blocks */
details{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 14px;
  background:#fff;
  box-shadow:0 4px 16px rgba(20,37,63,.04);
  margin:10px 0;
}
summary{cursor:pointer}
details p, details ul{color:var(--subtle)}

/* Social */
.social-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
  font-size:.9rem;
}
.social-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:var(--blue);
  font-weight:600;
}
.social-link svg{width:18px;height:18px;display:block;flex:0 0 auto}

/* =========================================================
   BOOK COVER (no cropping, fixes title cut-off)
   ========================================================= */
.cover-frame{
  background:linear-gradient(180deg,#fff,#f8fbff);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow-md);
}
.cover-frame img{
  width:100%;
  height:460px;
  object-fit:contain;       /* shows full title */
  object-position:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
}

/* Layout used by book/safe-delete pages if present */
.layout{display:grid;grid-template-columns:1.05fr .95fr;gap:18px;align-items:start;margin-top:18px}
.book-card, .app-card{
  background:linear-gradient(180deg,#fff,#f8fbff);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow-md);
}

/* =========================================================
   FOOTER (robust: consistent regardless of wrapper)
   ========================================================= */
footer{
  padding:28px 0;
  color:#6b7280;
}
footer a{color:var(--blue);text-decoration:none}
footer a:hover{text-decoration:underline}
footer .foot-row{
  max-width:1100px;
  margin:0 auto;
  padding:0 24px;           /* matches header padding */
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  font-size:.9rem;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 900px){
  .nav-toggle{display:inline-flex;align-items:center;gap:8px}
  .site-nav{
    width:100%;
    display:none;
    flex-direction:column;
    gap:10px;
    margin-top:10px;
    align-items:flex-start;
  }
  .site-nav a{margin-left:0}
  .nav-group{margin-left:0}
  .site-nav[data-open="true"]{display:flex}
  .nav-dropdown{
    position:static;
    box-shadow:none;
    border-radius:12px;
    margin-top:6px;
  }

  .hero{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .projects-grid{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .plan-grid{grid-template-columns:1fr}
  .layout{grid-template-columns:1fr}

  .hero-card img{max-height:240px}
  .cover-frame img{height:360px}
}



/* -------------------------
   HOME (Cameratrician)
------------------------- */
.page-home .hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
  padding:30px 0 32px;
}
.page-home .projects-grid{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){
  .page-home .hero{grid-template-columns:1fr}
  .page-home .projects-grid{grid-template-columns:1fr}
}

/* -------------------------
   FrameVault Overview
------------------------- */
.page-fv .hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
  padding:36px 0;
}
/* make the FV hero image bigger like you asked */
.page-fv .hero-card img{
  max-height:340px;
}
@media (max-width:900px){
  .page-fv .hero{grid-template-columns:1fr}
  .page-fv .hero-card img{max-height:240px}
}

/* -------------------------
   FrameVault Features
------------------------- */
.page-fv-features .features{padding:26px 0 10px}
.page-fv-features .grid{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){
  .page-fv-features .grid{grid-template-columns:1fr}
}

/* -------------------------
   FrameVault Plans
------------------------- */
.page-fv-plans .plan-grid{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){
  .page-fv-plans .plan-grid{grid-template-columns:1fr}
}

/* -------------------------
   FrameVault Scenarios
------------------------- */
.page-fv-scenarios details{margin:10px 0}

/* -------------------------
   Book (cover: show full title, no crop)
------------------------- */
.page-book .layout{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
  align-items:start;
  margin-top:18px;
}
.page-book .cover-frame img{
  height:460px;
  object-fit:contain; /* critical: no cutting off title */
}
@media (max-width:900px){
  .page-book .layout{grid-template-columns:1fr}
  .page-book .cover-frame img{height:360px}
}

/* -------------------------
   Safe Delete Checker
------------------------- */
.page-sdc .layout{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
  align-items:start;
  margin-top:18px;
}
@media (max-width:900px){
  .page-sdc .layout{grid-template-columns:1fr}
}


footer .foot-row{
  max-width:1100px;
  margin:0 auto;
  padding:0 24px; /* same as container */
}

/* Projects cards: unify thumbnail height */
.projects-grid .card img,
.projects-grid .project-card img{
  height:140px;          /* pick a single height */
  width:100%;
  object-fit:contain;
  object-position:center;
  background:#fff;
  padding:8px;
}

/* Product mark row (logo + optional name) */
.product-mark{
  display:flex;
  align-items:center;
  gap:12px;
  margin:18px 0 0;
}
.product-mark img{
  height:46px;
  width:auto;
}

/* Soft card/panel used for “Quick overview” and similar blocks */
.panel{
  margin:18px 0 0;
  background:var(--soft);
  border:1px solid #e7ecf7;
  border-radius:18px;
  padding:18px;
  box-shadow:0 4px 16px rgba(20,37,63,.05);
}
.panel strong{color:#111827}
.panel ul{margin:10px 0 0}
.panel li{margin:4px 0;color:#4b5563}

/* FrameVault feature cards */
.features{padding:26px 0 10px}
.features h2{font-size:1.55rem;margin:0 0 16px}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}

.fcard{
  background:#fff;
  border:1px solid #e8eef9;
  border-radius:16px;
  padding:18px;
  box-shadow:0 4px 16px rgba(20,37,63,.05);
  transition:transform .12s ease, box-shadow .12s ease;
}
.fcard:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(20,37,63,.10);
}
.fcard h3{margin:0 0 8px;font-size:1.05rem}
.fcard p{margin:0;color:#4b5563;font-size:.98rem}

.callout{
  margin:20px 0 0;
  background:var(--soft);
  border:1px solid #e7ecf7;
  border-radius:18px;
  padding:16px 18px;
  color:#42526b;
  box-shadow:0 4px 16px rgba(20,37,63,.04);
}
.callout strong{color:#111827}

@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}


/* =========================
   BOOK PAGE: fix hero + layout squish
   ========================= */

/* Use hero as a 2-col intro grid ONLY on book page */
body.book-page .hero{
  display:grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  grid-template-areas:
    "title subtitle"
    "layout layout";
  column-gap: 48px;
  row-gap: 22px;
  align-items:start;
  padding: 30px 0 32px;
}

/* Place the title + subtitle in the intro row */
body.book-page .hero > .title{
  grid-area: title;
  margin: 0;
}

body.book-page .hero > .subtitle{
  grid-area: subtitle;
  margin: 10px 0 0;
  max-width: 40ch;          /* keeps it tidy */
}

/* Force the main content area to use full width */
body.book-page .hero > .layout{
  grid-area: layout;
  width: 100%;
  margin-top: 10px;
}

/* Now control the actual two-column content under the intro */
body.book-page .layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 420px;  /* left text + fixed cover column */
  gap: 48px;
  align-items:start;
}

/* Remove the big vertical padding from .section INSIDE the layout */
body.book-page .layout .section{
  padding: 0;
}

/* Cover card: keep it aligned right and visually consistent */
body.book-page .book-card{
  width: 100%;
  justify-self: end;
}

body.book-page .book-card img{
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* Mobile: stack nicely */
@media (max-width: 980px){
  body.book-page .hero{
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "subtitle"
      "layout";
    column-gap: 0;
  }
  body.book-page .hero > .subtitle{
    max-width: 60ch;
    margin-top: 8px;
  }
  body.book-page .layout{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  body.book-page .book-card{
    justify-self: start;
    max-width: 520px;
  }
}

.hero.full {
  grid-template-columns: 1fr;
}