/* Documented: At Work website. Tokens only: every color, space, radius, size, curve and
   duration is a var() copied from design/system/project/tokens.json. Type is SF, the same
   system face the app uses; the brand kit ships no web font. */

:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  /* New York, the system serif the app's onboarding headlines use. Apple devices have it built in. */
  --font-serif: ui-serif, "New York", Georgia, "Times New Roman", serif;

  --page-bg: #FFFFFF; --background: #F4F5F7; --surface: #FFFFFF; --paper: #F3F4FF;
  --text: #16181D; --text-muted: #5A5E68;
  --accent: #4655F5; --accent-pressed: #3A47D6; --on-accent: #FFFFFF;
  --accent-text: #3A47D6; --accent-subtle: #ECEEFF;
  --highlight: #FFE4D6; --on-highlight: #A3461B;
  --border: #E0E1E6;
  --ink: #16181D; --on-ink: #FFFFFF;
  --periwinkle-300: #B6BDFF; --periwinkle-400: #8C96FF; --peach-200: #FFCDB5;
  --neutral-0: #FFFFFF;
  --glow-opacity: 0.55;

  --space-4: 4px; --space-8: 8px; --space-12: 12px; --space-16: 16px;
  --space-24: 24px; --space-32: 32px; --space-48: 48px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 20px; --radius-xl: 28px; --radius-full: 9999px;
  --button-height: 56px; --tap-min: 44px; --icon-disc: 96px; --hairline: 1px; --focus-ring: 2px;
  --size-tile: 136px; --size-seal-photo: 240px;

  --ease-enter: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-settle: cubic-bezier(0.45, 0, 0.25, 1);
  --duration-xs: 200ms; --duration-sm: 350ms; --duration-xl: 900ms;

  /* Page widths, built from tokens so nothing new is invented. */
  --page: calc(var(--space-48) * 24);
  --column: 64ch;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page-bg); color: var(--text); overflow-x: hidden;
  font-family: var(--font-sans); font-size: 17px; line-height: 22px; letter-spacing: -0.43px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: var(--focus-ring) solid var(--accent-text); outline-offset: var(--focus-ring); border-radius: var(--radius-sm); }
h1, h2, h3, p, ul, ol { margin: 0; }

/* Type: Apple's text styles at the default size, in SF */
.display, .large-title { font-size: 34px; line-height: 41px; letter-spacing: 0.4px; font-weight: 700; }
@media (min-width: 800px) {
  /* The one size past the app's scale: Large Title doubled, for the web hero only. */
  .display { font-size: calc(34px * 2); line-height: 1.05; letter-spacing: -1px; }
}
.title-1 { font-size: 28px; line-height: 34px; letter-spacing: 0.38px; font-weight: 700; }
.title-2 { font-size: 22px; line-height: 28px; letter-spacing: -0.26px; font-weight: 600; }
.title-3 { font-size: 20px; line-height: 25px; letter-spacing: -0.45px; font-weight: 600; }
.headline { font-size: 17px; line-height: 22px; letter-spacing: -0.43px; font-weight: 600; }
.callout { font-size: 16px; line-height: 21px; letter-spacing: -0.31px; }
.subheadline { font-size: 15px; line-height: 20px; letter-spacing: -0.23px; }
.footnote { font-size: 13px; line-height: 18px; letter-spacing: -0.08px; }
.caption-1 { font-size: 12px; line-height: 16px; }
/* Headings in New York, at the regular weight the onboarding sets them in. */
.display, .large-title, .title-1, .title-2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0; }
.regular { font-weight: 400; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--space-16); }
@media (min-width: 800px) { .wrap { padding: 0 var(--space-32); } }

