/* /css/styles.css */
:root{
  --bg:#b11e1e;
  --bg2:#8f1717;
  --text:#ffffff;
  --muted:rgba(255,255,255,.85);

  --accent:#f2b200;
  --accent2:#d89c00;

  --border:rgba(242,178,0,.55);
  --card:rgba(255,255,255,.08);

  --shadow:0 10px 30px rgba(0,0,0,.22);
  --hero-shadow:0 18px 45px rgba(0,0,0,.28);

  --radius:14px;
  --max:1200px;

  /* Pink from your design image */
  --section-pink:#F4D7D4;

  /* Curve fill must match next section */
  --wave-fill:#F4D7D4;
  --wave-stroke:#f2b200;

  /* Overlap control */
  --book-overlap:56px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
img{max-width:100%;height:auto;display:block}

/* Skip link */
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{
  left:16px;top:16px;width:auto;height:auto;padding:10px 12px;
  background:#000;color:#fff;border-radius:10px;z-index:9999;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:linear-gradient(180deg,var(--bg),var(--bg2));
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow);
}

.header-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  min-width:220px;
}

.brand-logo{
  width:34px;
  height:34px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  flex:0 0 auto;
}

.brand-text{display:flex;flex-direction:column;line-height:1}
.brand-title{font-weight:800;letter-spacing:.5px}
.brand-sub{margin-top:4px;font-weight:800;letter-spacing:.8px;color:var(--accent)}

.nav-toggle{
  display:none;
  margin-left:auto;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:12px;
  flex:1;
}

.nav-link{
  text-decoration:none;
  color:var(--muted);
  font-weight:650;
  padding:10px 8px;
  border-radius:10px;
}
.nav-link:hover{background:rgba(255,255,255,.08);color:var(--text)}
.nav-link.is-active{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:6px;
  text-decoration-color:rgba(242,178,0,.75);
}

.header-cta{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
  border:1px solid transparent;
}

.btn-outline{
  color:var(--text);
  border-color:rgba(242,178,0,.8);
  background:transparent;
}
.btn-outline:hover{background:rgba(242,178,0,.12)}

.btn-solid{
  color:#2a1a00;
  background:linear-gradient(180deg,var(--accent),var(--accent2));
  border-color:rgba(0,0,0,.08);
}
.btn-solid:hover{filter:brightness(.98)}

.btn-primary{
  background:linear-gradient(180deg,var(--accent),var(--accent2));
  color:#2a1a00;
  border-color:rgba(0,0,0,.08);
}
.btn-primary:hover{filter:brightness(.98)}

.btn-secondary{
  background:rgba(255,255,255,.12);
  color:var(--text);
  border-color:rgba(255,255,255,.22);
}
.btn-secondary:hover{background:rgba(255,255,255,.16)}

/* Hero */
.hero{
  position:relative;
  overflow:visible; /* allow the book to overlap into the next section */
  color:var(--text);
  background:
    radial-gradient(900px 500px at 70% 30%, rgba(242,178,0,.14), transparent 60%),
    radial-gradient(700px 420px at 10% 40%, rgba(255,255,255,.08), transparent 65%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  padding-bottom:70px;
}

.hero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:90px;
  background-repeat:no-repeat;
  background-position:bottom center;
  background-size:100% 100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C 260 120 520 20 780 70 C 960 105 1080 95 1200 70 L1200 120 L0 120 Z' fill='%23F4D7D4'/%3E%3Cpath d='M0 70 C 260 120 520 20 780 70 C 960 105 1080 95 1200 70' fill='none' stroke='%23f2b200' stroke-width='3'/%3E%3C/svg%3E");
  pointer-events:none;
  z-index:1;
}

.hero-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:44px 16px 0;
  display:grid;
  grid-template-columns:380px 1fr;
  gap:42px;
  align-items:center;
  position:relative;
  z-index:2;
}

.hero-book{
  display:flex;
  justify-content:center;
  position:relative;
  z-index:3; /* keep the book above the next section */
}

