/* PDF Scanner — itsone.app. Plain CSS, no scripts, system fonts only. Colours follow the app: teal on mint. */
:root {
  --bg: #f3faf8;
  --bg-2: #e2f3ef;
  --surface: #ffffff;
  --text: #0c1c1a;
  --muted: #4d625d;
  --accent: #0f766e;
  --accent-2: #14a394;
  --on-accent: #ffffff;
  --line: rgba(12, 28, 26, 0.09);
  --glow-1: rgba(45, 170, 155, 0.32);
  --glow-2: rgba(150, 215, 200, 0.45);
  --shadow: 0 24px 60px -24px rgba(0, 60, 54, 0.35);
  --shadow-sm: 0 10px 30px -14px rgba(0, 60, 54, 0.3);
  --deep-1: #0b5f58;
  --deep-2: #073f3b;
  --paper: #ffffff;
  --radius: 28px;
  --wide: 1120px;
  --narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1413;
    --bg-2: #0f1c1a;
    --surface: #14211f;
    --text: #eaf4f1;
    --muted: #9db0ab;
    --accent: #4fd1b8;
    --accent-2: #7be3cf;
    --on-accent: #06211e;
    --line: rgba(234, 244, 241, 0.1);
    --glow-1: rgba(15, 118, 110, 0.5);
    --glow-2: rgba(20, 70, 64, 0.5);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    --deep-1: #0c4a45;
    --deep-2: #082b28;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: var(--narrow); }

/* ---------- header ---------- */
.top-bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; white-space: nowrap; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top nav a { color: var(--muted); font-weight: 500; }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 650; font-size: 16px; line-height: 1.2;
  box-shadow: var(--shadow-sm);
}
.btn svg { width: 20px; height: 20px; flex: none; }
a.btn { transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.light { background: #ffffff; color: #073f3b; }

/* ---------- hero ---------- */
.hero-bg {
  margin-top: -65px; padding-top: 65px; overflow: hidden;      /* the glow runs under the glass header */
  background:
    radial-gradient(46rem 30rem at 22% 8%, var(--glow-2), transparent 62%),
    radial-gradient(44rem 34rem at 82% 30%, var(--glow-1), transparent 62%),
    linear-gradient(var(--bg-2), var(--bg));
}
.hero { text-align: center; padding: 76px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted); font-size: 14px; font-weight: 600;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.hero h1 {
  margin: 0 auto;
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
  text-wrap: balance;
}
.hero h1 em, .grad {
  display: block; padding-bottom: 0.08em; font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin: 24px auto 0; max-width: 34ch; color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; text-wrap: balance; }
.hero .btn { margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* phones: a CSS body around a real screenshot */
.phone {
  position: relative; flex: none; width: 270px; padding: 10px;
  border-radius: 46px; background: #101214;
  box-shadow: 0 0 0 1.5px #3a3f43 inset, var(--shadow);
}
.phone img { width: 100%; border-radius: 37px; }
.phone::after {            /* Dynamic Island */
  content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 3.4%;
  transform: translateX(-50%); border-radius: 999px; background: #000;
}
/* the phones stand on their tops: the status bar is always in view, the lower part fades out */
.fan {
  display: flex; justify-content: center; align-items: flex-start;
  margin: 40px auto 0; padding-top: 28px; height: 560px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}
.fan .phone { margin: 0 -22px; }
.fan .phone:nth-child(1) { transform-origin: 50% 0; transform: translateY(56px) rotate(-6deg); }
.fan .phone:nth-child(2) { z-index: 1; width: 300px; }
.fan .phone:nth-child(3) { transform-origin: 50% 0; transform: translateY(56px) rotate(6deg); }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero > *:nth-child(2) { animation-delay: 0.05s; }
  .hero > *:nth-child(3) { animation-delay: 0.1s; }
  .hero > *:nth-child(4) { animation-delay: 0.15s; }
  .hero > *:nth-child(5) { animation-delay: 0.2s; }
  .hero > *:nth-child(6) { animation-delay: 0.3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- sections ---------- */
section { padding: 96px 0 0; }
.kicker { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h2.title { margin: 0; max-width: 18ch; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.sub { margin: 16px 0 0; max-width: 46ch; color: var(--muted); font-size: 19px; line-height: 1.5; }
.center { text-align: center; }
.center h2.title, .center .sub { margin-left: auto; margin-right: auto; }

/* feature cards */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 48px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 30px 30px 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 42ch; }
.card .art { margin-top: auto; padding-top: 28px; }
.c4 { grid-column: span 4; } .c3 { grid-column: span 3; } .c2 { grid-column: span 2; } .c6 { grid-column: span 6; }
.tint { background: linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 16%, var(--surface)), var(--surface) 62%); }
.pro { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; vertical-align: 4px; }

/* a piece of a real document, as paper */
.paper { overflow: hidden; border-radius: 16px 16px 0 0; background: var(--paper); box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.02), 0 18px 40px -18px rgba(0, 50, 45, 0.5); border: 1px solid rgba(12, 28, 26, 0.08); border-bottom: 0; }
.paper img { width: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair figure { margin: 0; position: relative; }
.pair figcaption {
  position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(12, 28, 26, 0.78); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
}
.pair figure:last-child figcaption { background: var(--accent); color: var(--on-accent); }

.files { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 0 30px; }
.file { display: grid; place-items: end center; width: 92px; height: 116px; padding-bottom: 16px; border-radius: 14px 30px 14px 14px; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: 0.03em; box-shadow: var(--shadow-sm); }
.file.pdf { background: linear-gradient(160deg, #e35d4f, #b9382c); }
.file.doc { background: linear-gradient(160deg, #4a86e0, #2b62be); }
.file.xls { background: linear-gradient(160deg, #36a56c, #1e7f4f); }
.files .arrows { color: var(--muted); font-size: 26px; font-weight: 700; }

/* split row: text + device */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
.split .phone { margin: 0 auto; }
.checks { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.checks svg { width: 22px; height: 22px; margin-top: 3px; color: var(--accent); flex: none; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 16px; }

.tablet { position: relative; padding: 14px; border-radius: 34px; background: #101214; box-shadow: 0 0 0 1.5px #3a3f43 inset, var(--shadow); }
.tablet img { width: 100%; border-radius: 21px; }

/* privacy band */
.band { margin-top: 96px; padding: 88px 0; background: radial-gradient(60rem 30rem at 85% 0%, rgba(79, 209, 184, 0.28), transparent 60%), linear-gradient(150deg, var(--deep-1), var(--deep-2)); color: #eaf7f4; }
.band .kicker { color: #8fe6d6; }
.band h2.title { color: #fff; max-width: 16ch; }
.band .sub { color: rgba(234, 247, 244, 0.78); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.trio > div { padding: 26px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px; background: rgba(255, 255, 255, 0.06); }
.trio svg { width: 30px; height: 30px; color: #8fe6d6; }
.trio b { display: block; margin-top: 14px; font-size: 19px; }
.trio span { display: block; margin-top: 4px; color: rgba(234, 247, 244, 0.74); font-size: 16px; line-height: 1.5; }

/* all tools */
.groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin-top: 48px; }
.groups h3 { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.groups ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.groups li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 15px; font-weight: 550; }
.groups .pro { margin-left: 6px; vertical-align: 1px; }
.note { margin: 28px 0 0; color: var(--muted); font-size: 15px; }

/* closing call */
.cta { margin: 96px 0 0; padding: 64px 28px; border-radius: 36px; text-align: center; background: linear-gradient(150deg, var(--deep-1), var(--deep-2)); color: #fff; box-shadow: var(--shadow); }
.cta img { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 20px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5); }
.cta h2 { margin: 0 auto; max-width: 16ch; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.cta p { margin: 14px auto 0; max-width: 40ch; color: rgba(234, 247, 244, 0.8); }
.cta .btn { margin-top: 28px; }

/* ---------- legal pages ---------- */
.doc { padding: 40px 0 8px; }
.doc h1 { margin: 16px 0 4px; font-size: clamp(34px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.doc .updated { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 40px 0 8px; font-size: 22px; letter-spacing: -0.01em; }
.doc h3 { margin: 24px 0 4px; font-size: 17px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px; box-shadow: var(--shadow-sm); }
.summary p { margin: 6px 0 0; }
.summary p:only-child { margin: 0; }
.summary ul { margin: 6px 0 0; }

/* ---------- footer ---------- */
.foot { margin-top: 72px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* 404 */
.missing { text-align: center; padding: 120px 0 60px; }
.missing h1 { font-size: 44px; letter-spacing: -0.03em; margin: 0 0 8px; }
.missing p { color: var(--muted); }

/* ---------- narrower screens ---------- */
@media (max-width: 980px) {
  .groups { grid-template-columns: repeat(3, 1fr); }
  .split { gap: 36px; }
}
@media (max-width: 820px) {
  section { padding-top: 72px; }
  .bento { grid-template-columns: 1fr; }
  .c4, .c3, .c2, .c6 { grid-column: auto; }
  .split { grid-template-columns: 1fr; }
  .split .device { order: 2; }
  .trio { grid-template-columns: 1fr; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .band { margin-top: 72px; padding: 64px 0; }
  .cta { margin-top: 72px; padding: 48px 22px; border-radius: 28px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .top { height: 58px; gap: 10px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 28px; height: 28px; border-radius: 7px; }
  .top nav { gap: 14px; font-size: 14px; }
  .top nav .wide-only { display: none; }
  .hero { padding-top: 52px; }
  .fan { height: 380px; margin-top: 28px; padding-top: 20px; }
  .fan .phone:nth-child(1), .fan .phone:nth-child(3) { translate: 0 -18px; }
  .phone { width: 180px; padding: 7px; border-radius: 32px; }
  .phone img { border-radius: 25px; }
  .phone::after { top: 14px; }
  .fan .phone { margin: 0 -34px; }
  .fan .phone:nth-child(2) { width: 200px; }
  .split .phone { width: 250px; padding: 9px; border-radius: 42px; }
  .split .phone img { border-radius: 33px; }
  .split .phone::after { top: 18px; }
  .card { padding: 24px 22px 0; }
  .card h3 { font-size: 22px; }
  .tablet { padding: 9px; border-radius: 24px; }
  .tablet img { border-radius: 15px; }
  .file { width: 76px; height: 98px; font-size: 15px; }
  .files { gap: 12px; }
}