/* Header, after Lake: no bar and no border. The icon on the left, one menu button on the right. */
.site-head { position: relative; z-index: 2; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding-top: var(--space-16); padding-bottom: var(--space-16); }
.brand { display: inline-flex; align-items: center; gap: var(--space-8); color: var(--text); min-height: var(--tap-min); }
.brand:hover { text-decoration: none; }
.brand .app-icon { width: var(--space-32); height: var(--space-32); border-radius: var(--radius-sm); }
.brand .name { font-weight: 700; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: var(--tap-min); height: var(--tap-min);
  padding: 0; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text); cursor: pointer;
  transition: background var(--duration-xs) var(--ease-settle);
}
.menu-btn:hover { background: var(--accent-subtle); }
.menu-btn .icon { width: var(--space-24); height: var(--space-24); }

/* The menu: a full page sheet with large links, as on Lake */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--page-bg); color: var(--text);
}
.menu::backdrop { background: transparent; }
.menu[open] { display: flex; flex-direction: column; animation: menu-in var(--duration-sm) var(--ease-enter); }
.menu nav { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-32) 0; }
.menu nav a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--text); }
.menu nav a:hover { color: var(--accent); text-decoration: none; }
.menu nav a[aria-current="page"] { color: var(--accent); }
.menu__foot { margin-top: auto; padding-bottom: var(--space-32); }
@keyframes menu-in { from { opacity: 0; transform: translateY(calc(var(--space-8) * -1)); } }

/* Lake's soft colour behind the top of the page, in periwinkle and peach */
.glow { position: absolute; inset: 0 0 auto 0; height: calc(var(--space-48) * 16); overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent); mask-image: linear-gradient(to bottom, #000 50%, transparent); }
.glow span { position: absolute; border-radius: var(--radius-full); filter: blur(var(--space-48)); opacity: var(--glow-opacity); }
.glow span:nth-child(1) { width: calc(var(--size-tile) * 3); height: calc(var(--size-tile) * 3); top: calc(var(--space-48) * -3); right: calc(var(--space-48) * -2); background: var(--periwinkle-300); }
.glow span:nth-child(2) { width: calc(var(--size-tile) * 2); height: calc(var(--size-tile) * 2); top: calc(var(--space-48) * 5); left: calc(var(--space-48) * -2); background: var(--peach-200); }
.glow span:nth-child(3) { width: calc(var(--size-tile) * 2); height: calc(var(--size-tile) * 2); top: calc(var(--space-48) * 10); right: 10%; background: var(--periwinkle-400); }

main { position: relative; z-index: 1; }

/* Hero, after Day One: one centred headline, one line under it, the store button, then phones. */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-16); padding: var(--space-48) 0 var(--space-16); }
.hero .title-3 { max-width: var(--column); }
.store {
  display: inline-flex; align-items: center; gap: var(--space-12); height: var(--button-height); margin-top: var(--space-8);
  padding: 0 var(--space-24); border-radius: var(--radius-full); background: var(--ink); color: var(--on-ink);
}
.store:hover { text-decoration: none; }
.store .app-icon { width: var(--space-32); height: var(--space-32); border-radius: var(--radius-sm); }
.store span { display: flex; flex-direction: column; text-align: left; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8) var(--space-24); margin-top: var(--space-8); color: var(--text-muted); }
.proof span { display: inline-flex; align-items: center; gap: var(--space-4); }

/* Phones. The real welcome screen, and placeholders until the other screens are shot. */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: var(--space-24); padding: var(--space-32) 0 var(--space-48); }
.phone {
  flex: none; width: var(--size-seal-photo); aspect-ratio: 9 / 19.5; overflow: hidden;
  background: var(--neutral-0); border: var(--space-8) solid var(--surface);
  outline: var(--hairline) solid var(--border); border-radius: calc(var(--radius-xl) * 2);
}
.phone--lead { width: calc(var(--space-48) * 6); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phones .phone:not(.phone--lead) { display: none; }
@media (min-width: 900px) { .phones .phone:not(.phone--lead) { display: block; } }
.phones .phone--lead { animation: rise var(--duration-xl) var(--ease-enter) both; }
.shot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-8);
  width: 100%; height: 100%; padding: var(--space-24); text-align: center;
  background: var(--paper); color: var(--accent-text);
}
.shot .icon { width: var(--space-32); height: var(--space-32); }
@keyframes rise { from { opacity: 0; transform: translateY(var(--space-24)); } }

