/* CalderThorn commercial public homepage, P13I 1.0.5.
   Guest-only styling. The signed-in KB interface does not load this stylesheet. */

.ct-home-guest{
  --ct-page:#0b1523;
  --ct-surface:#122237;
  --ct-surface-2:#0f1b2b;
  --ct-border:#31475e;
  --ct-border-strong:#465e75;
  --ct-text:#edf3f7;
  --ct-muted:#afc0ce;
  --ct-subtle:#7f8a99;
  --ct-primary:#315fa3;
  --ct-primary-hover:#295590;
  --ct-link:#91baf2;
  --ct-focus:#91baf2;
  --ct-home-max:1088px;

  background:var(--ct-page)!important;
  color:var(--ct-text);
}

html[data-theme="light"] .ct-home-guest{
  --ct-page:#f5f7fa;
  --ct-surface:#ffffff;
  --ct-surface-2:#eef2f6;
  --ct-border:#d5dfe8;
  --ct-border-strong:#c5ced9;
  --ct-text:#18212c;
  --ct-muted:#596677;
  --ct-subtle:#748092;
  --ct-primary:#2b5fbd;
  --ct-primary-hover:#2453a4;
  --ct-link:#2457ae;
  --ct-focus:#2457ae;

  background:var(--ct-page)!important;
}

.ct-home-guest .kb-header{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(11,21,35,.95)!important;
  border-bottom:1px solid var(--ct-border)!important;
  backdrop-filter:saturate(120%) blur(10px);
  box-shadow:none!important;
}

html[data-theme="light"] .ct-home-guest .kb-header{
  background:rgba(245,247,250,.95)!important;
}

/* Replace the generic blue app tile with the CalderThorn mark on the public homepage. */
.ct-home-guest .kb-brand__emblem{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:0!important;
  background:transparent url('../brand/calderthorn-mark-dark-192.png?v=ctbrand20261018') center/contain no-repeat!important;
  box-shadow:none!important;
}

html[data-theme="light"] .ct-home-guest .kb-brand__emblem{
  background-image:url('../brand/calderthorn-mark-light-192.png?v=ctbrand20261018')!important;
}

.ct-home-guest .kb-header__inner{
  max-width:var(--ct-home-max);
  padding-top:11px;
  padding-bottom:11px;
}

.ct-home-guest .kb-brand{
  color:var(--ct-text);
  font-size:17px;
  letter-spacing:.05px;
}

.ct-home-guest .kb-nav{
  gap:16px;
}

.ct-home-guest .kb-nav a{
  color:var(--ct-link);
}

.ct-home-guest .kb-nav a:hover{
  color:var(--ct-text);
}

.ct-home-guest .ct-home-header-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:7px 13px;
  border:1px solid var(--ct-primary);
  border-radius:7px;
  color:#fff!important;
  background:var(--ct-primary);
  box-shadow:0 1px 2px rgba(0,0,0,.18);
  font-weight:750;
}

.ct-home-guest .ct-home-header-cta:hover{
  color:#fff!important;
  background:var(--ct-primary-hover);
  border-color:var(--ct-primary-hover);
}

.ct-home-guest a:focus-visible,
.ct-home-guest button:focus-visible{
  outline:3px solid var(--ct-focus);
  outline-offset:3px;
}

.ct-home{
  width:100%;
  flex:1;
  background:var(--ct-page);
}

.ct-home-shell{
  width:min(var(--ct-home-max),calc(100% - 40px));
  margin:0 auto;
}

.ct-home-hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(430px,1.1fr);
  align-items:center;
  gap:62px;
  padding:68px 0 64px;
}

.ct-home-hero::before{
  content:"";
  position:absolute;
  z-index:0;
  width:470px;
  height:470px;
  right:-90px;
  top:-80px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(62,107,178,.07),transparent 69%);
  pointer-events:none;
}

.ct-home-hero-copy,
.ct-home-preview{
  position:relative;
  z-index:1;
}

