/* Timesheet Master – timesheetmaster.co.uk. Colours from gigaworks.co.uk. No web fonts, no trackers. */
:root {
  --ink: #32251f;        /* GigaWorks dark brown */
  --ink-2: #251b17;
  --accent: #E8752A;     /* GigaWorks orange */
  --accent-dark: #a7440a;
  --muted: #6c625d;
  --line: #ddd1ca;
  --bg: #faf8f5;
  --sand: #f5f1eb;
  --white: #fff;
  --radius: 14px;
  --head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; }
h2 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.eyebrow { font: 700 14px/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 8px; font: 700 17px/1 var(--body);
       text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #d4641c; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.on-dark .btn-ghost { color: var(--white); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Top bar + header (GigaWorks style) */
.topbar { background: var(--ink); color: #eee; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 22px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #eee; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
header.site { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 246, .96); backdrop-filter: blur(8px);
              border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 400 23px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; white-space: nowrap; }
.logo img { width: 38px; height: 38px; }
.logo b { font-weight: 700; }
nav.main { display: flex; align-items: center; gap: 24px; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
nav.main a:hover { color: var(--accent-dark); }
nav.main .btn { padding: 11px 18px; font-size: 15px; color: var(--white); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; flex-shrink: 0; }
.menu-btn span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px;
        background: radial-gradient(1000px 500px at 85% 10%, #f8e3d3 0, transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero .ticks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 8px; font-weight: 700; }
.hero .ticks li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 12px; transform: translateY(-2px); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.small-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.devices { position: relative; min-height: 470px; }
.screen { border-radius: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--line);
          box-shadow: 0 30px 60px -20px rgba(50, 37, 31, .35); }
.browser { position: absolute; right: 0; top: 10px; width: 92%; }
.browser::before { content: ""; display: block; height: 26px; background: #eee8e3 radial-gradient(circle at 16px 13px, #e86f5a 5px, transparent 6px),
                   radial-gradient(circle at 34px 13px, #e8b04b 5px, transparent 6px) #eee8e3; border-bottom: 1px solid var(--line); }
.phone { border-radius: 34px; padding: 9px; background: #17191D; box-shadow: 0 30px 60px -18px rgba(23, 25, 29, .55); }
.phone img { border-radius: 26px; }
.devices .phone { position: absolute; left: 0; bottom: 0; width: 210px; }

/* Strip */
.strip { background: var(--ink); color: #eee; }
.strip ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; font: 700 16px var(--head); letter-spacing: .04em; }
.strip li::before { content: "✓"; color: var(--accent); margin-right: 8px; }

/* Sections */
section.block { padding: 90px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--ink); color: #f1ebe6; }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark .lead, section.dark p { color: #d8cbc4; }
.center { text-align: center; }
.center .lead { margin: 0 auto 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: #fbe6d7; color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 26px; height: 26px; }
.pain .card { background: var(--sand); }
.pain .card h3 { font-size: 19px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 80px; }
.feature:first-of-type { margin-top: 50px; }
.feature.flip .text { order: 2; }
.feature ul { padding-left: 20px; margin: 0; }
.feature li { margin: 6px 0; }
.feature .shots { display: flex; gap: 18px; justify-content: center; align-items: flex-end; }
.feature .shots .phone { width: 220px; }
.feature .shots .phone:nth-child(2) { width: 190px; margin-bottom: 30px; }
.tag { display: inline-block; font: 700 13px var(--head); letter-spacing: .1em; text-transform: uppercase; background: #fbe6d7; color: var(--accent-dark); padding: 5px 10px; border-radius: 6px; margin-bottom: 12px; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
                background: var(--accent); color: var(--white); font: 800 20px var(--head); margin-bottom: 14px; }
.step p { margin: 0; font-size: 16px; }

/* Video */
.video-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; margin-top: 30px; }
.video-box video { width: 100%; border-radius: var(--radius); background: #000; box-shadow: 0 30px 60px -24px rgba(50,37,31,.45); }

/* Xero */
.xero-flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 30px 0 0; }
.xero-flow div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-weight: 700; font-size: 15px; }
.xero-flow i { color: var(--accent); font-style: normal; font-size: 22px; font-weight: 700; }

/* Pricing / contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { margin: 0 0 14px; display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 3px; }
.contact-list a { color: inherit; font-weight: 700; }
form.contact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
form.contact .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
form.contact input, form.contact select, form.contact textarea { font: 16px var(--body); padding: 12px 13px; border: 1px solid #c9bab1; border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
form.contact textarea { min-height: 120px; resize: vertical; }
form.contact .hp { position: absolute; left: -5000px; }
form.contact .consent { font-weight: 400; font-size: 14px; color: var(--muted); }
.form-status { font-weight: 700; margin: 0; min-height: 1.4em; }
.form-status.ok { color: #2e7d32; } .form-status.err { color: #b3261e; }

/* Get the app */
.store-row { justify-content: center; margin-top: 24px; }
.store-row small { font-weight: 400; font-size: 13px; opacity: .7; }
.store-row [aria-disabled="true"] { pointer-events: none; opacity: .75; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font: 700 19px/1.35 var(--head); padding: 16px 40px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Footer */
footer.site { background: var(--ink-2); color: #cbbdb5; font-size: 15px; padding: 56px 0 30px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer.site h4 { font: 700 15px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin: 0 0 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 0 0 8px; }
footer.site a { color: #e6dbd5; text-decoration: none; }
footer.site a:hover { color: var(--white); text-decoration: underline; }
footer.site .logo { color: var(--white); margin-bottom: 14px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #a89990; }

/* Legal pages */
.doc { max-width: 820px; margin: 0 auto; padding: 50px 22px 80px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); }
.doc h2 { font-size: 25px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 19px; margin-top: 24px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0 20px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--sand); }
.doc .meta { color: var(--muted); }
.doc .toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 26px; }
.doc .toc ol { margin: 0; padding-left: 20px; columns: 2; }
.notice { background: #fff4e5; border: 1px solid #f2c79a; border-radius: 10px; padding: 14px 18px; font-size: 15px; }

/* Draft ribbon – remove the <div class="draft"> before launch */
.draft { background: #fff4e5; color: #6b3a0f; text-align: center; font-size: 14px; padding: 8px 12px; border-bottom: 1px solid #f2c79a; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .feature, .video-box, .contact-grid { grid-template-columns: 1fr; }
  .feature.flip .text { order: 0; }
  .devices { min-height: 400px; max-width: 560px; }
  .grid3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch;
             padding: 12px 22px 22px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; font-size: 17px; }
  nav.main .btn { justify-content: center; margin-top: 8px; }
  .menu-btn { display: block; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section.block { padding: 64px 0; }
  .hero { padding-top: 44px; }
  .devices { min-height: 330px; }
  .devices .phone { width: 150px; border-radius: 26px; padding: 6px; }
  .devices .phone img { border-radius: 21px; }
  .steps, form.contact .two, footer.site .cols { grid-template-columns: 1fr; }
  .feature .shots .phone { width: 46%; }
  .feature .shots .phone:nth-child(2) { width: 40%; }
  .topbar .wrap { justify-content: center; gap: 14px; font-size: 13px; }
  .doc .toc ol { columns: 1; }
  .xero-flow { flex-direction: column; gap: 6px; }
  .xero-flow i { transform: rotate(90deg); }
}
/* Small phones: shrink the logo so it never runs into the menu button */
@media (max-width: 420px) {
  header.site .wrap { gap: 12px; }
  .logo { font-size: 20px; gap: 8px; min-width: 0; }
  .logo img { width: 32px; height: 32px; }
}
@media (max-width: 340px) {
  .logo { font-size: 17px; gap: 6px; }
  .logo img { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { header.site, .topbar, .draft, footer.site { display: none; } }

/* Download page */
.doc.doc-wide { max-width: var(--max); }
.doc-wide > .lead { margin-bottom: 30px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 10px 0 26px; }
.dl-card { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(50, 37, 31, .06); }
.doc .dl-card h2 { margin: 6px 0 2px; padding: 0; border: 0; font-size: 26px; }
.dl-card > p { margin: 0 0 8px; color: var(--muted); }
.dl-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--sand); color: var(--ink); }
.dl-icon svg { width: 28px; height: 28px; }
.dl-btn { min-height: 64px; margin-top: auto; justify-content: center; text-align: center; flex-direction: column; gap: 0; line-height: 1.25; }
.dl-btn small { font-weight: 400; font-size: 13px; opacity: .85; }
.dl-btn[aria-disabled="true"] { pointer-events: none; background: var(--sand); border-color: var(--line); color: var(--muted); }
.dl-extra { font-size: 15px; }
.dl-req { font-size: 14px; color: var(--muted); margin: 6px 0 0 !important; }
.dl-open { margin-top: auto; }
.dl-open label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.dl-code { display: flex; gap: 8px; }
.dl-code input { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); }
.dl-code input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.dl-msg { min-height: 1.3em; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.dl-msg.err { color: #b3261e; }
.dl-qr { display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: var(--sand); border-radius: var(--radius); max-width: 640px; }
.dl-qr img { flex: none; background: #fff; padding: 6px; border-radius: 8px; }
.dl-steps { padding-left: 22px; } .dl-steps li { margin-bottom: 8px; }
.dl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 34px; }
.dl-contact { margin-top: 30px; font-size: 18px; }
@media (max-width: 720px) { .dl-qr { display: none; } }
