/* Fortis Planner — landing page styles (Design/Level1_Implementation/10_LandingPage/Plan.md §3.2).
   Colours and type follow the application's branding.json: navy #1e3a5f, Inter. No web fonts
   are loaded: Inter where it is installed, the system face otherwise, and nothing else is
   requested from anywhere. */

:root {
  --navy: #1e3a5f;
  --navy-dark: #15294a;
  --ink: #1f2937;
  --muted: #5b6573;
  --rule: #e2e6ec;
  --paper: #ffffff;
  --wash: #f4f6f9;
  --accent: #7e14ff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--navy); }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header: the mark and name, Sign in at the right */
.site-header {
  background: var(--navy);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.01em;
}
.brand img { height: 34px; width: auto; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
/* The Open installed app button carries both its labels; a phone shows the
   short one (the media query at the foot). */
.header-actions .label-short { display: none; }

/* The hidden attribute must win over .button's display, or open-app.js's
   buttons show (and fail) in browsers that can't open the app, like Safari. */
[hidden] { display: none !important; }

.button {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.button-light {
  background: #fff;
  color: var(--navy);
}
.button-light:hover { background: #e9eef5; }
.button-navy {
  background: var(--navy);
  color: #fff;
}
.button-navy:hover { background: var(--navy-dark); }

/* The one sentence */
.lead {
  padding: 56px 0 40px;
}
.lead h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
/* The size of all the pages' body text, paragraphs and list items alike (20px,
   18px on a phone): .trial p and .notice p below repeat it. The three columns
   alone are smaller, their headings 18px and their text 16px. */
.lead p {
  margin: 0;
  font-size: 20px;
  color: var(--ink);
}

/* Three points */
.points {
  background: var(--wash);
  padding: 40px 0;
}
.points ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.points h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--navy);
}
.points p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

/* The trial */
.trial {
  padding: 44px 0 56px;
}
.trial h2 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--navy);
}
.trial p { margin: 0 0 14px; font-size: 20px; }
.trial .actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 17px; }
.trial .actions .button-light { border: 1px solid var(--navy); }
.trial .open-app-note { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); }

/* The privacy notice */
.notice {
  padding: 40px 0 56px;
}
.notice h1 {
  margin: 0 0 8px;
  font-size: 32px;
  color: var(--navy);
}
/* When the text of a page was last changed: the last line of every page, quietly. */
.notice .updated, .trial .updated { color: var(--muted); font-size: 15px; margin: 28px 0 0; }
.notice h2 {
  margin: 28px 0 8px;
  font-size: 24px;
  color: var(--navy);
}
.notice p, .notice li { max-width: 68ch; font-size: 20px; }
.notice ul { padding-left: 22px; }

/* The three points sit side by side only when the page has its full width
   (the 880px measure above). Anything narrower, which is every phone in
   either orientation and a tablet held upright, gets them one under the
   other, with a rule between. */
@media (max-width: 900px) {
  .points ul { grid-template-columns: 1fr; gap: 0; }
  .points li { padding: 20px 0; border-top: 1px solid var(--rule); }
  .points li:first-child { padding-top: 0; border-top: 0; }
  .points li:last-child { padding-bottom: 0; }
}

@media (max-width: 640px) {
  .lead { padding: 40px 0 32px; }
  .lead h1 { font-size: 30px; }
  .lead p, .trial p, .notice p, .notice li { font-size: 18px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { height: 30px; }
  /* The header on a phone (Design/Level1_Implementation/OutstandingItems_BeforeDemo.md
     §1.31): the two buttons smaller and kept side by side, Open installed app
     reading Open app, and the header's height a minimum rather than a fixed
     figure, so that a phone too narrow even so gets a taller header and
     nothing is cut off. Nothing here changes on a wider screen. */
  .site-header .wrap { height: auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
  .header-actions { flex-wrap: nowrap; gap: 6px; flex-shrink: 0; }
  .header-actions .button { padding: 6px 10px; font-size: 13px; }
  .header-actions .label-long { display: none; }
  .header-actions .label-short { display: inline; }
}
