/* PDFuna — ViviT design layer 2026-12-02. The same design system as
   ViviT School, applied as an additive layer over the Round 6 build:
   Miami Blue #00AEEF + Coral #FF806B + Warm Ivory #FFF8EF + dark navy,
   Fraunces headlines (self-hosted), aurora background, film grain,
   cursor glow, 3D card tilt, scroll reveals, gradient buttons, frosted
   nav. No tool code, no page text, and no honesty/safety copy is
   touched by this layer - it only re-skins. Remove this file's <link>
   and the pdfuna-vivit.js <script> from the pages and Round 6 is back
   exactly as it was. */

@font-face {font-family:"Fraunces";src:url("/assets/fonts/fraunces.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face {font-family:"Fraunces";src:url("/assets/fonts/fraunces-italic.woff2") format("woff2");font-weight:400 700;font-style:italic;font-display:swap}

/* ---------- Light palette (ViviT light) ---------- */
:root {
  --color-primary:#00AEEF; --color-secondary:#FF806B; --color-accent:#0072BC;
  --color-foreground:#0E2A47; --color-muted-foreground:#617891; --color-card:#FFFEFA;
  --color-ring:#00AEEF;
  --bg:#FFF8EF; --bg-2:#FFF1E0; --hero-wash:#FFF8EF; --stage:#F1E6CF;
  --surface:#FFFEFA; --surface-2:#FFF6E9;
  --ink:#0E2A47; --ink-soft:#3D5875; --ink-faint:#617891;
  --line:#D9C8A9; --line-soft:#EDDFC6;
  --brand:#00AEEF; --accent:#00AEEF; --accent-hover:#0090D8; --accent-text:#0072BC;
  --accent-soft:#E1F4FD; --accent-ink:#062A44;
  --cta:#0072BC; --cta-hover:#005E99; --cta-ink:#FFFFFF;
  --amber:#E8862E; --ring:rgba(0,174,239,.45);
  --good:#0E9F6E; --good-soft:#DDF5E9;
  --warn-soft:#FDEBD3; --drop-bg:#EFF9FE; --strip:#0E2A47;
  --tint-1:#E1F4FD; --tint-ink-1:#075E8F;
  --tint-2:#FFE9E4; --tint-ink-2:#B4442F;
  --tint-3:#DDF5E9; --tint-ink-3:#0B6B45;
  --tint-4:#E3F0FE; --tint-ink-4:#0E4E92;
  --tint-5:#DFF6F5; --tint-ink-5:#0B6B6B;
  --tint-6:#FDEBD3; --tint-ink-6:#8A5A00;
  --shadow:0 1px 2px rgba(14,42,71,.06);
  --shadow-float:0 12px 32px rgba(14,42,71,.13);
  --shadow-lg:0 18px 48px rgba(14,42,71,.16);
  --radius:18px; --radius-s:14px;
}

/* ---------- Dark palette (ViviT dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary:#00AEEF; --color-secondary:#FF806B; --color-accent:#7FD8FA;
    --color-foreground:#F2F7FC; --color-muted-foreground:#93A9BF; --color-card:#0D2B4C;
    --color-ring:#00AEEF;
    --bg:#081C30; --bg-2:#0A2438; --hero-wash:#081C30; --stage:#051626;
    --surface:#0D2B4C; --surface-2:#12365E;
    --ink:#F2F7FC; --ink-soft:#C7D6E4; --ink-faint:#93A9BF;
    --line:#1E4468; --line-soft:#14324F;
    --brand:#00AEEF; --accent:#00AEEF; --accent-hover:#33C1E8; --accent-text:#7FD8FA;
    --accent-soft:#0E3050; --accent-ink:#062A44;
    --cta:#00AEEF; --cta-hover:#33C1E8; --cta-ink:#062A44;
    --amber:#FFAB9C; --ring:rgba(0,174,239,.5);
    --good:#3ED598; --good-soft:#0E2E22;
    --red:#FFAB9C; --red-text:#FFB4AB;
    --warn-soft:#3A2C14; --drop-bg:#0E3050; --strip:#0D2B4C;
    --tint-1:#0E3050; --tint-ink-1:#7FD8FA;
    --tint-2:#40241E; --tint-ink-2:#FFAB9C;
    --tint-3:#0E2E22; --tint-ink-3:#7FE7BC;
    --tint-4:#12294D; --tint-ink-4:#A8C7FA;
    --tint-5:#0C2E33; --tint-ink-5:#8FE3E0;
    --tint-6:#33270F; --tint-ink-6:#FFD98A;
    --shadow:0 1px 2px rgba(0,0,0,.4); --shadow-float:0 10px 30px rgba(0,0,0,.5); --shadow-lg:0 16px 44px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --color-primary:#00AEEF; --color-secondary:#FF806B; --color-accent:#7FD8FA;
  --color-foreground:#F2F7FC; --color-muted-foreground:#93A9BF; --color-card:#0D2B4C;
  --color-ring:#00AEEF;
  --bg:#081C30; --bg-2:#0A2438; --hero-wash:#081C30; --stage:#051626;
  --surface:#0D2B4C; --surface-2:#12365E;
  --ink:#F2F7FC; --ink-soft:#C7D6E4; --ink-faint:#93A9BF;
  --line:#1E4468; --line-soft:#14324F;
  --brand:#00AEEF; --accent:#00AEEF; --accent-hover:#33C1E8; --accent-text:#7FD8FA;
  --accent-soft:#0E3050; --accent-ink:#062A44;
  --cta:#00AEEF; --cta-hover:#33C1E8; --cta-ink:#062A44;
  --amber:#FFAB9C; --ring:rgba(0,174,239,.5);
  --good:#3ED598; --good-soft:#0E2E22;
  --red:#FFAB9C; --red-text:#FFB4AB;
  --warn-soft:#3A2C14; --drop-bg:#0E3050; --strip:#0D2B4C;
  --tint-1:#0E3050; --tint-ink-1:#7FD8FA;
  --tint-2:#40241E; --tint-ink-2:#FFAB9C;
  --tint-3:#0E2E22; --tint-ink-3:#7FE7BC;
  --tint-4:#12294D; --tint-ink-4:#A8C7FA;
  --tint-5:#0C2E33; --tint-ink-5:#8FE3E0;
  --tint-6:#33270F; --tint-ink-6:#FFD98A;
  --shadow:0 1px 2px rgba(0,0,0,.4); --shadow-float:0 10px 30px rgba(0,0,0,.5); --shadow-lg:0 16px 44px rgba(0,0,0,.55);
}

/* ---------- Aurora background (same drift as ViviT) ---------- */
html {background:var(--bg)}
body {background:transparent}
body::before {content:"";position:fixed;inset:-14vh -12vw;z-index:-1;pointer-events:none;background:radial-gradient(560px 420px at 12% 6%,rgba(0,174,239,.13),transparent 70%),radial-gradient(620px 460px at 88% 88%,rgba(255,128,107,.10),transparent 70%)}
body::after {content:"";position:fixed;inset:-14vh -12vw;z-index:-1;pointer-events:none;background:radial-gradient(520px 400px at 85% 8%,rgba(255,128,107,.10),transparent 70%),radial-gradient(560px 420px at 6% 92%,rgba(0,174,239,.09),transparent 70%)}
@media (prefers-reduced-motion: no-preference) {
  body::before {animation:aurora-a 30s ease-in-out infinite alternate}
  body::after {animation:aurora-b 38s ease-in-out infinite alternate}
}
@keyframes aurora-a {from {transform:translate3d(-1.6%,-1%,0) scale(1)} to {transform:translate3d(1.8%,1.4%,0) scale(1.07)}}
@keyframes aurora-b {from {transform:translate3d(1.4%,1%,0) scale(1.05);opacity:.75} to {transform:translate3d(-1.6%,-1.2%,0) scale(1);opacity:1}}

/* ---------- Film grain + cursor glow + floating glyphs ---------- */
.grain-fx {position:fixed;inset:-60%;width:220%;height:220%;pointer-events:none;z-index:2000;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
@media (prefers-reduced-motion: no-preference) {
  .grain-fx {animation:grain-shift 8s steps(6) infinite}
}
@keyframes grain-shift {0% {transform:translate(0,0)} 20% {transform:translate(-2%,1%)} 40% {transform:translate(1%,-2%)} 60% {transform:translate(-1%,2%)} 80% {transform:translate(2%,-1%)} 100% {transform:translate(0,0)}}
.cursor-glow {position:fixed;left:0;top:0;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;pointer-events:none;z-index:-1;background:radial-gradient(circle,rgba(0,174,239,.08),rgba(255,128,107,.035) 45%,transparent 68%)}
.bg-fx {position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.bg-fx span {position:absolute;font-family:"Fraunces",Georgia,serif;color:var(--ink);line-height:1;opacity:.045}
@media (prefers-reduced-motion: no-preference) {
  .bg-fx span {animation:glyph-float 11s ease-in-out infinite alternate}
}
@keyframes glyph-float {from {transform:translateY(-8px) rotate(-3deg)} to {transform:translateY(10px) rotate(3deg)}}

/* ---------- Type: Fraunces headlines, ViviT hero scale ---------- */
h1, h2, .sec-title, .ws-title h1, .route-head h1 {font-family:"Fraunces",Georgia,"Times New Roman",serif;letter-spacing:-.015em}
.hero {padding-top:clamp(54px,9vh,102px)}
.hero h1 {font-size:clamp(46px,6.8vw,84px);line-height:1.02;letter-spacing:-.02em;font-weight:600}
.hero h1 .free {background:linear-gradient(92deg,#00AEEF 10%,#FF806B 90%);-webkit-background-clip:text;background-clip:text;color:transparent}
.pd-caret::after {content:"";display:inline-block;width:.55ch;height:.82em;margin-left:2px;vertical-align:-.08em;background:#00AEEF;animation:caret-blink 1s steps(1) infinite}
@keyframes caret-blink {50% {opacity:0}}
::selection {background:#00AEEF;color:#062A44}

/* ---------- Frosted nav with the gradient line ---------- */
.topnav {background-color:color-mix(in srgb,var(--bg) 84%,transparent);background-image:linear-gradient(90deg,#00AEEF,#FF806B,#33C1E8,#00AEEF);background-size:100% 3px;background-repeat:no-repeat;background-position:top left;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}

/* ---------- Gradient buttons ---------- */
.btn-primary, .btn-teal, .btn-download {background-image:linear-gradient(135deg,#00AEEF,#0090D8);background-color:#0090D8;color:#FFFFFF;border-color:transparent;box-shadow:0 8px 20px rgba(0,144,216,.26)}
.btn-primary:hover, .btn-teal:hover, .btn-download:hover {background-image:linear-gradient(135deg,#33C1E8,#0072BC);background-color:#0072BC;transform:translateY(-1px);box-shadow:0 12px 26px rgba(0,144,216,.32)}

/* ---------- Cards: ViviT radius, lift + 3D tilt ---------- */
.toolcard {border-radius:20px}
@media (prefers-reduced-motion: no-preference) and (hover:hover) {
  .toolcard:hover, .toolcard:focus-visible {
    transform:translateY(-5px) scale(1.012) perspective(720px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
    transition:transform .18s ease-out,box-shadow .18s ease-out,border-color .18s ease-out;
    box-shadow:var(--shadow-float);
    border-color:color-mix(in srgb,var(--brand) 45%,var(--line));
  }
}

/* ---------- Scroll reveals (JS adds .pd-reveal; no-JS keeps all visible) ---------- */
.pd-js .pd-reveal {opacity:0;transform:translateY(16px)}
.pd-js .pd-reveal.pd-from-left {transform:translateX(-22px)}
.pd-js .pd-reveal.pd-from-right {transform:translateX(22px)}
.pd-js .pd-reveal.in {opacity:1;transform:none;transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
@media (prefers-reduced-motion: reduce) {
  .pd-js .pd-reveal {opacity:1;transform:none}
}

/* ---------- Round 2: hero split, floating cards, clean lower page, mobile nav ---------- */

/* Hero: headline left, dropzone right, one screen, big (wide screens) */
@media (min-width: 1024px) {
  .wrap:has(> .hero) { max-width: 1280px; }
  .hero {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    column-gap: 52px;
    row-gap: 20px;
    grid-template-areas:
      "head drop"
      "sub drop"
      "pill drop"
      "trust search"
      "install install"
      "nl nl";
    align-items: start;
    text-align: left;
    min-height: calc(100svh - 57px);
    align-content: center;
    padding: 30px 0 44px;
  }
  .hero > h1 { grid-area: head; font-size: clamp(52px, 5vw, 82px); margin: 0; }
  .hero > .sub { grid-area: sub; margin: 0; max-width: 34em; }
  .hero-drop {
    grid-area: drop;
    height: 100%;
    min-height: 340px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .hero > div:has(> .local-pill) { grid-area: pill; }
  .hero .trust { grid-area: trust; justify-content: flex-start; margin: 0; }
  .hero .searchbox { grid-area: search; margin: 0; align-self: center; }
  .hero .install-row { grid-area: install; justify-self: center; margin-top: 10px; }
  .hero .nlbar { grid-area: nl; margin-top: 4px; }
}

/* Tool cards float gently; tilt and reveal compose on separate properties */
@media (prefers-reduced-motion: no-preference) {
  .toolcard { animation: pd-float 6.8s ease-in-out infinite alternate; }
  .toolcard:nth-child(3n+2) { animation-duration: 7.6s; animation-delay: -2.4s; }
  .toolcard:nth-child(3n) { animation-duration: 6.1s; animation-delay: -4.3s; }
  .toolcard:hover { animation-play-state: paused; }
}
@keyframes pd-float {
  from { translate: 0 -3px; }
  to { translate: 0 4px; }
}

/* Below the hero: less text, cleaner page (headings and honesty lines stay) */
#view-home .sec-sub,
#view-home .why-item p,
#view-home .step-item p { display: none; }

/* Search follows the theme in both modes */
.searchbox { background: var(--surface); border: 1px solid var(--line); }
.searchbox input { background: transparent; color: var(--ink); }
.searchbox input::placeholder { color: var(--ink-faint); }

/* Phone: logo left, actions all the way right */
@media (max-width: 900px) {
  .topnav-in { justify-content: space-between; }
  .nav-actions { margin-left: auto; }
  .nl-row { flex-wrap: wrap; }
  .nl-row input { flex: 1 1 220px; }
}

/* Round 2 fixes: center dropzone contents in the split hero; search pill shape */
@media (min-width: 1024px) {
  .hero-drop { align-items: center; }
  .hero-drop .dz-sub { max-width: 42em; }
}
.searchbox { border-radius: 999px; }

/* ---------- Round 3: bigger headline, split hero v2, showcased Why/Privacy ---------- */
.hero h1 { font-size: clamp(54px, 7.8vw, 104px); }
@media (min-width: 1024px) {
  .hero {
    grid-template-areas:
      "head drop"
      "sub drop"
      "search search"
      "install install";
    row-gap: 22px;
  }
  .hero > h1 { font-size: clamp(72px, 7.2vw, 118px); }
}
/* Bring back the substance lines on the sections that carry them */
#view-home .why-item p,
#projects-block .sec-sub,
#privacy-block .sec-sub,
section.block:has(.why-grid) .sec-sub { display: block; }
/* Why PDFuna + Private by design: centered, larger, professional */
section.block:has(.why-grid) .sec-title,
#privacy-block .sec-title {
  text-align: center;
  font-size: clamp(36px, 4.6vw, 52px);
}
section.block:has(.why-grid) .sec-sub,
#privacy-block .sec-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 16.5px;
  line-height: 1.65;
}
#privacy-block p { text-align: center; }
.why-grid { gap: 22px; margin-top: 26px; }
.why-item {
  text-align: center;
  padding: 30px 24px 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.why-item h3 { font-size: 20px; justify-content: center; }
.why-item h3 svg { color: var(--accent-text); }
.why-item p { font-size: 15px; line-height: 1.65; }

/* Search suggestions (spelling-tolerant) */
.pd-suggest {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.pd-suggest.show { display: flex; }
.pd-suggest .pd-sug-label { color: var(--ink-soft); font-size: 14px; font-weight: 600; margin-right: 2px; }
.pd-suggest button {
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent-text);
  cursor: pointer;
}
.pd-suggest button:hover { border-color: var(--accent); }