.ct-home-title{
  max-width:620px;
  margin:0;
  color:var(--ct-text);
  font-size:clamp(32px,3vw,43px);
  line-height:1.11;
  letter-spacing:-.024em;
  font-weight:740;
}

.ct-home-lead{
  max-width:625px;
  margin:20px 0 0;
  color:var(--ct-muted);
  font-size:16px;
  line-height:1.68;
}

.ct-home-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:27px;
}

.ct-home-primary,
.ct-home-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:7px;
  text-decoration:none;
  font-size:14px;
  font-weight:750;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}

.ct-home-primary{
  color:#fff!important;
  border:1px solid var(--ct-primary);
  background:var(--ct-primary);
  box-shadow:0 1px 2px rgba(0,0,0,.16);
}

.ct-home-primary:hover{
  color:#fff!important;
  border-color:var(--ct-primary-hover);
  background:var(--ct-primary-hover);
}

.ct-home-secondary{
  color:var(--ct-text)!important;
  border:1px solid var(--ct-border-strong);
  background:transparent;
  box-shadow:none;
}

.ct-home-secondary:hover{
  color:var(--ct-text)!important;
  border-color:var(--ct-subtle);
  background:var(--ct-surface);
}

/* The product preview is the main visual proof of the product. */
.ct-home-preview{
  overflow:hidden;
  border:1px solid var(--ct-border-strong);
  border-radius:11px;
  background:var(--ct-surface);
  box-shadow:0 18px 48px rgba(0,0,0,.20);
}

html[data-theme="light"] .ct-home-preview{
  box-shadow:0 16px 38px rgba(25,35,50,.09);
}

.ct-home-preview-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--ct-border);
  color:var(--ct-muted);
  font-size:11.5px;
}

.ct-home-preview-context{
  display:flex;
  align-items:center;
  min-width:0;
  gap:8px;
}

.ct-home-preview-context strong{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ct-home-preview-mark{
  width:22px;
  height:22px;
  flex:0 0 22px;
  border-radius:0;
  background:transparent url('../brand/calderthorn-mark-dark-192.png?v=ctbrand20261018') center/contain no-repeat;
}

html[data-theme="light"] .ct-home-preview-mark{
  background-image:url('../brand/calderthorn-mark-light-192.png?v=ctbrand20261018');
}

.ct-home-preview-label{
  flex:0 0 auto;
  color:var(--ct-subtle);
  font-size:10px;
  font-weight:650;
}

.ct-home-preview-body{
  padding:15px;
}

.ct-home-preview-search{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:0 12px;
  border:1px solid #345789;
  border-radius:8px;
  background:var(--ct-surface-2);
  color:var(--ct-text);
  box-shadow:0 0 0 2px rgba(43,95,189,.10);
}

html[data-theme="light"] .ct-home-preview-search{
  border-color:#9fb5d5;
  box-shadow:0 0 0 2px rgba(43,95,189,.06);
}

.ct-home-preview-search svg{
  flex:0 0 auto;
  color:var(--ct-muted);
}

.ct-home-preview-search span{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:12.5px;
}

.ct-home-preview-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin:12px 2px 8px;
  color:var(--ct-subtle);
  font-size:10.5px;
}

.ct-home-result{
  padding:12px;
  border:1px solid var(--ct-border);
  border-radius:8px;
  background:var(--ct-surface-2);
}

.ct-home-result + .ct-home-result{
  margin-top:8px;
}

.ct-home-result--secondary{
  background:transparent;
}

.ct-home-result h3{
  margin:0;
  color:var(--ct-text);
  font-size:13.5px;
  line-height:1.35;
}

.ct-home-result p{
  margin:5px 0 0;
  color:var(--ct-muted);
  font-size:10.5px;
  line-height:1.5;
}

.ct-home-result-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:8px;
}

.ct-home-result-tags span{
  padding:2px 6px;
  border:1px solid var(--ct-border);
  border-radius:999px;
  background:transparent;
  color:var(--ct-subtle);
  font-size:8.5px;
  font-weight:700;
}