.book-img{
  width:100%;
  max-width:360px;
  border-radius:14px;
  box-shadow:var(--hero-shadow);
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.18);
  transform:translateY(var(--book-overlap)); /* this creates the overlap */
}

.hero-kicker{
  margin:0 0 12px 0;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:rgba(255,255,255,.75);
  font-size:12px;
}

.hero-title{margin:0 0 14px 0;line-height:1.02;letter-spacing:-.4px}
.hero-title .t1{display:block;font-size:44px;font-weight:900}
.hero-title .t2{display:block;font-size:34px;font-weight:900;color:var(--accent);margin-top:8px}
.hero-title .t3{display:block;font-size:44px;font-weight:900;margin-top:10px}

.hero-sub{
  margin:0 0 18px 0;
  max-width:58ch;
  color:rgba(255,255,255,.86);
  font-size:16px;
  line-height:1.45;
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 18px 0;
}

.hero-trust{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.trust-pill{
  font-weight:800;
  font-size:12px;
  letter-spacing:.3px;
  padding:8px 10px;
  border-radius:999px;
  background:var(--card);
  border:1px solid rgba(255,255,255,.16);
  color:rgba(255,255,255,.85);
}

/* Next section background */
.section-pink{
  background:var(--section-pink);
  position:relative;
  z-index:0;
  padding:120px 16px 64px; /* top padding accounts for the overlapped book */
}

/* Responsive */
@media (max-width: 980px){
  .nav{gap:10px}
  .brand{min-width:unset}
}

@media (max-width: 900px){
  :root{ --book-overlap:40px; }
  .hero-inner{grid-template-columns:1fr;gap:24px;padding:34px 16px 0}
  .hero-book{justify-content:flex-start}
  .book-img{max-width:320px}
  .hero-title .t1{font-size:38px}
  .hero-title .t2{font-size:28px}
  .hero-title .t3{font-size:38px}
  .section-pink{padding:110px 16px 56px}
}

@media (max-width: 820px){
  .nav-toggle{display:inline-flex}

  .nav{
    position:absolute;
    left:0;right:0;top:60px;
    margin:0;
    padding:12px 16px;
    background:linear-gradient(180deg,var(--bg),var(--bg2));
    border-bottom:1px solid var(--border);
    box-shadow:var(--shadow);
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    z-index:1001;
  }

  .nav.is-open{display:flex}
  .nav-link{width:100%;padding:12px 10px}
  .header-cta{display:none}
  .header-inner{position:relative}
}
/* Add to /css/styles.css */
.section-inner{
  max-width:var(--max);
  margin:0 auto;
}

.section-title{
  margin:0 0 18px 0;
  text-align:center;
  font-size:28px;
  font-weight:900;
  letter-spacing:-.3px;
  color:#3a1b12;
  text-transform:uppercase;
}

.benefit-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.benefit-card{
  background:rgba(255,255,255,.6);
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.benefit-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.benefit-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(242,178,0,.18);
  border:1px solid rgba(242,178,0,.35);
}

.benefit-stars{
  font-weight:900;
  letter-spacing:1px;
  color:#b11e1e;
  font-size:14px;
}

.benefit-title{
  margin:0 0 8px 0;
  font-size:18px;
  font-weight:900;
  color:#2a1a00;
}

.benefit-text{
  margin:0 0 12px 0;
  color:#4b2a1f;
  line-height:1.45;
}

.benefit-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  text-decoration:none;
  color:#8f1717;
}
.benefit-link:hover{text-decoration:underline;text-underline-offset:4px}

@media (max-width: 900px){
  .benefit-grid{grid-template-columns:1fr}
  .section-title{font-size:24px}
}
/* Authors + Learn section (original-style) */
.authors-section{
  padding:48px 16px 72px;
}

/* Red band behind BOTH columns */
.authors-band{
  position:relative;
  border-radius:18px;
  padding:18px;
  background:linear-gradient(180deg,#8f1717 0%, #b11e1e 55%, #7f1414 100%);
  box-shadow:0 12px 28px rgba(0,0,0,.10);
  overflow:hidden;
}

/* Subtle texture */
.authors-band::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 70% 30%, rgba(242,178,0,.10), transparent 60%),
    radial-gradient(700px 420px at 10% 40%, rgba(255,255,255,.06), transparent 65%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, rgba(0,0,0,.02) 2px 4px);
  opacity:.55;
  pointer-events:none;
}

