/* The 48 home-page designs gallery (public/home-pages/, scripts/home-pages/build.mjs). The Coral look of the home page:
   warm paper, ink type, one coral accent, a marker under the headline, cotton cards with a hairline. */
:root { --paper: #faf6f1; --paper-2: #f2ebe3; --cotton: #fffdfa; --ink: #2a221d; --soft: #5f554d; --line: #e6ddd2; --acc: #d8613f; --acc-ink: #a8432a; --hi: #f7d774;
  --cast: 0 1px 2px rgba(60, 40, 25, .08), 0 14px 30px -18px rgba(60, 40, 25, .35); color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 Rubik, system-ui, "Segoe UI", Arial, sans-serif; -webkit-text-size-adjust: 100%; }
/* Georgian (22.11.2026): Rubik has no Georgian letters, so on ka.html they come from Noto Sans Georgian (loaded by build.mjs) */
html[lang="ka"] body { font-family: Rubik, "Noto Sans Georgian", system-ui, "Segoe UI", Arial, sans-serif; }
a { color: var(--acc-ink); }
:focus-visible { outline: 3px solid var(--acc-ink); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed !important; inset-inline-start: 12px; top: 12px; width: auto; height: auto; clip: auto; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 99; }
.hp-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main:focus { outline: none; }

