/* The front page (js/ui/landing.js): the navy of the app icon with its sticky notes, light sections in between
   (dark ones when the system is dark). The pictures of the app keep the app's own light look. */

.landing {
  --l-navy: #0e1a52;
  --l-navy-2: #1b2c8c;
  --l-on-navy: #fff;
  --l-on-navy-2: rgba(255, 255, 255, 0.74);
  --l-bg: #f5f6fb;
  --l-surface: #fff;
  --l-text: #141a33;
  --l-text-2: #4b5373;
  --l-line: rgba(20, 26, 51, 0.1);
  --l-line-2: rgba(20, 26, 51, 0.3);
  --l-blue: #1976d2;
  --l-note-blue: #4fc3f7;
  --l-note-orange: #ff9e5e;
  --l-note-yellow: #ffe066;
  --l-note-green: #9ccc65;
  --l-note-pink: #f48fb1;
  --l-note-purple: #ce93d8;
  --l-head: "Segoe UI Variable Display", "SF Pro Display", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --l-shadow: 0 1px 2px rgba(14, 26, 82, 0.06), 0 8px 24px rgba(14, 26, 82, 0.08);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--l-bg);
  color: var(--l-text);
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  .landing {
    --l-bg: #0b1030;
    --l-surface: #141b45;
    --l-text: #e9ecf8;
    --l-text-2: #a9b1d3;
    --l-line: rgba(255, 255, 255, 0.1);
    --l-line-2: rgba(255, 255, 255, 0.35);
    --l-blue: #64b5f6;
    --l-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

:where(.landing) :is(h1, h2, h3) { font-family: var(--l-head); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
:where(.landing) p { margin: 0; }
:where(.landing) a { color: var(--l-blue); }
.landing :focus-visible { outline: 2px solid var(--l-note-yellow); outline-offset: 2px; }
.l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .l-wrap { padding: 0 32px; } }
.landing section { scroll-margin-top: 64px; }

/* buttons */
.l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; border: 0; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.l-btn .icon { width: 20px; height: 20px; }
.l-btn.note { background: var(--l-note-yellow); color: var(--l-navy); box-shadow: 0 6px 18px rgba(255, 224, 102, 0.28); }
.l-btn.note:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 224, 102, 0.38); }
.l-btn.ghost { background: rgba(255, 255, 255, 0.1); color: var(--l-on-navy); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.l-btn.ghost:hover { background: rgba(255, 255, 255, 0.18); }
.l-btn.small { height: 38px; padding: 0 16px; font-size: 15px; border-radius: 8px; }

/* top bar */
.l-top { position: sticky; top: 0; z-index: 5; background: rgba(14, 26, 82, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--l-on-navy); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.l-top-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.l-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--l-head); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.l-brand img { border-radius: 8px; }
.l-links { margin-left: auto; display: none; gap: 4px; }
.l-links button { background: none; border: 0; color: var(--l-on-navy-2); font-size: 15px; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.l-links button:hover { color: var(--l-on-navy); background: rgba(255, 255, 255, 0.08); }
.l-top .l-btn { margin-left: auto; }
@media (min-width: 760px) {
  .l-links { display: flex; }
  .l-top .l-btn { margin-left: 8px; }
}

/* hero */
.l-hero { position: relative; color: var(--l-on-navy); background:
    radial-gradient(900px 500px at 85% 20%, rgba(79, 195, 247, 0.22), transparent 60%),
    radial-gradient(700px 500px at 5% 100%, rgba(156, 204, 101, 0.14), transparent 60%),
    linear-gradient(160deg, var(--l-navy) 0%, var(--l-navy-2) 100%);
  overflow: hidden; }
.l-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.l-hero-in { position: relative; display: grid; gap: 48px; padding-top: 48px; padding-bottom: 64px; align-items: center; }
.l-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--l-note-yellow); margin-bottom: 16px; }
.l-hero h1 { font-size: clamp(34px, 5.6vw, 56px); font-weight: 750; max-width: 15em; }
.l-lead { font-size: clamp(17px, 2vw, 19px); color: var(--l-on-navy-2); margin-top: 20px; max-width: 36em; }
.l-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.l-hero .l-fine { margin-top: 16px; color: var(--l-on-navy-2); font-size: 14px; }
.l-hero-art { position: relative; display: grid; place-items: center; padding: 8px 0; }
@media (min-width: 960px) {
  .l-hero-in { grid-template-columns: 1fr 1fr; padding-top: 72px; padding-bottom: 96px; }
}

