/* mylerota.com: Myle Rota public site. Built by Wee Technologies Ltd to the
   wee Design and Build Standard v2.3. Colours from the Myle Rota source SVGs;
   every text pairing checked for WCAG 2.2 AA (see README). No JavaScript,
   no cookies, no third-party requests. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* roles (CO-01) */
  --page: #f6f4fb;
  --surface: #ffffff;
  --surface-soft: #ece7f6;
  --ink: #181b31;
  --ink-muted: #5c5878;
  --line: #e2dcf0;
  --primary: #7b2eda;
  --primary-pressed: #5921ac;
  --primary-light: #943fe8;
  --deep: #54209b;
  --on-deep: #ffffff;
  --on-deep-muted: #e9dfFb;
  --accent: #f2b900;
  --focus: #7b2eda;
  --footer: #181b31;
  --on-footer: #ffffff;
  --on-footer-muted: #c9c3e0;

  --radius-card: 28px;
  --radius-inner: 14px;
  --max: 1120px;
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-pressed);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* header */
.top {
  padding: 1.25rem 0;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  height: 56px;
  width: auto;
}

/* buttons (LY-01, LY-03, WR-02) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-pressed);
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: var(--deep);
}

.btn-light:hover {
  background: var(--on-deep-muted);
  color: var(--deep);
}

.btn-quiet {
  color: var(--primary);
  padding: 0 0.6rem;
}

.btn-quiet:hover {
  color: var(--primary-pressed);
  text-decoration: underline;
}

.btn-outline-light {
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  color: #ffffff;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.btn .arrow {
  font-size: 1.15em;
  line-height: 1;
}

/* hero */
.hero {
  padding: 2.5rem 0 4.5rem;
}

.hero .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 4rem 0 6rem;
  }
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
  }
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: 700;
}

h1 .dot {
  color: var(--accent);
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* the rota card: built from the icon's own shapes (SF-02) */
.rota {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.5rem 1.5rem;
  box-shadow: 0 30px 60px -30px rgba(84, 32, 155, 0.45), 0 0 0 1px var(--line);
}

.rota::before,
.rota::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 14px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary);
}

.rota::before {
  left: 24%;
}

.rota::after {
  right: 24%;
}

.rota-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 0.25rem 1rem;
  border-bottom: 2px solid var(--surface-soft);
  margin-bottom: 0.75rem;
}

.rota-head strong {
  font-size: 1.05rem;
}

.rota-head span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.day {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.25rem;
}

.day b {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.shift {
  position: absolute;
  top: 0;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary) 55%, var(--primary-pressed));
}

.s-early { left: 8%; width: 46%; }
.s-long { left: 8%; width: 56%; }
.s-late { left: 34%; width: 60%; }
.s-late2 { left: 40%; width: 55%; }
.s-early2 { left: 4%; width: 48%; }

.day.today b {
  color: var(--ink);
}

.day.today .track::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--accent);
}

.day.off .track {
  background: repeating-linear-gradient(90deg, var(--surface-soft) 0 10px, transparent 10px 18px);
}

/* features: a plain list, not a card grid (SF-04) */
.features {
  padding: 0 0 5rem;
}

.features h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  max-width: 30rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 720px) {
  .list {
    grid-template-columns: 1fr 1fr;
  }
}

.list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
}

.mark {
  margin-top: 0.55rem;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

.list li:nth-child(2) .mark {
  width: 70%;
}

.list li:nth-child(3) .mark {
  width: 85%;
}

.list li:nth-child(4) .mark {
  width: 55%;
}

.list h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.list p {
  margin: 0;
  color: var(--ink-muted);
}

/* built by wee */
.built {
  background: var(--deep);
  color: var(--on-deep);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.built .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .built .wrap {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
  }
}

.built h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.built h2 .dot {
  color: var(--accent);
}

.built p {
  color: var(--on-deep-muted);
  max-width: 36rem;
  margin: 1rem 0 0;
}

.built a:not(.btn) {
  color: #ffffff;
}

.built .actions {
  justify-content: flex-start;
}

@media (min-width: 900px) {
  .built .actions {
    justify-content: flex-end;
  }
}

/* footer: company details (LA-08) */
.foot {
  background: var(--footer);
  color: var(--on-footer-muted);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.95rem;
}

.foot a {
  color: var(--on-footer);
}

.foot .cols {
  display: grid;
  gap: 2rem;
}

@media (min-width: 820px) {
  .foot .cols {
    grid-template-columns: 1fr 1fr 0.7fr;
  }
}

.foot h2 {
  color: var(--on-footer);
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}

.foot p {
  margin: 0;
  line-height: 1.7;
}

.foot nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.foot .base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

/* legal pages */
.legal {
  padding: 1.5rem 0 5rem;
}

.legal article {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--line);
  padding: 2rem 1.25rem;
  max-width: 46rem;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .legal article {
    padding: 3rem 3.25rem;
  }
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.5rem;
}

.legal p,
.legal li {
  max-width: 40rem;
}

.legal .updated {
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.legal .note {
  background: var(--surface-soft);
  border-radius: var(--radius-inner);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
}

.legal table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75rem 0;
  font-size: 0.97rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.table-scroll {
  overflow-x: auto;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .top .btn,
  .skip {
    display: none;
  }
  .foot {
    background: none;
    color: #000;
  }
}