.hp-top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.hp-top .hp-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
/* the AutoWriter logo: the purple tile (public/brand/icon-growth.svg) + the name in Rubik ExtraBold, the brand's blue-violet */
.hp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; flex: none; }
.hp-brand img { display: block; width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(44, 47, 168, .7); }
.hp-brand > span:not(.sr) { display: grid; line-height: 1.1; }
.hp-brand b { font-weight: 800; font-size: 20px; letter-spacing: -.02em; background: linear-gradient(90deg, #2c2fa8, #4a3df0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp-brand small { font-size: 12.5px; color: var(--soft); font-weight: 500; }
.hp-top .hp-in { min-height: 68px; }
.hp-nav { display: flex; gap: 2px; margin-inline-start: 18px; margin-inline-end: auto; }
.hp-nav a, .hp-lang a { color: var(--soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.hp-nav a:hover, .hp-lang a:hover { color: var(--ink); background: var(--paper-2); }
.hp-top-end { display: flex; align-items: center; gap: 10px; flex: none; }
.hp-lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--cotton); }
.hp-lang a { min-height: 34px; padding: 4px 12px; }
.hp-lang a[aria-current] { background: var(--ink); color: var(--paper); }
/* the language menu as a drop-down (14.11.2026: he, en, ru, fr; a row of names pushed the header sideways on a phone) */
.hp-langs { position: relative; }
.hp-langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--cotton); color: var(--ink); font-weight: 500; white-space: nowrap; }
.hp-langs summary::-webkit-details-marker { display: none; }
.hp-langs summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); margin-inline-start: 2px; }
.hp-langs[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.hp-langs summary:hover { background: var(--paper-2); }
.hp-langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 160px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .35); z-index: 30; }
.hp-langs li a { display: flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.hp-langs li a:hover { background: var(--paper-2); }
.hp-langs li a[aria-current] { background: var(--ink); color: var(--paper); }
.hp-cta { background: var(--acc-ink); white-space: nowrap; }
.hp-cta:hover { background: #8a3520; }
.ic { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .ic { transform: scaleX(-1); }
.hp-link .ic { margin-inline-start: 5px; }

.hp-hero { padding: 56px 0 28px; background-image: radial-gradient(60% 520px at 100% 0%, #f7dccf88, transparent 70%), radial-gradient(50% 480px at 0% 30%, #d9efea88, transparent 70%); }
.hp-kick { margin: 0 0 10px; color: var(--acc-ink); font-weight: 600; letter-spacing: .02em; }
.hp-hero h1 { margin: 0; font-size: clamp(32px, 5.4vw, 60px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; max-width: 900px; }
.hl { background: linear-gradient(transparent 58%, var(--hi) 58%) no-repeat; background-size: 100% 100%; padding: 0 4px; }
.hp-sub { font-size: clamp(17px, 2vw, 20px); color: var(--soft); max-width: 720px; margin: 18px 0 0; }
.hp-steps { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hp-steps li { display: inline-flex; align-items: center; gap: 10px; background: var(--cotton); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 8px; font-weight: 500; box-shadow: var(--cast); }
[dir="rtl"] .hp-steps li { padding: 8px 8px 8px 16px; }
.hp-steps b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 14px; }

.hp-list { padding: 18px 0 40px; }
.hp-tools { position: sticky; top: 68px; z-index: 10; background: var(--paper); padding: 12px 0; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.hp-search input { font: inherit; width: min(100%, 420px); border: 1px solid #cfc3b6; background: var(--cotton); color: var(--ink); border-radius: 12px; padding: 10px 14px; min-height: 44px; }
.hp-count { color: var(--soft); margin: 14px 0 0; font-size: 15px; }
.hp-cat-h { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 34px 0 14px; }
.hp-cat-h small { color: var(--soft); font-weight: 400; font-size: 17px; }
.hp-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hp-card { background: var(--cotton); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--cast); display: flex; flex-direction: column; }
.hp-card[hidden], .hp-cat[hidden] { display: none; }
.hp-shot { position: relative; display: block; background: var(--paper-2); aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.hp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hp-shot .hp-ph { position: absolute; bottom: 10px; inset-inline-end: 12px; width: 22%; height: auto; aspect-ratio: 1 / 2; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); background: #fff; }
.hp-shot:hover img:first-child, .hp-shot:focus-visible img:first-child { transform: scale(1.03); }
.hp-meta { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; align-content: start; }
.hp-meta h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.hp-meta h3 small { display: block; font-size: 14.5px; font-weight: 500; color: var(--soft); letter-spacing: 0; margin-top: 1px; }
.hp-meta p { margin: 0; color: var(--soft); font-size: 15px; }
.hp-meta .hp-ex { font-size: 14px; }
.hp-meta .hp-ex b { color: var(--ink); font-weight: 600; }
.hp-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.hp-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; border-radius: 12px; padding: 9px 16px; min-height: 44px; }
.hp-btn:hover { background: #000; }
.hp-btn.big { background: var(--acc-ink); padding: 12px 24px; font-size: 17px; }
.hp-link { color: var(--acc-ink); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.hp-none { text-align: center; color: var(--soft); padding: 40px 0; }

.hp-end { padding: 10px 0 56px; }
.hp-end .hp-in { background: var(--paper-2); border: 1px solid var(--line); border-radius: 24px; padding: 36px 24px; text-align: center; }
.hp-end h2 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; }
.hp-end p { margin: 0 0 18px; color: var(--soft); }

.hp-foot { border-top: 1px solid var(--line); padding: 22px 0 30px; }
.hp-foot .hp-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.hp-foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.hp-foot nav a { color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.hp-foot small { color: var(--soft); flex-basis: 100%; }
.hp-foot small a { color: inherit; }

.hp-dlg { width: min(1240px, 96vw); height: min(900px, 94vh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 18px; background: var(--paper-2); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); overflow: hidden; }
.hp-dlg[open] { display: flex; flex-direction: column; }
.hp-dlg::backdrop { background: rgba(30, 22, 16, .62); }
.hp-dlg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--cotton); }
.hp-dlg-bar b { font-size: 18px; margin-inline-end: auto; display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.hp-dlg-bar b small { font-size: 14px; font-weight: 500; color: var(--soft); }
.hp-full { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; border-radius: 12px; padding: 8px 14px; min-height: 44px; white-space: nowrap; }
.hp-full:hover { background: #000; }
.hp-dev { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.hp-dev button { font: inherit; font-weight: 500; border: 0; background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer; }
.hp-dev button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.hp-x { font: inherit; font-size: 18px; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; cursor: pointer; }
.hp-frame { flex: 1; display: grid; place-items: center; overflow: auto; padding: 0; min-height: 0; }
.hp-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.hp-dlg.phone .hp-frame { padding: 14px; }
.hp-dlg.phone .hp-frame iframe { width: 390px; max-width: 100%; height: min(780px, 100%); border: 10px solid var(--ink); border-radius: 30px; }

@media (max-width: 1000px) { .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Russian and French: the menu words are longer, so the in-page menu goes earlier; on a phone the language menu shows its globe only */
@media (max-width: 640px) { .hp-langs summary { padding: 4px 10px; } .hp-langs summary > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 640px) {
  .hp-top .hp-in { min-height: 60px; }
  .hp-lang { border: 0; padding: 0; background: none; }
  .hp-lang a[aria-current] { display: none; }
  .hp-cta { min-height: 40px; padding: 7px 12px; font-size: 15px; }
  .hp-full { padding: 8px 12px; }
  .hp-grid { grid-template-columns: minmax(0, 1fr); }
  .hp-hero { padding: 32px 0 18px; }
  .hp-tools { position: static; }
  .hp-dlg { width: 100vw; height: 100dvh; border-radius: 0; }
  .hp-dev { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hp-shot img { transition: none; } }
@media (max-width: 1240px) { .hp-end .hp-in { margin-inline: 16px; } }
.hp-foot small bdi { white-space: nowrap; }
/* "Want a full site in this design?": a line in every card, and a strip under the preview frame */
.hp-meta .hp-ready-l { font-size: 14px; color: var(--ink); margin-top: 6px; padding: 7px 10px; background: #fff3dc; border-radius: 10px; }
.hp-ready-l a, .hp-dlg-ready a { font-weight: 700; color: var(--acc-ink); white-space: nowrap; }
.hp-dlg-ready { margin: 0; padding: 9px 14px; text-align: center; background: #fff3dc; border-top: 1px solid var(--line); font-size: 15px; }
.hp-dlg-ready a { display: inline-flex; min-height: 32px; align-items: center; }
/* the footer by-line: "מבית / by" + the AutoWriter logo, to AutoWriter's home page */
.hp-by { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); text-decoration: none; font-weight: 500; min-height: 44px; }
.hp-by img { display: block; width: 30px; height: 30px; border-radius: 8px; }
.hp-by b { font-weight: 800; font-size: 18px; letter-spacing: -.02em; background: linear-gradient(90deg, #2c2fa8, #4a3df0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp-by:hover span:not(.sr) { color: var(--ink); text-decoration: underline; }

/* 15.11.2026, the owner: "a menu in the style of our home page, every button in tabs with a coloured dividing line".
   1) the top menu of our product pages (calculators/product-homes.mjs NAV_CSS), in this page's Coral colours:
      logo + name, home icon, the sections, "more products" ▾ (and "all our products" under it), language, sign-in, start;
      a three-line menu when the row doesn't fit (≤980px, or earlier when the words are long: html.nv-tight, home-pages.js) */
.nv-home { color: var(--ink); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; flex: none; }
.nv-home:hover { background: var(--paper-2); }
.nv-home .ic, .nv-burger .ic { width: 22px; height: 22px; transform: none; }
.nv-links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; margin-inline-start: 6px; }
.nv-links > a, .nv-dd > summary { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; padding: 8px 10px; border-radius: 10px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.nv-links > a:hover, .nv-dd > summary:hover { color: var(--acc-ink); background: var(--paper-2); }
.nv-dd { position: relative; }
.nv-dd > summary, .nv-sub > summary, .nv-burger > summary { list-style: none; }
.nv-dd > summary::-webkit-details-marker, .nv-sub > summary::-webkit-details-marker, .nv-burger > summary::-webkit-details-marker { display: none; }
.nv-dd summary i, .nv-sub summary i { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #f7e3da; align-items: center; justify-content: center; color: var(--acc-ink); font-style: normal; }
.nv-chev { width: 14px !important; height: 14px !important; transform: none !important; transition: transform .15s; }
.nv-dd[open] > summary .nv-chev, .nv-sub[open] > summary .nv-chev { transform: rotate(180deg) !important; }
.nv-dd > div { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; background: var(--cotton); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px -12px rgba(60, 40, 25, .35); padding: 8px; min-width: 220px; display: grid; gap: 2px; z-index: 40; }
.nv-dd > div > a, .nv-burger > div > a { padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.nv-dd > div > a:hover, .nv-burger > div > a:hover, .nv-fam .nv-pr:hover { background: var(--paper-2); }
.nv-pr { display: flex; align-items: center; gap: 10px; }
.nv-pr img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.nv-pr bdi { font-weight: 800; color: var(--pc); }
.nv-hr { display: block; height: 1px; background: var(--line); margin: 6px 4px; }
.nv-sub > summary { cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 9px; color: var(--acc-ink); font-weight: 700; font-size: 14px; min-height: 44px; }
.nv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 14px; padding: 4px 6px 8px; }
.nv-fam { display: grid; gap: 1px; align-content: start; padding: 6px 0; }
.nv-fam b { font-size: 12px; color: var(--soft); font-weight: 700; padding: 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 3px; }
.nv-fam .nv-pr { padding: 6px 8px; border-radius: 8px; text-decoration: none; font-size: 14px; min-height: 40px; }
.nv-fam .nv-pr img { width: 26px; height: 26px; }
.nv-dd > div:has(.nv-sub[open]) { position: fixed; top: 74px; left: 50%; right: auto; transform: translateX(-50%); width: min(940px, 94vw); max-height: calc(100vh - 96px); overflow: auto; }
.nv-act { display: flex; align-items: center; gap: 10px; flex: none; }
.nv-login { border: 1.5px solid var(--ink); border-radius: 12px; padding: 8px 16px; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nv-login:hover { background: var(--paper-2); }
.nv-burger { display: none; position: relative; }
.nv-burger > summary { cursor: pointer; display: grid; gap: 4px; place-content: center; width: 44px; height: 44px; border-radius: 10px; }
.nv-burger > summary:hover { background: var(--paper-2); }
.nv-burger > summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nv-burger > div { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--cotton); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px -12px rgba(60, 40, 25, .35); padding: 8px; width: min(320px, calc(100vw - 24px)); display: grid; gap: 2px; z-index: 40; max-height: 80vh; overflow: auto; }
.nv-burger .nv-grid { grid-template-columns: 1fr; }
.nv-sep { display: block; padding: 10px 12px 2px; font-size: 12px; color: var(--soft); font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; }
html.nv-tight .nv-links, html.nv-tight .nv-home, html.nv-tight .nv-login { display: none !important; }
html.nv-tight .nv-burger { display: block !important; }
@media (max-width: 980px) { .nv-links, .nv-home, .nv-login { display: none; } .nv-burger { display: block; } }
@media (max-width: 440px) { .hp-brand > span:not(.sr) { display: none; } .hp-cta { padding: 7px 10px; font-size: 14px; } .nv-act { gap: 6px; } }

/* 2) the field filters as tabs: square, a hairline between them, each with its own colour (a colour bar and a dot when
      off, filled when on), they wrap to the next line and never scroll sideways (the owner's standing rule) */
.hp-cats { display: flex; flex-wrap: wrap; gap: 0; padding: 0 1px 1px 0; }
.hp-cats button { --tc: var(--ink); flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  border: 1px solid var(--line); border-top: 3px solid var(--tc); margin: 0 0 -1px -1px; border-radius: 0; background: var(--cotton); color: var(--ink); padding: 9px 14px; min-height: 46px; cursor: pointer; white-space: nowrap; }
.hp-cats button::before { content: ""; width: 9px; height: 9px; background: var(--tc); flex: none; }
.hp-cats button small { color: var(--soft); font-weight: 500; font-size: 13px; background: var(--paper-2); padding: 1px 7px; min-width: 24px; text-align: center; }
.hp-cats button:hover { background: color-mix(in srgb, var(--tc) 9%, var(--cotton)); }
.hp-cats button[aria-selected="true"] { background: var(--tc); color: #fff; border-color: var(--tc); position: relative; z-index: 1; }
.hp-cats button[aria-selected="true"]::before { background: #fff; }
.hp-cats button[aria-selected="true"] small { color: var(--tc); background: #fff; }
.hp-cats button:focus-visible { outline: 3px solid var(--acc-ink); outline-offset: 2px; z-index: 2; }
@media (max-width: 640px) { .hp-cats button { flex: 1 1 40%; white-space: normal; font-size: 14px; padding: 8px 10px; } }
@media (forced-colors: active) { .hp-cats button[aria-selected="true"] { outline: 3px solid CanvasText; } }