/* sticky notes around the phone */
.l-sticky { position: absolute; width: 74px; height: 74px; border-radius: 6px; display: grid; place-items: center; color: rgba(14, 26, 82, 0.8); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); background: linear-gradient(135deg, var(--c) 0%, var(--c) 78%, color-mix(in srgb, var(--c) 70%, #000) 78%, color-mix(in srgb, var(--c) 85%, #fff) 100%); }
.l-sticky .icon { width: 40px; height: 40px; }
.l-sticky.s1 { --c: var(--l-note-orange); top: 4%; right: calc(50% - 215px); transform: rotate(9deg); }
.l-sticky.s2 { --c: var(--l-note-blue); bottom: 18%; left: calc(50% - 250px); transform: rotate(7deg); width: 60px; height: 60px; }
.l-sticky.s3 { --c: var(--l-note-green); bottom: 6%; right: calc(50% - 230px); transform: rotate(-6deg); }
.l-callout { position: absolute; z-index: 2; top: 9%; left: calc(50% - 255px); width: 124px; padding: 14px 12px; background: var(--l-note-yellow); color: var(--l-navy); font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: 15px; line-height: 1.25; text-align: center; transform: rotate(-5deg); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); border-radius: 4px; }
@media (max-width: 640px) {
  .l-sticky.s1 { right: 0; }
  .l-sticky.s2 { display: none; }
  .l-sticky.s3 { right: 0; }
  .l-callout { display: none; }
}

/* the picture of the home screen (the app's light look) */
.l-phone { position: relative; z-index: 1; width: min(300px, 100%); border-radius: 40px; padding: 10px; background: #0a0f2b; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px rgba(0, 0, 0, 0.45); }
.pm-screen { border-radius: 31px; overflow: hidden; background: #fafafa; color: rgba(0, 0, 0, 0.87); font-family: Roboto, "Segoe UI", system-ui, sans-serif; display: flex; flex-direction: column; }
.pm-bar { height: 52px; padding: 0 16px; padding-top: 14px; box-sizing: content-box; background: #2196f3; color: #fff; display: flex; align-items: center; gap: 14px; font-size: 18px; }
.pm-bar .icon { width: 20px; height: 20px; }
.pm-bar b { font-weight: 500; }
.pm-body { padding: 4px 0 12px; }
.pm-card { margin: 8px; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.14); }
.pm-card h4 { margin: 0; padding: 12px 14px 4px; font-size: 17px; font-weight: 500; }
.pm-line { display: flex; align-items: center; min-height: 54px; }
.pm-what { flex: 1; min-width: 0; padding: 8px 4px 8px 14px; }
.pm-title { font-size: 14px; }
.pm-sub { font-size: 11.5px; color: #9e9e9e; margin-top: 2px; }
.pm-sub .over, .bm-card .over { color: #e53935; }
.pm-sub .soon, .bm-card .soon { color: #ef6c00; }
.pm-lane { font-weight: 500; }
.pm-lane.lane-home { color: #2e7d32; }
.pm-lane.lane-work { color: #1565c0; }
.pm-lane.lane-errands { color: #8e24aa; }
.pm-radio { width: 16px; height: 16px; margin: 0 14px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.54); flex: none; }
.pm-radio.on { border-color: #2196f3; background: radial-gradient(#2196f3 0 4px, transparent 4.5px); }
.pm-actions { display: flex; justify-content: flex-end; gap: 4px; padding: 2px 8px 8px; }
.pm-actions span { color: #2196f3; font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 10px; }
.pm-actions .danger { color: #e53935; }
.pm-nav { position: relative; height: 54px; background: #fff; box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12); display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; margin-top: 8px; }
.pm-nav > span { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; color: rgba(0, 0, 0, 0.6); }
.pm-nav > span.on { color: #2196f3; font-size: 12px; }
.pm-nav .icon { width: 22px; height: 22px; }
.pm-nav .pm-fab { grid-column: 2; grid-row: 1; justify-self: center; width: 50px; height: 50px; border-radius: 50%; background: #2196f3; color: #fff; display: grid; place-items: center; margin-top: -40px; box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px rgba(0, 0, 0, 0.14); }
.pm-nav > span:last-child { grid-column: 3; }
.pm-nav .pm-fab .icon { width: 26px; height: 26px; }

/* why it's different: the ordered list */
.l-why { padding: 88px 0 72px; }
.l-why h2, .l-more h2, .l-boardsec h2, .l-start h2 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 750; }
.l-intro { margin-top: 16px; font-size: 18px; color: var(--l-text-2); max-width: 40em; }
.l-reasons { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 860px) { .l-reasons { grid-template-columns: 1fr 1fr; gap: 24px 32px; } }
.l-reasons li { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--l-surface); border-radius: 16px; box-shadow: var(--l-shadow); border: 1px solid var(--l-line); }
.l-reasons h3 { font-size: 20px; font-weight: 700; }
.l-reasons p { margin-top: 8px; color: var(--l-text-2); font-size: 16px; }
.l-num { --c: var(--l-note-yellow); flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--l-head); font-size: 26px; font-weight: 800; color: #0e1a52; border-radius: 4px; transform: rotate(-4deg); box-shadow: 0 4px 10px rgba(14, 26, 82, 0.18); background: linear-gradient(135deg, var(--c) 0%, var(--c) 76%, color-mix(in srgb, var(--c) 70%, #000) 76%, color-mix(in srgb, var(--c) 85%, #fff) 100%); }
.l-num.n1 { --c: var(--l-note-yellow); }
.l-num.n2 { --c: var(--l-note-orange); transform: rotate(3deg); }
.l-num.n3 { --c: var(--l-note-green); }
.l-num.n4 { --c: var(--l-note-blue); transform: rotate(3deg); }
.l-num.n5 { --c: var(--l-note-pink); }
.l-num.n6 { --c: var(--l-note-purple); transform: rotate(3deg); }

/* the board */
.l-boardsec { padding: 72px 0; background: var(--l-surface); border-top: 1px solid var(--l-line); border-bottom: 1px solid var(--l-line); }
.l-board-in { display: grid; gap: 40px; align-items: center; }
.l-board-text p { margin-top: 16px; color: var(--l-text-2); font-size: 17px; max-width: 34em; }
@media (min-width: 960px) { .l-board-in { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }
.l-boardmock { border-radius: 16px; background: #fafafa; color: rgba(0, 0, 0, 0.87); box-shadow: 0 0 0 1px rgba(14, 26, 82, 0.08), 0 24px 48px rgba(14, 26, 82, 0.16); overflow: hidden; font-family: Roboto, "Segoe UI", system-ui, sans-serif; }
.bm-in { overflow-x: auto; }
.bm-lanes { display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 14px; background: #2196f3; color: #fff; min-width: 520px; }
.bm-lanes span { padding: 4px 12px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, 0.16); }
.bm-lanes span.on { background: #4fc3f7; color: #0e1a52; font-weight: 600; }
.bm-lanes .icon { width: 22px; height: 22px; opacity: 0.9; }
.bm-lanes .icon:first-of-type { margin-left: auto; }
.bm-cols { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; padding: 12px; background: #b3e5fc; min-width: 520px; }
.bm-col { background: rgba(255, 255, 255, 0.55); border-radius: 6px; padding: 8px; min-height: 200px; }
.bm-col h5 { margin: 2px 2px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: rgba(0, 0, 0, 0.7); }
.bm-card { background: #fff; border-radius: 4px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.bm-card span { display: block; }
.bm-card small { display: block; margin-top: 3px; font-size: 11px; color: #78909c; }
.bm-col.done .bm-card { color: rgba(0, 0, 0, 0.5); }
.bm-slot { border: 2px dashed rgba(14, 26, 82, 0.22); border-radius: 6px; padding: 18px 8px; text-align: center; font-size: 12px; color: rgba(0, 0, 0, 0.5); }

/* also in the box */
.l-more { padding: 80px 0; }
.l-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 640px) { .l-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .l-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.l-feature { padding: 24px; border-radius: 16px; background: var(--l-surface); border: 1px solid var(--l-line); }
.l-ficon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--l-blue) 14%, transparent); color: var(--l-blue); }
.l-feature h3 { font-size: 18px; font-weight: 700; margin-top: 16px; }
.l-feature p { margin-top: 6px; color: var(--l-text-2); font-size: 15.5px; }

/* start: steps and the account form */
.l-start { padding: 80px 0; color: var(--l-on-navy); background: radial-gradient(800px 500px at 100% 0%, rgba(79, 195, 247, 0.18), transparent 60%), linear-gradient(160deg, var(--l-navy) 0%, var(--l-navy-2) 100%); }
.l-start-in { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .l-start-in { grid-template-columns: 1fr 420px; gap: 64px; } }
.l-steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.l-steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--l-on-navy-2); font-size: 17px; min-height: 36px; }
.l-steps li::before { content: counter(step); position: absolute; left: 0; top: -3px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: var(--l-note-yellow); font-weight: 700; }
.l-steps b { color: var(--l-on-navy); }
.l-apk { color: var(--l-on-navy); display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 14px 20px 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); text-decoration: none; }
.l-apk:hover { background: rgba(255, 255, 255, 0.14); }
.l-apk .icon { width: 28px; height: 28px; color: var(--l-note-green); }
.l-apk b { display: block; font-size: 16px; }
.l-apk small { display: block; color: var(--l-on-navy-2); font-size: 13px; }
.l-start .l-fine { margin-top: 14px; color: var(--l-on-navy-2); font-size: 14px; max-width: 30em; }
.l-formcard { background: var(--l-surface); color: var(--l-text); border-radius: 20px; padding: 28px 24px 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
@media (min-width: 640px) { .l-formcard { padding: 36px 32px 24px; } }
.l-formcard h3 { font-size: 24px; font-weight: 750; }
.l-formcard > p { margin-top: 6px; color: var(--l-text-2); font-size: 15px; }
.l-formcard form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.l-formcard form input { width: 100%; border-bottom-color: var(--l-line-2); font-size: 16px; }
.l-formcard form input:focus { border-bottom: 2px solid var(--l-blue); outline: none; }
.l-formcard :focus-visible { outline-color: var(--l-blue); }
.l-formcard .error-text { color: var(--red); font-size: 14px; }
.l-formcard .btn { height: 48px; border-radius: 10px; font-size: 16px; font-weight: 600; margin-top: 6px; background: var(--l-blue); color: #fff; box-shadow: none; }
@media (prefers-color-scheme: dark) { .l-formcard .btn { color: #0b1030; } }
.l-formcard .switch-mode { display: block; margin: 10px auto 0; color: var(--l-blue); text-transform: none; letter-spacing: 0; font-size: 15px; }

/* "Continue with Google" in the form card */
.l-formcard .google-btn { height: 48px; border-radius: 10px; margin-top: 20px; font-size: 16px; }
.l-formcard .or-line { color: var(--l-text-2); margin: 18px 0 4px; }
.l-formcard .or-line::before, .l-formcard .or-line::after { background: var(--l-line); }
.l-formcard .or-line + form { margin-top: 8px; }
@media (prefers-color-scheme: dark) { .l-formcard .google-btn { background: #131314; color: #e3e3e3; border-color: #8e918f; } }

/* footer */
.l-foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--l-text-2); font-size: 14px; }
.l-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.l-foot .l-brand { font-size: 15px; color: var(--l-text); }
.l-foot .l-brand img { border-radius: 6px; }
.l-foot a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .l-btn { transition: none; }
  .l-btn.note:hover { transform: none; }
}

/* the privacy page (privacy.html): the same top bar and footer, text in between */
.l-docpage { margin: 0; background: #f5f6fb; font-family: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
@media (prefers-color-scheme: dark) { .l-docpage { background: #0b1030; } }
.l-docpage .landing { overflow: visible; }
.l-top a.l-brand { color: inherit; text-decoration: none; }
.l-top a.l-btn { margin-left: auto; }
.l-doc { padding: 48px 0 64px; }
.l-doc .l-wrap { max-width: 760px; }
.l-doc h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 750; }
.l-doc .l-updated { margin-top: 8px; color: var(--l-text-2); font-size: 14px; }
.l-doc h2 { font-size: 22px; font-weight: 700; margin-top: 40px; }
.l-doc p, .l-doc li { font-size: 16.5px; color: var(--l-text-2); }
.l-doc p { margin-top: 12px; }
.l-doc ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.l-doc strong { color: var(--l-text); }