/* Plain sections use typography and spacing instead of decorative cards or numbered icons. */
.ct-home-section{
  scroll-margin-top:82px;
  padding:60px 0;
  border-top:1px solid var(--ct-border);
}

.ct-home-features{
  display:grid;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
  column-gap:72px;
  row-gap:18px;
}

.ct-home-section-intro{
  max-width:700px;
}

.ct-home-section-intro h2{
  margin:0;
  color:var(--ct-text);
  font-size:clamp(25px,2.1vw,29px);
  line-height:1.18;
  letter-spacing:-.016em;
  font-weight:720;
}

.ct-home-section-intro > p{
  max-width:680px;
  margin:11px 0 0;
  color:var(--ct-muted);
  font-size:14px;
  line-height:1.62;
}

.ct-home-feature-list{
  border-top:1px solid var(--ct-border);
}

.ct-home-feature-row{
  padding:18px 0 19px;
  border-bottom:1px solid var(--ct-border);
}

.ct-home-feature-row h3{
  margin:0;
  color:var(--ct-text);
  font-size:16px;
  line-height:1.35;
  font-weight:700;
}

.ct-home-feature-row p{
  max-width:620px;
  margin:5px 0 0;
  color:var(--ct-muted);
  font-size:13px;
  line-height:1.58;
}

.ct-home-readaloud{
  grid-column:2;
  margin:1px 0 0;
  color:var(--ct-subtle);
  font-size:12.5px;
  line-height:1.55;
}

.ct-home-security{
  display:block;
}

.ct-home-security .ct-home-section-intro{
  max-width:780px;
}

.ct-home-security-lead{
  color:var(--ct-text)!important;
  font-size:17px!important;
  font-weight:650;
  line-height:1.45!important;
}

.ct-home-cta{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:24px;
  margin:0 0 55px;
  padding:31px 0 0;
  border-top:1px solid var(--ct-border);
  background:transparent;
}

.ct-home-cta h2{
  margin:0;
  color:var(--ct-text);
  font-size:clamp(22px,1.9vw,27px);
  line-height:1.18;
  letter-spacing:-.014em;
  font-weight:720;
}

.ct-home-cta p{
  margin:7px 0 0;
  color:var(--ct-muted);
  font-size:13.5px;
  line-height:1.55;
}

.ct-home-cta-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* Keep the theme control accessible without allowing it to sit over centered page content. */
.ct-home-guest .kb-theme-toggle{
  left:auto!important;
  right:max(14px,env(safe-area-inset-right))!important;
  bottom:max(14px,env(safe-area-inset-bottom))!important;
  transform:none!important;
  gap:7px;
  padding:7px 9px;
  border:1px solid var(--ct-border)!important;
  border-radius:8px;
  background:var(--ct-surface)!important;
  color:var(--ct-muted)!important;
  box-shadow:0 3px 13px rgba(0,0,0,.14)!important;
  font-size:12px;
}

.ct-home-guest .kb-theme-toggle:hover{
  transform:none!important;
  background:var(--ct-surface-2)!important;
}

.ct-home-guest .kb-theme-toggle__thumb{
  width:24px;
  height:24px;
  border-radius:6px;
  background:var(--ct-primary);
  box-shadow:none;
}

.ct-home-guest .kb-theme-toggle__icon{
  width:15px;
  height:15px;
}

.ct-home-guest .kb-theme-toggle__label{
  opacity:.82;
}

.ct-home-guest .kb-footer{
  color:var(--ct-subtle);
  border-top-color:var(--ct-border);
  background:var(--ct-page);
  font-size:12px;
}

@media (max-width:960px){
  .ct-home-hero{
    grid-template-columns:1fr;
    gap:34px;
    padding:50px 0 50px;
  }

  .ct-home-hero-copy{
    max-width:720px;
  }

  .ct-home-preview{
    width:min(100%,720px);
  }

  .ct-home-features{
    grid-template-columns:1fr;
    gap:23px;
  }

  .ct-home-readaloud{
    grid-column:1;
  }
}

