:root{
  --ink:      #17233D;   /* deep navy — header / footer */
  --paper:    #F6F1E4;   /* warm paper background */
  --card:     #FFFDF8;   /* card surface */
  --mustard:  #C79A3D;   /* primary accent — stamps, tags, links */
  --teal:     #2F6F62;   /* secondary accent — hover states */
  --rust:     #B24C29;   /* announcement ribbon accent */
  --line:     #D9D0BA;   /* hairline / dashed dividers */
  --ink-soft: #4A5670;   /* muted text on paper */
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.mono{ font-family:'IBM Plex Mono', monospace; }

/* ---------- Header ---------- */
header.site-header{
  background:var(--ink);
  color:var(--paper);
  padding:20px clamp(20px, 5vw, 56px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  position:sticky;
  top:0;
  z-index:20;
  border-bottom:1px solid rgba(246,241,228,0.12);
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand .logo{
  width:42px;
  height:42px;
  border-radius:8px;
  background:var(--mustard);
  color:var(--ink);
  font-family:'Fraunces', serif;
  font-weight:700;
  font-size:19px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  overflow:hidden;
}
.brand .logo img{ width:100%; height:100%; object-fit:cover; }
.brand .site-name{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:20px;
  letter-spacing:0.2px;
}
nav.site-nav{
  display:flex;
  gap:clamp(16px, 3vw, 32px);
  flex-wrap:wrap;
}
nav.site-nav a{
  font-size:14.5px;
  font-weight:500;
  color:rgba(246,241,228,0.82);
  position:relative;
  padding-bottom:3px;
  transition:color .18s ease;
}
nav.site-nav a:hover{ color:var(--mustard); }
nav.site-nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0%;
  height:1.5px;
  background:var(--mustard);
  transition:width .2s ease;
}
nav.site-nav a:hover::after{ width:100%; }

/* ---------- Announcement ribbon ---------- */
.announcement{
  background:var(--rust);
  color:#FBEFE7;
  font-size:14px;
  font-weight:500;
  text-align:center;
  padding:11px 20px;
  position:relative;
}
.announcement a{
  text-decoration:underline;
  text-underline-offset:3px;
  font-weight:600;
}
.announcement.hidden{ display:none; }

/* ---------- Hero ---------- */
.hero{
  padding:clamp(48px, 8vw, 88px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 40px);
  max-width:920px;
}
.hero .eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:13px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--teal);
  margin-bottom:14px;
}
.hero h1{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:clamp(32px, 5vw, 50px);
  line-height:1.08;
  margin:0 0 18px;
  letter-spacing:-0.5px;
}
.hero p{
  font-size:16.5px;
  line-height:1.6;
  color:var(--ink-soft);
  max-width:60ch;
  margin:0;
}

/* ---------- How it Works preview (home page) ---------- */
.how-it-works{
  padding:0 clamp(20px, 5vw, 56px) clamp(40px, 6vw, 64px);
}
.how-it-works-header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:22px;
}
.how-it-works-header h2{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:24px;
  margin:0;
}
.how-it-works-header a{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  color:var(--teal);
  white-space:nowrap;
}
.steps-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:20px;
}
.step-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px 20px;
}
.step-number{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--mustard);
  border:1.5px solid var(--mustard);
  border-radius:50%;
  width:26px; height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
}
.step-card h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:16px;
  margin:0 0 8px;
}
.step-card p{
  font-size:13.5px;
  line-height:1.55;
  color:var(--ink-soft);
  margin:0;
}

/* ---------- Filters ---------- */
.tabs{
  padding:0 clamp(20px, 5vw, 56px);
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  border-bottom:1.5px solid var(--line);
  margin-bottom:32px;
}
.tab-btn{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  letter-spacing:0.3px;
  padding:11px 16px;
  border:none;
  background:transparent;
  color:var(--ink-soft);
  cursor:pointer;
  position:relative;
  top:1.5px;
  border-bottom:2px solid transparent;
  transition:all .16s ease;
  white-space:nowrap;
}
.tab-btn:hover{ color:var(--teal); }
.tab-btn.active{
  color:var(--ink);
  border-bottom-color:var(--mustard);
  font-weight:600;
}
.tab-count{
  color:var(--ink-soft);
  font-size:11px;
  margin-left:4px;
}

