/* ==========================================================================
   TALNTD design system, v2
   --------------------------------------------------------------------------
   Rebuilt Aug 2026 as a LIGHT, tile-based system with a slim top nav, in the
   spirit of apple.com. The previous version was dark with a persistent left
   sidebar; that constrained every page to the same column and made all 12
   read as one template, which was the complaint.

   The model here is different on purpose:
     - A slim sticky top bar, so content gets the FULL viewport width.
     - Pages are built from stacked full-bleed TILES. Each tile owns its own
       background, so a page's rhythm comes from the sequence of tiles it
       chooses, not from a fixed layout.
     - Tiles come in light / grey / dark / tinted / image variants, and can
       be full width or paired half-and-half.
   That vocabulary is what lets each page look genuinely different while
   still being obviously the same site.

   Green stays the action colour, matched to the Flutter app
   (lib/core/theme/app_theme.dart), but it is now an accent on a light
   canvas rather than the canvas itself.

   Logical properties (inline-start / inline-end) are used throughout so an
   Arabic mirror is a dir="rtl" change, not a rewrite.
   ========================================================================== */

:root {
  /* Brand */
  --green: #1DB954;
  --green-hi: #2EE57F;
  --green-deep: #0E7C38;
  --green-ink: #05391C;
  --gold: #B8860B;

  /* Canvas, lightest to darkest */
  --white: #FFFFFF;
  --grey-50: #FBFBFD;
  --grey-100: #F5F5F7;
  --grey-200: #EDEDF0;
  --line: #D8D8DE;

  /* Ink */
  --ink: #1D1D1F;
  --ink-2: #4A4A4F;
  --ink-3: #6E6E73;

  /* Dark tiles */
  --night: #0B0E10;
  --night-2: #14181B;
  --night-ink: #F2F5F3;
  --night-ink-2: #A3B0A9;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 980px;

  --nav-h: 52px;
  --wide: 1240px;
  --readable: 780px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { inset-inline-start: 0; }

/* ==========================================================================
   Top nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* A dark tile directly under the nav looks wrong against a light bar, so
   pages that open on one set .nav-on-dark and get an inverted bar. */
.nav-on-dark .nav {
  background: rgba(11, 14, 16, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: var(--night-ink);
}

.nav-inner {
  max-width: var(--wide);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  margin-inline-end: auto;
}

.nav-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
  background: linear-gradient(140deg, var(--green-hi), var(--green));
  color: var(--green-ink);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 450;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-link:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-on-dark .nav-link { color: var(--night-ink-2); }
.nav-on-dark .nav-link:hover { color: var(--night-ink); background: rgba(255, 255, 255, 0.08); }
.nav-on-dark .nav-link[aria-current="page"] { color: var(--night-ink); }

.nav-cta {
  margin-inline-start: 10px;
  padding: 7px 15px;
  border-radius: var(--pill);
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-deep); }

.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  width: 44px;
  height: 44px;
  margin-inline-end: -10px;
  cursor: pointer;
  place-items: center;
}

/* ==========================================================================
   Tiles: the core layout primitive
   ========================================================================== */

.tile {
  position: relative;
  padding: 96px 22px;
  text-align: center;
  overflow: hidden;
}
.tile-inner { max-width: var(--wide); margin: 0 auto; }
.tile-narrow .tile-inner { max-width: var(--readable); }
.tile-start { text-align: start; }
.tile-tight { padding: 60px 22px; }
.tile-tall { padding: 128px 22px; }

.t-white { background: var(--white); }
.t-grey  { background: var(--grey-100); }
.t-grey-soft { background: var(--grey-50); }
.t-dark  { background: var(--night); color: var(--night-ink); }
.t-dark p { color: var(--night-ink-2); }
/* Darkened Aug 2026. The original #0E7C38 gradient was too light: inline
   links, the eyebrow, body copy, .small, chips and badges ALL failed WCAG AA
   against it, the worst at 2.04:1. Every one now clears 4.5:1. */
