/* Resolve marketing site.
 *
 * Hand-written CSS, no build step: this site is four pages of copy and one
 * form, and a toolchain would cost more to maintain than it saves. Tokens
 * below come from design.md and the logo itself — the wordmark is navy
 * (#1F2747) and the icon is deep green (#032E15), so the site uses navy for
 * type and reserves green for brand moments and CTAs. */

:root {
  --green-900: #032e15;
  --green-800: #054821;
  --green-600: #0ba84c;
  --green-500: #0ed762;
  --green-300: #57f499;
  --green-100: #b7fad3;
  --green-050: #eefaf3;

  --navy: #1f2747;
  --ink: #17203c;
  --muted: #5b6478;
  --line: #e3e7ee;
  --surface: #f6f8fa;
  --white: #fff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(23 32 60 / 6%), 0 4px 12px rgb(23 32 60 / 5%);
  --shadow-md: 0 2px 6px rgb(23 32 60 / 6%), 0 18px 42px rgb(23 32 60 / 9%);

  /* The page never goes edge-to-edge: 1120px keeps line lengths readable on a
   * 27" monitor without the copy stranding in the middle of a white field. */
  --wrap: 1120px;
  --pad: 24px;
}

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

html {
  scroll-behavior: smooth;
  /* Anchored sections must clear the sticky header, or "Pricing" lands with
   * its heading hidden behind the nav bar. */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-600);
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

p {
  margin: 0 0 1.1em;
}

/* Body copy tops out narrower than the grid it sits in. Measure beats
 * symmetry — a 1120px-wide paragraph is unreadable. */
p,
li {
  max-width: 68ch;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section--tint {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}

.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  color: var(--muted);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(36px, 4vw, 56px);
}

/* Skip link — keyboard users should not have to tab the whole nav on every
 * page load. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}

.skip:focus {
  left: 0;
  color: var(--white);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

/* :not(.btn) matters, and not for tidiness. `.site-nav a` is more specific than
 * `.btn--primary`, so without it the nav's colour wins and the CTA renders navy
 * text on a near-black green pill — invisible. */
.site-nav a:not(.btn) {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

.site-nav a:not(.btn):hover {
  color: var(--green-600);
}

@media (max-width: 780px) {
  /* The nav collapses to the CTA alone rather than a hamburger. The page is
   * short enough to scroll, and a menu button is a script and a focus trap to
   * maintain for four links. */
  .site-nav a:not(.btn) {
    display: none;
  }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--green-900);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-600);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover {
  color: var(--green-800);
  border-color: var(--green-300);
  background: var(--green-050);
}

.btn--onDark {
  background: var(--white);
  color: var(--green-900);
}

.btn--onDark:hover {
  background: var(--green-100);
  color: var(--green-900);
}

.btn--outlineOnDark {
  background: transparent;
  color: var(--white);
  border-color: rgb(255 255 255 / 35%);
}

.btn--outlineOnDark:hover {
  color: var(--white);
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 60%);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  background: var(--green-900);
  color: rgb(255 255 255 / 82%);
  overflow: hidden;
}

/* Two soft radial washes keep a full-bleed dark block from reading as a flat
 * rectangle, without adding an image to download. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      64rem 34rem at 78% -10%,
      rgb(14 215 98 / 22%),
      transparent 62%
    ),
    radial-gradient(
      48rem 30rem at 8% 110%,
      rgb(11 168 76 / 20%),
      transparent 60%
    );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 112px);
}

@media (max-width: 940px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  color: var(--white);
}

.hero .lede {
  color: rgb(255 255 255 / 80%);
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
}

.hero__note {
  margin-top: 22px;
  margin-bottom: 0;
  font-size: 0.92rem;
  color: rgb(255 255 255 / 70%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
  color: rgb(255 255 255 / 88%);
  font-size: 0.85rem;
  font-weight: 550;
  margin-bottom: 26px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  flex: 0 0 auto;
}

/* -------------------------------------------------- hero product mock-up */

/* An illustration, not a screenshot. Real captures of the app show client
 * building names from live data, which do not belong on a public page — so the
 * phone below is CSS with invented buildings.
 *
 * The layout and colours are matched against a real capture of My Day
 * (docs-site/img/01-my-day.png), not against this site's palette, so a visitor
 * who later sees the app recognises it. That means the app's own tokens, which
 * are NOT the marketing green: a white screen and header rather than a brand
 * bar, near-black type, a vivid red for overdue, and a mid green for active
 * and for the progress fill. Resist restyling these to match the page. */

.mock {
  --m-green: #15803d;
  --m-green-bright: #16a34a;
  --m-red: #dc2626;
  --m-amber: #f59e0b;
  --m-ink: #0a0a0a;
  --m-muted: #71717a;
  --m-line: #e4e4e7;

  width: min(320px, 100%);
  margin-inline: auto;
  border-radius: 34px;
  background: #fff;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 14%),
    0 30px 60px rgb(0 0 0 / 38%);
}

.mock__screen {
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  /* Tight leading throughout: this is a dense list rendered small, and the
   * page's 1.65 body line-height would space it into something the app has
   * never looked like. */
  line-height: 1.35;
}

.mock__head {
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--m-line);
}

.mock__head strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--m-ink);
}

.mock__head span {
  font-size: 0.75rem;
  color: var(--m-muted);
}

.mock__body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.mock__summary {
  border: 1px solid var(--m-line);
  border-radius: 12px;
  padding: 11px 12px;
}

.mock__summary-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mock__summary-top b {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--m-ink);
}