.authors-layout{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:22px;
  align-items:start;
}

/* LEFT panel */
.authors-left{
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.06);
}

.authors-titlebar{
  padding:14px 16px;
  background:rgba(0,0,0,.20);
  border-bottom:1px solid rgba(255,255,255,.12);
}

.authors-title{
  margin:0;
  color:#fff;
  font-weight:900;
  letter-spacing:.7px;
  text-transform:uppercase;
  font-size:18px;
}

/* 3 authors in one row */
.authors-strip{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:0;
}

.author-tile{
  display:flex;
  flex-direction:column;
  border-right:1px solid rgba(255,255,255,.12);
}

.author-tile:last-child{
  border-right:0;
}

/* Photo area */
.author-photo{
  height:180px;
  background:rgba(0,0,0,.10);
  overflow:hidden;
}

.author-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 18%;
  display:block;
}

/* Andrew photo: centre lower */
.author-tile-andrew .author-photo img{
  object-position:50% 85%;
}

/* Yellow name strip */
.author-meta{
  background:linear-gradient(180deg, rgba(242,178,0,.92), rgba(216,156,0,.92));
  border-top:1px solid rgba(0,0,0,.10);
  padding:12px 12px 14px;
  min-height:144px;
  color:#2a1a00;
}

.author-name{
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
  font-size:14px;
  margin:0 0 6px 0;
}

.author-role{
  margin:0 0 12px 0;
  color:rgba(42,26,0,.86);
}

/* Buttons in yellow strip */
.author-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.author-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  border:1px solid rgba(42,26,0,.22);
  min-width:96px;
}

.author-btn-primary{
  background:rgba(255,255,255,.28);
  color:#2a1a00;
}

.author-btn-ghost{
  background:transparent;
  color:#2a1a00;
}

.author-btn-primary:hover{filter:brightness(.98)}
.author-btn-ghost:hover{background:rgba(255,255,255,.18)}

/* Bottom CTA inside red band */
.authors-footer{
  padding:16px;
  background:rgba(0,0,0,.12);
  border-top:1px solid rgba(255,255,255,.12);
}

.authors-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  color:#2a1a00;
  background:linear-gradient(180deg,#f2b200,#d89c00);
  border:1px solid rgba(0,0,0,.10);
  min-width:240px;
}

.authors-cta:hover{filter:brightness(.98)}

/* RIGHT learn card */
.learn-box{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.learn-title{
  margin:0 0 10px 0;
  font-size:18px;
  font-weight:900;
  text-transform:uppercase;
  color:#2a1a00;
}

/* Avoid broken glyphs by using CSS ticks */
.learn-list{
  margin:0 0 14px 0;
  padding:0;
  list-style:none;
  color:#4b2a1f;
}

.learn-list li{
  position:relative;
  padding-left:26px;
  margin:10px 0;
  line-height:1.35;
}

.learn-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.25em;
  width:16px;
  height:16px;
  border-radius:5px;
  background:rgba(242,178,0,.35);
  border:1px solid rgba(242,178,0,.60);
}

.learn-list li::after{
  content:"✓";
  position:absolute;
  left:4px;
  top:.05em;
  font-weight:900;
  color:#8f1717;
  font-size:12px;
}

.learn-cta{
  display:inline-flex;
  width:100%;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  color:#2a1a00;
  background:linear-gradient(180deg,#f2b200,#d89c00);
  border:1px solid rgba(0,0,0,.10);
}

.learn-cta:hover{filter:brightness(.98)}

/* Responsive */
@media (max-width: 980px){
  .authors-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width: 900px){
  .authors-strip{
    grid-template-columns:1fr;
  }

  .author-tile{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.12);
  }

  .author-tile:last-child{
    border-bottom:0;
  }

  .author-photo{
    height:220px;
  }

  .author-tile-andrew .author-photo img{
    object-position:50% 75%;
  }

  .authors-cta{
    width:100%;
  }
}
/* Key Server Log Examples */
.log-examples{
  padding:56px 16px 76px;
}

