/* Amanat Backup website. Colours follow the program (personal_backup/ui/theme.py). */
:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-line: #bfdbfe;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card: #ffffff;
  --navy: #0f172a;
  --ok: #15803d;
  --warn-bg: #fffbeb;
  --warn-line: #fcd34d;
  --warn-ink: #78350f;
  --whatsapp: #128c4a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-soft: #172554;
    --accent-line: #1e3a8a;
    --ink: #f1f5f9;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: #334155;
    --bg: #0b1220;
    --bg-alt: #0f172a;
    --card: #111a2e;
    --warn-bg: #2a1d05;
    --warn-line: #92400e;
    --warn-ink: #fde68a;
    --whatsapp: #16a34a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-size: .9em; }
code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 5px; padding: .05em .35em; }
pre { background: var(--navy); color: #e2e8f0; padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .4em; background: var(--card); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 6px; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 1.1rem; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.site-nav a:not(.btn):hover { background: var(--bg-alt); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent); font-weight: 600; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .btn { margin-top: 8px; justify-content: center; }
}

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.3; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.08); color: #fff; }
.btn-big { padding: 14px 24px; font-size: 1.08rem; }
.btn-small { padding: 7px 14px; font-size: .95rem; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ hero & sections */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
.center-row { justify-content: center; }
.dl-meta { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.hero-shot img, .shot img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 36px; } }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin-top: 0; }
.section-title.left { text-align: left; }
.section-lead { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 28px; font-size: 1.08rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; }
.feature-ico { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--accent-soft); fill: none;
  stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split-reverse > :first-child { order: 0; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.2em; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.steps.compact > li { padding-bottom: 10px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding: 0 0 8px 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }

.price-teaser { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 8px 0 24px; }
.pt { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 28px; min-width: 240px;
  display: flex; flex-direction: column; align-items: center; }
.pt-name { font-weight: 600; color: var(--muted); }
.pt-amount { font-size: 2rem; font-weight: 700; color: var(--ink); }
.pt-unit { color: var(--muted); font-size: .9rem; }
.cta { background: linear-gradient(135deg, var(--accent), #1e40af); color: #fff; }
.cta .section-title, .cta .section-lead, .cta .dl-meta { color: #fff; }
.cta .section-lead, .cta .dl-meta { opacity: .9; }
.cta .btn-primary { background: #fff; color: #1e40af; }
.cta .btn-primary:hover { background: #eff6ff; color: #1e3a8a; }

/* ------------------------------------------------------------ inner pages */
.page-head { padding: 52px 0 28px; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.page-head .lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.page-head .narrow .lead { margin-left: 0; }
.page-icon { margin: 0 auto 16px; border-radius: 18px; }
.page-head .btn { margin-top: 12px; }
.section > .narrow > h2:first-child { margin-top: 0; }

.facts { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.facts th { width: 30%; color: var(--muted); font-weight: 600; }
.hash { word-break: break-all; font-size: .82rem; }
.copy { margin-left: 6px; font: inherit; font-size: .85rem; padding: 2px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; }
@media (max-width: 600px) {
  .facts th, .facts td { display: block; width: 100%; }
  .facts th { border-bottom: 0; padding-bottom: 0; }
}

.callout { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.callout.warn strong { color: inherit; }
details.it { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--card); }
details.it summary { cursor: pointer; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; position: relative; }
.plan h2 { margin: 0 0 4px; font-size: 1.2rem; }
.plan .ticks { flex: 1; margin-top: 12px; }
.plan .btn { align-self: flex-start; }
.plan-price { font-size: 1.9rem; font-weight: 700; color: var(--ink); margin: 6px 0 0; }
.plan-unit { color: var(--muted); font-size: .9rem; margin: 0; }
.plan-main { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 3px 10px; border-radius: 99px; margin: 0; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; margin-top: 36px; }
.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { background: var(--bg-alt); }
.compare tbody th { color: var(--muted); font-weight: 600; }

.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.faq dt { font-weight: 600; color: var(--ink); margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--text); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h2 { margin-top: 0; font-size: 1.35rem; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.contact-list dt { color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 0; }

.prose h2 { font-size: 1.35rem; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 48px 0 24px; margin-top: 0; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #94a3b8; }
.brand-footer, .brand-footer:hover { color: #fff; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-title { color: #fff; font-size: .95rem; margin: 6px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #1e293b;
  margin-top: 32px; padding-top: 20px; font-size: .88rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }
