/* ============================================================
   1Password Coupons — Global Stylesheet
   Brand: OnePass Deals  |  Palette per master brief
   ============================================================ */

:root {
  --brand-blue: #0A6CFF;
  --brand-blue-hover: #0653C9;
  --verified-bg: #dcfce7;
  --verified-text: #166534;
  --timer-bg: #fecaca;
  --timer-text: #991b1b;
  --card-bg: #ffffff;
  --card-border: #9ca3af;
  --body-text: #4b5563;
  --heading-text: #111827;
  --footer-bg: #1B1F26;
  --footer-text: #ffffff;
  --soft-bg: #f8fafc;
  --soft-border: #e5e7eb;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-hover); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  color: var(--heading-text);
  font-weight: 700;
  line-height: 1.25;
  margin: 1.4em 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em 1.4em; padding: 0; }
li { margin-bottom: .4em; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------- Announcement bar ----------------------- */
.announcement-bar {
  background: #0B1530;
  color: #fff;
  text-align: center;
  font-size: .92rem;
  padding: 10px 16px;
  font-weight: 500;
}
.announcement-bar a { color: #facc15; font-weight: 600; }

/* ----------------------- Header / Nav ----------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--soft-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--heading-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .logo-mark {
  width: 32px; height: 32px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.logo:hover { text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--heading-text);
  font-weight: 500;
  font-size: .96rem;
}
.nav-links a:hover { color: var(--brand-blue); text-decoration: none; }
.nav-cta {
  background: var(--brand-blue);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .15s;
}
.nav-cta:hover { background: var(--brand-blue-hover); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--heading-text);
}

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--soft-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 0; }
  .nav-cta { text-align: center; }
}

/* ----------------------- Hero ----------------------- */
.hero {
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
  padding: 56px 20px 40px;
  text-align: center;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto 14px;
}
.hero .sub-line {
  font-size: 1.05rem;
  color: var(--body-text);
  margin-bottom: 28px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 28px auto 28px;
}
.hero-stat {
  background: #fff;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
}
.hero-stat .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.1;
}
.hero-stat .stat-label {
  font-size: .88rem;
  color: var(--body-text);
  margin-top: 4px;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: background .15s, transform .1s;
  border: 0;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--brand-blue-hover); text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-block { display: block; width: 100%; }
.btn-outline {
  background: #fff;
  color: var(--brand-blue) !important;
  border: 2px solid var(--brand-blue);
}
.btn-outline:hover { background: var(--brand-blue); color: #fff !important; }

/* ----------------------- Coupon cards ----------------------- */
.coupon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0;
}
.coupon-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .12s;
}
.coupon-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.coupon-logo {
  width: 80px; height: 80px;
  background: #0B1530;
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.coupon-body h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  color: var(--heading-text);
}
.coupon-body p {
  margin: 0 0 10px;
  font-size: .95rem;
  color: var(--body-text);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-verified {
  background: var(--verified-bg);
  color: var(--verified-text);
}
.badge-timer {
  background: var(--timer-bg);
  color: var(--timer-text);
}
.coupon-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 150px;
}
.coupon-cta .btn { width: 100%; padding: 12px 20px; font-size: .95rem; }
.coupon-cta .cta-sub {
  font-size: .76rem;
  color: var(--timer-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 720px) {
  .coupon-card {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }
  .coupon-logo { width: 64px; height: 64px; font-size: 1rem; }
  .coupon-cta {
    grid-column: 1 / -1;
    align-items: stretch;
  }
}

/* ----------------------- Tables ----------------------- */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--soft-border);
}
.content-table th,
.content-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--soft-border);
  font-size: .96rem;
}
.content-table th {
  background: #f3f7ff;
  color: var(--heading-text);
  font-weight: 700;
}
.content-table tr:last-child td { border-bottom: 0; }
.content-table tr:hover td { background: #fafbfc; }

/* ----------------------- ToC ----------------------- */
.toc {
  background: var(--soft-bg);
  border: 1px solid var(--soft-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 30px 0;
}
.toc-title {
  font-weight: 700;
  color: var(--heading-text);
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 24px;
}
.toc li { margin-bottom: 6px; font-size: .94rem; }
.toc a { color: var(--brand-blue); }
@media (max-width: 700px) { .toc ol { columns: 1; } }

/* ----------------------- Verdict box / callouts ----------------------- */
.verdict-box {
  background: linear-gradient(180deg, #f0f6ff 0%, #fff 100%);
  border: 2px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 28px;
  margin: 30px 0;
  box-shadow: var(--shadow-md);
}
.verdict-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.verdict-score {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
}
.verdict-stars { color: #f59e0b; font-size: 1.4rem; }
.verdict-tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--heading-text);
  margin-bottom: 18px;
}
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 20px 0;
}
.pros-cons h4 { margin-top: 0; }
.pros-list, .cons-list { list-style: none; margin-left: 0; }
.pros-list li::before { content: "✓ "; color: var(--verified-text); font-weight: 700; }
.cons-list li::before { content: "✗ "; color: var(--timer-text); font-weight: 700; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }

.callout {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: .96rem;
}
.callout.info {
  background: #eff6ff;
  border-left-color: var(--brand-blue);
}
.callout.success {
  background: var(--verified-bg);
  border-left-color: var(--verified-text);
}

.disclosure {
  background: #f8fafc;
  border: 1px dashed var(--soft-border);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--body-text);
  margin: 18px 0 28px;
  font-style: italic;
}

