/* Local Photo Backup - site styles. Colours follow the app icon. */
:root {
  --blue-700: #1747a6;
  --blue-600: #1e5aa8;
  --blue-400: #4c9bff;
  --green-600: #0f8a43;
  --green-500: #2fcb6e;
  --sun: #ffb900;

  --bg: #f7f9fc;
  --bg-alt: #eef3fa;
  --surface: #ffffff;
  --text: #13213a;
  --muted: #55627a;
  --border: #dbe3ef;
  --accent: var(--blue-600);
  --accent-text: #ffffff;
  --device: #26354f;
  --shadow: 0 1px 2px rgba(19, 33, 58, .06), 0 8px 24px rgba(19, 33, 58, .08);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1524;
    --bg-alt: #111c2f;
    --surface: #16233a;
    --text: #e7eefb;
    --muted: #9fb0cc;
    --border: #253655;
    --accent: #6aadff;
    --accent-text: #0b1830;
    --device: #3a4d70;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: .88em;
  padding: .1em .35em;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  word-break: break-word;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.35em;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 90, 168, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30, 90, 168, .42); }
.btn-ghost { color: var(--accent); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: .45em 1em; font-size: .92rem; background: var(--accent); color: var(--accent-text); }

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(900px 400px at 85% 10%, color-mix(in srgb, var(--blue-400) 22%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--green-500) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8em; }
.accent { background: linear-gradient(135deg, var(--blue-400), var(--green-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 .8em; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(23, 71, 166, .2)); }
.art-device { fill: var(--device); }
.art-link { fill: none; stroke: var(--green-500); stroke-width: 4; stroke-dasharray: 8 8; stroke-linecap: round; animation: flow 1.2s linear infinite; }
.art-pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes pulse { 0%, 100% { opacity: .2; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .art-link, .art-pulse { animation: none; } html { scroll-behavior: auto; } }

/* ---- Sections ---- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section h2 { text-align: center; margin-bottom: 1.2em; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  color: #fff; font-weight: 750;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature p { color: var(--muted); margin: 0; }
.feature-icon { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-alt); margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.split h2 { text-align: left; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.fingerprint { text-align: center; }
.fp-label { font-weight: 650; }
.fp-value { font-family: "Cascadia Code", Consolas, monospace; font-size: 1.25rem; letter-spacing: .06em; padding: 18px; border-radius: 12px; background: var(--bg-alt); border: 1px dashed var(--border); }
.fp-note { color: var(--muted); font-size: .9rem; margin: 0; }

.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.download { display: flex; gap: 20px; align-items: flex-start; }
.download img { border-radius: 14px; flex: none; }
.download p:not(.meta) { color: var(--muted); }
.android-badge { flex: none; width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3ddc84, #1f9e5a); }
.soon { display: inline-block; padding: .45em 1em; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted); font-weight: 650; font-size: .92rem; }

details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style-position: outside; }
details p { color: var(--muted); }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 14px; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer p { margin: 0; }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .downloads { grid-template-columns: 1fr; }
  .nav { display: none; }
  .topbar-inner .btn { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  .download { flex-direction: column; }
  .card { padding: 22px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
}
