/* Home, app and tools pages. Loaded after common.css. */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px;
  font-weight: 700; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--navy); box-shadow: 0 8px 24px rgba(255, 138, 31, .3); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); background: var(--surface); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 12px; }

/* Hero */
.hero { padding: 72px 0 96px; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint); color: var(--mint-ink);
  font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-ink); }
h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.05; font-weight: 800;
  letter-spacing: -0.03em; margin: 24px 0 20px;
}
h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: 15px; }
.hero-points span { display: flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--mint-ink); }

/* Phone */
.phone {
  position: relative; width: 100%; max-width: 320px; margin: 0 auto;
  border-radius: 48px; padding: 10px; background: var(--navy);
  box-shadow: 0 40px 80px -20px rgba(20, 30, 60, .35), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone > img, .phone > video { border-radius: 38px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; background: var(--bg); }
/* Full-length screen that scrolls inside the phone, with fixed status bar and tab bar */
.phone > .screen {
  position: relative; overflow: hidden; border-radius: 38px;
  aspect-ratio: 1170 / 2532; background: var(--bg);
}
.screen img { display: block; width: 100%; }
.screen .scroll-content { animation: screen-scroll 12s ease-in-out infinite; }
.screen .overlay { position: absolute; left: 0; pointer-events: none; }
.screen .overlay.status { top: 0; }
.screen .overlay.tabbar { bottom: 0; }
.phone:hover .scroll-content { animation-play-state: paused; }
/* (3202 - 2532) / 3202: how far the stitched image extends past one screen */
@keyframes screen-scroll {
  0%, 20% { transform: translateY(0); }
  45%, 75% { transform: translateY(-20.92%); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .screen .scroll-content { animation: none; transform: translateY(-20.92%); }
}
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% -5% 5%;
  background: radial-gradient(circle at 50% 40%, rgba(255,138,31,.25), transparent 65%);
  z-index: -1;
}

/* Sections */
section { padding: 96px 0; }
.eyebrow { font-weight: 700; color: var(--orange); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; margin: 12px 0 16px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
}
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15.5px; }
.card.feature-lg {
  grid-column: span 2; background: var(--navy); color: #fff; border: none;
  display: flex; flex-direction: column; justify-content: space-between;
}
.card.feature-lg p { color: #b8c0dc; max-width: 440px; }
.card.feature-lg h3 { font-size: 26px; }
.card.feature-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
.card.feature-wide .icon { flex: none; margin-bottom: 0; }
.card.feature-wide p { max-width: 620px; }
.new-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--mint); color: var(--mint-ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tag { display: inline-block; align-self: flex-start; margin-top: 24px; background: var(--orange); color: var(--navy); font-weight: 700; padding: 6px 14px; border-radius: 10px; font-size: 14px; }

/* Showcase */
.showcase { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.shot figcaption { text-align: center; margin-top: 20px; }
.shot figcaption strong { display: block; font-size: 17px; }
.shot figcaption span { color: var(--muted); font-size: 14.5px; }
.shots .phone { max-width: 250px; border-radius: 40px; padding: 8px; }
.shots .phone > img, .shots .phone > .screen { border-radius: 32px; }

/* Demo */
.demo .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.steps { list-style: none; margin-top: 32px; display: grid; gap: 18px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps .num {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: var(--orange-soft); color: var(--navy); font-weight: 800; display: grid; place-items: center;
}
.steps strong { display: block; font-size: 17px; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* Presets */
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.preset {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px; display: flex; gap: 16px; align-items: center;
}
.preset .icon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.preset strong { display: block; font-size: 16px; }
.preset span { color: var(--muted); font-size: 14px; }

/* Privacy */
.privacy-box {
  background: var(--navy); color: #fff; border-radius: 32px; padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.privacy-box h2 { color: #fff; }
.privacy-box p { color: #b8c0dc; font-size: 17.5px; }
.privacy-list { display: grid; gap: 14px; }
.privacy-list div {
  background: var(--navy-2); border-radius: 16px; padding: 18px 22px;
  display: flex; gap: 14px; align-items: center; font-weight: 600;
}
.privacy-list svg { color: var(--orange); flex: none; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 40px; }
.plan.pro { border: 2px solid var(--orange); position: relative; }
.plan.pro .badge {
  position: absolute; top: -14px; left: 40px; background: var(--orange); color: var(--navy);
  font-weight: 700; font-size: 13px; padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 20px; font-weight: 800; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 4px; }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan > p { color: var(--muted); }
.plan ul { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.plan li svg { color: var(--mint-ink); flex: none; }

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

/* CTA */
.final { text-align: center; padding: 40px 0 112px; }
.final p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 auto 32px; }

@media (max-width: 960px) {
  .hero .wrap, .demo .wrap, .privacy-box { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .demo .phone { order: -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .preset-grid { grid-template-columns: 1fr 1fr; }
  .privacy-box { padding: 40px 28px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .features, .preset-grid, .plans { grid-template-columns: 1fr; }
  .card.feature-lg { grid-column: auto; }
  .card.feature-wide { flex-direction: column; align-items: flex-start; gap: 22px; }
  .shots { grid-template-columns: 1fr; }
  .plan { padding: 32px 24px; }
}

/* Home: the two ways to use DocSlim */
.home-hero { padding: 64px 0 40px; text-align: center; }
.home-hero h1 { max-width: 860px; margin-left: auto; margin-right: auto; }
.home-hero .lead { max-width: 640px; margin: 0 auto; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; text-align: left; }
.choice {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px;
  display: flex; flex-direction: column;
}
.choice.dark { background: var(--navy); color: #fff; border: none; }
.choice h2 { font-size: 30px; margin: 16px 0 8px; }
.choice > p { color: var(--muted); font-size: 16.5px; }
.choice.dark > p { color: #b8c0dc; }
.choice ul { list-style: none; display: grid; gap: 10px; margin: 24px 0 32px; }
.choice li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15.5px; }
.choice li svg { flex: none; color: var(--mint-ink); }
.choice.dark li svg { color: var(--orange); }
.choice .actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.choice .text-link { font-weight: 700; color: var(--muted); padding: 0 6px; }
.choice.dark .text-link { color: #fff; }
.choice .text-link:hover { text-decoration: underline; }

/* Tool cards */
.tool-group + .tool-group { margin-top: 48px; }
.tool-group h3 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s;
}
.tool-card:hover { border-color: var(--orange); transform: translateY(-1px); }
.tool-card strong { font-size: 16.5px; }
.tool-card span { color: var(--muted); font-size: 14px; }
.tool-card .go { margin-top: 10px; color: #c25e00; font-weight: 700; font-size: 14px; }
.tool-card.locked { background: transparent; border-style: dashed; }
.tool-card.locked .go { color: var(--muted); }
.see-all { display: inline-block; margin-top: 28px; font-weight: 700; color: #c25e00; }

/* Online vs app table */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%; max-width: 860px; margin: 0 auto; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; font-size: 15.5px;
}
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg); font-size: 15px; vertical-align: bottom; }
.compare thead th small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 26%; }
.compare .yes { color: var(--mint-ink); font-weight: 800; }
.compare .no { color: #a3aac0; }
.compare .label { font-weight: 600; }

/* Page intro used on /app/ and /tools/ */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); margin: 16px 0 12px; }
.callout {
  background: var(--mint); color: var(--mint-ink); border-radius: 16px; padding: 14px 20px;
  font-weight: 600; margin-top: 28px; display: inline-block;
}
.callout a { color: var(--navy); text-decoration: underline; }

@media (max-width: 960px) {
  .choices { grid-template-columns: 1fr; }
  .tool-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .home-hero { padding: 40px 0 24px; }
  .choice { padding: 26px 22px; }
  .tool-cards { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 12px; font-size: 14px; }
}

/* Home: trust line and "Why DocSlim?" */
.hero-trust { justify-content: center; margin: 22px 0 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
