/* DroidFile — landing page styles
   Palette and type taken from the App Store screenshots:
   diagonal lime → green gradient, warm near-black bold headlines. */

:root {
  --lime: #a7f43d;
  --green-1: #5fe05f;
  --green-2: #45d96b;
  --green-3: #1eb06a;
  --ink: #211812;
  --ink-soft: #4a4039;
  --paper: #f5fbf2;
  --surface: #ffffff;
  --line: rgba(33, 24, 18, 0.10);
  --muted: #6b625b;
  --accent: #1a9a5c;
  --hero-gradient: linear-gradient(225deg, var(--lime) 0%, #84ea4d 22%, var(--green-2) 55%, var(--green-3) 100%);
  --radius: 22px;
  --shadow: 0 30px 60px -20px rgba(16, 60, 30, 0.35), 0 12px 24px -12px rgba(16, 60, 30, 0.25);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1711;
    --surface: #16221a;
    --ink-page: #eef7ea;
    --line: rgba(238, 247, 234, 0.10);
    --muted: #a8b7a6;
    --accent: #6fe08a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink-page, var(--ink));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50;
}
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(33, 24, 18, 0.08);
  color-scheme: light;
}
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 22%; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .8; color: var(--ink); }
.nav-links a:hover { opacity: 1; }

.lang-switch {
  margin-left: 6px;
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(33, 24, 18, 0.10);
}
.lang-switch button {
  border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--ink); opacity: .7;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff !important; opacity: 1; }

.nav .btn-store { padding: 9px 16px; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 17px;
  box-shadow: 0 10px 24px -10px rgba(33, 24, 18, .6);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-store:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(33, 24, 18, .7); }
.btn-store svg { width: 20px; height: 20px; flex: none; }
.btn-store .two-line { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store .two-line small { font-size: 11px; font-weight: 600; opacity: .8; letter-spacing: .01em; }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-gradient);
  color: var(--ink);
  overflow: hidden;
  margin-top: -65px; padding-top: 65px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center;
  padding: 72px 0 88px;
}
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .02em;
  background: rgba(255,255,255,.55); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 18px;
}
.hero h1 .white { color: #0d5f37; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero-cta .price { font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.6);
}
.chips li::before { content: "✓"; margin-right: 6px; font-weight: 800; color: var(--green-3); }
.hero-shot { position: relative; }
.hero-shot img {
  /* macOS window capture: it already has its own rounded corners and shadow. */
  width: 100%;
  transform: perspective(1600px) rotateY(-8deg) rotateX(2deg);
  transform-origin: center;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  cursor: zoom-in;
}
.hero-shot img:hover { transform: perspective(1600px) rotateY(0deg) rotateX(0deg) scale(1.2); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.kicker {
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px; }
h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 6px; font-weight: 750; }
.section-head p { font-size: 19px; color: var(--muted); margin: 0; }