@media (max-width:720px){
  .ct-home-guest .kb-header__inner{
    padding:10px 12px;
    gap:8px;
  }

  .ct-home-guest .kb-brand{
    flex:0 0 auto;
    font-size:16px;
    gap:8px;
  }

  .ct-home-guest .kb-brand__emblem{
    width:25px;
    height:25px;
    flex-basis:25px;
  }

  .ct-home-guest .kb-nav{
    justify-content:flex-end;
    flex-wrap:nowrap;
    gap:9px;
  }

  .ct-home-guest .kb-nav > a:not(.ct-home-header-cta){
    font-size:13px;
  }

  .ct-home-guest .ct-home-header-cta{
    min-height:36px;
    padding:6px 10px;
    font-size:13px;
  }

  .ct-home-shell{
    width:min(100% - 28px,var(--ct-home-max));
  }

  .ct-home-hero{
    padding:31px 0 39px;
    gap:27px;
  }

  .ct-home-title{
    max-width:520px;
    font-size:31px;
    line-height:1.12;
    letter-spacing:-.02em;
  }

  .ct-home-lead{
    margin-top:17px;
    font-size:15px;
    line-height:1.63;
  }

  .ct-home-actions{
    margin-top:22px;
  }

  .ct-home-primary,
  .ct-home-secondary{
    min-height:43px;
    font-size:13.5px;
  }

  .ct-home-preview{
    border-radius:10px;
    box-shadow:0 11px 28px rgba(0,0,0,.17);
  }

  html[data-theme="light"] .ct-home-preview{
    box-shadow:0 11px 26px rgba(25,35,50,.075);
  }

  .ct-home-preview-bar{
    padding:10px 11px;
  }

  .ct-home-preview-body{
    padding:11px;
  }

  .ct-home-result{
    padding:11px;
  }

  /* Two realistic results explain the preview without making the phone page unnecessarily long. */
  .ct-home-result:nth-of-type(3){
    display:none;
  }

  .ct-home-section{
    scroll-margin-top:70px;
    padding:43px 0;
  }

  .ct-home-section-intro h2{
    font-size:24px;
  }

  .ct-home-feature-row{
    padding:16px 0 17px;
  }

  .ct-home-feature-row h3{
    font-size:15.5px;
  }

  .ct-home-feature-row p{
    font-size:12.75px;
  }

  .ct-home-readaloud{
    font-size:12px;
  }

  .ct-home-security-lead{
    font-size:16px!important;
  }

  .ct-home-cta{
    grid-template-columns:1fr;
    gap:18px;
    padding-top:27px;
    margin-bottom:42px;
  }

  .ct-home-cta h2{
    font-size:23px;
  }

  .ct-home-cta-actions{
    justify-content:flex-start;
  }

  .ct-home-guest .kb-theme-toggle{
    left:auto!important;
    right:max(10px,env(safe-area-inset-right))!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    transform:none!important;
    width:40px;
    height:40px;
    padding:7px;
    justify-content:center;
  }

  .ct-home-guest .kb-theme-toggle__label{
    display:none;
  }
}

@media (max-width:360px){
  .ct-home-guest .kb-header__inner{
    padding-left:9px;
    padding-right:9px;
  }

  .ct-home-guest .kb-brand{
    font-size:15px;
  }

  .ct-home-guest .kb-nav{
    gap:7px;
  }

  .ct-home-guest .ct-home-header-cta{
    padding-left:8px;
    padding-right:8px;
    font-size:12.5px;
  }

  .ct-home-title{
    font-size:29px;
  }

  .ct-home-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .ct-home-cta-actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
}

@media (prefers-reduced-motion:reduce){
  .ct-home-guest *,
  .ct-home-guest *::before,
  .ct-home-guest *::after{
    scroll-behavior:auto!important;
    transition:none!important;
  }
}


/* P13I 1.0.6 header refinement: the public page is short enough that section
   jump links are unnecessary. Keep the guest header focused on account actions. */
.ct-home-guest .kb-nav{
  gap:12px;
}
