/* DocEdit's landing page. Brand colours from the app; light and dark follow the system. */
:root {
  --bg: #f4f8f8;
  --surface: #ffffff;
  --text: #11242a;
  --muted: #4a5f66;
  --line: #dbe6e8;
  --accent: #00806f;
  --accent-soft: #e2f4f0;
  --brand-from: #00a38f;
  --brand-to: #00637a;
  --pdf: #d93025;
  --doc: #1a73e8;
  --xls: #188038;
  --ppt: #e8710a;
  --txt: #5f6368;
  --scan: #0b8f7f;
  --ai: #7c4dff;
  --shadow: 0 18px 40px rgba(10, 45, 50, 0.18), 0 2px 8px rgba(10, 45, 50, 0.08);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c181b;
    --surface: #13252a;
    --text: #e6f0f1;
    --muted: #a5b8bc;
    --line: #23383d;
    --accent: #4fd1bd;
    --accent-soft: #15332e;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 19px; }
main { overflow-x: clip; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--text); }
@media (max-width: 720px) { .top nav { display: none; } .top .btn-small { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font-weight: 650; text-decoration: none; font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 15px; background: var(--accent); color: #fff; }
.btn-play { background: #111; color: #fff; padding: 10px 24px 10px 18px; box-shadow: var(--shadow); }
.btn-play span { display: flex; flex-direction: column; line-height: 1.1; font-size: 19px; text-align: left; }
.btn-play small { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.btn-ghost { color: var(--text); border: 1.5px solid var(--line); background: var(--surface); }
@media (prefers-color-scheme: dark) { .btn-play { background: #fff; color: #111; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: 64px max(16px, calc((100% - 1120px) / 2)) 40px;
  background:
    radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--brand-from) 22%, transparent), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, color-mix(in srgb, var(--ai) 12%, transparent), transparent 70%);
}
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(40px, 6.5vw, 68px); letter-spacing: -0.02em; }
.hero h1 span { background: linear-gradient(120deg, var(--brand-from), var(--brand-to) 60%, var(--ai)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; }

.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 230px; }
.hero-phones .front { left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; width: 250px; }
.hero-phones .back-left { left: 2%; top: 70px; transform: rotate(-7deg); z-index: 1; opacity: 0.95; }
.hero-phones .back-right { right: 2%; top: 70px; transform: rotate(7deg); z-index: 2; opacity: 0.95; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 180px; }
  .hero-phones .front { width: 200px; }
}
@media (max-width: 480px) {
  .hero-phones { height: 380px; }
  .hero-phones .phone { width: 150px; }
  .hero-phones .front { width: 175px; }
  .hero-phones .back-left { left: -4%; }
  .hero-phones .back-right { right: -4%; }
}

/* Phone frame */
.phone {
  margin: 0; border-radius: 30px; padding: 8px;
  background: #0f1416; box-shadow: var(--shadow);
}
.phone img { border-radius: 23px; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; background: #fff; }

/* Formats strip */
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 8px 16px 48px; }
.fmt { font-weight: 700; font-size: 15px; color: #fff; padding: 8px 16px; border-radius: 12px; }
.fmt.pdf { background: var(--pdf); } .fmt.doc { background: var(--doc); } .fmt.xls { background: var(--xls); }
.fmt.ppt { background: var(--ppt); } .fmt.txt { background: var(--txt); } .fmt.scan { background: var(--scan); }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px max(16px, calc((100% - 1080px) / 2));
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse .shot, .feature.reverse .ai-card { order: 2; }
.shot { display: flex; justify-content: center; align-items: flex-start; }
.shot .phone { width: min(280px, 70vw); }
.shot.pair { gap: 18px; }
.shot.pair .phone { width: min(230px, 42vw); }
.shot.pair .offset { margin-top: 64px; }
.copy p { color: var(--muted); font-size: 18px; }
.tag { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; margin-bottom: 14px; color: #fff; }
.tag.pdf { background: var(--pdf); } .tag.doc { background: var(--doc); } .tag.xls { background: var(--xls); }
.tag.ppt { background: var(--ppt); } .tag.scan { background: var(--scan); } .tag.ai { background: var(--ai); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300806f' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .feature.reverse .shot, .feature.reverse .ai-card { order: 0; }
}

/* AI conversation card */
.ai-card {
  background: linear-gradient(160deg, color-mix(in srgb, var(--ai) 16%, var(--surface)), var(--surface));
  border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; max-width: 440px; justify-self: center; width: 100%;
}
.bubble { padding: 12px 16px; border-radius: 18px; max-width: 88%; font-size: 16px; }
.bubble.q { align-self: flex-end; background: var(--ai); color: #fff; border-bottom-right-radius: 6px; }
.bubble.a { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cite { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ai); }

/* Privacy */
.privacy, .pricing, .languages, .faq, .trust, .final { padding: 64px max(16px, calc((100% - 1080px) / 2)); }
.privacy { background: linear-gradient(160deg, var(--brand-from), var(--brand-to)); color: #fff; }
.privacy h2, .privacy .section-lead { text-align: center; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 auto 32px; max-width: 46ch; }
.privacy .section-lead { color: rgba(255, 255, 255, 0.88); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards article { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius); padding: 20px; }
.cards p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 15px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.pill.green { background: #c9f2e3; color: #0b5d46; }
.pill.amber { background: #ffe9b3; color: #6b4a00; }
.privacy .more { text-align: center; margin: 28px 0 0; }
.privacy .more a { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Trust row */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.trust p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* Pricing */
.pricing h2 { text-align: center; }
.pricing .section-lead { text-align: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.plan .price { font-size: 26px; font-weight: 750; margin: 0 0 8px; }
.plan.premium { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #f5b400, var(--ai)) border-box; }
.plan.premium .price { color: var(--ai); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* Languages */
.languages { text-align: center; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.langs { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 auto; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.faq h2 { text-align: center; margin-bottom: 24px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

/* Final call to action */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.final img { border-radius: 18px; box-shadow: var(--shadow); }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 16px 40px; border-top: 1px solid var(--line); }
footer p { margin: 6px 0; }
