/* LuminaClean free tools (/tools/). Self-contained: every class starts with t-.
   Palette and type follow the planned redesign: near-black, lime, pink, violet;
   Anton headlines, Instrument Serif and JetBrains Mono accents. Mobile first. */
:root {
  --t-bg: #0a0a0a;
  --t-panel: #111111;
  --t-panel-2: #161616;
  --t-lime: #c7f464;
  --t-pink: #ff2e63;
  --t-violet: #7b5cff;
  --t-text: #f4f4f2;
  --t-muted: #a8a8a3;
  --t-line: rgba(255, 255, 255, 0.10);
  --t-line-2: rgba(255, 255, 255, 0.18);
  --t-radius: 20px;
  --t-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --t-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --t-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --t-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.t-page { overflow-x: clip; }
body.t-page {
  margin: 0;
  background-color: var(--t-bg);
  background-image:
    radial-gradient(60rem 36rem at 0% -10%, rgba(123, 92, 255, 0.22), transparent 60%),
    radial-gradient(40rem 30rem at 100% 10%, rgba(255, 46, 99, 0.12), transparent 60%),
    radial-gradient(50rem 30rem at 50% 110%, rgba(199, 244, 100, 0.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--t-text);
  font: 16px/1.6 var(--t-sans);
  min-height: 100vh;
}
.t-page a { color: var(--t-lime); text-underline-offset: 3px; }
.t-page a:hover { color: #e2ff9c; }
.t-page :focus-visible { outline: 3px solid var(--t-lime); outline-offset: 3px; border-radius: 6px; }
.t-page [hidden] { display: none !important; }
.t-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.t-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.t-narrow { max-width: 760px; }

/* Header and footer */
.t-header { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 10, 0.86); border-bottom: 1px solid var(--t-line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .t-header { background: rgba(10, 10, 10, 0.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.t-header__in { display: flex; align-items: center; gap: 14px; height: 60px; }
.t-logo { font-family: var(--t-mono); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; color: var(--t-text) !important; text-decoration: none; }
.t-header__link { font-family: var(--t-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-muted) !important; text-decoration: none; margin-left: auto; white-space: nowrap; }
.t-header__link:hover { color: var(--t-text) !important; }
.t-header__cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--t-lime); color: #0a0a0a !important; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.t-header__cta svg { width: 14px; height: 14px; }
.t-footer { border-top: 1px solid var(--t-line); margin-top: 72px; padding: 32px 0 48px; color: var(--t-muted); font-size: 14px; }
.t-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 14px; }
.t-footer a { color: var(--t-muted); text-decoration: none; }
.t-footer a:hover { color: var(--t-text); }
.t-footer p { margin: 6px 0; }

/* Hero */
.t-hero { padding: 24px 0 12px; }
.t-crumbs { font-family: var(--t-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--t-muted); margin: 0 0 14px; }
.t-crumbs a { color: var(--t-muted); text-decoration: none; }
.t-crumbs a:hover { color: var(--t-text); }
.t-kicker { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--t-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-lime); border: 1px solid rgba(199, 244, 100, 0.45); border-radius: 999px; padding: 6px 12px; margin: 0 0 18px; }
.t-h1 { font-family: var(--t-display); font-weight: 400; text-transform: uppercase; line-height: 0.98; letter-spacing: 0.005em; font-size: clamp(34px, 9vw, 84px); margin: 0 0 12px; }
.t-h1 em { font-style: normal; color: var(--t-lime); }
.t-lede { font-family: var(--t-serif); font-style: italic; font-size: clamp(20px, 5vw, 28px); line-height: 1.3; color: #e9e9e4; margin: 0 0 8px; max-width: 34ch; }
.t-trust { font-family: var(--t-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--t-muted); margin: 14px 0 0; }
.t-trust b { color: var(--t-lime); font-weight: 500; }

/* Panels */
.t-panel { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)), var(--t-panel); border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: 20px; box-shadow: 0 30px 80px -50px rgba(123, 92, 255, 0.55); }
.t-panel--lime { box-shadow: 0 30px 80px -45px rgba(199, 244, 100, 0.45); }
.t-panel--pink { box-shadow: 0 30px 80px -45px rgba(255, 46, 99, 0.45); }
.t-section { margin: 56px 0 0; }
.t-h2 { font-family: var(--t-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 7vw, 44px); line-height: 1.02; margin: 0 0 16px; }
.t-h3 { font-size: 18px; margin: 26px 0 6px; line-height: 1.35; }
.t-page p { margin: 0 0 14px; }
.t-label { font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted); }

/* The tool area */
.t-tool { margin-top: 18px; }
.t-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.t-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 210px; padding: 28px 20px; text-align: center; cursor: pointer; border: 2px dashed rgba(199, 244, 100, 0.5); border-radius: 26px; background: radial-gradient(120% 90% at 50% 0%, rgba(199, 244, 100, 0.10), rgba(17, 17, 17, 0.6) 60%), var(--t-panel); box-shadow: 0 40px 90px -60px rgba(199, 244, 100, 0.6); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.t-drop:hover, .t-drop--over { border-color: var(--t-lime); box-shadow: 0 40px 100px -40px rgba(199, 244, 100, 0.75); }
.t-drop--over { transform: scale(1.01); }
.t-input:focus-visible + .t-drop { outline: 3px solid var(--t-lime); outline-offset: 4px; }
.t-drop__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--t-lime); color: #0a0a0a; }
.t-drop__icon svg { width: 28px; height: 28px; }
.t-drop__title { font-family: var(--t-display); text-transform: uppercase; font-size: 30px; line-height: 1; }
.t-drop__sub { color: var(--t-muted); font-size: 15px; margin: 0 !important; }
.t-drop__formats { font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-muted); margin: 0 !important; }
.t-options { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--t-line); border-radius: 16px; background: rgba(17, 17, 17, 0.7); }
.t-options label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.t-options select, .t-field input, .t-field select { background: #0d0d0d; color: var(--t-text); border: 1px solid var(--t-line-2); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 16px; }
.t-options input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--t-lime); }
.t-options input[type=range] { width: 150px; accent-color: var(--t-lime); }
.t-options output { font-family: var(--t-mono); font-size: 13px; color: var(--t-lime); min-width: 3.5ch; }
.t-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; color: var(--t-muted); }
.t-privacy svg { flex: none; width: 18px; height: 18px; color: var(--t-lime); margin-top: 2px; }

