/* Docufolo website — shared styles. Dark brand look matching the app and App Store screenshots. */
:root {
  --bg: #0b0a26;
  --bg-2: #15134a;
  --bg-3: #2b2572;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.5);
  --indigo: #5b6cff;
  --violet: #9a6bff;
  --iridescent: linear-gradient(100deg, #9aabff 0%, #bc93ff 55%, #ffa6c6 100%);
  --brand: linear-gradient(135deg, #5b6cff, #9a6bff);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  font-family: ui-rounded, -apple-system, "SF Pro Rounded", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Fixed background layer (background-attachment: fixed is not supported on iOS Safari). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(140, 123, 255, 0.45), transparent 70%),
    radial-gradient(700px 500px at 100% 10%, rgba(255, 143, 184, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 45%, var(--bg) 100%);
}
a { color: #b9a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 10, 38, 0.55); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--text-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 17px; color: #fff; background: var(--brand);
  box-shadow: 0 10px 30px rgba(91, 108, 255, 0.35); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: rgba(255, 255, 255, 0.08); box-shadow: none; border: 1px solid var(--card-border); }
.badge-soon { display: inline-flex; flex-direction: column; line-height: 1.15; }
.badge-soon small { font-size: 11px; font-weight: 600; opacity: 0.8; letter-spacing: 0.04em; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 26px;
  box-shadow: 0 20px 50px rgba(91, 108, 255, 0.45); }
.eyebrow { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 800;
  letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.92); background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16); margin-bottom: 18px; }
.nowrap { white-space: nowrap; }
/* Keep highlighted phrases ("go paperless", "Fair to upgrade.") on one line. */
h1 .grad, h2 .grad { white-space: nowrap; }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 900; }
.grad { background: var(--iridescent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 680px; margin: 0 auto 30px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 32px; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2);
  background: var(--card); border: 1px solid var(--card-border); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Screenshot gallery */
.gallery { margin: 56px 0 24px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 18px; overflow-x: auto; padding: 6px 20px 22px; scroll-snap-type: x mandatory; }
.gallery img { border-radius: 24px; scroll-snap-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.gallery { scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
/* Wide screens: all six screenshots in one row, no scrolling. */
@media (min-width: 1200px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible;
    width: min(1240px, 100% - 40px); margin-inline: auto; padding-inline: 0; }
}

/* Sections */
section { padding: 64px 0; }
h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 14px; font-weight: 900; text-align: center; }
.sub { color: var(--text-2); text-align: center; max-width: 640px; margin: 0 auto 40px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand);
  font-size: 22px; box-shadow: 0 8px 20px rgba(91, 108, 255, 0.35); }

/* Privacy band */
.band { background: var(--card); border: 1px solid var(--card-border); border-radius: 28px; padding: 44px 28px; text-align: center; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin-top: 18px; font-weight: 600; }
.checks span::before { content: "✓"; margin-right: 8px; background: var(--iridescent); -webkit-background-clip: text;
  background-clip: text; color: transparent; font-weight: 900; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan { position: relative; }
.plan.best { border: 2px solid transparent; background:
  linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--iridescent) border-box; }
.plan .tag { position: absolute; top: -12px; right: 18px; font-size: 11px; font-weight: 900; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 999px; background: var(--iridescent); color: #1b1640; }
.plan .name { font-weight: 800; font-size: 18px; }
.plan .note { color: var(--text-3); font-size: 14px; margin-top: 8px; }

/* Legal / long-form pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); text-align: left; }
.doc h2 { text-align: left; font-size: 24px; margin: 38px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc .meta { color: var(--text-3); margin-bottom: 30px; }
.doc .summary { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.doc .summary p { margin: 0; color: var(--text); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; color: var(--text); }
details p { margin: 10px 0 0; color: var(--text-2); }

/* Footer */
footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 34px 0 48px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav .wrap { height: 56px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }

  .hero { padding: 36px 0 8px; }
  .hero .icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 18px; }
  .eyebrow { font-size: 11px; padding: 6px 12px; margin-bottom: 14px; }
  h1 { font-size: clamp(32px, 9.4vw, 38px); line-height: 1.08; }
  .lead { font-size: 16.5px; margin-bottom: 20px; }
  .chips { gap: 6px; margin-bottom: 24px; }
  .chip { font-size: 12.5px; padding: 6px 10px; }
  .chip.hide-sm { display: none; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-row .btn { justify-content: center; }

  /* Screenshot carousel: one and a bit cards, swipeable, edge to edge */
  .gallery { margin: 32px 0 0; grid-auto-columns: 64vw; gap: 12px; padding: 4px 16px 18px;
    scroll-padding-inline: 16px; }
  .gallery img { border-radius: 18px; }

  section { padding: 40px 0; }
  h2 { font-size: 28px; }
  .sub { font-size: 15.5px; margin-bottom: 24px; }

  /* Features as compact rows: icon left, text right */
  .grid { gap: 10px; }
  .card { padding: 16px; border-radius: 18px; }
  #features .card { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: start; }
  #features .card .ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; }
  #features .card h3 { margin: 0 0 2px; font-size: 16.5px; }
  #features .card p { font-size: 14.5px; }

  .band { padding: 30px 18px; border-radius: 22px; }
  .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; text-align: left;
    max-width: 320px; margin: 18px auto 0; font-size: 15px; }

  .plans { gap: 14px; }
  .plan .tag { right: 14px; }

  .doc { padding: 32px 0 56px; }
  .doc h2 { font-size: 21px; margin-top: 30px; }
  details { padding: 14px 16px; }

  footer { padding: 26px 0 36px; }
  footer .wrap { flex-direction: column-reverse; align-items: flex-start; }
}

/* Respect notches and the home indicator */
@supports (padding: max(0px)) {
  footer { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
}

/* Six feature cards: 3 + 3 on wide screens. */
@media (min-width: 900px) { #features .grid { grid-template-columns: repeat(3, 1fr); } }