/* ----------------------- Sticky exclusive CTA ----------------------- */
.exclusive-cta {
  background: linear-gradient(135deg, #0A6CFF 0%, #0653C9 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 38px 32px;
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.exclusive-cta .ec-badge {
  display: inline-block;
  background: #facc15;
  color: #422006;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  margin-bottom: 12px;
}
.exclusive-cta h3 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 1.6rem;
}
.exclusive-cta p {
  color: #e0ecff;
  max-width: 620px;
  margin: 0 auto 22px;
}
.exclusive-cta .btn {
  background: #fff;
  color: var(--brand-blue) !important;
}
.exclusive-cta .btn:hover { background: #f3f7ff; }

/* ----------------------- FAQ ----------------------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--heading-text);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbfc;
  user-select: none;
}
.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand-blue);
  font-weight: 400;
  transition: transform .2s;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a {
  padding: 6px 22px 22px;
  max-height: 1000px;
}

/* ----------------------- Footer ----------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 20px 24px;
  margin-top: 60px;
}
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: #c8d3de;
  font-size: .95rem;
}
.footer-col a:hover { color: #fff; }
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #3a4150;
  background: #2a2f3a;
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
}
.newsletter-form input::placeholder { color: #8a93a3; }
.newsletter-form button {
  background: var(--brand-blue);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.newsletter-form button:hover { background: var(--brand-blue-hover); }
.footer-bottom {
  max-width: 1140px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid #2a2f3a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .9rem;
  color: #8a93a3;
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  width: 34px; height: 34px;
  background: #2a2f3a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c8d3de;
  font-size: .95rem;
}
.social-icons a:hover { background: var(--brand-blue); color: #fff; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ----------------------- Article content ----------------------- */
.article {
  padding: 30px 0 20px;
}
.article h2 {
  border-bottom: 2px solid var(--soft-border);
  padding-bottom: .3em;
}
.article-intro {
  font-size: 1.08rem;
  color: var(--heading-text);
}

/* ----------------------- Verdict winner table ----------------------- */
.winner-table td:last-child {
  font-weight: 700;
  color: var(--brand-blue);
}

/* ----------------------- Page header (non-home) ----------------------- */
.page-header {
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
  padding: 50px 20px 20px;
  text-align: center;
}
.page-header h1 { margin-bottom: 8px; }
.page-header .subtitle {
  color: var(--body-text);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ----------------------- Contact form ----------------------- */
.contact-form {
  background: #fff;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 20px 0;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--heading-text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--soft-border);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 16px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* Misc */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* ----------------------- Media: images & video ----------------------- */
.content-image {
  margin: 28px 0;
  text-align: center;
}
.content-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--soft-border);
  background: #fff;
}
.content-image figcaption {
  margin-top: 10px;
  font-size: .9rem;
  color: var(--body-text);
  font-style: italic;
}
.content-image.no-shadow img { box-shadow: var(--shadow-sm); }
.content-image.framed img { padding: 6px; background: #fff; }

.image-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}
.image-grid-2 figure { margin: 0; }
.image-grid-2 img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--soft-border);
}
.image-grid-2 figcaption {
  font-size: .85rem;
  color: var(--body-text);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
@media (max-width: 640px) {
  .image-grid-2 { grid-template-columns: 1fr; }
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  text-align: center;
  font-size: .9rem;
  color: var(--body-text);
  margin-top: -14px;
  margin-bottom: 28px;
  font-style: italic;
}

.hero-image {
  margin: 24px auto 0;
  max-width: 760px;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
