/* RawProof — Main Stylesheet (Mobile Optimized & Responsive) */
:root {
  --bg: #0a0e14;
  --bg-card: #121820;
  --bg-card-hover: #18202c;
  --border: #1f2937;
  --border-glow: rgba(52, 211, 153, 0.2);
  --txt: #f3f4f6;
  --txt-muted: #9ca3af;
  --txt-dim: #6b7280;
  --accent: #34d399;
  --accent-hover: #10b981;
  --accent-bg: rgba(52, 211, 153, 0.1);
  --accent-border: rgba(52, 211, 153, 0.3);
  --red-bg: rgba(248, 113, 113, 0.1);
  --red-border: rgba(248, 113, 113, 0.3);
  --red-txt: #f87171;
  --radius: 12px;
  --radius-lg: 18px;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 10px 30px -10px rgba(52, 211, 153, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--txt);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Accessibility Skip Link */
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #062018;
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 6px;
  z-index: 1000;
  transition: top 0.2s;
}
.skip:focus {
  top: 1rem;
}

/* Layout Wrappers */
.wrap {
  width: 92%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 0;
}
.wrap-narrow {
  width: 92%;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* Navigation - Mobile First */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 92%;
  max-width: 1120px;
  height: 65px;
  margin: 0 auto;
  gap: 0.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--txt);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #062018;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1rem;
}
.nav-sp {
  flex: 1;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--txt-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--txt);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.lang {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.lang button {
  background: none;
  border: none;
  color: var(--txt-muted);
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang button.on {
  background: var(--accent);
  color: #062018;
}

/* Typography & Section Titles */
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
h1 {
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
h1 .fade {
  color: var(--txt-muted);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.5rem, 3.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.lead {
  font-size: 1.05rem;
  color: var(--txt-muted);
  max-width: 720px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}
.btn-p {
  background: var(--accent);
  color: #062018;
  box-shadow: var(--shadow-accent);
}
.btn-p:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn-s {
  background: var(--bg-card);
  color: var(--txt);
  border: 1px solid var(--border);
}
.btn-s:hover {
  background: var(--bg-card-hover);
  border-color: var(--txt-muted);
  transform: translateY(-2px);
}
.mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--txt);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.mini:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}
.mini.acc {
  background: var(--accent);
  color: #062018;
  border: none;
}
.mini.acc:hover {
  background: var(--accent-hover);
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 3rem 0;
  text-align: left;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero .sub {
  font-size: 1.1rem;
  color: var(--txt-muted);
  max-width: 780px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.cta {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.hero-note {
  font-size: 0.82rem;
  color: var(--txt-dim);
}

/* Honesty Split Section */
#honesty {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(18, 24, 32, 0.4) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.panel.yes {
  border-color: var(--accent-border);
}
.panel.no {
  border-color: var(--red-border);
}
.panel h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.panel.yes h3 { color: var(--accent); }
.panel.no h3 { color: var(--red-txt); }
.panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.panel li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--txt-muted);
  line-height: 1.5;
}
.panel li b {
  color: var(--txt);
}
.panel .ic {
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.panel.yes .ic { color: var(--accent); }
.panel.no .ic { color: var(--red-txt); }
.why {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--txt-muted);
  line-height: 1.6;
}
.why b { color: var(--txt); }

/* How Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
}
.step .n {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.step p {
  font-size: 0.88rem;
  color: var(--txt-muted);
  flex: 1;
  margin-bottom: 0.85rem;
}
.step .t {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  color: var(--accent);
  word-break: break-all;
}

/* Demo Block */
.demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.demo-hd {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--txt-muted);
}
.demo-body {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.drop:hover, .drop.hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.drop .big {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}
.drop p {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.drop small {
  color: var(--txt-dim);
  font-size: 0.78rem;
}
.drop video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 2;
}
.row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.out {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-y: auto;
  max-height: 320px;
}
.out .empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-dim);
  text-align: center;
  font-family: var(--font-sans);
  padding: 2rem 0;
}
.seal-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.seal-card .badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.seal-card .hash-val {
  background: #000;
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 6px;
  word-break: break-all;
  color: var(--accent);
  font-size: 0.78rem;
}
.seal-card .row-info {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
  color: var(--txt-muted);
  font-size: 0.78rem;
}

