/* ZonoSoft website. Type: Archivo (headings, set wide like timetable signage) + Atkinson Hyperlegible (body — the apps' own face). */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 700;
  src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }

:root {
  --ground: #e9eeeb;      /* the desk the rota sheet sits on */
  --paper: #ffffff;
  --ink: #18211f;
  --muted: #55625e;
  --line: #cfd8d4;
  --teal: #0d6660;        /* the apps' accent */
  --teal-deep: #0a4a46;
  --teal-soft: #d5e7e3;
  --marker: #f6e27a;      /* highlighter on a printed rota */
  --hol: #d6e6f7; --hol-ink: #1d4a80;
  --sick: #f8d7d3; --sick-ink: #8a2a1c;
  --off: #eef1ef;
  --radius: 10px;
  --wide: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--wide); font-stretch: 112%; letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 105%; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.small { font-size: 0.92rem; color: var(--muted); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(233, 238, 235, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--wide); font-stretch: 115%; font-weight: 800; font-size: 1.2rem; }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 700 1rem var(--body); color: var(--ink); }
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .site-nav .btn { margin: 12px 24px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--teal); background: var(--teal); color: #fff; font: 700 1.02rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn.quiet { background: transparent; color: var(--teal-deep); }
.btn.quiet:hover { background: var(--teal-soft); color: var(--teal-deep); }
.btn.small-btn { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* ---------- Hero: the printed rota ---------- */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 40px; } }