.logex-inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  align-items:center;
}

.logex-title{
  margin:0 0 18px 0;
  font-weight:900;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:#5b1b14;
  font-size:26px;
}

.logex-list{
  margin:0 0 18px 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.logex-list li{
  display:flex;
  align-items:center;
  gap:12px;
}

.logex-tick{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:rgba(242,178,0,.35);
  border:1px solid rgba(242,178,0,.60);
  color:#8f1717;
  font-weight:900;
  flex:0 0 auto;
}

.logex-text{
  display:block;
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(0,0,0,.05);
  color:#2a1a00;
  line-height:1.25;
}

.logex-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  color:#2a1a00;
  background:linear-gradient(180deg,#f2b200,#d89c00);
  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 10px 22px rgba(0,0,0,.12);
  min-width:240px;
}

.logex-cta:hover{
  filter:brightness(.98);
}

/* Right device mock */
.logex-right{
  display:flex;
  justify-content:flex-end;
}

.devices{
  position:relative;
  width:min(560px, 100%);
  aspect-ratio: 16 / 9;
}

.device-laptop{
  position:absolute;
  right:0;
  top:0;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 18px 26px rgba(0,0,0,.22));
}

.device-tablet{
  position:absolute;
  right:14%;
  bottom:-6%;
  width:44%;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 18px 26px rgba(0,0,0,.22));
}

@media (max-width: 980px){
  .logex-inner{
    grid-template-columns:1fr;
    gap:18px;
  }
  .logex-right{
    justify-content:flex-start;
  }
  .devices{
    aspect-ratio: 16 / 10;
  }
  .device-tablet{
    right:10%;
    bottom:-8%;
    width:52%;
  }
}
/* Footer */
.site-footer{
  background:linear-gradient(180deg,var(--bg2),var(--bg));
  color:var(--text);
  border-top:1px solid rgba(242,178,0,.35);
}

.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:42px 16px 20px;
}

.footer-top{
  display:grid;
  grid-template-columns:minmax(0,420px) 1fr;
  gap:28px;
  align-items:start;
  padding-bottom:26px;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.footer-brand-link{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}

.footer-logo{
  width:42px;
  height:42px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
}

.footer-brand-title{
  font-weight:900;
  letter-spacing:.5px;
}

.footer-brand-sub{
  margin-top:4px;
  font-weight:900;
  letter-spacing:.8px;
  color:var(--accent);
}

.footer-tagline{
  margin:14px 0 16px;
  color:rgba(255,255,255,.82);
  line-height:1.5;
  max-width:52ch;
}

.footer-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.footer-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  border:1px solid transparent;
  white-space:nowrap;
}

.footer-btn-primary{
  color:#2a1a00;
  background:linear-gradient(180deg,var(--accent),var(--accent2));
  border-color:rgba(0,0,0,.10);
}

.footer-btn-ghost{
  color:var(--text);
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
}

.footer-nav{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.footer-heading{
  margin:0 0 12px;
  font-size:14px;
  font-weight:900;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:rgba(255,255,255,.92);
}

.footer-link{
  display:block;
  padding:8px 0;
  text-decoration:none;
  color:rgba(255,255,255,.82);
}

.footer-link:hover{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-color:rgba(242,178,0,.65);
}

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:16px;
  flex-wrap:wrap;
}

.footer-small{
  margin:0;
  color:rgba(255,255,255,.78);
}

.footer-legal{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.footer-small-link{
  color:rgba(255,255,255,.78);
  text-decoration:none;
}

.footer-small-link:hover{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-color:rgba(242,178,0,.65);
}

.footer-dot{
  color:rgba(255,255,255,.45);
}

@media (max-width: 980px){
  .footer-top{grid-template-columns:1fr}
  .footer-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 640px){
  .footer-nav{grid-template-columns:1fr}
  .footer-btn{width:100%}
}