.t-green {
  background: linear-gradient(160deg, #0A5B29 0%, #06401D 100%);
  color: #F2F5F3;
}
.t-green p { color: #D9F0E2; }
.t-green .small { color: #BFE0CD; }

/* A soft radial wash, for a hero that needs presence without an image. */
.t-glow::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: -30%;
  width: min(1100px, 130%);
  aspect-ratio: 1.6;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(29, 185, 84, 0.16), transparent 70%);
  pointer-events: none;
}
.t-dark.t-glow::before { background: radial-gradient(closest-side, rgba(46, 229, 127, 0.2), transparent 70%); }
.tile > * { position: relative; }

/* Paired half-width tiles, the signature Apple row. */
.tile-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px 14px;
}
.tile-pair > * {
  border-radius: var(--radius-lg);
  padding: 64px 34px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.tile-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px 14px;
}
.tile-trio > * {
  border-radius: var(--radius-lg);
  padding: 48px 30px;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   Type
   ========================================================================== */

h1, h2, h3, h4 { margin: 0 0 14px; letter-spacing: -0.025em; line-height: 1.06; }

.display {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 650; }
h3 { font-size: clamp(21px, 2vw, 27px); font-weight: 650; line-height: 1.18; }
h4 { font-size: 18px; font-weight: 650; margin-bottom: 7px; line-height: 1.25; }

p { margin: 0 0 16px; color: var(--ink-2); }

.sub {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 30ch;
  margin-inline: auto;
  margin-bottom: 26px;
  letter-spacing: -0.015em;
}
.tile-start .sub, .tile-start .lede { margin-inline: 0; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; margin-inline: auto; }
.small { font-size: 14px; color: var(--ink-3); }
.t-dark .small { color: var(--night-ink-2); }

.eyebrow {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.t-dark .eyebrow { color: var(--green-hi); }
.t-green .eyebrow { color: #7CF0AE; }

/* Oversized number, for a stat that should carry a whole tile. */
.figure {
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  background: linear-gradient(150deg, var(--green-hi), var(--green-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}
.tile-start .actions { justify-content: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 23px;
  border-radius: var(--pill);
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
              border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn-fill { background: var(--green); color: #fff; }
.btn-fill:hover { background: var(--green-deep); }
.btn-outline { border-color: var(--green-deep); color: var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: #fff; }

.t-dark .btn-fill, .t-green .btn-fill { background: var(--green-hi); color: var(--green-ink); }
.t-dark .btn-fill:hover, .t-green .btn-fill:hover { background: #6BF2A6; }
.t-dark .btn-outline, .t-green .btn-outline { border-color: rgba(255,255,255,.5); color: var(--night-ink); }
.t-dark .btn-outline:hover, .t-green .btn-outline:hover { background: rgba(255,255,255,.12); }

/* Text link with a chevron, Apple's quiet secondary action. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green-deep);
  font-size: 16px;
  font-weight: 450;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link::after { content: "\203A"; font-size: 1.25em; line-height: 0.8; }
.t-dark .link { color: var(--green-hi); }
/* White, not green-on-green. Underlined on hover only, matching .link. */
.t-green .link { color: #FFFFFF; }

/* ==========================================================================
   Cards and content blocks
   ========================================================================== */

.grid { display: grid; gap: 16px; margin-top: 30px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: start;
}
.t-grey .card, .t-grey-soft .card { background: var(--white); }
.t-dark .card, .t-green .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.card p:last-child { margin-bottom: 0; }
.card-plain { border: 0; background: none; padding: 0; }

.ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  margin-bottom: 15px;
  background: rgba(29, 185, 84, 0.1);
  color: var(--green-deep);
}
.ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-dark .ico { background: rgba(46, 229, 127, 0.16); color: var(--green-hi); }
.t-green .ico { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }

/* Alternating text/visual row, for walking through a flow. */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
  text-align: start;
  max-width: var(--wide);
  margin: 0 auto;
}
.split-flip > *:first-child { order: 2; }

.numbers { counter-reset: n; display: grid; gap: 30px; text-align: start; }
.numbers > li { counter-increment: n; list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.numbers > li::before {
  content: counter(n);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 650;
  font-size: 17px;
}
.t-dark .numbers > li::before, .t-green .numbers > li::before { background: var(--green-hi); color: var(--green-ink); }
.numbers h4 { margin-bottom: 4px; }
.numbers p { margin-bottom: 0; font-size: 16px; }

.note {
  display: block;
  max-width: var(--readable);
  margin: 30px auto 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--grey-100);
  border-inline-start: 3px solid var(--green);
  text-align: start;
  font-size: 15.5px;
}
.t-dark .note, .t-green .note { background: rgba(255,255,255,.07); }
.t-white .note { background: var(--grey-100); }
.t-grey .note { background: var(--white); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: inherit; font-weight: 650; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.tile-start .chips { justify-content: flex-start; }
.chip {
  padding: 6px 13px;
  border-radius: var(--pill);
  background: var(--grey-100);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.t-dark .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--night-ink-2); }
.t-green .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #E4F3EA; }

.badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--pill);
  background: rgba(29,185,84,.12);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.t-dark .badge { background: rgba(46,229,127,.18); color: var(--green-hi); }
.t-green .badge { background: rgba(255,255,255,.16); color: #FFFFFF; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { max-width: var(--readable); margin: 0 auto; text-align: start; }
.faq details { border-bottom: 1px solid var(--line); }
.t-dark .faq details { border-bottom-color: rgba(255,255,255,.14); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 12px; width: 12px; height: 12px;
  border-inline-end: 1.8px solid var(--ink-3);
  border-block-end: 1.8px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); font-size: 16.5px; max-width: 66ch; }
.faq .a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Prose, for the legal and support documents
   ========================================================================== */

.prose { max-width: var(--readable); margin: 0 auto; text-align: start; }
.prose h2 { font-size: 27px; margin-top: 52px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h3 { font-size: 19px; margin-top: 30px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 0 0 16px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }

.toc {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0 8px;
}
.toc h4 { margin-bottom: 12px; }
.toc ol { margin: 0; padding-inline-start: 20px; columns: 2; column-gap: 30px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--green-deep); }

.doc-meta { font-size: 14px; color: var(--ink-3); margin-top: 10px; }

/* Inline links in body copy need to be visible; the reset kills them. */
.tile p a:not(.btn):not(.link),
.faq .a a:not(.btn),
.note a:not(.btn),
.prose a:not(.btn),
.card p a:not(.btn) {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.t-dark p a:not(.btn) { color: var(--green-hi); }
.t-green p a:not(.btn),
.t-green .a a:not(.btn),
.t-green li a:not(.btn),
.t-green .note a:not(.btn) {
  color: #FFFFFF;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--grey-100); padding: 46px 22px 34px; font-size: 13.5px; }
.footer-inner { max-width: var(--wide); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.footer h5 { font-size: 13px; font-weight: 650; margin: 0 0 12px; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: var(--ink-3); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--ink-3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 14px 20px;
    background: var(--grey-50);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  body.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 13px 10px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 14px 0 0; text-align: center; padding: 13px; font-size: 15px; }
  .nav-on-dark .nav-links { background: var(--night-2); }
  .nav-on-dark .nav-link { border-bottom-color: rgba(255,255,255,.12); }

  .tile { padding: 62px 20px; }
  .tile-tall { padding: 76px 20px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-flip > *:first-child { order: 0; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tile-trio { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .tile-pair { grid-template-columns: 1fr; }
  .tile-pair > * { padding: 48px 24px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .sub { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .nav, .footer, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .tile { padding: 12px 0; }
  .t-dark, .t-green { background: #fff !important; color: #000 !important; }
}
