/* ===========================================================
   Subaddons — hub / directory site
   Shares the same token system as each product for a
   consistent suite feel; layout is hub-specific.
   =========================================================== */
:root{
  --cream:        #FAF2E4;
  --paper:        #FFFCF6;
  --ink:          #241A13;
  --ink-soft:     #4A3D33;
  --stone:        #8C7A65;
  --line:         #E6D6BB;
  --umber-900:    #2C130B;
  --umber-700:    #6A3520;
  --rust:         #A8452A;
  --rust-dark:    #7E3220;
  --rust-tint:    #F3E2CE;
  --good:         #4C7A52;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(44,19,11,0.06), 0 10px 30px -12px rgba(44,19,11,0.18);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; }
.wrap{ max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header{ padding: 22px 0; }
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; }
.brand{
  display:flex; align-items:center; gap:10px; text-decoration:none;
  font-family: var(--font-display); font-weight:600; font-size: 19px; color: var(--ink);
}
.brand-logo{ height: 34px; width:auto; display:block; }
.brand-mark{
  display:none; /* shown by JS only if brand-logo fails to load */
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--rust), var(--umber-900));
  color: var(--rust-tint); align-items:center; justify-content:center;
  font-family: var(--font-mono); font-weight:700; font-size: 14px;
}
.brand-text{ display:none; flex-direction:column; line-height:1.2; }
.brand-name{ font-family: var(--font-display); font-weight:600; font-size: 17px; color: var(--ink); }
.brand-tagline{ font-family: var(--font-body); font-weight:400; font-size: 11px; color: var(--stone); white-space:nowrap; }
@media (max-width: 720px){
  .brand-tagline{ display:none; }
  .hub-nav{ gap: 10px; }
  .hub-nav > a:not(.btn){ font-size: 13.5px; white-space: nowrap; }
  .hub-nav .btn-small{ padding: 7px 11px; font-size: 13px; white-space: nowrap; }
}
.hub-nav{ display:flex; align-items:center; gap:20px; }
.hub-nav > a:not(.btn){ font-size: 14.5px; font-weight:600; text-decoration:none; color: var(--ink-soft); }
.hub-nav > a:not(.btn):hover{ color: var(--ink); }
.menu-toggle{ display:none; width:36px; height:36px; border:0; border-radius:8px; background: transparent; padding:0; cursor:pointer; }
.menu-toggle span{ display:block; width:100%; height:2px; background: var(--rust-dark); border-radius:999px; margin: 5px 0; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 10px 18px; border-radius: 999px; font-weight:600; font-size: 14.5px;
  text-decoration:none; border: 1px solid transparent; cursor:pointer;
}
.btn-ghost{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover{ background: var(--paper); }
.btn-primary{ background: var(--rust); color:#fff !important; }
.btn-primary:hover{ background: var(--rust-dark); }
.btn-small{ padding: 8px 14px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hub-hero{ padding: 60px 0 40px; text-align:center; }
.eyebrow{
  display:inline-block; font-family: var(--font-mono); font-size: 12.5px; letter-spacing:.06em;
  text-transform:uppercase; color: var(--rust-dark); background: var(--rust-tint);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hub-hero h1{
  font-family: var(--font-display); font-weight:600; font-size: clamp(34px, 5vw, 54px);
  line-height:1.12; margin: 0 0 16px;
}
.hub-hero .lede{
  max-width: 620px; margin: 0 auto; color: var(--ink-soft); font-size: 17px;
}

/* ---------- product grid ---------- */
.product-section{ padding: 20px 0 80px; }
.product-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px;
}
.product-card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display:flex; flex-direction:column; box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card.live:hover{ transform: translateY(-3px); box-shadow: 0 24px 44px -20px rgba(44,19,11,0.28); }
.product-card-top{ display:flex; align-items:center; gap:12px; margin-bottom: 14px; }
.product-icon{
  width: 44px; height: 44px; border-radius: 12px; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-weight:700; font-size: 15px; flex-shrink:0;
}
.product-icon-live{ background: linear-gradient(135deg, var(--rust), var(--umber-900)); color: var(--rust-tint); }
.product-icon-soon{ background: var(--line); color: var(--stone); }
.product-name{ font-family: var(--font-display); font-weight:600; font-size: 20px; margin:0; }
.product-status{
  font-family: var(--font-mono); font-size: 11px; letter-spacing:.05em; text-transform:uppercase;
  padding: 3px 9px; border-radius: 999px; margin-left:auto;
}
.status-live{ background: #E4EEE1; color: var(--good); }
.status-soon{ background: var(--line); color: var(--stone); }
.product-desc{ color: var(--ink-soft); font-size: 14.5px; margin: 0 0 20px; flex:1; }
.product-price{ font-family: var(--font-mono); font-size: 13.5px; color: var(--stone); margin-bottom: 18px; }
.product-card .btn{ align-self:flex-start; }
.product-card.soon{ opacity: .8; }

/* ---------- why subaddons ---------- */
.why-section{ padding: 10px 0 80px; }
.why-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.why-item h3{ font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; }
.why-item p{ color: var(--ink-soft); font-size: 14.5px; margin:0; }
.why-heading{ font-family: var(--font-display); font-weight:600; font-size: 28px; margin: 0; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* ---------- footer ---------- */
.site-footer{ background: var(--umber-900); color: #EADFCB; padding: 40px 0; }
.hub-footer-brand{ padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.hub-footer-brand .brand{ color:#fff; }
.hub-footer-brand .brand-tagline{ display:none; }
.hub-footer-brand p{ margin: 12px 0 0; font-size: 13.5px; color:#C9B79C; }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 10px;
  font-size: 13px; color: #C9B79C;
}
.footer-bottom a{ color: #EADFCB; text-decoration:none; }
.footer-bottom a:hover{ text-decoration:underline; }
/* Trademark disclaimer is intentionally suppressed site-wide. */
.trademark-disclaimer{ display:none; }

/* ---------- blog ---------- */
.blog-hero{ padding: 60px 0 30px; text-align:center; }
.blog-hero h1{ font-family: var(--font-display); font-weight:600; font-size: clamp(30px, 4.5vw, 44px); margin: 0 0 12px; }
.blog-hero .lede{ max-width: 560px; margin: 0 auto; color: var(--ink-soft); font-size: 16px; }

.blog-section{ padding: 20px 0 80px; }
.blog-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 10px; }
.blog-card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display:flex; flex-direction:column; box-shadow: var(--shadow-card);
  text-decoration:none; color: inherit; transition: transform .15s ease, box-shadow .15s ease;
}
.blog-card:hover{ transform: translateY(-3px); box-shadow: 0 24px 44px -20px rgba(44,19,11,0.28); }
.blog-card-meta{ font-family: var(--font-mono); font-size: 12px; letter-spacing:.04em; text-transform:uppercase; color: var(--rust-dark); margin-bottom: 10px; }
.blog-card h2{ font-family: var(--font-display); font-weight:600; font-size: 21px; margin: 0 0 10px; }
.blog-card p{ color: var(--ink-soft); font-size: 14.5px; margin: 0; flex:1; }
.blog-card .read-more{ margin-top: 16px; font-weight:600; font-size: 14px; color: var(--rust); }
.pagination{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap: 10px; margin-top: 28px; }
.pagination a, .pagination span{ display:inline-flex; align-items:center; justify-content:center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.55); color: var(--ink); text-decoration:none; font-weight:600; font-size: 14px; }
.pagination a:hover{ border-color: rgba(111, 65, 30, 0.35); }
.pagination .current{ background: var(--rust); border-color: var(--rust); color: #fff; }
.pagination .muted{ opacity: 0.5; pointer-events: none; }

/* contact page */
.contact-hero{ text-align:center; padding-bottom: 34px; }
.contact-hero .lede{ max-width: 620px; margin: 0 auto; }
.contact-page-section{ padding: 20px 0 80px; }
.contact-page-grid{ display:grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .75fr); gap: 44px; align-items:start; }
.contact-page-grid h2{ font-family: var(--font-display); font-size: 30px; margin: 0 0 12px; }
.contact-page-grid p{ color: var(--ink-soft); }
.contact-option{ border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px; }
.contact-option h3{ font-family: var(--font-display); font-size: 20px; margin: 0 0 5px; }
.contact-option p{ margin: 0 0 14px; }
.contact-note{ background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card); }
.contact-note .eyebrow{ margin-bottom: 12px; }
.contact-note p{ margin: 0 0 10px; }
.contact-note a{ color: var(--rust-dark); font-weight: 600; }
.contact-form{ margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-field{ margin-bottom: 18px; }
.form-field label{ display:block; font-size: 13px; font-weight:600; color: var(--ink-soft); margin-bottom: 6px; }
.form-field input, .form-field textarea{
  width:100%; border:1px solid var(--line); border-radius: var(--radius-md); background:#fff;
  color:var(--ink); padding:12px 13px; font:inherit; box-sizing:border-box;
}
.form-field textarea{ min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus{ border-color: var(--rust); outline: 2px solid rgba(145, 75, 39, .14); outline-offset: 1px; }
.form-hp{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0, 0, 0, 0); white-space:nowrap; border:0;
}

/* single post */
.post-hero{ padding: 50px 0 20px; }
.post-hero .blog-card-meta{ margin-bottom: 14px; }
.post-hero h1{ font-family: var(--font-display); font-weight:600; font-size: clamp(28px, 4.5vw, 42px); line-height:1.15; margin: 0 0 14px; }
.post-hero .lede{ color: var(--ink-soft); font-size: 17px; max-width: 680px; }
.post-body{ padding: 10px 0 80px; }
.post-body .wrap{ max-width: 720px; }
.post-body h2{ font-family: var(--font-display); font-weight:600; font-size: 24px; margin: 36px 0 12px; }
.post-body h3{ font-family: var(--font-display); font-weight:600; font-size: 19px; margin: 28px 0 10px; }
.post-body p{ color: var(--ink-soft); font-size: 16px; margin: 0 0 18px; }
.post-body ul, .post-body ol{ color: var(--ink-soft); font-size: 16px; margin: 0 0 18px; padding-left: 22px; }
.post-body li{ margin-bottom: 8px; }
.post-body a{ color: black; text-decoration:underline; }
.post-back{ display:inline-block; margin-bottom: 24px; font-weight:600; font-size: 14px; color: var(--ink-soft); text-decoration:none; }
.post-back:hover{ color: var(--ink); }
.post-cta{
  margin-top: 40px; padding: 26px; border-radius: var(--radius-md); background: var(--rust-tint);
  display:flex; align-items:center; justify-content:space-between; gap: 16px; flex-wrap:wrap;
}
.post-cta p{ margin:0; color: var(--umber-900); font-weight:600; }

@media (max-width: 720px){
  .site-header .wrap{ position:relative; gap:12px; }
  .hub-nav{
    display:none; position:absolute; top:calc(100% + 10px); left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:10px; padding:18px 16px;
    background: var(--paper); border:1px solid var(--line); border-radius:18px;
    box-shadow: var(--shadow-card); z-index:30;
  }
  .hub-nav.is-open{ display:flex; }
  .hub-nav > a:not(.btn){ width:100%; font-size: 16px; padding: 6px 0; }
  .hub-nav .btn-small{ width:100%; }
  .menu-toggle{ display:flex; flex-direction:column; justify-content:center; }
  .product-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .blog-grid{ grid-template-columns: 1fr; }
  .contact-page-grid{ grid-template-columns: 1fr; gap: 24px; }
  .post-cta{ flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition: none !important; }
}

@media (max-width: 420px){
  .wrap{ padding-left: 16px; padding-right: 16px; }
  .site-header{ padding: 16px 0; }
  .brand-logo{ height: 30px; }
  .hub-nav{ gap: 7px; }
  .hub-nav > a:not(.btn){ font-size: 12.5px; }
  .hub-nav .btn-small{ padding: 6px 9px; font-size: 12px; }
}
