:root{
  --tem-red: rgb(232, 64, 28);
  --tem-bg: #fff;
  --tem-ink: rgb(25, 22, 18);
  --tem-muted: rgb(110,105,98);
  --tem-border: rgb(218,215,210);
  --tem-chip-bg: rgb(240,238,234);
  --tem-chip-ink: rgb(80,75,68);
  --tem-footer: rgb(22,19,15);

  /* Fonts (from `colours and fonts.md`) */
  --font-body: "PP Neue Montreal", "PPNeueMontreal", "Neue Montreal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Victor Smooth Regular", "Victor Smooth", "VictorSmooth", var(--font-body);
}

/* Self-hosted font loading
   Current files in this repo:
   - assets/fonts/PP Neue Montreal/PPNeueMontreal-*.otf
   - assets/fonts/Victor Smooth/VictorSerifSmooth-*.otf
*/
@font-face{
  font-family: "PP Neue Montreal";
  src: url("./fonts/PP%20Neue%20Montreal/PPNeueMontreal-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "PP Neue Montreal";
  src: url("./fonts/PP%20Neue%20Montreal/PPNeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "PP Neue Montreal";
  src: url("./fonts/PP%20Neue%20Montreal/PPNeueMontreal-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "PP Neue Montreal";
  src: url("./fonts/PP%20Neue%20Montreal/PPNeueMontreal-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Victor Smooth Regular";
  src: url("./fonts/Victor%20Smooth/VictorSerifSmooth-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Victor Smooth Regular";
  src: url("./fonts/Victor%20Smooth/VictorSerifSmooth-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--tem-bg);
  color: var(--tem-ink);
}

a{ color: inherit; }

.app{
  min-height: 100vh;
  display:flex;
  flex-direction: column;
}

.nav{
  height:64px;
  background: var(--tem-red);
  display:flex;
  align-items:center;
  padding: 0 48px;
}
.nav__spacer{ flex:1; }
.nav__right{ display:flex; gap: 28px; align-items:center; }
.nav__link{
  font-size:14px;
  font-weight:600;
  color: rgba(255,255,255,0.88);
  text-decoration:none;
}
.nav__link:hover{ text-decoration: underline; }

.hero{
  background: var(--tem-red);
  padding: 28px 48px 48px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.breadcrumb{
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}
.breadcrumb a{ color: rgba(255,255,255,0.6); text-decoration:none; }
.breadcrumb span{ color: rgba(255,255,255,0.35); }
.breadcrumb strong{ color: rgba(255,255,255,0.92); font-weight: 600; }

.hero h1{
  margin:0;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #fff;
  font-family: var(--font-display);
}
.hero p{
  margin:0;
  max-width: 650px;
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
}
.pill{
  display:inline-flex;
  align-items:center;
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  align-self: flex-start;
  margin-top: 4px;
}

.content{
  flex:1;
  padding: 48px 48px 80px;
}

.section{
  display:flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}
.section__heading{
  display:flex;
  align-items:center;
  gap: 12px;
}
.section__bar{
  width: 4px;
  height: 26px;
  background: var(--tem-red);
  border-radius: 2px;
  flex-shrink: 0;
}
.section__title{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  font-family: var(--font-display);
}

.cards{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}

.card{
  width: 280px;
  background:#fff;
  border-radius: 12px;
  border: 1px solid var(--tem-border);
  overflow:hidden;
  display:flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.card[aria-disabled="true"]{
  cursor: default;
  opacity: 0.65;
}
.card[aria-disabled="true"]:hover{
  transform:none;
  box-shadow:none;
}
.card__img{
  height: 160px;
  background: #f5f4f1;
  position: relative;
  overflow:hidden;
}
.card__img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.card__overlay{
  position:absolute;
  inset:0;
  background: rgba(248,247,244,0.45);
  display:flex;
  align-items:center;
  justify-content:center;
}
.chip{
  display:inline-block;
  background: var(--tem-chip-bg);
  color: var(--tem-chip-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 20px;
}
.tag{
  display:inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 999px;
}

.card__body{
  padding: 14px 16px 16px;
  display:flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.card__title{
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.card__desc{
  font-size: 12px;
  line-height: 1.5;
  color: var(--tem-muted);
}
.card__chips{
  display:flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.card__cta{
  display:flex;
  justify-content:flex-end;
  margin-top: 4px;
}
.btn{
  background: var(--tem-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  transition: background 120ms ease;
}
.btn:hover{
  background: rgb(210, 53, 22);
}
.btn:focus-visible{
  outline: 3px solid rgba(255,255,255,0.65);
  outline-offset: 2px;
}
.btn:active{ transform: translateY(1px); }

.footer{
  height:52px;
  background: var(--tem-footer);
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 48px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 600;
}
.footer__right{ color: rgba(255,255,255,0.30); font-weight: 500; }

/* Hide protected pages until /.netlify/functions/session confirms cookie */
html[data-tem-auth-pending="1"] body{
  visibility:hidden;
}

/* Centered login screen */
.login-shell{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 32px 16px;
  background: #fff;
}
.login-card{
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--tem-border);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  overflow: hidden;
}
.login-top{
  background: var(--tem-red);
  padding: 22px 22px 18px;
}
.login-top h1{
  margin: 14px 0 0;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.2px;
  font-family: var(--font-display);
}
.login-top p{
  margin: 6px 0 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}
.login-body{
  padding: 18px 22px 22px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.field label{
  display:block;
  font-size: 12px;
  font-weight: 700;
  color: rgb(80,75,68);
  margin-bottom: 6px;
}
.field input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--tem-border);
  font-size: 14px;
}
.login-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 6px;
}
.login-actions .btn{
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.helper{
  font-size: 12px;
  color: var(--tem-muted);
  line-height: 1.5;
}
.error{
  display:none;
  padding: 10px 12px;
  border: 1px solid #f0b7a8;
  background: #fff3ef;
  border-radius: 10px;
  color: #7a1e00;
  font-size: 12px;
  font-weight: 700;
}
.error[data-show="true"]{ display:block; }

/* Modals (video/deck) */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  z-index: 1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}
.modal{
  background:#fff;
  border-radius: 14px;
  width: 100%;
  max-width: 900px;
  overflow:hidden;
  display:flex;
  flex-direction: column;
}
.modal__bar{
  padding: 16px 20px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tem-border);
}
.modal__title{
  font-size: 16px;
  font-weight: 800;
}
.modal__close{
  background:none;
  border:none;
  font-size: 20px;
  cursor:pointer;
  color: rgb(100,95,88);
  line-height: 1;
}
.modal__frame{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f5f4f1;
}
.modal__frame iframe{
  width: 100%;
  height: 100%;
  border: none;
  display:block;
}

/* FAQ accordion */
.faq-item{
  border-bottom: 1px solid var(--tem-border);
}
.faq-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background:none;
  border:none;
  cursor:pointer;
  text-align:left;
}
.faq-q{
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.faq-icon{
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tem-chip-bg);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background 0.15s;
}
.faq-icon svg{
  transition: stroke 0.15s;
}
.faq-item[aria-expanded="true"] .faq-icon{
  background: var(--tem-red);
}
.faq-a{
  display:none;
  padding-bottom: 28px;
}
.faq-item[aria-expanded="true"] .faq-a{
  display:block;
}
.faq-a p{
  margin:0;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--tem-chip-ink);
}
.faq-a p:first-child{ margin-top: 0; }

@media (max-width: 820px){
  .nav, .hero, .content, .footer{ padding-left: 18px; padding-right: 18px; }
  .card{ width: 100%; max-width: 520px; }
}

