/* ==========================================================================
   Beacon — beaconsis.com
   Marketing site design system
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #26413a;
  --navy-800: #2e4a42;
  --navy-700: #375a50;
  --navy-600: #4d7264;

  --gold:      #f4b23e;   /* the beacon light */
  --gold-soft: #f8cd7a;
  --gold-deep: #d68f22;
  --clay:      #b85f3c;   /* terracotta call-to-action */
  --clay-soft: #cf7a52;

  --cream:   #faf4ea;
  --cream-2: #f3e8d7;
  --sand:    #eaddc7;

  --ink:    #37322b;      /* body text on light */
  --muted:  #726757;
  --line:   #e4dccd;

  --white: #ffffff;

  /* Typography */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --container: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 55, .06), 0 4px 12px rgba(10, 30, 55, .06);
  --shadow-md: 0 8px 30px rgba(10, 30, 55, .12);
  --shadow-gold: 0 10px 40px rgba(214, 143, 34, .28);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--cream2 { background: var(--cream-2); }
.section--navy {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(244, 178, 62, .18), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #dbe6f2;
}
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--navy-900); letter-spacing: -.01em; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .75rem;
}
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #b7c6d8; }
.muted { color: var(--muted); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, #cf7a52, #b85f3c);
  color: #fff8f2;
  box-shadow: 0 10px 40px rgba(165, 84, 51, .30);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 46px rgba(165, 84, 51, .40); }
.btn--ghost {
  background: transparent;
  border-color: rgba(20, 39, 63, .2);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--navy-700); background: rgba(20, 39, 63, .04); }
