/* Home page; builds on /chrome.css (colors, top bar, footer). */
/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(0, 229, 255, .22), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(0, 230, 118, .16), transparent 60%),
    linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: #b9f6ff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #00e676; box-shadow: 0 0 0 4px rgba(0, 230, 118, .2); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; margin: 20px 0 16px; font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, #00e676, #00e5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 650; text-decoration: none; font-size: 1rem; }
.btn-light { background: #fff; color: #0b192c; }
.btn-light:hover { background: #e8f1ff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.play { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .85); font-size: .9rem; margin-top: 22px; }
.play svg { flex: none; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .82); font-size: .93rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 16px; height: 16px; flex: none; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e676' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* Hero visual: one PDF fanning out into other formats */
.stage { position: relative; height: 400px; }
@media (max-width: 900px) { .stage { height: 330px; max-width: 420px; margin: 0 auto; width: 100%; } }
.doc {
  position: absolute; width: 150px; height: 190px; border-radius: 14px; background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35); padding: 18px 16px; color: #0b192c;
  transition: transform .4s ease;
}
.doc::after { content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px; border-bottom-left-radius: 10px; background: var(--c); opacity: .9; }
.doc b { display: inline-block; font-size: .72rem; letter-spacing: .06em; color: #fff; background: var(--c); padding: 3px 8px; border-radius: 6px; margin-bottom: 14px; }
.doc i { display: block; height: 8px; border-radius: 4px; background: #d5dce8; margin: 8px 0; }
.doc i:nth-of-type(2) { width: 80%; } .doc i:nth-of-type(3) { width: 62%; } .doc i:nth-of-type(4) { width: 74%; }
.doc.grid i { height: 14px; background: linear-gradient(90deg, #cfe8d1 0 32%, transparent 32% 34%, #e3ece4 34% 66%, transparent 66% 68%, #e3ece4 68%); }
.doc.slide i:first-of-type { height: 54px; background: linear-gradient(135deg, #ffd0b3, #ffe9dc); }
.doc.src { --c: var(--pdf); left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1.12); z-index: 3; }
.doc.d1 { --c: var(--doc); left: 2%; top: 4%; transform: rotate(-10deg); }
.doc.d2 { --c: var(--xls); right: 2%; top: 2%; transform: rotate(9deg); }
.doc.d3 { --c: var(--ppt); left: 4%; bottom: 0; transform: rotate(7deg); }
.doc.d4 { --c: var(--img); right: 4%; bottom: 2%; transform: rotate(-8deg); }
.doc.d4 i:first-of-type { height: 76px; background: linear-gradient(160deg, #b39ddb 0 40%, #7e57c2 40% 60%, #ce93d8 60%); }
@media (max-width: 900px) { .doc { width: 120px; height: 152px; padding: 14px 12px; } .doc.d4 i:first-of-type { height: 56px; } }
.stage:hover .d1 { transform: rotate(-14deg) translate(-6px, -6px); }
.stage:hover .d2 { transform: rotate(13deg) translate(6px, -6px); }
.stage:hover .d3 { transform: rotate(11deg) translate(-6px, 6px); }
.stage:hover .d4 { transform: rotate(-12deg) translate(6px, 6px); }
.ring { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(0, 229, 255, .35); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } .doc { transition: none; } }

/* Sections */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin: 0 0 40px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* Format chips */
.formats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.formats li { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 600; box-shadow: var(--shadow); }
.formats li small { color: var(--muted); font-weight: 500; }
.tag { display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--c); color: #fff; font-size: .7rem; letter-spacing: .05em; font-weight: 700; }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature h3 { margin: 16px 0 6px; font-size: 1.12rem; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); }
.icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.icon svg { width: 24px; height: 24px; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.checks li::before { content: ""; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f52ba' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fb2ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); } }
.checks strong { display: block; }
.checks span { color: var(--muted); }

/* PDF toolbox tiles */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 480px) { .tools { grid-template-columns: repeat(2, 1fr); } }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-weight: 600; font-size: .95rem; }
.tool svg { width: 22px; height: 22px; color: var(--pdf); }

/* Scan modes */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mode { border-radius: 14px; padding: 18px; color: #fff; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(150deg, var(--a), var(--b)); }
.mode strong { font-size: 1.05rem; }
.mode span { font-size: .88rem; opacity: .85; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filters span { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: .88rem; color: var(--muted); }

/* Languages */
.scripts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.scripts span { display: inline-flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 120px; }
.scripts b { font-size: 1.3rem; line-height: 1.2; }
.scripts small { color: var(--muted); }

/* Privacy band */
.privacy-band { color: #fff; background: linear-gradient(135deg, var(--hero-1), #0d3b8a 60%, #0b5f74); }
.privacy-band .sub { color: rgba(255, 255, 255, .78); }
.privacy-band .kicker { color: #7ff3ff; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 22px; }
.pcard h3 { margin: 0 0 6px; font-size: 1.05rem; }
.pcard p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .95rem; }
.privacy-band .fine { color: rgba(255, 255, 255, .7); font-size: .92rem; margin: 28px 0 0; }
.privacy-band a { color: #9fe9ff; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); }

/* Cloud row */
.clouds { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.clouds span { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-weight: 600; }
.clouds svg { width: 22px; height: 22px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 10px 0 0; }


/* Web tools (links into /tools/, which asks for sign-in first) */
.webtools-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.webtools-head .sub { margin-bottom: 0; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.webtools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .webtools { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .webtools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .webtools { grid-template-columns: 1fr; } }
.wtool {
  display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; color: var(--fg); text-decoration: none; box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease;
}
.wtool:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.wtool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wtool .icon { flex: none; width: 42px; height: 42px; border-radius: 12px; }
.wtool .icon svg { width: 22px; height: 22px; }
.wtool strong { display: block; font-size: 1rem; line-height: 1.3; }
.wtool small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; margin-top: 3px; }
.signin-note { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .92rem; margin: 22px 0 0; }
.signin-note svg { flex: none; width: 18px; height: 18px; color: var(--accent); }

/* Tools grouped in the order they are used */
.tool-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.tool-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-weight: 650; text-decoration: none; }
.tool-jump a:hover { border-color: var(--accent); }
.tool-jump a:focus-visible, .chips a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-jump .num, .tool-group header .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; flex: none; }
.tool-jump small { color: var(--muted); font-weight: 600; }
.tool-group { margin: 0 0 36px; padding: 0; scroll-margin-top: 84px; }
.tool-group header { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tool-group header .num { width: 36px; height: 36px; font-size: 1rem; }
.tool-group header h3 { margin: 0; font-size: 1.35rem; }
.tool-group header p { margin: 2px 0 0; color: var(--muted); }
.tool-group.popular header { display: block; border-bottom: 0; padding-bottom: 0; }
.tool-section { margin: 0 0 22px; }
.tool-section h4 { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.explore { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .explore { grid-template-columns: 1fr; gap: 36px; } }
.explore h2 { margin: 0 0 10px; }
.explore .sub { margin-bottom: 18px; }
.explore .sub.small { font-size: .95rem; margin: 14px 0 0; }
.explore .sub.small a { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-weight: 600; text-decoration: none; }
.chips a:hover { border-color: var(--accent); }
.chips a small { color: var(--muted); }
.chips a.more { background: var(--accent); border-color: var(--accent); color: #fff; }
.new-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #00c853; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.added-on { color: var(--accent); font-weight: 650; }
.new-arrivals header p a { color: var(--accent); font-weight: 650; }