/* Feature rows: words on one side, a phone on the other, alternating */
.features { display: flex; flex-direction: column; gap: calc(var(--space-48) * 2); padding: var(--space-48) 0 calc(var(--space-48) * 2); }
.feature { display: grid; gap: var(--space-32); align-items: center; justify-items: center; }
.feature__copy { display: flex; flex-direction: column; gap: var(--space-12); max-width: calc(var(--space-48) * 9); }
.eyebrow { color: var(--accent); font-weight: 600; }
@media (min-width: 800px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--space-48); }
  .feature__copy { justify-self: end; }
  .feature:nth-child(even) .feature__copy { order: 2; justify-self: start; }
}

/* Private by default */
.band { padding: calc(var(--space-48) * 2) 0; background: var(--background); }
.band__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-12); margin-bottom: var(--space-48); }
.band__head p { max-width: var(--column); }
.facts { display: grid; gap: var(--space-32) var(--space-24); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { display: flex; flex-direction: column; gap: var(--space-8); }
.fact__tile { display: flex; align-items: center; justify-content: center; width: var(--tap-min); height: var(--tap-min); margin-bottom: var(--space-4); border-radius: var(--radius-md); background: var(--accent-subtle); color: var(--accent-text); }
.fact__tile--peach { background: var(--highlight); color: var(--on-highlight); }
.fact__tile .icon { width: var(--space-24); height: var(--space-24); }

/* Closing */
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-16); padding: calc(var(--space-48) * 2) 0; }
.closing img { width: var(--icon-disc); height: var(--icon-disc); border-radius: var(--radius-lg); }

/* Long-form pages: privacy, terms, support */
.doc { max-width: var(--column); padding: var(--space-32) 0 calc(var(--space-48) * 2); display: flex; flex-direction: column; gap: var(--space-16); }
.doc h1 { margin-bottom: var(--space-4); }
.doc h2 { margin-top: var(--space-24); }
.doc h3 { margin-top: var(--space-8); }
.doc ul, .doc ol { padding-left: var(--space-24); display: flex; flex-direction: column; gap: var(--space-8); }
.doc .summary { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-16); background: var(--paper); border-radius: var(--radius-lg); }
.doc .summary ul { padding-left: var(--space-24); }
.faq { display: flex; flex-direction: column; background: var(--surface); border: var(--hairline) solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq details + details { border-top: var(--hairline) solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); min-height: var(--tap-min); padding: var(--space-12) var(--space-16); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-muted); transition: transform var(--duration-sm) var(--ease-settle); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { display: flex; flex-direction: column; gap: var(--space-8); padding: 0 var(--space-16) var(--space-16); color: var(--text-muted); }
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); padding: var(--space-24) var(--space-16); background: var(--paper); border-radius: var(--radius-lg); }
.contact h2 { margin-top: 0; }

/* Buttons: the app's capsule */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  height: var(--button-height); padding: 0 var(--space-24); border-radius: var(--radius-full);
  font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.43px; white-space: nowrap;
  transition: background var(--duration-xs) var(--ease-settle);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-pressed); }

/* Footer, after Day One: the brand, then columns of links, then the fine print */
.site-foot { position: relative; z-index: 1; border-top: var(--hairline) solid var(--border); padding: var(--space-48) 0 var(--space-32); }
.foot__grid { display: grid; gap: var(--space-32); grid-template-columns: repeat(2, 1fr); }
.foot__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--space-12); align-items: flex-start; }
@media (min-width: 800px) {
  .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot__brand { grid-column: auto; }
}
.foot__col { display: flex; flex-direction: column; }
.foot__col h2 { margin-bottom: var(--space-4); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.foot__col a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--text); }
.foot__col a:hover { color: var(--accent); text-decoration: none; }
.foot__fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8) var(--space-24); margin-top: var(--space-48); padding-top: var(--space-24); border-top: var(--hairline) solid var(--border); color: var(--text-muted); }

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