/* Doxio — Paper & Ink Design System (Nunito + Monochrome Editorial) */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_extrabold.ttf") format("truetype");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #f5f4ef;
  --surface: #ffffff;
  --surface-alt: #eceae2;
  --ink: #111214;
  --ink-2: #3a3d42;
  --ink-3: #6c7077;
  --line: #dfddd3;
  --line-strong: #c9c6b9;
  --slab: #111214;
  --slab-ink: #f7f6f2;
  --slab-dim: #a8aaaf;
  --slab-line: #27292e;
  --accent-ok: #1b6e3c;
  --accent-ok-bg: #e5f3ea;
  --accent-warn: #8c3f19;
  --accent-warn-bg: #faece5;
  --shadow-card: 0 1px 2px rgba(17, 18, 20, 0.04), 0 14px 34px -18px rgba(17, 18, 20, 0.14);
  --shadow-phone: 0 30px 70px -24px rgba(17, 18, 20, 0.36), 0 4px 12px rgba(17, 18, 20, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --canvas: #0b0c0e;
  --surface: #141518;
  --surface-alt: #1d1f24;
  --ink: #f4f3ee;
  --ink-2: #c9cbd0;
  --ink-3: #8c9098;
  --line: #25272d;
  --line-strong: #34373f;
  --slab: #17181c;
  --slab-ink: #f4f3ee;
  --slab-dim: #9ea2aa;
  --slab-line: #2a2c33;
  --accent-ok: #5cd08a;
  --accent-ok-bg: rgba(92, 208, 138, 0.13);
  --accent-warn: #f09265;
  --accent-warn-bg: rgba(240, 146, 101, 0.14);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -20px rgba(0, 0, 0, 0.65);
  --shadow-phone: 0 32px 80px -20px rgba(0, 0, 0, 0.75);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--canvas);
  z-index: 100;
}
.skip:focus {
  left: 16px;
  top: 16px;
  border-radius: 8px;
}

.ico-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 780px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.pill-ctrl:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ok);
  box-shadow: 0 0 0 4px var(--accent-ok-bg);
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.7vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 30px;
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--canvas);
  box-shadow: 0 10px 24px -10px rgba(17, 18, 20, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.fact strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.fact span {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.4;
  display: block;
}

/* Hero Phone Stage */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.phone-showcase {
  position: relative;
  width: min(330px, 86vw);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  background: #111;
}

.phone-showcase img {
  width: 100%;
  height: auto;
}

.float-note {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  line-height: 1.35;
  max-width: 210px;
}

.float-note strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.float-note span {
  color: var(--ink-3);
}

.float-note-a {
  left: -26px;
  bottom: 84px;
}

.float-note-b {
  right: -18px;
  top: 72px;
}

/* Sections */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--line-strong);
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Editorial Story Block */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: start;
}

.story-side h2 {
  margin: 0 0 12px;
}

.story-meta {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.essay-prose p {
  margin: 0 0 18px;
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.essay-prose p:last-child {
  margin-bottom: 0;
}

.essay-prose strong {
  color: var(--ink);
  font-weight: 700;
}

/* Interactive App Tour */
.tour-shell {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.tour-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tour-tab {
  text-align: left;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.tour-tab:hover {
  border-color: var(--line-strong);
}

.tour-tab.is-active {
  background: var(--slab);
  color: var(--slab-ink);
  border-color: var(--slab);
}

.tour-tab-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 5px;
}

.tour-tab-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-3);
}

.tour-tab.is-active .tour-tab-tag {
  background: rgba(255, 255, 255, 0.14);
  color: var(--slab-ink);
}

.tour-tab-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.tour-tab.is-active .tour-tab-desc {
  color: var(--slab-dim);
}

.tour-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tour-frame {
  width: min(300px, 100%);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  background: #111;
}

.tour-frame img {
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.tour-caption {
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
  max-width: 34ch;
}

/* Interactive Labs (Compress + True Redaction) */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.lab-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.lab-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lab-card p.lab-copy {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.lab-demo {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.seg-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.seg-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn.is-active {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}

.compress-readout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.compress-side small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compress-side strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.compress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
}

.redact-paper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14.5px;
  line-height: 1.65;
}

.redact-line {
  margin: 6px 0;
}

.redact-mask {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 5px;
  background: #111214;
  color: #111214;
  user-select: text;
  transition: all 0.18s ease;
  cursor: help;
}

.redact-mask.mode-fake:hover,
.redact-mask.mode-fake.is-revealed {
  background: var(--accent-warn-bg);
  color: var(--accent-warn);
  outline: 1px dashed var(--accent-warn);
}

.redact-mask.mode-true {
  background: var(--ink);
  color: transparent;
  user-select: none;
  cursor: not-allowed;
}

.redact-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
}

.redact-status.is-warn {
  background: var(--accent-warn-bg);
  color: var(--accent-warn);
}

.redact-status.is-ok {
  background: var(--accent-ok-bg);
  color: var(--accent-ok);
}

/* Tool Drawer Grid */
.drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.drawer-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.drawer-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.drawer-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-2);
}

/* Lens Migration Callout */
.callout-ink {
  background: var(--slab);
  color: var(--slab-ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 28px;
  align-items: center;
}

.callout-ink h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
}

.callout-ink p {
  margin: 0;
  color: var(--slab-dim);
  font-size: 16px;
  line-height: 1.65;
}

.callout-steps {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--slab-line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.65;
}

.callout-steps div + div {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--slab-line);
}

/* Privacy Proof Grid */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.privacy-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.privacy-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
}

/* Drink-Tier Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.drink-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.drink-card.is-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-card);
}

.drink-name {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 4px;
}

.drink-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.drink-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}

.drink-note {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.free-box {
  margin-top: 22px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
}

.free-box strong {
  color: var(--ink);
}

/* Download Footer Band */
.download-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.platform-col {
  padding: 6px 4px;
}

.platform-col + .platform-col {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.platform-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.platform-pill.is-live {
  background: var(--accent-ok-bg);
  color: var(--accent-ok);
}

.platform-pill.is-soon {
  background: var(--surface-alt);
  color: var(--ink-3);
}

.platform-col h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.platform-col p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Legal & Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  font-size: 14px;
  color: var(--ink-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--ink);
}

.legal-doc {
  padding: 48px 0 72px;
}

.legal-doc h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.legal-updated {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0 0 28px;
}

.legal-doc h2 {
  margin: 30px 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.legal-doc p, .legal-doc li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.legal-doc ul {
  padding-left: 20px;
}

@media (max-width: 920px) {
  .hero-grid,
  .story-grid,
  .tour-shell,
  .labs-grid,
  .callout-ink,
  .download-band {
    grid-template-columns: 1fr;
  }

  .drawer-grid,
  .pricing-grid,
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-col + .platform-col {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 4px;
    padding-top: 24px;
  }

  .float-note {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .section {
    padding: 52px 0;
  }

  .hero-facts,
  .drawer-grid,
  .pricing-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .tour-shell,
  .lab-card,
  .callout-ink,
  .download-band {
    padding: 22px;
  }
}

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