/* ==========================================================================
   aridesk — document pages (accessibility, terms) and the tools page (downloads)
   Loaded AFTER css/home.css, which carries the tokens, chrome, hero ground,
   bands, glass, CTA block and the reveal motion. Generated pages:
   node scripts/build-static-pages.mjs
   ========================================================================== */

/* a crumb above the title (shared with the service pages' css, repeated here
   because those pages load css/service.css and these do not) */
.svc-crumb {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 22px; padding: 8px 14px 8px 12px; border-radius: 999px;
    background: var(--surface); color: var(--muted); font-size: 0.9375rem; font-weight: 500;
    transition: color var(--dur-fast), background-color var(--dur-fast);
}
a.svc-crumb:hover { color: var(--accent-text); background: var(--accent-soft); }
.svc-crumb svg { transform: scaleX(-1); }
.svc-crumb--static { padding-inline: 14px; }

/* --------------------------------------------------------------------------
   Document pages
   -------------------------------------------------------------------------- */
.doc-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.doc-hero .hero__content { max-width: 860px; }
.doc-hero .hero__title { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); }
.doc__date { margin-top: 18px; font-size: var(--step-small); color: var(--muted); font-weight: 500; }

.doc { padding: 0 0 var(--section); }
.doc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.doc__body {
    background: var(--card); border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 56px);
    box-shadow: var(--shadow-card); /* taste-skill-ignore: owner's design language */
    font-size: var(--step-body); line-height: 1.75;
}
.doc__body > p { margin: 0 0 18px; color: var(--muted); }
.doc__body > p strong { color: var(--ink); }
.doc__body h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: 40px 0 14px; scroll-margin-top: 104px; }
.doc__body h2::before { content: ''; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--accent); margin-bottom: 14px; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body ul { margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.doc__body ul li { position: relative; padding-inline-start: 28px; color: var(--muted); }
.doc__body ul li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); } /* taste-skill-ignore: owner's design language */
.doc__body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.doc__body a:hover { color: var(--accent); }

.doc__body .contact-box { background: var(--surface); border-radius: 20px; padding: 24px 26px; margin: 24px 0 8px; display: grid; gap: 12px; }
.doc__body .contact-box h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 4px; }
.doc__body .contact-item { display: flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 500; }
.doc__body .contact-item a { color: var(--ink); text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.doc__body .contact-item a:hover { color: var(--accent-text); }
.doc__body .contact-item__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.doc__body .contact-item__icon svg { width: 20px; height: 20px; }

.doc__toc { position: sticky; top: 104px; background: var(--surface); border-radius: 20px; padding: 22px 22px 18px; }
.doc__toc-title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 12px; }
.doc__toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.doc__toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); line-height: 1.35; transition: background-color var(--dur-fast), color var(--dur-fast); }
.doc__toc a:hover { background: var(--accent-soft); color: var(--accent-text); }

/* --------------------------------------------------------------------------
   Tools page: IP + speed test in the band, download cards below
   -------------------------------------------------------------------------- */