/* Use Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.case .e {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}
.case h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.case p {
  font-size: 0.88rem;
  color: var(--txt-muted);
  flex: 1;
  margin-bottom: 1rem;
}
.case .q {
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--accent);
  padding: 0.50rem 0.75rem;
  font-size: 0.8rem;
  color: var(--txt);
  border-radius: 0 6px 6px 0;
}

/* Pricing Section */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 1.25rem 0;
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.hot {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(52, 211, 153, 0.05) 100%);
}
.plan .nm {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.plan .pr {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}
.plan .pr small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--txt-muted);
}
.plan .pd {
  font-size: 0.85rem;
  color: var(--txt-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex: 1;
}
.plan li {
  font-size: 0.88rem;
  color: var(--txt-muted);
}
.plan li b { color: var(--txt); }
.plan .fine {
  text-align: center;
  font-size: 0.75rem;
  color: var(--txt-dim);
  margin-top: 0.6rem;
}
.taxnote {
  font-size: 0.8rem;
  color: var(--txt-dim);
  line-height: 1.5;
  margin-top: 1.25rem;
}
.taxnote a {
  color: var(--txt-muted);
  text-decoration: underline;
}

/* FAQ Accordion */
#faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
#faq details[open] {
  border-color: var(--accent-border);
}
#faq summary {
  padding: 1rem 1.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}
#faq details[open] summary::after {
  content: "−";
}
#faq p {
  padding: 0 1.25rem 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--txt-muted);
  line-height: 1.6;
}

/* Modal Overlay & Dual Login Tabs (Magic Link & ID/Password) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-card {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--txt-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover {
  color: var(--txt);
}
.login-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 1.5rem;
  gap: 3px;
}
.login-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--txt-muted);
  padding: 0.5rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}
.login-tab.active {
  background: var(--bg-card);
  color: var(--txt);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.login-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  color: var(--txt);
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.login-input:focus {
  border-color: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: #070a0e;
  padding: 3.5rem 0 2rem 0;
  margin-top: 3.5rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.foot-brand p {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--txt-muted);
  max-width: 280px;
}
.foot-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  color: var(--txt);
}
.foot-col a {
  display: block;
  color: var(--txt-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--accent);
}
.disc {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.8rem;
  color: var(--txt-dim);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}
.disc .hl {
  color: var(--txt-muted);
  font-weight: 700;
}
.copy {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--txt-dim);
}

/* Cookie Consent */
#cookie {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(18, 24, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  z-index: 999;
  display: none;
}
#cookie.show {
  display: block;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
#cookie p {
  font-size: 0.82rem;
  color: var(--txt-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
#cookie p a {
  color: var(--accent);
}

/* Mobile Responsiveness Overrides (Screen <= 868px) */
@media (max-width: 868px) {
  .nav-links {
    display: none; /* Hide secondary desktop menu links on narrow mobile screens */
  }
  .nav-in {
    padding: 0 0.5rem;
  }
  .split, .demo-body, .foot-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 2.5rem 0 2rem 0;
  }
  .cta {
    flex-direction: column;
    align-items: stretch;
  }
  .cta .btn {
    width: 100%;
  }
  .drop {
    padding: 1.5rem 1rem;
    min-height: 160px;
  }
  .modal-card {
    padding: 1.5rem 1.25rem;
  }
}

/* Mobile Touch & Button Optimizations */
@media (max-width: 600px) {
  .row button, .row a.btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
  }
  .seal-card {
    padding: 1rem 0.85rem !important;
  }
  .hash-val {
    font-size: 0.75rem !important;
  }
}

/* Certificate & Interactive Modal Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.modal-backdrop.active {
  display: flex !important;
}