.sheet { background: var(--paper); border-radius: 4px; padding: 22px 22px 18px; transform: rotate(-1.4deg); box-shadow: 0 1px 0 rgba(24, 33, 31, 0.08), 0 22px 40px -18px rgba(24, 33, 31, 0.35); position: relative; animation: sheet-in 0.9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) rotate(-4deg); } to { opacity: 1; transform: rotate(-1.4deg); } }
.sheet::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; margin-left: -60px; background: rgba(246, 226, 122, 0.55); transform: rotate(2deg); }  /* tape */
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sheet-head strong { font-family: var(--wide); font-stretch: 110%; font-size: 1.05rem; }
.sheet-head span { color: var(--muted); font-size: 0.82rem; }
.rota { width: 100%; border-collapse: collapse; font-size: 0.78rem; font-variant-numeric: tabular-nums; table-layout: fixed; }
.rota th, .rota td { border: 1px solid var(--line); padding: 5px 3px; text-align: center; white-space: nowrap; overflow: hidden; line-height: 1.25; }
.rota td span { display: block; }
.rota td span + span { color: var(--muted); }
.rota th { background: #f4f7f5; font-weight: 700; }
.rota th:first-child, .rota td:first-child { text-align: left; width: 26%; padding-left: 8px; font-weight: 700; }
.rota td.off { color: var(--muted); background: var(--off); }
.rota td.hol { background: var(--hol); color: var(--hol-ink); font-weight: 700; }
.rota td.sick { background: var(--sick); color: var(--sick-ink); font-weight: 700; }
.rota td.mark { background: linear-gradient(transparent 22%, var(--marker) 22%, var(--marker) 82%, transparent 82%); font-weight: 700; }
.rota tfoot td { font-weight: 700; background: #f4f7f5; }
.sheet-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
@media (max-width: 520px) { .rota .hide-sm { display: none; } .sheet { padding: 16px 12px; } .rota th:first-child, .rota td:first-child { width: 34%; } }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 720px; margin-bottom: 44px; }

/* A week with Zono: a real sequence, Monday to payday */
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px; }
.week > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.week > li:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.week > li:nth-child(even) .shot { order: -1; }
.day { display: inline-block; font-family: var(--wide); font-stretch: 120%; font-weight: 800; font-size: 0.95rem; color: var(--teal-deep); background: var(--teal-soft); border-radius: 6px; padding: 3px 10px; margin-bottom: 14px; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.shot.phone { max-width: 300px; justify-self: center; border-radius: 28px; border: 8px solid var(--ink); }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
@media (max-width: 860px) { .week > li, .week > li:nth-child(even) { grid-template-columns: 1fr; gap: 24px; } .week > li:nth-child(even) .shot { order: 0; } }

/* Everything else, as a plain list in columns (not cards) */
.facts { columns: 3 260px; column-gap: 40px; }
.facts div { break-inside: avoid; padding: 0 0 24px; }
.facts h3 { margin-bottom: 0.3em; }
.facts p { color: var(--muted); margin: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.price-box { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 28px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; border: 0; padding: 0; }
.plans legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.plans label { display: block; border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.plans input { position: absolute; opacity: 0; }
.plans input:checked + span { color: var(--teal-deep); }
.plans label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.plans label:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.plans strong { display: block; font-family: var(--wide); font-stretch: 110%; }
.seats { display: flex; align-items: center; gap: 12px; margin: 6px 0 22px; }
.seats button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); font: 700 1.3rem var(--body); color: var(--ink); cursor: pointer; }
.seats button:hover { border-color: var(--teal); }
.seats output { font-family: var(--wide); font-stretch: 115%; font-weight: 800; font-size: 1.6rem; min-width: 2.5ch; text-align: center; font-variant-numeric: tabular-nums; }
.total { font-family: var(--wide); font-stretch: 112%; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.total small { font-size: 1rem; font-weight: 700; color: var(--muted); font-stretch: 100%; }

/* ---------- Downloads ---------- */
.dl-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.dl-table th, .dl-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dl-table th { font-size: 0.9rem; color: var(--muted); background: #f4f7f5; }
.dl-table tr:last-child td { border-bottom: 0; }
.dl-table .hash { font-size: 0.78rem; color: var(--muted); word-break: break-all; }
@media (max-width: 680px) {
  .dl-table thead { display: none; }
  .dl-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .dl-table td { display: block; border: 0; padding: 6px 16px; }
}
.steps { padding-left: 1.3em; }
.steps li { margin: 8px 0; max-width: 64ch; }
.notice { background: #fff8d6; border-left: 4px solid #c9a500; padding: 14px 18px; border-radius: 6px; max-width: 72ch; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 32px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 700 1.4rem var(--body); color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--teal-deep); }
.faq details p { color: var(--muted); }

/* ---------- Legal pages ---------- */
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); max-width: 860px; }
.doc h2 { font-size: 1.4rem; margin-top: 1.6em; }
.doc li { margin: 6px 0; max-width: 70ch; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #d9e2df; padding: 48px 0; }
.site-foot a { color: #fff; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-foot h2 { font-size: 1rem; color: #fff; font-stretch: 105%; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 6px 0; }
@media (max-width: 900px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .wrap { grid-template-columns: 1fr; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- Product bar (Zono Workforce pages) ---------- */
.product-bar { background: var(--teal-deep); color: #fff; }
.product-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; min-height: 46px; }
.product-bar a { color: #d8ece8; text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 10px 0; }
.product-bar a:hover, .product-bar a[aria-current="page"] { color: #fff; text-decoration: underline; }
.product-bar .product-name { color: #fff; font-family: var(--wide); font-stretch: 115%; font-weight: 800; font-size: 1rem; margin-right: 10px; }

/* ---------- Company home ---------- */
.company-hero .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
.company-hero h1 { max-width: 14ch; }
.pledges { margin: 8px 0 0; display: grid; gap: 0; border-left: 4px solid var(--teal); }
.pledges div { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); }
.pledges div:last-child { border-bottom: 0; }
.pledges dt { font-family: var(--wide); font-stretch: 110%; font-weight: 800; font-size: 1.1rem; }
.pledges dd { margin: 4px 0 0; color: var(--muted); }

.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; padding: 8px 0 48px; }
.product + .product { border-top: 1px solid var(--line); padding-top: 48px; }
.product h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 4px; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 a:hover { color: var(--teal); text-decoration: underline; }
.product-tag { color: var(--teal-deep); font-weight: 700; margin-bottom: 14px; }
.product-shot { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.product-small { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.phone-shot { max-width: 200px; border-radius: 22px; border: 6px solid var(--ink); justify-self: center; max-height: 300px; }
.more-soon { color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; margin: 0; max-width: none; }
@media (max-width: 860px) { .product, .product-small { grid-template-columns: 1fr; gap: 24px; } }

.account-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.account-band .actions { margin: 0; }
.account-band h2 { max-width: 20ch; }

.narrow-page { max-width: 780px; }
.narrow-page h2 { font-size: 1.5rem; margin-top: 40px; }
.contact-email { font-family: var(--wide); font-stretch: 112%; font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.2rem); }

/* ---------- Forms (create account) ---------- */
.register-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .register-grid { grid-template-columns: 1fr; gap: 32px; } }
.form-box { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 32px); }
.form-box label { display: block; font-weight: 700; margin: 16px 0 6px; }
.form-box label:first-child { margin-top: 0; }
.form-box input, .form-box select { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.form-box input:focus, .form-box select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.form-box input[aria-invalid="true"] { border-color: var(--sick-ink); }
.phone-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
@media (max-width: 480px) { .phone-row { grid-template-columns: 1fr; } }
.hint { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; }
.form-box .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 22px; }
.form-box .check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.form-error { background: var(--sick); color: var(--sick-ink); border-radius: 8px; padding: 12px 14px; font-weight: 700; margin: 18px 0 0; }
.form-box .btn { margin-top: 22px; width: 100%; }
