/* Zillament site — shared styles */

:root {
  --bg: #f7f7f2;
  --bg-elev: #ffffff;
  --bg-sunk: #eeeee6;
  --text: #1b1d16;
  --text-2: #565a4d;
  --text-3: #7c8072;
  --line: #e1e2d8;
  --accent: #4b5a23;
  --accent-strong: #3a461a;
  --accent-soft: #e6ebd4;
  --accent-on: #ffffff;
  --pos: #2f8a3e;
  --neg: #c4392f;
  --warn: #c7760f;
  --shadow: 0 1px 2px rgba(30, 35, 15, .06), 0 8px 24px rgba(30, 35, 15, .07);
  --radius: 22px;
  --maxw: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d0a;
    --bg-elev: #1a1b17;
    --bg-sunk: #131410;
    --text: #f2f3ec;
    --text-2: #b4b8a8;
    --text-3: #868a7c;
    --line: #2a2c25;
    --accent: #9db54a;
    --accent-strong: #b6cc63;
    --accent-soft: #262d14;
    --accent-on: #11140a;
    --pos: #4fd06a;
    --neg: #ff6b5e;
    --warn: #ff9f2e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c0d0a;
  --bg-elev: #1a1b17;
  --bg-sunk: #131410;
  --text: #f2f3ec;
  --text-2: #b4b8a8;
  --text-3: #868a7c;
  --line: #2a2c25;
  --accent: #9db54a;
  --accent-strong: #b6cc63;
  --accent-soft: #262d14;
  --accent-on: #11140a;
  --pos: #4fd06a;
  --neg: #ff6b5e;
  --warn: #ff9f2e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* Language switching: content is written in both languages, the inactive one is hidden. */
html[data-lang="es"] body [lang="en"],
html:not([data-lang="es"]) body [lang="es"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--bg-elev); padding: 8px 12px; border-radius: 10px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--text); }
.nav { display: none; gap: 24px; margin-left: 28px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
@media (min-width: 880px) { .nav { display: flex; } }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.seg {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--bg-sunk); border: 1px solid var(--line);
}
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--text-2);
  font: 600 13px/1 inherit; font-family: inherit; padding: 7px 11px; border-radius: 999px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--bg-elev); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.icon-btn {
  appearance: none; display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg-sunk); color: var(--text); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 13px 20px; border-radius: 14px; border: 1px solid transparent;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { color: var(--bg); opacity: .9; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--bg-elev); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); }
.btn svg { width: 22px; height: 22px; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.1; }
.btn .stack { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 24px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 auto 0; height: 620px; z-index: -1;
  background: radial-gradient(60% 55% at 70% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } .hero { padding: 80px 0 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 800; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
html[data-lang="es"] .hero h1 { font-size: clamp(34px, 5.6vw, 54px); }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--text-3); font-size: 14px; }
.hero-notes span { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes svg { width: 16px; height: 16px; color: var(--accent); }

.hero-phones { display: flex; justify-content: center; align-items: flex-start; max-width: 540px; margin: 0 auto; width: 100%; padding: 8px 0 24px; }
.hero-phones img { width: 52%; max-width: 280px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.28)); }
.hero-phones .p1 { order: 1; position: relative; z-index: 2; margin-right: -12%; }
.hero-phones .p2 { order: 2; margin-top: 56px; transform: rotate(4deg); opacity: .97; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 920px) { section { padding: 104px 0; } }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; margin-top: 10px; }
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 14px; }

.band { background: var(--bg-sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Trust strip */
.strip { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 820px) { .strip ul { grid-template-columns: repeat(4, 1fr); } }
.strip li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; }
.strip li span.ic { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.strip li svg { width: 20px; height: 20px; }
.strip small { display: block; color: var(--text-3); font-weight: 500; font-size: 13px; }

/* Feature rows */
.row { display: grid; gap: 36px; align-items: center; }
.row + .row { margin-top: 96px; }
@media (min-width: 920px) {
  .row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .row.flip .row-media { order: 2; }
}
.row-media { display: flex; justify-content: center; gap: 16px; position: relative; }
.row-media::before {
  content: ""; position: absolute; inset: 12% 6%; border-radius: 40px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent);
}
.row-media img { width: 46%; max-width: 260px; filter: drop-shadow(0 24px 34px rgba(0,0,0,.22)); }
.row-media img.single { width: 60%; max-width: 300px; }
.row-media img.offset { margin-top: 56px; }
.row-text h3 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; margin: 10px 0 14px; }
.row-text > p { color: var(--text-2); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--text); }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 999px; background: var(--accent-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d9432' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Cost breakdown visual */
.breakdown { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); width: 100%; max-width: 460px; }
.breakdown h4 { margin: 0; font-size: 15px; color: var(--text-2); font-weight: 600; }
.breakdown .total { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 18px; }
.breakdown .total small { font-size: 15px; font-weight: 600; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--bg-sunk); }
.bar span { display: block; height: 100%; }
.legend { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 15px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.legend b { font-variant-numeric: tabular-nums; font-weight: 600; }
.price-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.price-row span { color: var(--text-2); font-size: 15px; }
.price-row b { color: var(--pos); font-size: 22px; font-variant-numeric: tabular-nums; }
.c1 { background: #7d9432; } .c2 { background: #e0a526; } .c3 { background: #4f86d9; }
.c4 { background: #9b6bd6; } .c5 { background: #d9644f; } .c6 { background: #3fae9b; } .c7 { background: #8a8d80; }

/* Feature grid */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 15.5px; }

/* iCloud */
.sync { display: grid; gap: 36px; align-items: center; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 32px; padding: 36px 24px; box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 920px) { .sync { grid-template-columns: 1.1fr .9fr; padding: 56px; } }
.sync h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 10px 0 14px; }
.sync p { color: var(--text-2); font-size: 18px; }
.devices { position: relative; height: 230px; display: flex; align-items: center; justify-content: center; }
.devices svg.diagram { width: 100%; max-width: 400px; height: auto; color: var(--text-2); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 650; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); padding: 0 0 18px; }

/* CTA */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
.cta p { color: var(--text-2); font-size: 18px; margin: 14px auto 28px; max-width: 32em; }
.cta .hero-cta { justify-content: center; margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.legal .meta { color: var(--text-3); margin: 10px 0 30px; font-size: 15px; }
.legal .summary { background: var(--accent-soft); border-radius: 18px; padding: 20px 22px; margin-bottom: 36px; }
.legal .summary p { color: var(--text); }
.legal .summary ul { margin: 10px 0 0; padding-left: 20px; }
.legal h2 { font-size: 22px; font-weight: 750; margin: 38px 0 12px; letter-spacing: -0.012em; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); }
.toc { border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 8px; background: var(--bg-elev); }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2 220px; column-gap: 28px; }
.toc a { text-decoration: none; font-size: 15px; }
