/* ── Deep Read Landing ─────────────────────────────── */

/* ── Fonts (match homepage) ── */

@font-face {
  font-family: 'Graphik';
  src: url('../fonts/graphik/Graphik-Light.woff2') format('woff2'),
       url('../fonts/graphik/Graphik-Light.woff') format('woff'),
       url('../fonts/graphik/Graphik-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik';
  src: url('../fonts/graphik/Graphik-Regular.woff2') format('woff2'),
       url('../fonts/graphik/Graphik-Regular.woff') format('woff'),
       url('../fonts/graphik/Graphik-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik';
  src: url('../fonts/graphik/Graphik-Medium.woff2') format('woff2'),
       url('../fonts/graphik/Graphik-Medium.woff') format('woff'),
       url('../fonts/graphik/Graphik-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik';
  src: url('../fonts/graphik/Graphik-Semibold.woff2') format('woff2'),
       url('../fonts/graphik/Graphik-Semibold.woff') format('woff'),
       url('../fonts/graphik/Graphik-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('../fonts/tiempos/TiemposText-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('../fonts/tiempos/TiemposText-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('../fonts/tiempos/TiemposText-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('../fonts/tiempos/TiemposText-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('../fonts/tiempos/TiemposText-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F5F0E8;
  --cream-dark: #EDE7DA;
  --cream-deep: #E4DDD0;
  --green-deep: #1B3200;
  --green-mid: #2D4A12;
  --ink: #101820;
  --ink-light: #2c2c2c;
  --ink-soft: #4A4A42;
  --ink-muted: #8A8A7A;
  --white: #FEFCF7;
  --border: rgba(43, 58, 26, 0.1);
  --border-strong: rgba(43, 58, 26, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Graphik', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Tiempos Text', Georgia, serif;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--green-deep); color: var(--cream); }

/* ── Page container (matches homepage) ── */

.dr-page-container {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
}

/* ── Header (dark green bar, matches quiz.php) ── */

.dr-header {
  background: #183702;
  padding: 16px 0;
  position: relative;
  z-index: 10;
}

.dr-header-inner {
  display: flex;
  align-items: center;
}

.dr-logo {
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #99df6a;
  letter-spacing: -1px;
  font-style: italic;
  text-decoration: none;
}

.dr-logo-group {
  display: flex;
  align-items: center;
}

.dr-logo-sub {
  margin-left: 20px;
  padding-top: 2px;
  text-transform: uppercase;
  font-size: 12px;
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.dr-header-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.dr-nav-link {
  color: #99df6a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.dr-nav-link:hover { color: #b8e6a0; }

/* ── Hero ── */

.dr-hero {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 30%, #bce1ff 70%, #c9f9c6 100%);
  padding: 80px 0 100px;
}

.dr-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.dr-hero-left {
  flex: 1 1 360px;
  max-width: 640px;
}

.dr-hero-right {
  flex: 0 0 400px;
  padding-top: 1rem;
}

/* ── Preview card ── */

.dr-preview-wrap {
  position: relative;
}

.dr-preview-doc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 24px rgba(43, 58, 26, 0.04);
  overflow: hidden;
  position: relative;
}

.dr-preview-doc-label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.dr-preview-doc-body {
  filter: blur(4px);
  -webkit-filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.dr-preview-doc-name {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.dr-preview-doc-text {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.dr-preview-doc-text p + p { margin-top: 0.6rem; }

/* Highlight strips */
.dr-preview-hl {
  position: absolute;
  background: rgba(212, 180, 98, 0.15);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.dr-preview-hl.is-active { opacity: 1; }
.dr-preview-hl-0 { top: 90px; left: 24px; right: 60px; height: 14px; }
.dr-preview-hl-1 { top: 195px; left: 24px; right: 40px; height: 14px; }
.dr-preview-hl-2 { top: 290px; left: 24px; right: 80px; height: 14px; }

/* Callouts */
.dr-callout {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 3px 16px rgba(43, 58, 26, 0.09);
  max-width: 230px;
  z-index: 3;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.dr-callout.is-active {
  opacity: 1;
  transform: translateY(0);
}

.dr-callout-text {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

.dr-callout-line {
  position: absolute;
  background: var(--border-strong);
  width: 1px;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.dr-callout-line.is-active { opacity: 1; }

/* Callout positions */
.dr-callout-0 { top: 58px; left: -24px; }
.dr-callout-line-0 { height: 16px; top: 106px; left: 50px; }
.dr-callout-1 { top: 160px; right: -18px; }
.dr-callout-line-1 { height: 16px; top: 210px; right: 60px; }
.dr-callout-2 { top: 255px; left: -16px; }
.dr-callout-line-2 { height: 16px; top: 305px; left: 60px; }

.dr-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
  opacity: 0.8;
}

.dr-hero-title {
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.5px;
  max-width: 640px;
}

.dr-hero-desc {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 2.25rem;
}

/* ── Form ── */

.dr-input-block {
  max-width: 540px;
}

.dr-input-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.dr-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.dr-input-field {
  flex: 1;
  border: 2px solid var(--green-deep);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-family: 'Graphik', 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.dr-input-field::placeholder { color: var(--ink-muted); }
.dr-input-field:focus { box-shadow: 0 0 0 3px rgba(43, 58, 26, 0.08); }

.dr-input-btn {
  font-family: 'Graphik', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0 2rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16,24,32,0.15);
}

.dr-input-btn:hover {
  box-shadow: 0 6px 16px rgba(16,24,32,0.2);
  transform: translateY(-1px);
}
.dr-input-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

.dr-input-meta {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  gap: 1.25rem;
}

.dr-input-meta > span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dr-input-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* ── "Public profiles only" tooltip ── */

.dr-meta-tip {
  position: relative;
}

.dr-meta-tip-trigger {
  border-bottom: 1px dotted var(--ink-muted);
  cursor: help;
}

.dr-meta-tip-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, calc(100vw - 48px));
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, visibility 150ms ease;
  z-index: 10;
}

.dr-meta-tip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.dr-meta-tip:hover .dr-meta-tip-bubble,
.dr-meta-tip:focus-within .dr-meta-tip-bubble {
  opacity: 1;
  visibility: visible;
}

/* ── Form error/preflight (reuses linkedin-read.js IDs) ── */

#linkedin-read-error {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #991b1b;
  display: none;
}

.dr-preflight-panel {
  display: none;
  margin-top: 1rem;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dr-preflight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.dr-preflight-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.dr-preflight-actions a:hover { background: var(--cream); }

/* ── Reactions ── */

.dr-reactions {
  padding: 2.5rem 0 3.5rem;
  background: #fff2dc;
  /* background: var(--cream); */
}

.dr-reactions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dr-reaction {
  padding-left: 1rem;
  border-left: 1.5px solid var(--cream-deep);
}

.dr-reaction p {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
}

.dr-reaction .dr-reaction-attr {
  font-family: 'Graphik', 'Inter', sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--ink-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* ── Section grid (label + content) ── */

.dr-section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.dr-section-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  padding-top: 0.25rem;
}

/* ── About ── */

.dr-about {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 0;
}

.dr-about-heading {
font-family: 'Tiempos Text', Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 1.2rem);
  line-height: 1.25;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.dr-about-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.dr-about-text + .dr-about-text { margin-top: 1rem; }

.dr-about-italic {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  margin: 1.25rem 0;
}

/* ── Method ── */

.dr-method {
  padding: 4.5rem 0;
  background: var(--cream);
}

.dr-method-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.dr-method-step {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}

.dr-method-numeral {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 1.5rem;
}

.dr-method-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ── Lab (dark green) ── */

.dr-lab {
  background: var(--green-deep);
  padding: 5rem 0;
  text-align: center;
}

.dr-lab-icons {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.dr-lab-icons svg {
  color: var(--cream);
  opacity: 0.6;
  transform: scale(1.4);
}

.dr-lab-icons .dr-float-1 { animation: drLabFloat1 3.5s ease-in-out infinite; }
.dr-lab-icons .dr-float-2 { animation: drLabFloat2 4.5s ease-in-out infinite; }
.dr-lab-icons .dr-float-3 { animation: drLabFloat3 4s ease-in-out infinite; }
.dr-lab-icons .dr-float-4 { animation: drLabFloat4 5s ease-in-out infinite; }

@keyframes drLabFloat1 {
  0%, 100% { transform: scale(1.4) translateY(0px) rotate(-4deg); }
  50% { transform: scale(1.4) translateY(-12px) rotate(4deg); }
}
@keyframes drLabFloat2 {
  0%, 100% { transform: scale(1.4) translateY(-5px) rotate(2deg); }
  50% { transform: scale(1.4) translateY(8px) rotate(-3deg); }
}
@keyframes drLabFloat3 {
  0%, 100% { transform: scale(1.4) translateY(4px) rotate(3deg); }
  50% { transform: scale(1.4) translateY(-10px) rotate(-4deg); }
}
@keyframes drLabFloat4 {
  0%, 100% { transform: scale(1.4) translateY(-4px) rotate(-2deg); }
  50% { transform: scale(1.4) translateY(10px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dr-lab-icons .dr-float-1,
  .dr-lab-icons .dr-float-2,
  .dr-lab-icons .dr-float-3,
  .dr-lab-icons .dr-float-4 { animation: none; }
}

.dr-lab-text {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.68);
  max-width: 560px;
  margin: 0 auto;
}

.dr-lab-text + .dr-lab-text { margin-top: 1.5rem; }

/* ── Footer ── */

.dr-footer {
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.dr-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.dr-footer a:hover { color: var(--ink-soft); }

/* ── Mobile ── */

@media (max-width: 900px) {
  .dr-hero-inner { flex-wrap: wrap; }
  .dr-hero-right { flex: 1 1 100%; max-width: 420px; }
  .dr-callout-0 { left: 0; }
  .dr-callout-1 { right: 0; }
  .dr-callout-2 { left: 0; }
}

@media (max-width: 768px) {
  .dr-page-container { width: calc(100% - 40px); }
  .dr-hero { padding: 48px 0 48px; }
  .dr-hero-inner { gap: 2.5rem; }
  .dr-hero-right { display: none; }
  .dr-header { padding: 10px 0; }
  .dr-logo { font-size: 1.1rem; }
  .dr-logo-sub { font-size: 9px; letter-spacing: 1px; margin-left: 12px; }
  .dr-nav-link { font-size: 0.8rem; }
  .dr-reactions-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .dr-reactions { padding: 1.5rem 0 3rem; }
  .dr-section-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .dr-input-row { flex-direction: column; }
  .dr-input-btn { padding: 0.85rem 2rem; }
  .dr-lab-icons { gap: 20px; margin-bottom: 28px; }
  .dr-lab-icons svg { transform: scale(0.85); }
  .dr-lab-text { font-size: 1rem; }
  .dr-about { padding: 3rem 0; }
  .dr-method { padding: 3rem 0; }
  .dr-lab { padding: 3.5rem 0; }
}

@media (max-width: 640px) {
  .dr-page-container { width: calc(100% - 40px); }
}