/* ---------- Card grid ---------- */
.grid{
  padding:0 clamp(20px, 5vw, 56px) 80px;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(270px, 1fr));
  gap:26px;
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .22s ease, box-shadow .22s ease;
  position:relative;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px -12px rgba(23,35,61,0.22);
}
.card-top{
  padding:22px 20px 18px;
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.favicon-wrap{
  width:46px;
  height:46px;
  border-radius:10px;
  background:var(--paper);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  overflow:hidden;
}
.favicon-wrap img{ width:24px; height:24px; }
.card-title{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:18px;
  line-height:1.25;
  margin:0 0 4px;
}
.card-domain{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--ink-soft);
  word-break:break-all;
}

/* postmark-style category stamp */
.stamp{
  position:absolute;
  top:18px;
  right:-1px;
  font-family:'IBM Plex Mono', monospace;
  font-size:10.5px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--mustard);
  border:1.5px solid var(--mustard);
  border-radius:6px 0 0 6px;
  padding:4px 10px 4px 12px;
  transform:rotate(0deg);
  background:rgba(199,154,61,0.06);
}

/* perforated ticket divider */
.perforation{
  position:relative;
  border-top:1.5px dashed var(--line);
  margin:0 20px;
}
.perforation::before,
.perforation::after{
  content:"";
  position:absolute;
  top:-8px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--paper);
  border:1px solid var(--line);
}
.perforation::before{ left:-28px; }
.perforation::after{ right:-28px; }