.mock__summary-top span {
  font-size: 0.72rem;
  color: var(--m-muted);
}

.mock__progress {
  margin-top: 8px;
  height: 5px;
  border-radius: 999px;
  background: var(--m-line);
  overflow: hidden;
}

.mock__progress i {
  display: block;
  height: 100%;
  background: var(--m-green-bright);
}

.mock__counts {
  display: flex;
  gap: 14px;
  margin-top: 9px;
  font-size: 0.7rem;
  color: var(--m-muted);
}

.mock__counts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mock__counts b {
  color: var(--m-ink);
  font-weight: 700;
}

.mock__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m-green-bright);
}

.mock__dot--warn {
  background: var(--m-amber);
}

.mock__section {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--m-ink);
  letter-spacing: -0.01em;
}

/* The carried-over group is the one thing on this screen the app shouts
 * about, and it shouts in red uppercase. */
.mock__section--alert {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--m-red);
}

.mock__section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mock__section-row span {
  font-size: 0.7rem;
  color: var(--m-muted);
}

.mock__card {
  border: 1px solid var(--m-line);
  border-radius: 12px;
  padding: 11px 12px;
}

.mock__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.mock__id {
  font-size: 0.7rem;
  color: var(--m-muted);
}

.mock__badge {
  font-size: 0.66rem;
  font-weight: 600;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
}

.mock__badge--overdue {
  background: var(--m-red);
}

.mock__badge--active {
  background: var(--m-green);
}

.mock__card b {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--m-ink);
}

.mock__card small {
  display: block;
  font-size: 0.7rem;
  color: var(--m-muted);
  margin-top: 3px;
}

.mock__tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--m-line);
  padding: 9px 0 11px;
  text-align: center;
}

.mock__tabbar span {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--m-muted);
}

.mock__tabbar .is-on {
  color: var(--m-green);
}

/* ----------------------------------------------------------- proof strip */

.strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: 34px;
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px 34px;
}

.strip__item b {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* -------------------------------------------------------------- features */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 22px;
}

/* Four cards in an `auto-fit` grid land 3 + 1, orphaning the last one. These
 * four carry bullet lists and want the width anyway, so pin them to 2 × 2. */
.cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .cards--two {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-050);
  border: 1px solid var(--green-100);
  color: var(--green-800);
  margin-bottom: 18px;
}

.card__icon svg {
  width: 21px;
  height: 21px;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 0;
}

.card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.card li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  color: var(--muted);
}

.card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--green-500);
}

/* ---------------------------------------------------------- how it works */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}

.step {
  counter-increment: step;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-600);
  margin-bottom: 10px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ form */

.cta {
  background: var(--green-900);
  color: rgb(255 255 255 / 82%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    56rem 32rem at 88% 6%,
    rgb(14 215 98 / 18%),
    transparent 60%
  );
  pointer-events: none;
}

.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 900px) {
  .cta__inner {
    grid-template-columns: 1fr;
  }
}

.cta h2 {
  color: var(--white);
}

/* Scoped to the copy column, not the whole section. A bare `.cta p` would also
 * hit the paragraphs inside the white form card — which sits in this section
 * too — painting them near-white on white and hiding both the form's fine
 * print and its success/error messages. */
.cta__copy p {
  color: rgb(255 255 255 / 76%);
}

.cta .eyebrow {
  color: var(--green-300);
}

.cta__points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cta__points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 76%);
}

.cta__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--green-500);
  border-bottom: 2px solid var(--green-500);
  transform: rotate(-45deg);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}

.field .opt {
  font-weight: 450;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  width: 100%;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #cfd6e2;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgb(14 215 98 / 22%);
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

/* Honeypot. Bots fill every input they can see in the DOM; humans never see
 * this one. Kept out of the tab order and hidden from screen readers so it
 * only ever catches automation. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-status {
  margin: 16px 0 0;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}

.form-status.is-shown {
  display: block;
}

.form-status--ok {
  background: var(--green-050);
  border: 1px solid var(--green-100);
  color: var(--green-800);
}

.form-status--err {
  background: #fff1f0;
  border: 1px solid #ffd0cc;
  color: #8c2018;
}

.form-status p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-block: 46px 40px;
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer img {
  height: 26px;
  margin-bottom: 12px;
}

.site-footer p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
}

/* Names the publisher. Worth having beyond housekeeping: Google's OAuth
 * consent screen shows a publisher, and a reviewer checks it against what the
 * site and the privacy policy say. All three have to agree. */
.site-footer .foot-legal {
  margin-top: 10px;
  font-size: 0.8rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.9rem;
}

.foot-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 550;
}

.foot-nav a:hover {
  color: var(--green-600);
  text-decoration: underline;
}

/* ------------------------------------------------------------ legal page */

.legal {
  padding-block: clamp(48px, 6vw, 80px);
}

.legal .wrap {
  max-width: 78ch;
}

.legal h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  margin-bottom: 10px;
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
}

.legal h3 {
  font-size: 1.06rem;
  margin-top: 1.8em;
}

.legal p,
.legal li {
  color: #3b455e;
  max-width: none;
}

.legal ul {
  padding-left: 22px;
  display: grid;
  gap: 8px;
  margin-bottom: 1.2em;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2.4em;
}

.legal .callout {
  background: var(--green-050);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-block: 1.6em;
}

.legal .callout p:last-child {
  margin-bottom: 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.4em;
  font-size: 0.94rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border: 1px solid var(--line);
}

.legal th {
  background: var(--surface);
  color: var(--navy);
  font-weight: 650;
}