.section--navy .btn--ghost { color: #eaf1f8; border-color: rgba(255, 255, 255, .28); }
.section--navy .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--navy-900); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: .98rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold-deep); transition: width .2s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--navy-900); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy-900); }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% 0%, rgba(244, 178, 62, .16), transparent 55%),
    linear-gradient(180deg, #fdfaf3, var(--cream));
  padding: 84px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-note { margin-top: 1.4rem; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }

/* Beacon illustration panel */
.beacon-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background:
    radial-gradient(420px 420px at 50% 42%, rgba(244, 178, 62, .22), transparent 62%),
    linear-gradient(180deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ---- Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(180deg, #fdefd2, #f7d99b);
  color: var(--gold-deep);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* Feature (detailed) rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row:nth-child(even) .feature-media { order: -1; }
.feature-media {
  border-radius: 20px; min-height: 300px;
  background:
    radial-gradient(300px 220px at 30% 20%, rgba(244, 178, 62, .18), transparent 60%),
    linear-gradient(160deg, var(--cream-2), var(--sand));
  border: 1px solid var(--line);
  display: grid; place-items: center; padding: 28px;
}
.feature-list { display: grid; gap: 14px; margin-top: 20px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.feature-list .tick { color: var(--gold-deep); flex: none; margin-top: 3px; }

/* Audience / mission */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-sm); }

/* Product family */
.family { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.family .item { text-align: center; padding: 26px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.family .item .glyph { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--gold); }
.family .item h3 { color: #fff; font-size: 1.1rem; }
.family .item p { color: #a9bacd; font-size: .9rem; margin-top: 6px; }

/* Verse / mission blockquote */
.verse {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35; color: #fff; max-width: 22ch; margin: 0 auto;
}
.verse cite { display: block; font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--gold); margin-top: 1rem; letter-spacing: .04em; }

/* CTA band */
.cta-band {
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(244, 178, 62, .28), transparent 60%),
    linear-gradient(180deg, var(--navy-700), var(--navy-900));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #c3d1e2; margin: 12px auto 28px; }

/* ---- Forms --------------------------------------------------------------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(244, 178, 62, .18); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-status.ok { display: block; background: #e8f4ea; color: #1f6b34; border: 1px solid #bfe3c7; }
.form-status.err { display: block; background: #fbeaea; color: #9a2b2b; border: 1px solid #f0c9c9; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900); color: #a9bacd;
  padding: 64px 0 32px; font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer a { color: #b8c6d6; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #8296ac; font-size: .86rem; }

/* ---- Misc ---------------------------------------------------------------- */
.section-head { max-width: 64ch; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.badge-faith { display: inline-flex; align-items: center; gap: .5rem; background: rgba(244,178,62,.14); color: var(--gold-deep); border: 1px solid rgba(214,143,34,.3); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .beacon-art { max-width: 420px; margin-inline: auto; width: 100%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .family { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav[data-open="true"] .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 14px;
  }
  .grid-3, .grid-2, .family, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .form-card { padding: 24px; }
}


/* ==========================================================================
   Product-UI demo screenshots + click-to-preview lightbox
   ========================================================================== */
.feature-media{overflow:hidden;}
.ui-win{width:100%;max-width:452px;margin-inline:auto;background:#fff;border-radius:14px;
  border:1px solid #e7e0d2;box-shadow:0 20px 46px rgba(20,30,25,.20);overflow:hidden;
  text-align:left;font-family:var(--sans);color:#3a382f;}
.ui-bar{display:flex;align-items:center;gap:6px;padding:9px 13px;background:#f6f1e8;border-bottom:1px solid #ece3d3;}
.ui-dot{width:10px;height:10px;border-radius:50%;flex:none;}
.ui-title{margin-left:8px;font-size:.72rem;font-weight:700;color:#95836a;letter-spacing:.03em;}
.ui-body{padding:15px 17px;}
.ui-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.ui-head strong{font-family:var(--serif);font-size:1.02rem;color:#26413a;font-weight:600;}
.ui-badge{font-size:.72rem;font-weight:700;color:#a85433;background:#f7e4d8;border:1px solid #ecc3ad;padding:3px 9px;border-radius:999px;white-space:nowrap;}
.ui-pill{font-size:.72rem;font-weight:700;color:#9a6a12;background:#fbeecb;border:1px solid #f0d79a;padding:3px 9px;border-radius:999px;white-space:nowrap;}
.ui-tbl{width:100%;border-collapse:collapse;font-size:.8rem;}
.ui-tbl th{font-size:.64rem;text-transform:uppercase;letter-spacing:.05em;color:#ab9f8d;font-weight:700;padding:4px 6px;text-align:center;}
.ui-tbl td{padding:7px 6px;border-top:1px solid #f1ebdd;text-align:center;color:#5b5546;}
.ui-tbl td:first-child,.ui-tbl th:first-child{text-align:left;font-weight:600;color:#3a382f;}
.ui-tbl td.num{font-variant-numeric:tabular-nums;font-weight:600;color:#26413a;}
.ui-ck{color:#c98a1e;font-weight:800;}
.ui-ab{color:#cfc5b3;font-weight:700;}
.ui-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:11px;border-top:1px dashed #e7ddc9;font-size:.78rem;color:#8a8272;}
.ui-foot strong{font-size:1.05rem;color:#26413a;font-family:var(--serif);}
.ui-plan{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.ui-col{background:#faf6ee;border:1px solid #eee3d0;border-radius:9px;padding:8px;min-height:126px;display:flex;flex-direction:column;gap:6px;}
.ui-day{font-size:.66rem;font-weight:700;color:#ab9f8d;text-transform:uppercase;letter-spacing:.05em;}
.ui-chip{font-size:.68rem;line-height:1.25;padding:5px 7px;border-radius:6px;color:#fff;font-weight:600;}
.ui-doc-h{display:flex;align-items:center;gap:9px;padding-bottom:9px;border-bottom:2px solid #26413a;margin-bottom:4px;}
.ui-doc-h svg{width:22px;height:22px;flex:none;}
.ui-doc-h .t{font-family:var(--serif);font-weight:600;color:#26413a;font-size:.98rem;line-height:1;}
.ui-doc-h .s{font-size:.66rem;color:#9a907e;letter-spacing:.04em;text-transform:uppercase;}
.ui-meta{display:flex;justify-content:space-between;font-size:.74rem;color:#8a8272;margin:10px 0 8px;}
.ui-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-top:1px solid #f1ebdd;font-size:.82rem;}
.ui-row:first-of-type{border-top:0;}
.ui-sub{color:#9a907e;font-size:.74rem;}
.ui-count{font-size:.72rem;font-weight:700;color:#4d7264;background:#e8efe9;border:1px solid #cfe0d2;padding:2px 8px;border-radius:999px;}
.ui-duty{margin-top:12px;padding:9px 11px;background:#fbeecb;border:1px solid #f0d79a;border-radius:9px;font-size:.76rem;color:#8a5f12;}
.ui-duty b{color:#6f4a0d;}
.ui-check{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #f1ebdd;font-size:.82rem;}
.ui-check:first-of-type{border-top:0;}
.ui-box{width:17px;height:17px;border-radius:5px;border:1.6px solid #cdc2ad;flex:none;position:relative;}
.ui-box.done{background:#c98a1e;border-color:#c98a1e;}
.ui-box.done::after{content:"\2713";color:#fff;font-size:11px;font-weight:800;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}
.ui-strike.done{color:#b7ad99;text-decoration:line-through;}
.ui-tag{font-size:.64rem;font-weight:700;padding:2px 8px;border-radius:6px;color:#fff;margin-left:auto;}
.ui-barw{height:7px;background:#eee3d0;border-radius:99px;overflow:hidden;flex:1;min-width:70px;}
.ui-barf{height:100%;background:linear-gradient(90deg,#e6b45a,#c98a1e);}
.ui-grade{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #f1ebdd;font-size:.82rem;}
.ui-grade:first-of-type{border-top:0;}
.ui-grade .g{font-weight:700;color:#26413a;width:34px;}
.ui-grade .s{width:92px;font-weight:600;}
.ui-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px;}
.ui-stat{background:#faf6ee;border:1px solid #eee3d0;border-radius:9px;padding:9px 6px;text-align:center;}
.ui-stat .n{font-family:var(--serif);font-size:1.15rem;color:#26413a;font-weight:600;}
.ui-stat .l{font-size:.6rem;text-transform:uppercase;letter-spacing:.03em;color:#ab9f8d;font-weight:700;margin-top:2px;}
.ui-av{width:27px;height:27px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;color:#fff;}
.ui-need{font-size:.68rem;font-weight:700;color:#a85433;background:#f7e4d8;border:1px solid #ecc3ad;padding:3px 9px;border-radius:999px;}

/* clickable preview cards */
.card--clickable{cursor:pointer;text-align:left;width:100%;font:inherit;position:relative;display:block;color:inherit;background:var(--white);}
.card--clickable .preview-hint{position:absolute;top:16px;right:16px;font-size:.66rem;font-weight:700;color:var(--gold-deep);opacity:0;transition:opacity .2s var(--ease);}
.card--clickable:hover .preview-hint,.card--clickable:focus-visible .preview-hint{opacity:1;}
.card--clickable:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px;}

/* lightbox */
.lb{position:fixed;inset:0;background:rgba(20,25,20,.58);backdrop-filter:blur(3px);
  display:none;align-items:center;justify-content:center;z-index:200;padding:24px;}
.lb.open{display:flex;}
.lb-inner{width:100%;max-width:500px;animation:lbpop .25s var(--ease);}
@keyframes lbpop{from{opacity:0;transform:translateY(14px) scale(.98);}to{opacity:1;transform:none;}}
.lb-cap{text-align:center;color:#f3e8d7;margin-top:16px;font-size:.92rem;font-weight:500;}
.lb-close{position:fixed;top:18px;right:22px;width:42px;height:42px;border-radius:50%;
  background:rgba(255,255,255,.16);border:0;color:#fff;font-size:1.4rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;line-height:1;}
.lb-close:hover{background:rgba(255,255,255,.28);}
@media (prefers-reduced-motion: reduce){.lb-inner{animation:none;}}
