/* Apona marketing site. One stylesheet, no scripts, no cookies. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #121826;
  --navy: #26345a;
  --muted: #555e72;
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: #dce1ec;
  --tax: #f5b83d;
  --payroll: #2eb5a8;
  --corp: #8b7cf0;
  --accounts: #e07a5f;
  --tax-soft: #fdf2d8;
  --payroll-soft: #dcf3f0;
  --corp-soft: #ebe8fd;
  --accounts-soft: #fbe7e1;
  --focus: #2b6be0;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "tnum" 0;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- Type scale ---- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.125rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 34em; line-height: 1.55; }

/* ---- Header ---- */
.top { border-bottom: 1px solid var(--line); background: var(--white); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; flex-wrap: wrap; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.nav .btn { margin-left: 4px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid var(--ink);
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---- Hero ---- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); background: var(--paper); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lede { margin-top: 22px; }
.beta-note { margin-top: 18px; font-size: .95rem; color: var(--muted); }

/* The translation: an HMRC box becomes a plain question */
.translate { position: relative; }
.form-box {
  background: #fff; border: 1px solid #b9c0cf; border-radius: 4px;
  padding: 16px 18px 18px; font-size: .9rem; color: #3d4557;
  box-shadow: 0 1px 0 #b9c0cf;
}
.form-box .ref { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.form-box .num { font-weight: 800; color: var(--ink); background: #e9ecf3; border-radius: 3px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.form-box .src { font-weight: 600; }
.form-box .box-line { display: flex; gap: 10px; align-items: center; }
.form-box .boxes { display: flex; gap: 2px; margin-left: auto; }
.form-box .boxes span { width: 18px; height: 24px; border: 1px solid #9aa3b5; background: #fff; }
.arrow-down { display: flex; align-items: center; gap: 10px; margin: 14px 0 14px 22px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.arrow-down svg { flex: none; }
.question {
  background: #fff; border-radius: 18px; padding: 26px 26px 24px;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--tax);
}
.question .step { font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.question h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.25; letter-spacing: -0.015em; }
.question .help { margin: 12px 0 18px; color: var(--muted); font-size: .98rem; }
.money { display: flex; align-items: center; border: 2px solid #9aa3b5; border-radius: 10px; max-width: 260px; overflow: hidden; }
.money span { padding: 10px 12px; background: var(--paper); font-weight: 700; border-right: 2px solid #9aa3b5; }
.money b { padding: 10px 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.question .actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.question .fake { border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: .95rem; border: 2px solid var(--ink); }
.question .fake.go { background: var(--ink); color: #fff; }

/* ---- Sections ---- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }

/* How a return gets done (a real sequence, so it's numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; padding: 22px 24px 4px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 14px; color: var(--navy); font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Practice features: two columns of plain lists */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 16px; height: 9px; border-left: 3px solid var(--payroll); border-bottom: 3px solid var(--payroll); transform: rotate(-45deg); }
.ticks b { display: block; font-weight: 700; }
.ticks span { color: var(--muted); font-size: 1rem; }
.addon { display: inline-block; font-size: .8rem; font-weight: 700; background: var(--corp-soft); color: #4b3fa6; border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: 2px; }

/* The four modules, laid out like the logo's quarters */
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 920px; }
.module { padding: 30px 30px 26px; min-height: 210px; display: flex; flex-direction: column; }
.module:nth-child(1) { background: var(--tax-soft); border-radius: 120px 8px 8px 8px; padding-left: 52px; padding-top: 44px; }
.module:nth-child(2) { background: var(--payroll-soft); border-radius: 8px 120px 8px 8px; padding-right: 52px; padding-top: 44px; }
.module:nth-child(3) { background: var(--accounts-soft); border-radius: 8px 8px 8px 120px; padding-left: 52px; padding-bottom: 44px; }
.module:nth-child(4) { background: var(--corp-soft); border-radius: 8px 8px 120px 8px; padding-right: 52px; padding-bottom: 44px; }
.module .dot { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 14px; }
.module h3 { margin-bottom: 8px; }
.module p { color: #3d4557; font-size: 1rem; margin: 0 0 14px; }
.status { margin-top: auto; font-size: .9rem; font-weight: 700; }
.status.live { color: #1d5c2e; }
.status.soon { color: var(--muted); }

/* Security */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.facts h3 { font-size: 1.1rem; margin-bottom: 6px; }
.facts p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Beta band */
.band { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 88px) 0; }
.band h2 { max-width: 16em; }
.band p { color: #c9cfdc; margin-top: 14px; max-width: 36em; font-size: 1.125rem; }
.band .btn-solid { background: var(--tax); color: var(--ink); border-color: var(--tax); }
.band .btn-solid:hover { background: #ffd27a; border-color: #ffd27a; color: var(--ink); }
.band .btn-line { color: #fff; border-color: #fff; }
.band .btn-line:hover { background: rgba(255,255,255,.08); color: #fff; }
.band a:not(.btn) { color: #fff; }

/* ---- Features page ---- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: 18px; }
.forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 28px; margin: 0; }
.forms div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: baseline; }
.forms dt { font-weight: 800; font-variant-numeric: tabular-nums; }
.forms dd { margin: 0; color: var(--muted); }
.feature-group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
.feature-group + .feature-group { margin-top: 64px; }
.feature-group .section-head { margin-bottom: 0; }
.coming { list-style: none; padding: 0; margin: 0; }
.coming li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.coming li:first-child { border-top: 1px solid var(--line); }
.coming .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; }
.coming b { display: block; }
.coming span { color: var(--muted); font-size: 1rem; }

/* ---- Privacy (long reading) ---- */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 24px; font-size: .95rem; }
.toc p { font-weight: 800; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; color: var(--muted); }
.toc li { margin: 6px 0; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 42em; }
.prose h2 { font-size: 1.6rem; margin: 52px 0 14px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 1.15rem; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 8px 0 20px; font-size: .97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.callout { border-left: 4px solid var(--payroll); background: var(--payroll-soft); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 18px 0 22px; }
.callout p:last-child { margin-bottom: 0; }
.updated { color: var(--muted); font-size: .95rem; margin-top: 14px; }

/* Draft placeholders: must all be filled in before the site goes live */
.todo { background: #fff1b8; border: 1px dashed #b8860b; border-radius: 4px; padding: 0 5px; font-weight: 600; color: #5c4400; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); padding: 44px 0 52px; font-size: .95rem; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
.foot img { height: 34px; width: auto; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.foot nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot .legal { grid-column: 1 / -1; margin: 0; }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .hero .wrap, .split, .feature-group, .doc { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
}
@media (max-width: 600px) {
  .top .wrap { min-height: 64px; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 34px; }
  .nav { width: 100%; margin-left: 0; gap: 16px; }
  .nav .btn { margin-left: auto; min-height: 40px; padding: 8px 16px; }
  .nav .btn-solid { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .module:nth-child(n) { border-radius: 8px; padding: 26px 22px; min-height: 0; }
  .module:nth-child(1) { border-top-left-radius: 60px; padding-left: 30px; }
  .module:nth-child(4) { border-bottom-right-radius: 60px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .question { box-shadow: 5px 5px 0 var(--tax); padding: 22px 20px; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
.prose code { font-size: .86em; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
@media (max-width: 600px) { .prose table { font-size: .9rem; } .prose th, .prose td { padding-right: 8px; } }

/* Module contents: what's in each, and its status */
.mod-list { list-style: none; margin: 4px 0 0; padding: 0; }
.mod-list li { padding: 10px 0; border-top: 1px solid rgba(18, 24, 38, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-weight: 600; font-size: 1rem; }
.mod-list .status { margin-top: 0; font-size: .875rem; }

/* ---- Features page: one tab per module, in its colour ---- */
[data-mod="personal"]    { --mod: var(--tax);      --mod-soft: var(--tax-soft);      --mod-ink: #7a5300; }
[data-mod="company"]     { --mod: var(--payroll);  --mod-soft: var(--payroll-soft);  --mod-ink: #0f6159; }
[data-mod="accountants"] { --mod: var(--accounts); --mod-soft: var(--accounts-soft); --mod-ink: #8c3a24; }
[data-mod="practice"]    { --mod: var(--corp);     --mod-soft: var(--corp-soft);     --mod-ink: #4b3fa6; }

.modules-tabs { padding-top: 40px; }
.tablist { display: none; }
.has-tabs .tablist {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  position: sticky; top: 0; z-index: 2; background: var(--white); padding: 12px 0 0;
}
.tab {
  font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; gap: 10px; justify-content: flex-start;
  padding: 16px 18px 14px; border: 0; border-radius: 14px 14px 0 0;
  background: var(--paper); border-bottom: 4px solid var(--line);
}
.tab .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mod); flex: none; }
.tab:hover { background: var(--mod-soft); }
.tab[aria-selected="true"] { background: var(--mod-soft); border-bottom-color: var(--mod); }
.tab:focus-visible { outline-offset: -3px; }

.panel { border-top: 4px solid var(--mod); padding: 40px 0 8px; }
.panel + .panel { margin-top: 56px; }
.has-tabs .panel + .panel { margin-top: 0; }
.has-tabs .panel { border-top: 0; padding-top: 36px; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.panel-head { max-width: 40em; margin-bottom: 28px; padding: 24px 28px; background: var(--mod-soft); border-radius: 14px; }
.panel-head h2 { color: var(--ink); }
.panel-head p { margin: 10px 0 0; color: #3d4557; font-size: 1.125rem; }
.panel-sub { margin: 40px 0 12px; font-size: 1.3rem; }
.panel-head + .panel-sub { margin-top: 8px; }
.panel-note { color: var(--muted); max-width: 42em; }
.panel .ticks li::before { border-color: var(--mod); }
.panel .coming .dot { background: var(--mod); }
.panel .ticks, .panel .coming { max-width: 46em; }
.panel .coming { margin-bottom: 20px; }

@media (max-width: 600px) {
  .has-tabs .tablist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { border-radius: 10px; border-bottom-width: 3px; padding: 12px 14px; font-size: 1rem; }
  .panel-head { padding: 20px; }
}
.mod-link { color: inherit; text-decoration: none; }
.mod-link::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); vertical-align: 3px; }
.mod-link:hover { text-decoration: underline; color: inherit; }
/* "Add-on for accountants" tag on the Practice module */
.addon-card { align-self: flex-start; background: #fff; color: #4b3fa6; margin: -2px 0 12px; }
.addon-head { font-size: .8rem; letter-spacing: 0; vertical-align: 6px; background: #fff; }
.tab-tag { margin-left: auto; font-size: .75rem; font-weight: 700; color: #4b3fa6; background: #fff; border-radius: 999px; padding: 2px 8px; }

/* Legal pages (privacy, terms): smaller, denser reading text */
.doc-legal .prose { font-size: .95rem; line-height: 1.6; max-width: 44em; }
.doc-legal .prose h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.doc-legal .prose h2:first-child { margin-top: 0; }
.doc-legal .prose h3 { font-size: 1.02rem; margin: 22px 0 6px; }
.doc-legal .prose table { font-size: .9rem; }
.doc-legal .prose th[scope="row"] { width: 9.5em; padding-right: 16px; border-bottom: 1px solid var(--line); }
.doc-legal .toc { font-size: .9rem; }
.applies { background: var(--accounts-soft); border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: .9rem; display: inline-block; }