.tools-hero { padding-bottom: 0; }
.tools-hero .hero__content { max-width: 820px; padding-bottom: clamp(56px, 7vw, 96px); }
.tools { padding: 0 0 var(--section); margin-top: calc(var(--curve) * -0.25); }
.tools__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.tool-card { padding: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; color: var(--band-ink); }
.tool-card__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; }
.tool-card__icon svg { width: 30px; height: 30px; }
.tool-card__icon--ip { background: var(--accent); box-shadow: var(--shadow-glow); } /* taste-skill-ignore: owner's design language */
.tool-card__icon--speed { background: #0ea5e9; box-shadow: 0 4px 40px rgba(14, 165, 233, 0.35); } /* taste-skill-ignore: owner's design language */
.ip-card__label { display: block; font-size: var(--step-small); font-weight: 600; color: var(--band-muted); letter-spacing: 0.02em; margin-bottom: 6px; }
.ip-card__value { display: block; font-size: 1.75rem; font-weight: 700; direction: ltr; text-align: start; unicode-bidi: isolate; letter-spacing: 0.02em; user-select: all; word-break: break-all; font-variant-numeric: tabular-nums; }
.ip-card__value.loading, .ip-card__value.error { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; direction: rtl; user-select: auto; color: var(--band-muted); }
.ip-card__value.error { color: #fda4af; }
.ip-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ip-meta-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 13px; color: var(--band-ink); }
.ip-meta-pill svg { width: 15px; height: 15px; color: var(--band-muted); }
.ip-meta-pill .flag { width: 22px; height: auto; border-radius: 2px; }
.ip-copy-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: #fff; color: #0b1340; font-weight: 700; font-size: 0.9375rem; transition: transform var(--dur-fast), background-color var(--dur-fast); }
.ip-copy-btn svg { width: 18px; height: 18px; }
.ip-copy-btn:hover { transform: translateY(-1px); }
.ip-copy-btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.ip-copy-btn.copied { background: #4ade80; }

.speedtest-card__title { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.speedtest-card__desc { margin: 6px 0 0; color: var(--band-muted); font-size: 0.9375rem; line-height: 1.55; }
.speedtest-card__powered { display: block; margin-top: 8px; font-size: 13px; color: var(--band-muted); }
.speedtest-card__powered strong { color: var(--band-ink); }
.speedtest-start-btn { align-self: center; }
.speedtest-card .needle { transform-origin: 12px 16px; animation: hv2-needle 3.5s ease-in-out infinite; }
@keyframes hv2-needle { 0%, 100% { transform: rotate(-40deg); } 50% { transform: rotate(35deg); } }
/* active: the card takes the whole row and shows the test */
.speedtest-frame-header, .speedtest-frame-wrap { display: none; }
.speedtest-card.is-active { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.speedtest-card.is-active .speedtest-idle { display: none; }
.speedtest-card.is-active .speedtest-frame-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.speedtest-card.is-active .speedtest-frame-wrap { display: block; }
.speedtest-frame-header__title { font-size: 0.9375rem; color: var(--band-muted); }
.speedtest-frame-header__title strong { color: var(--band-ink); }
.speedtest-close-btn { border-color: rgba(255, 255, 255, 0.5); color: var(--band-ink); min-height: 40px; }
.speedtest-close-btn:hover { background: #fff; color: #0b1340; }
.speedtest-frame-wrap { border-radius: 16px; overflow: hidden; background: #f5f5f7; }
.speedtest-frame-wrap iframe { display: block; width: 100%; height: 540px; border: 0; background: #fff; }

.downloads-section { padding: var(--section) 0 0; }
.downloads__head { margin-bottom: 40px; }
.downloads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.downloads-grid.loading { display: flex; justify-content: center; padding: 64px 0; color: var(--muted); }
.downloads-grid.loading::after { content: 'טוען תוכנות...'; font-size: 1.0625rem; }
.download-card {
    display: grid; gap: 12px; align-content: start;
    padding: 26px 24px 24px; border-radius: var(--radius-lg); background: var(--card);
    box-shadow: var(--shadow-chip); /* taste-skill-ignore: owner's design language */
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); } /* taste-skill-ignore: owner's design language */
.download-card__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--card-icon-bg, var(--accent)); color: #fff; }
.download-card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-card__name { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin: 4px 0 0; }
.download-card__desc { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.download-card__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 20px; margin-top: 8px; border-radius: 12px;
    background: var(--card-accent, var(--accent-fill)); color: #fff; font-weight: 700; font-size: 0.9375rem; text-align: center;
    transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast);
}
.download-card__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.download-card__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .doc__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .doc__toc { position: static; order: -1; }
    .doc__toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
    .doc__toc a { background: var(--card); padding: 7px 12px; font-size: 0.875rem; }
    .tools__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .tool-card { grid-template-columns: auto minmax(0, 1fr); }
    .tool-card .ip-copy-btn, .tool-card .speedtest-start-btn { grid-column: 1 / -1; justify-self: start; }
    .speedtest-frame-wrap iframe { height: 460px; }
    .downloads-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .doc-hero .hero__title { font-size: 2rem; }
    .doc__body { padding: 22px 18px; }
    .doc__body h2 { font-size: 1.3rem; }
    .tool-card { padding: 20px; gap: 16px; }
    .tool-card__icon { width: 52px; height: 52px; border-radius: 14px; }
    .ip-card__value { font-size: 1.375rem; }
    .speedtest-frame-wrap iframe { height: 420px; }
}

/* A plain section on a navy band, for pages scaffolded by scripts/new-page.mjs */
.page-band { padding: calc(var(--section) * 0.6) 0 var(--section); }

/* ---- 121.co.il landing (downloads-121.html): how remote support works + FAQ ---- */
.how { padding: var(--section) 0 0; }
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.how__more { margin-top: 18px; font-weight: 600; }
.how__more a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.how__steps { list-style: none; margin: 0; padding: 28px; display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.how__step { display: flex; gap: 16px; align-items: flex-start; }
.how__num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 999px; background: var(--accent-fill); color: #fff; font-weight: 700; display: grid; place-items: center; }
.how__title { font-size: 1.125rem; font-weight: 700; margin: 4px 0 6px; }
.how__desc { color: var(--muted); line-height: 1.6; }
.faq { padding: var(--section) 0 0; }
.faq__list { display: grid; gap: 12px; max-width: 820px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 22px; }
.faq__question { cursor: pointer; padding: 18px 0; font-size: 1.0625rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--accent-text); flex-shrink: 0; }
.faq__item[open] .faq__question::after { content: '−'; }
.faq__answer { padding: 0 0 20px; color: var(--muted); line-height: 1.7; }
@media (max-width: 768px) {
    .how__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .how__steps { padding: 22px; }
}
