/*
Theme Name: SSLup
Theme URI: https://sslup.io
Author: SSLup
Description: Marketing theme for SSLup.io. Deliberately small: no jQuery, no
  build step, no page builder, and no prices - those are fetched live from the
  monitoring application so this site and the product cannot disagree.
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: sslup
*/

/* The application's palette, to the value. A marketing site that does not look
   like the product it sells makes the product feel like somebody else's. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --bg: #1D2733; --panel: #26323F; --panel-2: #2D3A49;
  --ink: #E9EEF3; --muted: #8FA0B0; --line: #37455566;
  --ok: #43C784; --warn: #F0B357; --crit: #E36049; --accent: #6FAEDB;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1220px; }
/* Prose is capped independently of the page: a 1120px line of body text is
   harder to read than a 68ch one. */
.prose { max-width: 74ch; padding-top: 40px; padding-bottom: 56px; }
.prose h1 { font-size: 32px; letter-spacing: -.01em; margin: 0 0 18px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p, .prose li { color: #D3DCE4; }
.prose ul, .prose ol { padding-left: 20px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: #10222F; padding: 8px 12px; border-radius: 6px; z-index: 10; }

/* ------------------------------------------------------------------ header */
.site-head {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px; border-bottom: 1px solid var(--line);
  background: #1A232E; position: sticky; top: 0; z-index: 5;
}
.site-head .brand { display: flex; align-items: center; }
.mainnav { display: flex; gap: 4px; margin-left: 8px; flex: 1; flex-wrap: wrap; }
.mainnav a {
  color: var(--muted); text-decoration: none; font-size: 14.5px;
  padding: 7px 12px; border-radius: 6px;
}
/* wp_nav_menu() hands back <li> elements; items_wrap only drops the <ul> from
   around them. A stray <li> is still display:list-item, so each link came out
   of the flex row with a bullet beside it - ten of them across the header.
   Killed on the <li> and on the marker, because a browser that has decided the
   element is a list item will draw one from either. */
.mainnav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.mainnav li { list-style: none; display: flex; }
.mainnav li::marker { content: none; }

/* WordPress puts current-menu-item on the <li>, never on the <a>. Written the
   other way round, this rule matched nothing and the page you were on was
   never highlighted. */
.mainnav a:hover,
.mainnav a.current,
.mainnav a.current-menu-item,
.mainnav li.current-menu-item > a { color: var(--ink); background: var(--panel-2); }
.head-cta { display: flex; align-items: center; gap: 12px; }
.head-cta .quiet { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.head-cta .quiet:hover { color: var(--ink); }
/* On a phone: brand and the call to action share the first row, the nav gets
   its own below. Without pinning the brand to flex:1 the CTA landed on the left
   of row two and the links wrapped around it, which read as a mistake. */
@media (max-width: 720px) {
  .site-head { flex-wrap: wrap; gap: 10px 12px; padding: 12px 16px; }
  .brand { flex: 1 1 auto; }
  .head-cta { order: 2; }
  /* flex-basis, not width. The base rule sets `flex: 1`, whose basis of 0%
     wins over width:100% - so the nav kept sharing a row with the buttons
     instead of taking one of its own. */
  .mainnav { order: 3; flex: 1 1 100%; margin-left: 0; justify-content: flex-start; }
  .mainnav a { padding: 6px 10px; }
  .brand img { height: 22px; }
  .head-cta { margin-left: auto; }
}

/* -------------------------------------------------------------------- hero */
.hero { padding: 72px 0 44px; text-align: center; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: 40px; line-height: 1.18; letter-spacing: -.02em;
  /* Wide enough that the <br> in the markup is the only break. At 20ch the
     first sentence wrapped again on its own and the headline became five
     ragged lines. */
  margin: 0 auto 18px; max-width: 44ch;
}
.hero .lede { color: var(--muted); font-size: 17.5px; max-width: 62ch; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 640px) { .hero h1 { font-size: 29px; } .hero { padding: 46px 0 32px; } }

/* ----------------------------------------------------------------- buttons */
a.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #10222F;
  border: 1px solid transparent; border-radius: 6px;
  padding: 11px 20px; cursor: pointer;
}
a.btn:hover { background: #8CC0E6; }
a.btn.ghost { background: transparent; color: var(--accent); border-color: var(--line); }
a.btn.ghost:hover { background: var(--panel-2); }
a.btn.wide { width: 100%; font-size: 14px; padding: 10px 12px; margin-top: auto; }
a.btn.small { padding: 7px 14px; font-size: 14px; }

/* --------------------------------------------------------------- sections */
.band { padding: 52px 24px; border-bottom: 1px solid var(--line); }
.section-title { font-size: 24px; margin: 0 0 22px; letter-spacing: -.01em; }
.shot-lead { padding: 40px 24px 8px; }

.feature-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; font-size: 14.5px; }

.split { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; align-items: center; }
.split.reverse > *:first-child { order: 0; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.shot { margin: 0; }
.shot img {
  border: 1px solid var(--line); border-radius: 10px; display: block;
  box-shadow: 0 12px 32px rgba(0,0,0,.32);
}
.shot figcaption { color: var(--muted); font-size: 13.5px; margin-top: 10px; text-align: center; }
/*
 * Any stacked pair, not only inside a .band. The certificates set sits in
 * .shot-lead, which is not a .band - scoped to .band the second and third
 * shots would have butted straight against the one above them.
 */
.shot + .shot { margin-top: 20px; }

/* Prose in a band that has no .split to constrain it. Capped in ch rather than
   px: the limit that matters is characters per line, not the width of a screen. */
.ref-copy { max-width: 72ch; margin: 0 0 22px; }
.ref-copy p { margin: 0 0 12px; }

/* The AI band.
   .tag-new borrows the plan ribbon's colours rather than inventing a second
   accent - one "look at this" style on the site, used twice.

   The shot is the densest one here - a whole written analysis - so it runs full
   width rather than sharing a split, where the body text inside the image
   shrinks to the point where the thing being demonstrated cannot be read. */
.tag-new {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  background: var(--accent); color: #10222F;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.ai-lede { max-width: 74ch; margin: 0 0 24px; }
.ai-lede p:first-child { margin-top: 0; }
.ai-points { margin-top: 26px; }
.ai-said { max-width: 74ch; margin: 22px 0 0; font-size: 14.5px; }
.ai-note { margin: 10px 0 0; }

.email-security-band .eyebrow {
  margin: 0 0 7px; color: #2DD4A7; font-size: 12px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
}
.email-security-band .section-title { margin-bottom: 12px; }
.email-security-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.email-security-list span { padding: 12px; border-radius: 8px; background: var(--panel-2); color: var(--muted); }
.email-security-list strong { display: block; color: var(--ink); }
.email-security-list span:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 520px) { .email-security-list { grid-template-columns: 1fr; } .email-security-list span:last-child:nth-child(odd) { grid-column: auto; } }

.cta-band { text-align: center; border-bottom: none; }
.cta-band h2 { font-size: 26px; margin: 0 0 8px; }
.cta-band p { margin: 0 0 18px; }
.cta-band .btn { margin: 0 6px; }

/* ---------------------------------------------------------------- pricing */
.page-head { text-align: center; padding: 44px 0 8px; }
.page-head h1 { font-size: 32px; margin: 0; letter-spacing: -.01em; }

.plan-grid {
  display: grid; gap: 14px; margin: 26px 0 10px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
/*
 * The billing toggle on the pricing page.
 *
 * Copied from the app's style.css rather than shared, because the two sites
 * load different stylesheets - the app serves its own and WordPress serves
 * this one. Keep them looking the same: a prospect who toggles on sslup.io and
 * then signs in should not meet a different-looking control doing the same job.
 */
.billing-toggle {
  display: inline-flex; gap: 4px; margin: 0 0 8px; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.billing-toggle .bt {
  /*
   * font: inherit FIRST, on purpose. It is a shorthand, so it resets
   * font-size to the inherited value - putting it after the font-size below
   * would silently undo it, which is what this rule did before.
   */
  font: inherit;
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px;
}
.billing-toggle .bt.active { background: var(--panel-2); color: var(--ink); font-weight: 600; }
.billing-toggle .save { color: var(--ok); font-weight: 600; margin-left: 6px; }

.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 18px;
}
.plan-card.featured { border-color: var(--accent); background: #29384A; }
.plan-card .ribbon {
  position: absolute; top: -10px; left: 18px;
  background: var(--accent); color: #10222F;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
}
.plan-card h3 { font-size: 19px; margin: 0 0 4px; }
.plan-card .blurb { color: var(--muted); font-size: 13px; min-height: 3.4em; margin: 6px 0 14px; }
.plan-card .price { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.plan-card .price .amount { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.plan-card .price .unit { color: var(--muted); font-size: 13px; }
.plan-card .per { color: var(--muted); font-size: 12.5px; margin: 4px 0 16px; min-height: 2.4em; }
.plan-points { list-style: none; padding: 0; margin: 0 0 18px; font-size: 13.5px; }
.plan-points li { padding: 5px 0 5px 20px; position: relative; border-top: 1px solid var(--line); }
.plan-points li:first-child { border-top: none; }
.plan-points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.plan-points li.off { color: var(--muted); }
.plan-points li.off::before { content: "—"; color: var(--muted); }

/* One column per plan and no useful way to shrink, so on a phone it scrolls
   sideways rather than folding every cell into an unreadable stack. */
.table-scroll { overflow-x: auto; margin-top: 30px; }
.compare { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.compare th, .compare td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; }
.compare thead th { border-top: none; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.compare tbody th { font-weight: 400; color: var(--muted); }
.compare td { font-variant-numeric: tabular-nums; }
.pricing-source { margin-top: 14px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.card h2 { margin-top: 0; font-size: 19px; }
.notice { background: var(--panel); border-left: 3px solid var(--warn); padding: 12px 16px; border-radius: 6px; }

/* ------------------------------------------------------------------ footer */
.site-foot { border-top: 1px solid var(--line); padding: 34px 24px 20px; background: #1A232E; }
.foot-inner { max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand p { margin: 8px 0 0; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
/*
 * The menu is a real <ul> now, so it needs the same treatment the header's got:
 * no markers, no default indent, and laid out in the same row as the two links
 * printed after it in footer.php.
 */
.site-foot nav .foot-menu {
  display: flex; gap: 18px; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
.site-foot nav .foot-menu li { list-style: none; }
.site-foot nav .foot-menu li::marker { content: none; }
.site-foot nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-foot nav a:hover { color: var(--ink); }
.foot-legal { max-width: var(--wrap); margin: 22px auto 0; }

/* WordPress core classes the editor emits. */
.alignwide { width: 100%; }
.wp-block-image img { border-radius: 10px; border: 1px solid var(--line); }

/* ------------------------------------------------------------- contact form */

.contact-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
                 padding: 24px; margin: 28px 0; }
.contact-panel h2 { margin-top: 0; }

.notice { border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; font-size: 15px; }
.notice.ok  { background: rgba(74,222,128,.10); border: 1px solid rgba(74,222,128,.35); }
.notice.bad { background: rgba(248,113,113,.10); border: 1px solid rgba(248,113,113,.35); }

.cform .field { display: block; margin: 0 0 16px; }
.cform .field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.cform .req { color: #F87171; font-weight: 400; }
.cform input[type=text], .cform input[type=email], .cform select, .cform textarea {
    width: 100%; box-sizing: border-box; font: inherit; font-size: 15px;
    color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
    border-radius: 8px; padding: 10px 12px;
}
.cform textarea { resize: vertical; min-height: 120px; }
.cform input:focus, .cform select:focus, .cform textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140,192,230,.18);
}
.cform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .cform .two { grid-template-columns: 1fr; } }
.cform button.btn { margin-top: 4px; }
.cform .g-recaptcha { margin: 4px 0 18px; }
.topic-blurb[hidden], .topic-q[hidden] { display: none; }
.topic-blurb { margin: -8px 0 16px; }

/* Off-screen, not display:none - a bot that skips hidden fields still fills this. */
.cform .hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.faq { margin: 36px 0 8px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; color: var(--accent); display: inline-block; width: 18px; }
.faq details[open] summary::before { content: '\2212'; }
.faq details p { margin: 10px 0 2px 18px; color: var(--muted); }
