/* InFiles website — Apple-style, matches the app's design tokens. */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f3f1ec;
  --panel: #ffffff;
  --side: #f6f5f1;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e3dd;
  --blue: #0a6cff;
  --blue-2: #3d8bff;
  --blue-soft: #e8f1ff;
  --green: #28a745;
  --red: #d93a3a;
  --shadow: 0 30px 80px -30px rgba(16, 24, 40, .28), 0 10px 30px -12px rgba(16, 24, 40, .12);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0f;
    --bg-alt: #141417;
    --panel: #1b1b1f;
    --side: #18181b;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c31;
    --blue-soft: #0f2340;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.022em; margin: 0 0 .5em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
h2.h3, h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.25; }
h2.h3 { font-size: 26px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }

.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.narrow-wrap { width: min(780px, 100% - 32px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.grad {
  background: linear-gradient(92deg, var(--blue) 0%, #6a5cff 55%, #2bb3ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 8px 22px -8px rgba(10, 108, 255, .7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(10, 108, 255, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--panel); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-inner > .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 300px at 30% 30%, rgba(10,108,255,.14), transparent 70%),
    radial-gradient(520px 280px at 72% 20%, rgba(106,92,255,.12), transparent 70%);
}
.hero-inner { text-align: center; max-width: 900px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(40,167,69,.18); }
.hero h1 { margin-top: 22px; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 720px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.trust li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }

/* App window recreation */
.window {
  margin: 56px auto 0; max-width: 1040px;
  display: grid; grid-template-columns: 260px 1fr;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
  font-size: 13px; text-align: left;
}
.win-side { background: var(--side); border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; }
.lights { display: flex; gap: 8px; margin-bottom: 18px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.side-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.side-brand b { display: block; font-size: 14px; }
.side-brand small { color: var(--muted); font-size: 11px; }
.side-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 6px 4px; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files li:first-child { background: var(--blue-soft); }
.badge { font-size: 8.5px; font-weight: 700; padding: 2px 4px; border-radius: 4px; color: #fff; min-width: 28px; text-align: center; letter-spacing: .02em; }
.b-dir { background: #8e8e93; } .b-pdf { background: #e5484d; } .b-xls { background: #1f9d55; }
.b-csv { background: #12a594; } .b-img { background: #8e4ec6; } .b-md { background: #3e63dd; }
.side-status { margin: auto 0 0; padding-top: 18px; color: var(--muted); font-size: 11.5px; display: flex; align-items: center; gap: 6px; }
.side-status .ok { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.win-main { display: flex; flex-direction: column; min-height: 470px; }
.win-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.win-top small { display: block; font-size: 10px; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.win-top b { font-size: 16px; }
.pill-offline { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-weight: 600; font-size: 12px; color: var(--green); }
.chat { flex: 1; padding: 26px 30px; display: flex; flex-direction: column; gap: 18px; }
.q { align-self: flex-end; background: linear-gradient(180deg, var(--blue-2), var(--blue)); color: #fff; padding: 10px 15px; border-radius: 16px 16px 4px 16px; font-size: 14px; max-width: 75%; }
.a { display: flex; gap: 12px; align-items: flex-start; }
.avatar { flex: none; }
.a > div { background: var(--bg); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 14px 16px; font-size: 14px; max-width: 86%; }
.a p { margin: 0 0 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.timing { margin: 10px 0 0 !important; font-size: 11.5px; color: var(--muted); }
.composer { margin: 0 24px 22px; border: 1.5px solid var(--blue); border-radius: 12px; padding: 11px 12px 11px 16px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.composer b { color: #fff; background: var(--blue); padding: 6px 12px; border-radius: 999px; font-size: 12px; }
@media (max-width: 760px) {
  .window { grid-template-columns: minmax(0, 1fr); }
  .win-main { min-width: 0; min-height: 0; }
  .pill-offline { font-size: 11px; }
  .win-side { display: none; }
  .chat { padding: 18px; }
  .composer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 8px; }
}

/* Audience strip */
.strip { padding: 44px 0 20px; text-align: center; }
.strip p { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.strip ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-size: 19px; font-weight: 650; color: var(--text); opacity: .8; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.kicker { color: var(--blue); font-weight: 650; font-size: 15px; margin-bottom: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.top { align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } .section { padding: 72px 0; } }

/* Comparison */
.compare { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -30px rgba(16,24,40,.25); }
.c-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 15px; align-items: center; }
.c-row:first-child { border-top: 0; }
.c-head { font-weight: 650; font-size: 14px; background: var(--bg); }
.c-row span:first-child { color: var(--muted); }
.c-us { color: var(--text); font-weight: 600; }
.c-head .c-us { color: var(--blue); }
.yes::before { content: "✓ "; color: var(--green); }
.no::before { content: "✕ "; color: var(--red); }
@media (max-width: 520px) { .c-row { font-size: 13.5px; padding: 12px 14px; gap: 8px; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 700; margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(16,24,40,.3); }
.card p { color: var(--muted); margin: 0; }
.ico { font-size: 26px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-soft); margin-bottom: 18px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid, .grid-2 { grid-template-columns: 1fr; } }

/* Real answers */
.qa-list { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.qa { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.qa-q { font-weight: 600; margin: 0 0 8px; }
.qa-a { margin: 0; color: var(--blue); font-weight: 650; }
.qa-a span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 2px; }
.qa.flag .qa-a { color: var(--red); }
@media (max-width: 760px) { .qa-list { grid-template-columns: 1fr; } }

/* Personas */
.persona { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.persona > p { color: var(--muted); }
.persona ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.persona li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; font-size: 15px; }

/* Privacy band */
.section.dark { background: #0b0c10; color: #f5f5f7; }
.section.dark .muted { color: #a1a1a6; }
.section.dark .kicker { color: #5aa2ff; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { background: #15161c; border: 1px solid #262833; border-radius: 14px; padding: 18px 20px 18px 52px; position: relative; color: #c7c7cc; }
.ticks li b { color: #fff; }
.ticks li::before { content: "✓"; position: absolute; left: 18px; top: 17px; width: 22px; height: 22px; border-radius: 50%; background: rgba(40,167,69,.18); color: #3ddc6a; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* Formats + requirements */
.formats { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formats li { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; }
.reqs { margin: 18px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.reqs div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 18px; border-top: 1px solid var(--line); }
.reqs div:first-child { border-top: 0; }
.reqs dt { font-weight: 650; }
.reqs dd { margin: 0; color: var(--muted); }

/* FAQ */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Final CTA */
.final { text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.final-inner img { margin-bottom: 24px; filter: drop-shadow(0 12px 24px rgba(10,108,255,.35)); }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot-inner p { margin: 0; }
.foot-inner nav { display: flex; gap: 20px; margin-left: auto; }
.foot-inner nav a { color: var(--muted); }
.foot-inner nav a:hover { color: var(--text); }
.copy { width: 100%; font-size: 12.5px; }

/* Legal / simple pages */
.page { padding: 72px 0 96px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); }
.page h2 { font-size: 24px; margin-top: 40px; }
.page p, .page li { color: var(--muted); }

/* Reveal animation (only when JS + motion are available) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.is-soon { cursor: default; }
.is-soon:hover { transform: none; }
