/* Landing pages of portal.freshtrack.global and investor.freshtrack.global (platform/landing.rs).
   FreshTrack's own colours (the logo's blue and green) on white; Figtree, as on freshtrack.com. */
:root {
  --blue: #0a8dff;
  --blue-deep: #0063c7;
  --green: #62c47a;
  --ink: #15283b;
  --text: #46586b;
  --rule: #e2e9ef;
  --mist: #f3f7fa;
  --white: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.6 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--blue-deep); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand b { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.brand span { font-size: 15px; color: var(--text); padding-left: 12px; border-left: 1px solid var(--rule); }

/* buttons */
.button {
  display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1.5px solid var(--blue-deep); line-height: 1.2;
}
.button.primary { background: var(--blue-deep); color: var(--white); }
.button.primary:hover { background: #00519f; border-color: #00519f; }
.button.quiet { color: var(--blue-deep); background: var(--white); }
.button.quiet:hover { background: var(--mist); }
.button.small { padding: 9px 16px; font-size: 15px; }

h1, h2, h3 { color: var(--ink); font-weight: 700; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(27px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: 20px; line-height: 1.55; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* investor hero: the chain from the logo, drawn large */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 32px; min-height: 560px; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-top: 24px; }
.chain { width: 100%; max-width: 460px; justify-self: end; }
.chain path { fill: none; stroke-width: 34; }
.chain .b { stroke: var(--blue); }
.chain .g { stroke: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .chain .b, .chain .g { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s cubic-bezier(.6,.1,.2,1) .15s forwards; }
  .chain .g { animation-delay: .45s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* sections */
.band { padding: 88px 0; border-top: 1px solid var(--rule); }
.band.mist { background: var(--mist); border-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.split .intro p { margin-top: 18px; max-width: 32em; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; column-gap: 32px; }
.facts dt { color: var(--ink); font-weight: 600; padding: 16px 0; border-top: 1px solid var(--rule); }
.facts dd { margin: 0; padding: 16px 0; border-top: 1px solid var(--rule); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; padding-top: 4px; }

.areas { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.areas li { padding: 22px 0 22px 20px; border-left: 3px solid var(--green); margin-bottom: 18px; }
.areas li:nth-child(odd) { border-left-color: var(--blue); }
.areas p { margin-top: 6px; }

.closing { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.closing p { margin-top: 10px; max-width: 34em; }

.foot { border-top: 1px solid var(--rule); padding: 28px 0; font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--text); margin-left: 20px; }

/* portal: a calm two-column sign-in page */
.portal-main { min-height: calc(100vh - 72px - 78px); display: flex; align-items: center; }
.portal-main .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
.portal-main h1 { font-size: clamp(36px, 4.6vw, 54px); max-width: 11em; }
.portal-main .lead { margin-top: 22px; }
.portal-main .aside-note { margin-top: 28px; font-size: 15px; }
.workspace { background: var(--mist); border-radius: 14px; padding: 12px 28px; }
.workspace dl { margin: 0; }
.workspace div { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.workspace div:first-child { border-top: 0; }
.workspace dt { color: var(--ink); font-weight: 600; grid-column: 2; }
.workspace dd { margin: 0; grid-column: 2; font-size: 15px; }
.workspace svg { grid-row: 1 / span 2; width: 28px; height: 28px; margin-top: 2px; }

@media (max-width: 860px) {
  .hero .wrap, .split, .portal-main .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { min-height: 0; }
  .chain { max-width: 260px; justify-self: start; order: -1; }
  .areas { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .band { padding: 64px 0; }
}
