﻿/* FILEPORT / Divi Pixel inspired kit.
   Shared tokens are deliberately separate from tool-specific layouts. */
@font-face {
  font-family: Poppins;
  src: url('../fonts/Poppins-300.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('../fonts/Poppins-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('../fonts/Poppins-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* These six are the only tokens from this kit the shared header/footer
   (site-wide, not just the homepage) actually reads — see .site-header /
   .convert-dropdown / .footer-service-links below. Everything else this
   block used to redefine (--radius, --paper, --surface, --ink, --green-accent,
   every --doc/--sheet/--pdf/... tool-color token, etc.) had ZERO users in
   this file and existed only to collide with the same-named tokens style.css
   defines for every other page — e.g. --radius: 100px here silently turned
   every .workcard on every tool page into a 100px-cornered pill. The
   homepage itself never used those generic names either; it already has its
   own --fp-* tokens below specifically to avoid this collision. */
:root {
  --body: Poppins, sans-serif;
  --line: #ece9ef;
  --accent: #ff4200;
  --accent-action: #c93400;
  --accent-soft: #fff1ec;
  --shadow: 0 12px 18px -6px rgba(68, 0, 153, .07);
}
body { font-family: var(--body); font-weight: 300; font-size: 16px; }
h1, h2, h3, h4, h5, h6 { font-family: Poppins, sans-serif; font-weight: 600; }
button, input, textarea, select { font-family: Poppins, sans-serif; }
button, .btn, .btn-primary, .btn-secondary { text-transform: none; letter-spacing: 0; }
.site-header { padding-block: 20px; background: #fff; border-color: var(--line); }
.site-header::before { background: var(--accent); }
.brand-name { font-family: Poppins, sans-serif; font-weight: 700; letter-spacing: -.055em; }
.brand-mark-flip { animation: none; }
.header-nav, .convert-trigger { font-family: Poppins, sans-serif; }
.convert-trigger { font-weight: 600; }
.convert-dropdown { border-radius: 10px; box-shadow: var(--shadow); }
.convert-routes a:hover { background: var(--accent-soft); }
.convert-routes .filetype-icon { color: var(--accent-action); background: var(--accent-soft); }
.nav-toggle { border-radius: 50px; }
.footer-simple.site-footer { background: #2c3d49; }
.footer-simple-intro h2 { font-family: Poppins, sans-serif; font-weight: 600; font-size: clamp(30px, 3.2vw, 45px); line-height: 1.25; letter-spacing: -.04em; }
.footer-simple-intro p { font-size: 14px; line-height: 1.8; color: #d3cdda; }
.footer-simple-label, .footer-service-links a, .footer-signature, .footer-simple-meta { font-family: Poppins, sans-serif; }
.footer-service-links a { font-size: 14px; min-height: 48px; color: #eeeaf1; }
.footer-simple-meta, .footer-simple-meta a, .footer-signature, .footer-signature small { color: #d3cdda; }
.footer-service-links a:hover { border-color: var(--accent); }
.footer-simple-visitors .visit-count { color: #fff; }
/* The homepage uses the same tokens in both explicit and system themes. */
html .home-page,
html[data-fp-theme] .home-page {
  --display: Poppins, sans-serif;
  --body: Poppins, sans-serif;
  --mono: Poppins, sans-serif;
  --fp-bg: #ffffff;
  --fp-surface: #ffffff;
  --fp-soft: #f8f6f9;
  --fp-text: #2c3d49;
  --fp-secondary: #73677f;
  --fp-border: #ece9ef;
  --green-accent: #ff4200;
  --service-color: #c93400;
  background: var(--fp-bg);
  color: var(--fp-text);
  font-family: Poppins, sans-serif;
  font-weight: 300;
}
.home-workspace-bar { padding-top: 25px; font-size: 12px; }
.workspace-dot { background: var(--accent); }
.theme-control { font-family: Poppins, sans-serif; border-radius: 100px; background: var(--fp-soft); }
.home-hero { padding-block: clamp(36px, 5vw, 72px); grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); }
.home-kicker { font-family: Poppins, sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .01em; }
.home-hero h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.19; font-weight: 600; letter-spacing: -.045em; }
html[data-fp-theme] .home-hero h1 span { color: var(--accent-action); }
.home-hero-lede { font-size: 16px; font-weight: 300; line-height: 1.85; max-width: 46ch; }
.home-search { border-radius: 100px; padding: 8px 8px 8px 22px; box-shadow: var(--shadow); border: 1px solid var(--fp-border); }
.home-search input { font-family: Poppins, sans-serif; font-size: 16px; font-weight: 300; }
.home-search input::placeholder { color: var(--fp-secondary); }
.home-search button { border-radius: 100px; background: var(--accent-action); color: #fff; font-size: 13px; font-weight: 600; padding-inline: 22px; }
.home-search button:hover { background: #a82b00; }
.home-search:focus-within { border-color: var(--accent-action); box-shadow: var(--shadow); }
.home-hero-meta { font-size: 11px; line-height: 1.8; }
.home-hero-meta i { background: var(--accent); }
.home-page a:focus-visible, .home-page button:focus-visible { outline-color: var(--accent-action); }
.route-studio { padding: 32px; border: 6px solid var(--fp-surface); border-radius: 100px; background: var(--fp-soft); box-shadow: var(--shadow); }
.studio-topline { font-size: 10px; font-weight: 600; letter-spacing: .01em; }
.studio-status { font-family: Poppins, sans-serif; font-weight: 300; }
.studio-stage { min-height: 220px; }
.studio-file { border-radius: 10px; background: var(--fp-surface); border-color: var(--fp-border); box-shadow: 5px 6px 0 var(--fp-soft), 6px 7px 0 var(--fp-border); }
.studio-file--output { background: var(--accent-action); color: #fff; border-color: var(--accent-action); }
.studio-file>span { font-weight: 700; }.studio-file small { font-size: 8px; letter-spacing: .01em; }
.studio-caption h2 { font-size: 20px; font-weight: 600; line-height: 1.5; letter-spacing: -.03em; }
.studio-caption p { font-size: 13px; line-height: 1.8; }
.studio-options { border-radius: 100px; background: var(--fp-surface); border: 1px solid var(--fp-border); }
.studio-options button { font-family: Poppins, sans-serif; border-radius: 100px; font-size: 11px; font-weight: 600; }
.studio-options button[aria-pressed=true] { background: var(--accent-action); color: #fff; border-color: transparent; box-shadow: none; }
#studio-launch { color: var(--accent-action); font-size: 13px; padding-inline: 6px; font-weight: 600; }
.home-category-nav { padding-block: 18px; border-color: var(--fp-border); gap: 10px; }
.home-category-nav>span { font-size: 10px; font-weight: 600; letter-spacing: .03em; }
.home-category-nav a { font-size: 12px; font-weight: 600; border-radius: 100px; padding: 11px 17px; }
.home-category-nav a:hover { background: var(--accent-soft); color: var(--accent-action); border-color: #f3c7b9; }
.home-catalog-section { padding-block: clamp(38px, 5vw, 72px); }
.home-section-head { margin-bottom: 30px; }
.home-section-head h2 { font-size: clamp(25px, 2.6vw, 37px); font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
.home-section-head p { font-family: Poppins, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.home-section-index { color: var(--accent-action); font-weight: 600; }
.home-section-count { font-family: Poppins, sans-serif; font-size: 11px; }
.home-page .home-converter-grid, .home-page .home-service-list { gap: 22px; }
.home-page .home-converter-card, .home-page .home-service-link { padding: 32px; border: 1px solid var(--fp-border); border-radius: 50px; background: var(--fp-surface); min-height: 204px; --service-color: var(--accent-action); }
.home-page .home-service-icon, .home-page .home-format-icon { border-radius: 10px; color: var(--accent-action); background: var(--accent-soft); border-color: #f6ddd4; }
.home-page .home-format-icon small { background: var(--fp-text); color: var(--fp-surface); }
.home-service-copy strong, .home-converter-body strong { font-family: Poppins, sans-serif; font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; }
.home-service-copy small, .home-converter-body small { font-size: 14px; font-weight: 300; line-height: 1.9; }
.home-service-label { font-family: Poppins, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.home-service-arrow { top: 29px; right: 29px; }
.home-service-copy { padding-right: 22px; }
.home-closing { padding-block: 64px 80px; }
.home-closing h2 { font-size: clamp(30px, 3.4vw, 45px); font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
.home-closing>a { background: var(--accent-action); border-radius: 100px; font-size: 13px; min-height: 50px; padding-inline: 26px; box-shadow: var(--shadow); }
.home-closing>a span { color: #fff; }
#clear-recent, .search-empty button, #recent-links a { border-radius: 100px; font-family: Poppins, sans-serif; }
#recent-links a { font-weight: 600; font-size: 13px; }
.search-empty h2, .recent-tools-heading h2 { font-weight: 600; }
body:has(.home-page) { background: var(--fp-bg, #fff); }
body:has(.home-page) .site-header, body:has(.home-page) .header-nav { background: var(--fp-surface, #fff); }
body:has(.home-page) .site-header .brand-name { color: var(--fp-text, #2c3d49); }
body:has(.home-page) .mobile-app-nav__item.is-active { background: var(--accent-soft); color: var(--accent-action); }
body:has(.home-page) .site-header .convert-trigger { color: var(--fp-secondary, #73677f); }
@media (hover: hover) and (pointer: fine) {
  .home-page .home-converter-card:hover, .home-page .home-service-link:hover { background: var(--fp-surface); border-color: #e5b9aa; box-shadow: var(--shadow); transform: translateY(-3px); }
  #recent-links a:hover { border-color: var(--accent-action); }
}
/* Optional dark mode retains the single accent and the same neutral hierarchy. */
html[data-fp-theme=dark] body:has(.home-page), html[data-fp-theme=dark] .home-page {
  --fp-bg: #202128; --fp-surface: #292a33; --fp-soft: #31313b;
  --fp-text: #f7f4f9; --fp-secondary: #c2b9cc; --fp-border: #44424e;
  --accent-soft: #442e28; --accent-action: #ff8c66;
}
html[data-fp-theme=dark] .home-search button,
html[data-fp-theme=dark] .studio-options button[aria-pressed=true],
html[data-fp-theme=dark] .home-closing>a,
html[data-fp-theme=dark] .studio-file--output { background: #c93400; color: #fff; }
@media (prefers-color-scheme: dark) {
  html[data-fp-theme=system] body:has(.home-page), html[data-fp-theme=system] .home-page {
    --fp-bg: #202128; --fp-surface: #292a33; --fp-soft: #31313b;
    --fp-text: #f7f4f9; --fp-secondary: #c2b9cc; --fp-border: #44424e;
    --accent-soft: #442e28; --accent-action: #ff8c66;
  }
  html[data-fp-theme=system] .home-search button,
  html[data-fp-theme=system] .studio-options button[aria-pressed=true],
  html[data-fp-theme=system] .home-closing>a,
  html[data-fp-theme=system] .studio-file--output { background: #c93400; color: #fff; }
}
@media (max-width: 1100px) {
  .home-hero { gap: 28px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .route-studio { padding: 28px 22px; border-radius: 50px; }
  .studio-stage { gap: 20px; }
}
@media (max-width: 767px) {
  .home-workspace-bar { font-size: 10px; }
  .theme-control { font-size: 10px; gap: 5px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; gap: 30px; }
  .home-hero h1 { font-size: clamp(34px, 9vw, 48px); line-height: 1.22; }
  .home-hero-lede { font-size: 16px; }
  .home-search { border-radius: 28px; padding: 12px; gap: 8px; }
  .home-search input { font-size: 16px; }
  .home-search button { font-size: 13px; min-height: 48px; }
  .route-studio { border-radius: 50px; padding: 26px 20px; }
  .studio-stage { min-height: 190px; }
  .studio-caption h2 { font-size: 20px; }
  .studio-options button { min-height: 44px; font-size: 10px; }
  .home-section-head { grid-template-columns: minmax(0, 1fr); }
  .home-section-count { justify-self: start; }
  .home-section-head h2 { font-size: 28px; }
  .home-page .home-converter-card, .home-page .home-service-link { padding: 26px; border-radius: 30px; min-height: 0; }
  .home-page .home-service-link { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .home-service-copy { padding-right: 12px; }
  .home-service-copy strong, .home-converter-body strong { font-size: 18px; }
  .home-service-copy small, .home-converter-body small { font-size: 14px; line-height: 1.8; }
  .home-service-arrow { top: 25px; right: 20px; }
  .home-page .home-converter-grid, .home-page .home-service-list { gap: 16px; }
  .home-closing h2 { font-size: 32px; }
  .footer-simple-intro h2 { font-size: 32px; }
}

/* Phone refinement: fluid sizing from 320px, safe areas and readable cards. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 820px) {
  .site-header {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 12px;
  }
  .nav-toggle { width: 44px; height: 44px; flex: 0 0 44px; }
  .site-header.nav-open .header-nav { max-height: calc(100dvh - 80px - env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .home-page { --phone-gutter: clamp(16px, 4.6vw, 24px); }
  .home-hero, .home-directory, .home-closing, .home-workspace-bar {
    width: auto;
    margin-left: max(var(--phone-gutter), env(safe-area-inset-left));
    margin-right: max(var(--phone-gutter), env(safe-area-inset-right));
  }
  .home-workspace-bar { padding-top: 18px; gap: 12px; font-size: 11px; line-height: 1.5; }
  .home-workspace-bar>span { min-width: 0; }
  .workspace-dot { flex: 0 0 6px; }
  .theme-control { min-height: 44px; flex-shrink: 0; font-size: 11px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-block: 28px 32px; gap: 26px; }
  .home-hero-copy { min-width: 0; }
  .home-kicker { font-size: 11px; line-height: 1.7; margin-bottom: 16px; max-width: 40ch; }
  .home-hero h1 { font-size: clamp(30px, 8.5vw, 44px); line-height: 1.2; letter-spacing: -.045em; margin-bottom: 18px; max-width: none; overflow-wrap: break-word; }
  .home-hero-lede { font-size: 16px; line-height: 1.75; margin-bottom: 22px; max-width: 48ch; }
  .home-search { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 12px; border-radius: 24px; width: 100%; }
  .home-search input { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; line-height: 1.5; }
  .home-search>i { font-size: 15px; }
  .home-search button { grid-column: 1 / -1; width: 100%; min-height: 48px; font-size: 14px; }
  .search-feedback { font-size: 13px; min-height: 0; margin-top: 8px; }
  .search-feedback:empty { display: none; }
  .home-hero-meta { margin-top: 14px; gap: 8px 16px; font-size: 12px; }
  .home-hero-side { display: block; width: 100%; min-width: 0; }
  .route-studio { border: 1px solid var(--fp-border); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); }
  .studio-topline { font-size: 10px; line-height: 1.6; gap: 8px; }
  .studio-status { font-size: 10px; padding: 5px 8px; }
  .studio-stage { min-height: 155px; gap: clamp(18px, 7vw, 32px); }
  .studio-orbit { width: 175px; height: 106px; }
  .studio-file { width: 78px; min-height: 102px; padding: 10px; border-radius: 10px; gap: 4px; }
  .studio-file svg { width: 35px; height: 42px; }
  .studio-file>span { font-size: 10px; }
  .studio-file small { font-size: 8px; }
  .studio-caption h2 { font-size: clamp(17px, 4.6vw, 21px); line-height: 1.45; }
  .studio-caption p { font-size: 13px; line-height: 1.65; margin-top: 5px; }
  .studio-options { margin-top: 16px; padding: 4px; gap: 2px; }
  .studio-options button { min-height: 44px; padding: 8px 4px; font-size: 11px; }
  #studio-launch { min-height: 48px; padding: 16px 2px 0; font-size: 13px; }
  .home-category-nav { padding: 12px max(var(--phone-gutter), env(safe-area-inset-left)) 12px max(var(--phone-gutter), env(safe-area-inset-right)); min-height: 68px; gap: 8px; scroll-padding-inline: var(--phone-gutter); }
  .home-category-nav>span { display: none; }
  .home-category-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; padding: 10px 15px; }
  .home-catalog-section { padding-block: 32px; scroll-margin-top: 88px; }
  .home-section-head { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; margin-bottom: 20px; align-items: start; }
  .home-section-head>div { grid-column: 1 / -1; gap: 8px; }
  .home-section-head p, .home-section-index { font-size: 11px; line-height: 1.6; }
  .home-section-head h2 { font-size: clamp(23px, 5.8vw, 29px); line-height: 1.35; letter-spacing: -.03em; }
  .home-section-count { margin-top: 4px; font-size: 11px; line-height: 1.5; padding: 5px 8px; white-space: nowrap; }
  .home-page .home-converter-grid, .home-page .home-service-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-page .home-converter-card, .home-page .home-service-link { grid-column: auto !important; min-width: 0; min-height: 0; padding: clamp(18px, 5vw, 24px); border-radius: 24px; }
  .home-page .home-service-link { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .home-service-icon { width: 40px; height: 40px; font-size: 17px; }
  .home-service-copy { min-width: 0; padding-right: 0; }
  .home-service-label { font-size: 11px; line-height: 1.55; margin: 0 20px 8px 0; letter-spacing: .025em; }
  .home-service-copy strong, .home-converter-body strong { font-size: clamp(17px, 4.4vw, 19px); line-height: 1.45; margin-bottom: 7px; overflow-wrap: break-word; }
  .home-service-copy small, .home-converter-body small { font-size: 14px; line-height: 1.75; overflow-wrap: break-word; }
  .home-service-arrow { top: 18px; right: 18px; font-size: 16px; line-height: 20px; }
  .home-converter-route { gap: 14px; padding-right: 24px; }
  .home-format-icon { width: 38px; height: 42px; font-size: 19px; }
  .home-format-icon small { font-size: 8px; }
  .home-converter-body { padding-top: 22px; }
  .home-closing { padding-block: 36px 44px; gap: 22px; align-items: stretch; flex-direction: column; }
  .home-closing h2 { font-size: clamp(27px, 7vw, 36px); line-height: 1.3; }
  .home-closing>a { width: 100%; justify-content: center; min-height: 48px; }
  .recent-tools-heading { gap: 12px; }
  .recent-tools-heading h2 { font-size: 20px; line-height: 1.45; }
  #recent-links { gap: 8px; }
  #recent-links a { max-width: 100%; overflow-wrap: anywhere; font-size: 13px; min-height: 44px; }
  .footer-simple.site-footer { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  .footer-simple-intro h2 { font-size: clamp(27px, 7.5vw, 36px); line-height: 1.3; }
}
@media (max-width: 640px) {
  .mobile-app-nav { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .mobile-app-nav__label { font-size: 11px; line-height: 1.25; }
  .mobile-app-nav__item { min-height: 56px; border-radius: 16px; }
}
@media (max-width: 359px) {
  .home-workspace-bar { align-items: flex-start; }
  .home-workspace-bar>span { max-width: 15ch; }
  .home-section-head { grid-template-columns: minmax(0, 1fr); }
  .home-section-count { justify-self: start; margin-top: 0; }
  .studio-topline { flex-wrap: wrap; }
  .home-page .home-service-link { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .home-service-icon { width: 34px; height: 36px; font-size: 16px; }
}
/* Landscape phones keep the visual preview within its narrower column. */
.studio-options button { min-height: 44px; }
@media (min-width: 821px) and (max-width: 1100px) {
  .route-studio { padding: 24px 18px; }
  .studio-topline { flex-wrap: wrap; }
  .studio-stage { gap: 16px; min-height: 190px; }
  .studio-file { width: 80px; min-height: 118px; padding: 10px; }
  .studio-file svg { width: 38px; height: 48px; }
  .studio-caption h2 { font-size: 18px; }
  .studio-options button { font-size: 10px; padding-inline: 3px; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .studio-orbit { width: 170px; height: 110px; }
}

/* Video saver forms need usable interior corners, rather than pill geometry. */
.video-workcard {
  width: 100%;
  min-width: 0;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}
.video-workcard > *, .video-workcard .field, .video-workcard .paste-input-wrap {
  min-width: 0;
  max-width: 100%;
}
.video-workcard label { flex-wrap: wrap; gap: 8px; line-height: 1.6; }
.video-workcard input:not([type=checkbox]), .video-workcard textarea, .video-workcard select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
}
.video-workcard .paste-input-wrap input { padding-right: 58px !important; min-height: 52px; }
.video-workcard .paste-btn { width: 44px; height: 44px; right: 4px; }
.video-workcard .btn-primary {
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent-action);
  border-color: var(--accent-action);
  color: #fff;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.video-workcard .btn-primary:hover:not(:disabled) {
  background: #a82b00;
  border-color: #a82b00;
  box-shadow: none;
}
.video-workcard .video-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.video-workcard .status, .video-workcard .result-name, .video-workcard .result-meta {
  overflow-wrap: anywhere;
}
.video-workcard .paste-toast { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .video-workcard { border-radius: 24px; padding: 20px; }
  .video-workcard .field { margin-bottom: 12px; }
  .video-workcard .btn-primary { margin-top: 12px; font-size: 14px; }
  .video-workcard .video-note { font-size: 13px; line-height: 1.7; }
}
@media (max-width: 359px) {
  .video-workcard { padding: 18px; border-radius: 22px; }
}