.card-desc{
  padding:16px 20px 8px;
  font-size:14px;
  line-height:1.55;
  color:var(--ink-soft);
  flex-grow:1;
}
.card-bottom{
  padding:14px 20px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.visit-link{
  font-size:13.5px;
  font-weight:600;
  color:var(--teal);
  display:flex;
  align-items:center;
  gap:6px;
  transition:gap .16s ease;
}
.card:hover .visit-link{ gap:9px; }
.status-dot{
  width:7px; height:7px;
  border-radius:50%;
  display:inline-block;
  margin-right:6px;
  flex-shrink:0;
}
.status-dot.live,
.status-dot.completed{ background:#3C8F5C; box-shadow:0 0 0 3px rgba(60,143,92,0.15); }
.status-dot.testing{ background:#C79A3D; box-shadow:0 0 0 3px rgba(199,154,61,0.18); }
.status-dot.development{ background:#8A93A6; box-shadow:0 0 0 3px rgba(138,147,166,0.15); }
.status-row{
  display:flex;
  align-items:center;
  font-size:12px;
  font-family:'IBM Plex Mono', monospace;
  color:var(--ink-soft);
}
.contact-row{
  padding:0 20px 18px;
  border-top:1px solid var(--line);
  margin-top:2px;
  padding-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.contact-email{
  font-family:'IBM Plex Mono', monospace;
  font-size:11.5px;
  color:var(--ink-soft);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.copy-btn{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink-soft);
  border-radius:6px;
  padding:4px 8px;
  cursor:pointer;
  flex-shrink:0;
  transition:all .15s ease;
  position:relative;
  z-index:2;
}
.copy-btn:hover{ border-color:var(--teal); color:var(--teal); }

.legend{
  padding:0 clamp(20px, 5vw, 56px) 20px;
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  font-family:'IBM Plex Mono', monospace;
  font-size:11.5px;
  color:var(--ink-soft);
}
.legend span{ display:flex; align-items:center; }

/* ---------- Disclaimer strip ---------- */
.disclaimer{
  font-size:12px;
  line-height:1.6;
  color:rgba(246,241,228,0.55);
  max-width:60ch;
  margin-top:10px;
}
.disclaimer a{ text-decoration:underline; text-underline-offset:2px; color:rgba(246,241,228,0.75); }

/* ---------- Cookie consent banner ---------- */
.consent-banner{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:100;
  background:var(--ink);
  color:var(--paper);
  padding:18px clamp(20px, 5vw, 40px);
  box-shadow:0 -8px 24px rgba(0,0,0,0.18);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  border-top:1px solid rgba(246,241,228,0.15);
}
.consent-banner.hidden{ display:none; }
.consent-text{
  font-size:13.5px;
  line-height:1.55;
  max-width:62ch;
  color:rgba(246,241,228,0.85);
}
.consent-text a{ text-decoration:underline; text-underline-offset:2px; color:var(--mustard); }
.consent-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.consent-btn{
  font-family:'Inter', sans-serif;
  font-size:13px;
  font-weight:600;
  padding:10px 16px;
  border-radius:8px;
  cursor:pointer;
  border:1px solid rgba(246,241,228,0.3);
  background:transparent;
  color:var(--paper);
  transition:all .15s ease;
  white-space:nowrap;
}
.consent-btn:hover{ border-color:var(--paper); }
.consent-btn.primary{
  background:var(--mustard);
  border-color:var(--mustard);
  color:var(--ink);
}
.consent-btn.primary:hover{ filter:brightness(1.06); }

/* ---------- Cookie preferences modal ---------- */
.consent-modal-overlay{
  position:fixed; inset:0;
  background:rgba(23,35,61,0.55);
  z-index:110;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.consent-modal-overlay.hidden{ display:none; }
.consent-modal{
  background:var(--card);
  border-radius:14px;
  max-width:480px;
  width:100%;
  padding:28px;
  max-height:85vh;
  overflow-y:auto;
}
.consent-modal h3{
  font-family:'Fraunces', serif;
  font-size:20px;
  margin:0 0 12px;
}
.consent-modal p{
  font-size:13.5px;
  line-height:1.6;
  color:var(--ink-soft);
  margin:0 0 18px;
}
.consent-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-top:1px solid var(--line);
}
.consent-row:first-of-type{ border-top:none; }
.consent-row-label{ font-weight:600; font-size:14px; margin-bottom:4px; }
.consent-row-desc{ font-size:12.5px; color:var(--ink-soft); line-height:1.5; }
.toggle{
  position:relative;
  width:42px; height:24px;
  flex-shrink:0;
  background:var(--line);
  border-radius:100px;
  cursor:pointer;
  transition:background .15s ease;
}
.toggle.on{ background:var(--teal); }
.toggle.disabled{ opacity:0.5; cursor:not-allowed; }
.toggle::after{
  content:"";
  position:absolute;
  top:3px; left:3px;
  width:18px; height:18px;
  border-radius:50%;
  background:#fff;
  transition:left .15s ease;
}
.toggle.on::after{ left:21px; }
.consent-modal-actions{
  display:flex;
  gap:10px;
  margin-top:20px;
  flex-wrap:wrap;
}

/* ---------- Footer ---------- */
footer.site-footer{
  background:var(--ink);
  color:rgba(246,241,228,0.75);
  padding:40px clamp(20px, 5vw, 56px) 30px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:24px;
  padding-bottom:24px;
  border-bottom:1px solid rgba(246,241,228,0.14);
  margin-bottom:20px;
}
.footer-brand .site-name{
  font-family:'Fraunces', serif;
  font-size:18px;
  color:var(--paper);
  margin-bottom:6px;
}
.footer-brand p{
  font-size:13.5px;
  max-width:38ch;
  line-height:1.5;
  margin:0;
  color:rgba(246,241,228,0.55);
}
.footer-nav{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
}
.footer-nav a{
  font-size:13.5px;
  color:rgba(246,241,228,0.75);
  transition:color .16s ease;
}
.footer-nav a:hover{ color:var(--mustard); }
.footer-bottom{
  font-size:12.5px;
  color:rgba(246,241,228,0.4);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
}

/* ---------- Footer: Other Products ---------- */
.footer-products{
  padding:22px 0;
  border-bottom:1px solid rgba(246,241,228,0.14);
  margin-bottom:20px;
}
.footer-products.hidden{ display:none; }
.footer-products-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:11.5px;
  letter-spacing:0.6px;
  text-transform:uppercase;
  color:rgba(246,241,228,0.45);
  margin-bottom:12px;
}
.footer-products-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.product-chip{
  font-size:13px;
  font-weight:500;
  color:rgba(246,241,228,0.85);
  background:rgba(246,241,228,0.08);
  border:1px solid rgba(246,241,228,0.16);
  border-radius:100px;
  padding:7px 14px;
  transition:all .15s ease;
  white-space:nowrap;
}
.product-chip:hover{
  background:rgba(246,241,228,0.16);
  border-color:var(--mustard);
  color:var(--mustard);
}
.products-dropdown-wrap{ position:relative; }
.dropdown-toggle{
  font-family:'Inter', sans-serif;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.dropdown-toggle .arrow{ font-size:11px; transition:transform .15s ease; }
.dropdown-toggle[aria-expanded="true"] .arrow{ transform:rotate(180deg); }
.products-dropdown-panel{
  position:absolute;
  bottom:calc(100% + 8px);
  left:0;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px;
  min-width:190px;
  box-shadow:0 12px 28px rgba(0,0,0,0.28);
  display:flex;
  flex-direction:column;
  gap:2px;
  z-index:30;
}
.products-dropdown-panel.hidden{ display:none; }
.products-dropdown-panel a{
  font-size:13.5px;
  color:var(--ink);
  padding:8px 10px;
  border-radius:6px;
  transition:background .12s ease;
}
.products-dropdown-panel a:hover{ background:var(--paper); color:var(--teal); }

/* ---------- Footer: horizontal legal row ---------- */
.footer-legal-row{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding-bottom:18px;
}
.footer-legal-row a{
  font-size:12.5px;
  color:rgba(246,241,228,0.6);
  white-space:nowrap;
  transition:color .15s ease;
}
.footer-legal-row a:hover{ color:var(--mustard); }
.footer-legal-row a:not(:last-child)::after{
  content:"•";
  margin-left:14px;
  color:rgba(246,241,228,0.25);
}

@media (max-width:560px){
  .footer-top{ flex-direction:column; }
  .footer-legal-row a:not(:last-child)::after{ display:none; }
}

/* ---------- Legal / policy pages ---------- */
.legal-content{
  padding:clamp(40px, 7vw, 72px) clamp(20px, 5vw, 56px) 60px;
  max-width:760px;
}
.legal-content .back-link{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  color:var(--teal);
  display:inline-block;
  margin-bottom:24px;
}
.legal-content .updated{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--ink-soft);
  margin-bottom:8px;
}
.legal-content h1{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:clamp(28px, 4vw, 38px);
  line-height:1.15;
  margin:0 0 24px;
  letter-spacing:-0.3px;
}
.legal-content h2{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:20px;
  margin:36px 0 12px;
}
.legal-content p{
  font-size:15px;
  line-height:1.7;
  color:var(--ink-soft);
  margin:0 0 14px;
}
.legal-content ul{
  margin:0 0 16px;
  padding-left:22px;
}
.legal-content li{
  font-size:15px;
  line-height:1.7;
  color:var(--ink-soft);
  margin-bottom:6px;
}
.legal-content a{ color:var(--teal); text-decoration:underline; text-underline-offset:2px; }
.legal-content .notice-box{
  background:var(--card);
  border:1px solid var(--line);
  border-left:3px solid var(--mustard);
  border-radius:8px;
  padding:16px 18px;
  font-size:13.5px;
  line-height:1.6;
  color:var(--ink-soft);
  margin:0 0 28px;
}
.legal-content table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 20px;
  font-size:13.5px;
}
.table-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:0 0 20px;
  border-radius:8px;
}
.table-scroll table{ margin:0; min-width:480px; }
.legal-content th, .legal-content td{
  text-align:left;
  padding:10px 12px;
  border:1px solid var(--line);
}
.legal-content th{
  background:var(--card);
  font-family:'IBM Plex Mono', monospace;
  font-size:11.5px;
  text-transform:uppercase;
  letter-spacing:0.4px;
}
