/* Limited company accounts: the accounts-cover document (doc-ltd.php), "Pick your year end" timeline (set-ltd.php)
   and the two-plan price layout. */

/* ---------- Opener document: a bound set of accounts ---------- */
.doc--ltd { padding-top: 0; }
.doc--ltd .doc__cover { margin: 0 -18px 10px; padding: 14px 18px 12px; background: var(--claret); color: #fff; background-image: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.12) 50%, rgba(255,255,255,0) 60%); background-size: 260% 100%; animation: ltd-sheen 7s ease-in-out infinite; }
@keyframes ltd-sheen { 0%, 40% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
.doc--ltd .doc__kind { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F6D3DB; }
.doc--ltd .doc__co { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.doc--ltd .doc__ye { font-size: .9rem; color: #F6D3DB; }
.doc--ltd .doc__stamp { top: -54px; width: 132px; }
.doc--ltd .doc__stamp small { font-size: .58rem; letter-spacing: .1em; }
@media (max-width: 560px) { .doc--ltd .doc__cover { margin: 0 -14px 8px; padding: 10px 14px; } .doc--ltd .doc__co { font-size: 1.12rem; } .doc--ltd .doc__stamp { width: 110px; top: -60px; } }

/* ---------- Set piece: pick your year end ---------- */
.ye { overflow: clip; padding-block: clamp(64px, 7vw, 100px); }
.ye__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(255,255,255,.035) 35px, rgba(255,255,255,.035) 36px); animation: so-drift-36 26s linear infinite; }
.ye__ruling::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(20px, 4.4vw, 70px); width: 1px; background: rgba(163,24,62,.7); }
.ye__oval { position: absolute; left: -12vw; top: -18%; width: min(1100px, 80vw); overflow: visible; pointer-events: none; }
.ye__oval ellipse { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1.4; }
.ye__oval .dash { stroke: rgba(242,214,75,.18); stroke-dasharray: 3 12; animation: dash-turn 54s linear infinite; }
.ye__wrap { position: relative; }
.ye__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(26px, 3.4vw, 44px); }
.ye__head h2 { color: #fff; }
.ye__head .lede { margin: 0; }

.ye__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.ye__pick { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.ye__picklabel { margin: 0; font-weight: 700; color: var(--highlight); }
.ye__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.ye__months button { position: relative; min-width: 50px; min-height: 44px; padding: 0 6px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--btn-r); background: rgba(255,255,255,.04); color: #fff; font-weight: 700; font-size: .98rem; cursor: pointer; transition: border-color .3s, background-color .3s; }
.ye__months button:hover { border-color: var(--highlight); background: rgba(242,214,75,.1); }
.ye__months button span { position: relative; z-index: 2; transition: color .3s; }
.ye__months button[aria-pressed="true"] span { color: var(--ink); }
.ye__hl { position: absolute; inset: -1px; z-index: 1; border-radius: var(--btn-r); background: var(--highlight); }
.ye__now { margin: 0; color: var(--on-dark-soft); font-size: 1.04rem; }
.ye__now b { color: #fff; }

/* The timeline */
.ye__tl { position: relative; height: 300px; margin: 18px 0 8px; }
.ye__svg { position: absolute; left: 0; top: 0; width: 100%; height: 240px; overflow: visible; }
.ye__axis { stroke: rgba(255,255,255,.45); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ye__arc { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.ye__svg:not(.is-px) .ye__arc, .ye__svg:not(.is-px) .ye__comet { vector-effect: non-scaling-stroke; }
.ye__arc--acc { stroke: var(--highlight); }
.ye__arc--pay { stroke: #F07A97; }
.ye__arc--ct600 { stroke: #fff; stroke-width: 2; }
.ye__comet { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-dasharray: .07 .93; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 6px rgba(242,214,75,.95)); }
.motion .ye__comet { opacity: .9; animation: ye-comet 3.6s linear infinite; }
.motion .ye__comet[data-comet="pay"] { animation-delay: -1.2s; }
.motion .ye__comet[data-comet="ct600"] { animation-delay: -2.4s; animation-duration: 4.4s; }
@keyframes ye-comet { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ye__window { position: absolute; top: 112px; height: 16px; background: linear-gradient(90deg, rgba(242,214,75,.32), rgba(163,24,62,.5)); overflow: hidden; }
.ye__window::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%) no-repeat; background-size: 30% 100%; background-position: -40% 0; }
.motion .ye__window::after { animation: ye-run 3.2s ease-in-out infinite; }
@keyframes ye-run { to { background-position: 140% 0; } }
.ye__lane { position: absolute; left: 0; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ye__lane--ch { top: 6px; }
.ye__lane--hmrc { top: 214px; }
.ye__today { position: absolute; top: 0; height: 240px; width: 0; border-left: 1.5px dashed rgba(255,255,255,.55); }
.ye__today b { position: absolute; left: 0; top: 0; transform: translateX(-50%); padding: 3px 9px; background: #fff; color: var(--wine); font-size: .82rem; line-height: 1.2; white-space: nowrap; }
.ye__today::after { content: ''; position: absolute; left: -6.5px; top: 113px; width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: pulse 2.2s infinite; }
.ye__pin { position: absolute; top: 120px; width: 0; height: 0; }
.ye__pin i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--wine); background: var(--highlight); box-shadow: 0 0 0 1.5px var(--highlight); }
.ye__pin b { position: absolute; left: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; background: var(--wine-2); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: .9rem; line-height: 1.2; white-space: nowrap; transition: background-color .3s, border-color .3s; }
.ye__pin em, .ye__who em { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--highlight); color: var(--ink); font-style: normal; font-weight: 700; font-size: .8rem; }
.ye__pin--ye i { background: #fff; box-shadow: 0 0 0 1.5px #fff; }
.ye__pin--ye b { top: 18px; padding-left: 10px; }
.ye__pin--acc b { bottom: 16px; }
.ye__pin--pay i { background: #F07A97; box-shadow: 0 0 0 1.5px #F07A97; }
.ye__pin--pay b { top: 18px; }
.ye__pin--pay em { background: #F07A97; }
.ye__pin--ct600 i { background: #fff; box-shadow: 0 0 0 1.5px #fff; }
.ye__pin--ct600 b { top: 50px; }
.ye__pin--ct600 em { background: #fff; }
.ye__pin.is-hot i { box-shadow: 0 0 0 6px rgba(242,214,75,.45); }
.ye__pin.is-hot b { background: var(--claret); border-color: var(--highlight); }
.ye__months-axis { position: absolute; left: 0; right: 0; top: 252px; height: 40px; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.ye__months-axis li { position: absolute; top: 0; height: 8px; border-left: 1px solid rgba(255,255,255,.3); }
.ye__months-axis li.is-q { height: 14px; border-color: rgba(255,255,255,.6); }
.ye__months-axis span { position: absolute; left: 0; top: 14px; transform: translateX(-50%); font-size: .82rem; font-weight: 600; color: var(--on-dark-soft); white-space: nowrap; }
.ye__months-axis li:first-child span { transform: translateX(-30%); }
.ye__months-axis small { font-size: .82rem; color: var(--highlight); font-weight: 700; }

/* The deadline cards */
.ye__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.ye__card { position: relative; padding: 16px 18px 16px; background: #fff; color: var(--ink); border-top: 4px solid var(--highlight); box-shadow: 0 22px 44px rgba(0,0,0,.32); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.ye__card p { margin: 0; }
.ye__card[data-card="pay"] { border-top-color: #E35A7C; }
.ye__card[data-card="ct600"] { border-top-color: var(--ink); }
.ye__card--cs { background: var(--blush); border-top-color: var(--crimson); }
.ye__card.is-hot { box-shadow: 0 0 0 3px var(--highlight), 0 30px 54px rgba(0,0,0,.42); }
.ye__who { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--crimson); margin-bottom: 4px !important; }
.ye__card[data-card="pay"] .ye__who em { background: #F07A97; }
.ye__card[data-card="ct600"] .ye__who em { background: var(--ink); color: #fff; }
.ye__card--cs .ye__who em { background: var(--crimson); color: #fff; }
.ye__what { font-weight: 700; font-size: 1.04rem; line-height: 1.3; }
.ye__date { overflow: clip; font-family: var(--serif); font-size: clamp(1.35rem, 1.75vw, 1.7rem); line-height: 1.3; color: var(--claret); margin: 6px 0 4px !important; }
.ye__date span { display: inline-block; }
.ye__in { font-size: .95rem; color: var(--ink-soft); line-height: 1.4; }
.ye__in span[data-in] { font-weight: 700; color: var(--ink); }
.ye__in a { color: var(--claret); font-weight: 700; }
.ye__small { margin: 22px 0 0; font-size: .98rem; color: var(--on-dark-soft); }

.no-js .ye__pick { display: none; }

@media (max-width: 1240px) {
  .ye__bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1100px) {
  .ye__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ye__head { grid-template-columns: minmax(0, 1fr); }
  .ye__pick { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
  .ye__months { grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; }
  .ye__months button { min-width: 0; }
  .ye__lane { display: none; }
  .ye__months-axis li:not(.is-q) span { display: none; }
  .ye__months-axis li.is-jan span { font-size: 0; }
  .ye__months-axis li.is-jan small { font-size: .8rem; }
}
@media (max-width: 560px) {
  .ye__tl { height: 270px; }
  .ye__svg, .ye__today { height: 220px; }
  .ye__months-axis { top: 232px; }
  .ye__pin b { font-size: .8rem; padding: 3px 7px 3px 4px; gap: 4px; }
  .ye__pin em { width: 17px; height: 17px; font-size: .72rem; }
  .ye__pin--ye b { padding-left: 7px; }
  .ye__pin--ct600 b { top: 18px; }
  .ye__pin:not(.ye__pin--ye) b { padding: 3px; }
  .ye__pin:not(.ye__pin--ye) b span { display: none; }
  .ye__cards { grid-template-columns: minmax(0, 1fr); }
  .ye__months-axis span { font-size: .74rem; }
  .ye__months-axis li.is-jan span { font-size: 0; }
  .ye__months-axis li.is-jan small { font-size: .74rem; }
}

/* ---------- Plans: two cards, the one-off card reads as a price list ---------- */
.page-ltd .sp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-ltd .plan:nth-child(2) .plan__list li { display: flex; justify-content: space-between; gap: 12px; padding-right: 0; }
.page-ltd .sp__price { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.2; color: var(--claret); white-space: nowrap; }
.page-ltd .sp__price--word { font-family: inherit; font-weight: 600; font-size: inherit; }
@media (max-width: 960px) { .page-ltd .sp__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ye__ruling::before { display: none; } }
