/* ═══════════════════════════════════════
   1Cryptor vs Cryptomator — Page Styles
   ═══════════════════════════════════════ */

/* ── VS Hero ── */
.vs-hero {
  background: var(--green);
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vs-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.vs-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 1.2px;
  padding: 0.55rem 1.2rem; border-radius: 100px;
  margin-bottom: 2rem;
}
.vs-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.05;
  color: #fff; margin-bottom: 1.8rem;
  position: relative; z-index: 1;
}
.vs-word {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 0 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.55em;
  vertical-align: middle;
  letter-spacing: 0.1em;
  transform: translateY(-0.1em);
}
.vs-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 660px; margin: 0 auto 3rem;
  line-height: 1.7; position: relative; z-index: 1;
}

/* Verdict scores */
.vs-verdict {
  display: inline-flex; align-items: center; gap: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 1.5rem 2.5rem;
  position: relative; z-index: 1;
}
.verdict-item { text-align: center; }
.verdict-label {
  display: block; font-size: 0.78rem; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 0.4rem;
}
.verdict-item.win .verdict-label { color: #86efac; }
.verdict-item.lose .verdict-label { color: rgba(255,255,255,0.5); }
.verdict-score {
  font-family: var(--mono); font-size: 2.8rem; font-weight: 700; line-height: 1;
}
.verdict-score span { font-size: 1.1rem; opacity: 0.6; }
.verdict-item.win .verdict-score { color: #4ade80; }
.verdict-item.lose .verdict-score { color: rgba(255,255,255,0.4); }
.verdict-divider {
  width: 1px; height: 60px;
  background: rgba(255,255,255,0.2);
}

/* ── Quick Wins ── */
.quick-wins {
  background: var(--bg);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.qw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .qw-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .qw-grid { grid-template-columns: 1fr; } }

.qw-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.qw-ico {
  width: 40px; height: 40px;
  background: var(--green-xlt);
  border: 1.5px solid rgba(0,98,46,0.15);
  border-radius: 10px; display: grid; place-items: center;
  color: var(--green);
}
.qw-ico svg { width: 18px; height: 18px; }
.qw-title { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.qw-sub   { font-size: 0.8rem; color: var(--text2); margin-top: 0.15rem; }
.qw-badge {
  align-self: flex-start;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem 0.7rem; border-radius: 6px;
  letter-spacing: 0.5px;
}
.qw-badge.win {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(0,98,46,0.2);
}

/* ── Comparison Table ── */
.table-section { padding: 6rem 0; background: var(--bg); }

.cmp-table {
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.cmp-thead {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.1fr;
  background: var(--green);
  padding: 1rem 1.4rem;
  gap: 0;
}
.cmp-th {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
  display: flex; align-items: center; gap: 0.5rem;
}
.cmp-th.one { color: #86efac; }
.cmp-th.feature-col { color: rgba(255,255,255,0.5); }

.cmp-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.1fr;
  border-bottom: 1px solid var(--border2);
  transition: background 0.2s;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row:hover { background: var(--bg); }

.cmp-feature, .cmp-one, .cmp-two {
  padding: 1.3rem 1.4rem;
  border-right: 1px solid var(--border2);
}
.cmp-two { border-right: none; }

.cmp-feature { background: var(--surface2); }
.cf-name { font-weight: 700; font-size: 0.92rem; color: var(--text); margin-bottom: 0.2rem; }
.cf-note { font-size: 0.78rem; color: var(--text3); }

.cmp-one.winner { background: #f4fcf7; }
.cell-note { font-size: 0.78rem; color: var(--text2); margin-top: 0.4rem; line-height: 1.4; }

.tag {
  display: inline-block;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 6px;
  letter-spacing: 0.3px;
}
.tag.green {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(0,98,46,0.2);
}
.tag.gray {
  background: #f0f0f0;
  color: #666;
  border: 1px solid #ddd;
}

@media (max-width: 700px) {
  .cmp-thead, .cmp-row { grid-template-columns: 1fr; }
  .cmp-feature { border-right: none; border-bottom: 1px solid var(--border2); }
  .cmp-one { border-right: none; border-bottom: 1px solid var(--border2); }
  .cmp-th.feature-col { display: none; }
}

/* ── Why It Matters ── */
.why-matters {
  padding: 6rem 0;
  background: var(--bg2);
}
.matters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 3rem;
}
@media (max-width: 800px) { .matters-grid { grid-template-columns: 1fr; } }

.matter-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  position: relative; overflow: hidden;
}
.matter-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-mid));
}
.mc-num {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  color: var(--green); letter-spacing: 2px;
  margin-bottom: 0.8rem;
  background: var(--green-xlt);
  border: 1px solid rgba(0,98,46,0.15);
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 6px;
}
.matter-card h3 {
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  line-height: 1.3; margin-bottom: 1rem;
}
.matter-card p {
  font-size: 0.9rem; color: var(--text2); line-height: 1.75;
  margin-bottom: 0.9rem;
}
.matter-card p:last-of-type { margin-bottom: 1.2rem; }
.matter-card code {
  font-family: var(--mono); font-size: 0.82em;
  background: var(--green-xlt); color: var(--green);
  padding: 0.1em 0.4em; border-radius: 4px;
  border: 1px solid rgba(0,98,46,0.15);
}
.mc-verdict {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.8rem;
}

/* ── Fair Credit ── */
.fair-credit {
  padding: 4rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fc-inner {
  display: flex; gap: 1.8rem; align-items: flex-start;
  max-width: 780px; margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 2.2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.fc-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--green-xlt);
  border: 1.5px solid rgba(0,98,46,0.18);
  border-radius: 12px; display: grid; place-items: center;
  color: var(--green);
}
.fc-icon svg { width: 22px; height: 22px; }
.fc-inner h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.fc-inner p  { font-size: 0.9rem; color: var(--text2); line-height: 1.7; }

/* ── CTA back link ── */
.cta-back {
  display: block; margin-top: 1.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color 0.2s;
  text-decoration: none;
}
.cta-back:hover { color: #fff; }

/* ── Index page teaser ── */
.vs-teaser {
  padding: 5rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.vs-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.8rem 3rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  position: relative; overflow: hidden;
}
.vs-teaser-inner::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-mid));
}
.vt-left { flex: 1; min-width: 0; }
.vt-eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  color: var(--green); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 0.7rem; display: block;
}
.vt-left h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.2;
  color: var(--text); margin-bottom: 0.8rem;
}
.vt-left h2 em { font-style: normal; color: var(--green); }
.vt-left p { font-size: 0.95rem; color: var(--text2); line-height: 1.65; max-width: 500px; }
.vt-right { flex-shrink: 0; }
.btn-vs {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--green);
  color: #fff;
  font-weight: 700; font-size: 0.95rem;
  padding: 1rem 2rem; border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,98,46,0.3);
}
.btn-vs:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,98,46,0.35);
}
.btn-vs svg { width: 18px; height: 18px; }

@media (max-width: 700px) {
  .vs-teaser-inner { flex-direction: column; padding: 2rem; }
  .vt-right { width: 100%; }
  .btn-vs { width: 100%; justify-content: center; }
}