/* Folders */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start; font-size: 18px; font-weight: 600;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.check-list li span.ic {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lime), var(--green-2)); color: var(--ink); font-size: 15px;
}
.note { color: var(--muted); font-size: 17px; }
.shot-card img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Integrity */
.band-ink { background: var(--ink); color: #f4efe9; }
.band-ink .kicker { color: var(--lime); }
.band-ink .section-head p { color: #c9bfb6; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px; padding: 24px;
}
.card .num {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); font-weight: 800; margin-bottom: 14px;
}
.card p { margin: 0; color: #d8cfc7; font-size: 16.5px; }
.card strong { color: #fff; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 64px 20px 22px; font-size: 18px; font-weight: 650;
}
.steps li::before {
  content: counter(s); position: absolute; top: 18px; left: 20px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hero-gradient); color: var(--ink); font-weight: 800; font-size: 16px;
}
.steps li small { display: block; font-weight: 500; color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 18px; box-shadow: 0 18px 40px -22px rgba(16,60,30,.5); width: 100%; height: auto; aspect-ratio: 16 / 10; }
.gallery figcaption { margin-top: 10px; font-weight: 650; color: var(--muted); font-size: 15px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.pillar .badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--lime), var(--green-3));
}
.pillar .badge svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* Developers */
.dev {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px;
}
.dev code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; background: var(--line); padding: 2px 6px; border-radius: 6px; }
.dev .term {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; line-height: 1.6;
  background: var(--ink); color: #c9f59a; border-radius: 14px; padding: 18px 20px; min-width: 260px;
}
.dev .term span { color: #8d8178; }
.dev p { margin: 0 0 8px; color: var(--muted); font-size: 17px; }

/* Final CTA */
.cta-band { background: var(--hero-gradient); color: var(--ink); text-align: center; padding: 88px 0; }
.cta-band .app-icon { width: 112px; height: 112px; border-radius: 22%; margin: 0 auto 22px; box-shadow: 0 16px 34px -12px rgba(0,0,0,.35); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { font-size: 19px; color: var(--ink-soft); margin: 0 auto 28px; max-width: 34em; }

/* Footer */
.site-footer { padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { text-decoration: none; font-weight: 600; color: var(--ink-page, var(--ink)); }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 6px 0; max-width: 70em; }
.site-footer .made-by { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; max-width: none; }
.site-footer .made-by a { color: var(--accent); text-decoration: none; }
.site-footer .made-by a:hover { text-decoration: underline; }

/* ---------- Privacy page ---------- */
.page-hero { background: var(--hero-gradient); color: var(--ink); padding: 120px 0 56px; margin-top: -65px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 10px; font-weight: 800; }
.page-hero p { margin: 0; font-weight: 600; color: var(--ink-soft); }
.legal { max-width: 760px; padding: 56px 0 24px; }
.legal .summary {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--green-2);
  border-radius: 14px; padding: 18px 20px; font-size: 18px; font-weight: 600; margin-bottom: 36px;
}
.legal h2 { font-size: 24px; letter-spacing: -0.015em; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 17px; color: var(--ink-page, var(--ink)); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { padding: 48px 0 64px; }
  .hero-shot img { transform: none; }
  .hero-shot img:hover { transform: scale(1.05); }
  .cards, .pillars { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .lang-switch { margin-left: auto; }
  
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .cards, .pillars, .steps, .gallery { grid-template-columns: 1fr; }
  .dev { grid-template-columns: 1fr; padding: 22px; }
  .dev .term { min-width: 0; }
  .nav { gap: 10px; }
  .nav .btn-store { display: none; }
  .brand span { display: none; }
  .btn-store { width: 100%; justify-content: center; }
  .check-list li { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-store { transition: none; }
  .hero-shot img { transition: none; }
}

/* Official Mac App Store badge (Apple marketing artwork, used unmodified). */
.store-badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .15s ease, filter .15s ease; }
.store-badge img { width: auto; height: 100%; }
.store-badge:hover { transform: translateY(-1px); filter: drop-shadow(0 10px 18px rgba(33, 24, 18, .35)); }
.store-badge:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.badge-nav { height: 40px; }
.badge-lg { height: 56px; }
@media (max-width: 640px) {
  .badge-nav { display: none; }
  .badge-lg { height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .store-badge { transition: none; } }

/* ---------- Language links (each language is its own URL) ---------- */
.lang-switch a {
  text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1;
  padding: 7px 12px; border-radius: 999px; color: var(--ink); opacity: .7;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; opacity: 1; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px;
}
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 500; color: var(--accent);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 18px; color: var(--muted); font-size: 17px; }
.faq-list details a { color: var(--accent); }

/* ---------- Comparison page ---------- */
.page-hero .crumb { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink-soft); }
.page-hero .page-lead { font-size: 19px; font-weight: 500; max-width: 40em; margin-top: 8px; }
.compare { max-width: 900px; }
.table-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th { font-size: 15px; font-weight: 800; background: color-mix(in srgb, var(--green-2) 14%, transparent); }
.cmp-table thead th:nth-child(2) { color: var(--accent); }
.cmp-table tbody th { font-weight: 700; width: 30%; }
.cmp-table td.yes::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.fineprint { font-size: 14px !important; color: var(--muted) !important; margin-top: 12px; }
@media (max-width: 640px) {
  .cmp-table { min-width: 0; font-size: 14px; }
  .cmp-table th, .cmp-table td { padding: 10px 10px; }
  .cmp-table tbody th { width: 34%; }
}