/* Results */
.t-summary { font-family: var(--t-display); text-transform: uppercase; font-size: 24px; line-height: 1.1; margin: 28px 0 12px; }
.t-results { display: grid; gap: 14px; margin-top: 14px; }
.t-file { background: var(--t-panel); border: 1px solid var(--t-line); border-radius: 18px; padding: 16px; overflow: hidden; }
.t-file__head { display: flex; align-items: center; gap: 12px; }
.t-file__thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #1b1b1b; display: grid; place-items: center; }
.t-file__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-file__icon { font-family: var(--t-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--t-muted); }
.t-file__title { min-width: 0; flex: 1; }
.t-file__name { margin: 0 !important; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-file__sub { margin: 0 !important; font-family: var(--t-mono); font-size: 12px; color: var(--t-muted); }
.t-file__body { margin-top: 14px; }
.t-file__actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--t-line); }
.t-file--compact .t-file__actions { border: 0; padding-top: 0; }
.t-file__error { color: #ff8aa6; margin: 10px 0 0 !important; font-size: 15px; }
.t-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--t-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid; line-height: 1.25; margin-top: 6px; }
.t-badge--alert { color: #ff7d9b; border-color: rgba(255, 46, 99, 0.6); background: rgba(255, 46, 99, 0.12); }
.t-badge--ok { color: var(--t-lime); border-color: rgba(199, 244, 100, 0.5); background: rgba(199, 244, 100, 0.08); }
.t-badge--violet { color: #b7a6ff; border-color: rgba(123, 92, 255, 0.6); background: rgba(123, 92, 255, 0.12); }
.t-badge--muted { color: var(--t-muted); border-color: var(--t-line-2); }
.t-gps { border: 1px solid rgba(255, 46, 99, 0.45); background: linear-gradient(180deg, rgba(255, 46, 99, 0.14), rgba(255, 46, 99, 0.04)); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.t-gps__label { font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #ff7d9b; margin: 0 0 4px !important; }
.t-gps__coords { font-family: var(--t-mono); font-size: clamp(17px, 4.8vw, 22px); font-weight: 500; margin: 0 !important; word-break: break-all; }
.t-gps__dms { font-family: var(--t-mono); font-size: 12px; color: var(--t-muted); margin: 2px 0 10px !important; }
.t-gps__say { font-size: 15px; margin: 0 0 10px !important; }
.t-gps__extra { font-size: 14px; color: var(--t-muted); margin: -4px 0 10px !important; }
.t-kv { display: grid; gap: 10px; margin: 0; }
.t-kv > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--t-panel-2); }
.t-kv dt { font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-muted); }
.t-kv dd { margin: 0; word-break: break-word; }
.t-kv dd span { display: block; font-size: 13px; color: var(--t-muted); margin-top: 2px; }
.t-thumbfig { margin: 12px 0 0; }
.t-thumbfig img { max-width: 160px; max-height: 160px; border-radius: 10px; border: 1px solid var(--t-line-2); display: block; }
.t-thumbfig figcaption { font-size: 12px; color: var(--t-muted); margin-top: 4px; }
.t-note { font-size: 14px; color: var(--t-muted); margin: 10px 0 0 !important; }
.t-ai { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--t-line); }
.t-ai .t-label { margin: 0 0 8px; }
.t-ai .t-note { margin-top: 0 !important; }
.t-check { color: var(--t-lime); font-weight: 600; margin: 0 !important; }
.t-check--warn { color: #ff7d9b; }
.t-raw { margin-top: 12px; }
.t-raw summary { cursor: pointer; font-family: var(--t-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--t-muted); }
.t-raw table { width: 100%; border-collapse: collapse; margin-top: 8px; font-family: var(--t-mono); font-size: 12px; display: block; max-height: 320px; overflow: auto; }
.t-raw th, .t-raw td { text-align: left; vertical-align: top; padding: 5px 8px; border-bottom: 1px solid var(--t-line); word-break: break-word; }
.t-raw th { color: var(--t-muted); font-weight: 400; width: 40%; }
.t-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.t-batch { position: sticky; bottom: 0; z-index: 10; margin: 16px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(10, 10, 10, 0.92); border-top: 1px solid var(--t-line); }
.t-batch__in { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.t-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; color: var(--t-muted); font-size: 14px; }

/* Buttons */
.t-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px; border-radius: 999px; border: 1px solid transparent; font: 700 15px/1.2 var(--t-sans); cursor: pointer; text-decoration: none; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.t-btn:active { transform: scale(0.98); }
.t-btn[disabled] { opacity: 0.5; cursor: default; }
.t-btn--lime { background: var(--t-lime); color: #0a0a0a !important; }
.t-btn--lime:hover { background: #d6ff84; }
.t-btn--ghost { background: transparent; color: var(--t-text) !important; border-color: var(--t-line-2); }
.t-btn--ghost:hover { border-color: var(--t-text); }
.t-btn--text { background: transparent; color: var(--t-muted) !important; padding-left: 8px; padding-right: 8px; }
.t-btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.t-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: t-spin 0.8s linear infinite; }
@keyframes t-spin { to { transform: rotate(360deg); } }

/* The app card (shown only after a result) */
.t-app { margin-top: 28px; display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; border-color: rgba(123, 92, 255, 0.45); box-shadow: 0 40px 100px -50px rgba(123, 92, 255, 0.8); animation: t-rise 0.45s ease both; }
.t-app img { width: 76px; height: 76px; object-fit: contain; }
.t-app__title { font-family: var(--t-display); text-transform: uppercase; font-size: 24px; line-height: 1.05; margin: 0 0 8px !important; }
.t-app p { font-size: 15px; }
.t-app__free { font-family: var(--t-mono); font-size: 12px; color: var(--t-muted); letter-spacing: 0.02em; }
.t-app .t-btn { margin-top: 4px; white-space: normal; text-align: center; }
@media (max-width: 420px) {
  .t-app { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .t-app img { width: 64px; height: 64px; }
  .t-app .t-btn { width: 100%; }
}
@keyframes t-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Steps, limits, questions */
.t-steps { list-style: none; counter-reset: t-step; padding: 0; margin: 0; display: grid; gap: 10px; }
.t-steps li { counter-increment: t-step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--t-line); border-radius: 14px; background: rgba(17, 17, 17, 0.7); }
.t-steps li::before { content: counter(t-step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(199, 244, 100, 0.12); color: var(--t-lime); font-family: var(--t-mono); font-size: 13px; border: 1px solid rgba(199, 244, 100, 0.45); }
.t-list { padding-left: 20px; margin: 0 0 14px; }
.t-list li { margin: 6px 0; }
.t-faq h3 { font-size: 18px; margin: 24px 0 6px; line-height: 1.35; }
.t-faq p { color: #deded9; }

/* Tool index cards */
.t-cards { display: grid; gap: 16px; margin-top: 26px; }
.t-card { display: block; text-decoration: none; color: var(--t-text) !important; padding: 22px; border-radius: 22px; border: 1px solid var(--t-line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), var(--t-panel); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.t-card:hover { transform: translateY(-3px); }
.t-card--lime:hover { border-color: rgba(199, 244, 100, 0.6); box-shadow: 0 30px 80px -40px rgba(199, 244, 100, 0.6); }
.t-card--pink:hover { border-color: rgba(255, 46, 99, 0.6); box-shadow: 0 30px 80px -40px rgba(255, 46, 99, 0.6); }
.t-card--violet:hover { border-color: rgba(123, 92, 255, 0.7); box-shadow: 0 30px 80px -40px rgba(123, 92, 255, 0.7); }
.t-card__tag { font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted); }
.t-card__title { font-family: var(--t-display); text-transform: uppercase; font-size: 30px; line-height: 1.02; margin: 10px 0 8px; }
.t-card p { color: #d6d6d1; margin: 0 0 14px; }
.t-card__go { font-weight: 700; color: var(--t-lime); }

/* Storage calculator */
.t-calc { display: grid; gap: 16px; }
.t-group { padding: 16px; border-radius: 18px; background: var(--t-panel); border: 1px solid var(--t-line); }
.t-group__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.t-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.t-dot--shots { background: var(--t-pink); }
.t-dot--photos { background: var(--t-violet); }
.t-dot--videos { background: var(--t-lime); }
.t-group__name { font-weight: 700; }
.t-field { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin: 8px 0; }
.t-field > span { font-size: 14px; color: var(--t-muted); }
.t-field input[type=number] { width: 110px; text-align: right; font-family: var(--t-mono); }
.t-field input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--t-lime); }
.t-result { position: relative; }
.t-total { font-family: var(--t-display); font-size: clamp(64px, 18vw, 104px); line-height: 0.95; color: var(--t-lime); margin: 6px 0 0; }
.t-total small { font-size: 0.4em; color: var(--t-text); margin-left: 6px; }
.t-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #1c1c1c; margin: 16px 0 10px; }
.t-bar span { display: block; height: 100%; transition: width 0.3s ease; }
.t-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.t-legend li { display: flex; align-items: center; gap: 10px; }
.t-legend b { margin-left: auto; font-family: var(--t-mono); font-weight: 500; font-size: 13px; }
.t-freed { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--t-line); }
.t-freed__num { font-family: var(--t-display); font-size: 44px; line-height: 1; color: var(--t-text); }
.t-freed .t-field output { font-family: var(--t-mono); color: var(--t-lime); font-size: 13px; }

@media (min-width: 760px) {
  .t-wrap { padding: 0 48px; }
  .t-hero { padding: 64px 0 24px; }
  .t-drop { min-height: 280px; }
  .t-kv { grid-template-columns: 1fr 1fr; }
  .t-cards { grid-template-columns: repeat(3, 1fr); }
  .t-batch { margin: 16px -48px 0; padding-left: 48px; padding-right: 48px; }
  .t-calc-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
  .t-result { position: sticky; top: 80px; }
  .t-app { grid-template-columns: 110px 1fr; }
  .t-app img { width: 110px; height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .t-page *, .t-page *::before, .t-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .t-card:hover, .t-drop--over { transform: none; }
}

@media (max-width: 430px) {
  .t-header__link { display: none; }
  .t-logo { letter-spacing: 0.12em; }
}
@media (max-width: 360px) {
  .t-hide-sm { display: none; }
}
/* Storage calculator: the total follows you while you change the numbers (phones only) */
.t-mini { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: baseline; gap: 10px; margin: 0 -20px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 10, 10, 0.94); border-top: 1px solid var(--t-line); font-family: var(--t-mono); font-size: 13px; color: var(--t-muted); }
.t-mini b { font-family: var(--t-display); font-weight: 400; font-size: 26px; color: var(--t-lime); letter-spacing: 0.01em; }
@media (min-width: 760px) { .t-mini { display: none; } }
/* Sources lists and footnote marks */
.t-page sup { font-size: 0.7em; line-height: 0; margin-left: 1px; }
.t-page sup a { text-decoration: none; font-family: var(--t-mono); }
.t-sources ol { padding-left: 20px; margin: 0; font-size: 13px; color: var(--t-muted); }
.t-sources li { margin: 6px 0; }
.t-sources a { color: #cfe99a; }
