/* The myfirstmate.co pages' one stylesheet: the look of myfirstmate.pro's
   /info/new and /info/dev (Tailwind there), written out by hand. */
:root {
  --fm-50: oklch(95.86% 0.017 271.24);
  --fm-100: oklch(91.68% 0.033 270.45);
  --fm-300: oklch(75.22% 0.102 268.95);
  --fm-400: oklch(67.5% 0.14 267.5);
  --fm-500: oklch(59.24% 0.177 266.12);
  --fm-600: oklch(51.28% 0.218 264.5);
  --fm-700: oklch(45.35% 0.197 264.39);
  --fm-800: oklch(39.62% 0.166 264.27);
  --fm-900: oklch(25.68% 0.097 264.78);
  --fm-950: oklch(17.7% 0.053 265.47);
  --sky-600: oklch(59.05% 0.156 247.2);
  --cyan-200: oklch(90.05% 0.098 206.89);
  --cyan-300: oklch(86.82% 0.129 207.57);

  --page: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --ink: #111827;
  --body: #4b5563;
  --text: #374151;
  --muted: #6b7280;
  --accent: var(--fm-600);
  --eyebrow: var(--fm-600);
  --chip-bg: var(--fm-100);
  --chip-fg: var(--fm-700);
  --picked-bg: var(--fm-50);
  --picked-ring: var(--fm-500);
  --note-ring: var(--fm-100);
  --note-title: var(--fm-700);
  --media-gap: #f3f4f6;
  --foot-bg: #f3f4f6;
  --foot-fg: #4b5563;
  --foot-line: #e5e7eb;
  --foot-dot: #9ca3af;
  --foot-hover: #1f2937;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #111827;
    --surface: #1f2937;
    --surface-2: oklch(21% 0.02 265 / .6);
    --line: #374151;
    --line-soft: #374151;
    --ink: #f3f4f6;
    --body: #9ca3af;
    --text: #d1d5db;
    --muted: #9ca3af;
    --accent: var(--fm-300);
    --eyebrow: var(--fm-300);
    --chip-bg: oklch(25.68% 0.097 264.78 / .4);
    --chip-fg: var(--fm-300);
    --picked-bg: oklch(25.68% 0.097 264.78 / .4);
    --picked-ring: var(--fm-400);
    --note-ring: var(--fm-800);
    --note-title: var(--fm-300);
    --media-gap: #111827;
    --foot-bg: rgb(31 41 55 / .6);
    --foot-fg: #d1d5db;
    --foot-line: #374151;
    --foot-dot: #6b7280;
    --foot-hover: #f3f4f6;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--body); font: 400 16px/1.6 'Work Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, strong, b { font-family: Manrope, system-ui, sans-serif; }
h1, h2, p, figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.icon { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; user-select: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--eyebrow); }
.h2 { margin-top: 8px; font-size: 24px; line-height: 1.25; font-weight: 800; color: var(--ink); }
.lead { margin-top: 12px; font-size: 16px; color: var(--body); }
section.part { margin-top: 80px; scroll-margin-top: 80px; }
section.part.near { margin-top: 64px; }
.chip { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--chip-bg); color: var(--chip-fg); }
.num { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--chip-bg); color: var(--chip-fg); font: 700 16px/1 Manrope, sans-serif; }
.item { display: flex; gap: 12px; }
.item strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.item span.t { display: block; font-size: 14px; color: var(--body); }
.grid2 { display: grid; gap: 40px; align-items: center; }
.cols2 { margin-top: 24px; display: grid; gap: 16px; }
.card { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.card .icon { color: var(--accent); }
.card strong { margin-top: 8px; display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.card span.t { margin-top: 4px; display: block; font-size: 14px; color: var(--body); }

.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 12px; font: 600 16px/1.5 Manrope, sans-serif; text-decoration: none; box-shadow: 0 10px 15px -3px oklch(25.68% 0.097 264.78 / .2); transition: background .15s; }
.cta .icon { font-size: 20px; }
.cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cta.blue { background: var(--fm-600); color: #fff; }
.cta.blue:hover { background: var(--fm-500); }
.cta.light { background: #fff; color: var(--fm-700); }
.cta.light:hover { background: var(--fm-50); }
.see { margin-top: 24px; display: inline-flex; align-items: center; gap: 6px; font: 600 16px/1.5 Manrope, sans-serif; color: var(--chip-fg); text-decoration: none; }
.see:hover { text-decoration: underline; }
.see .icon { font-size: 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 17px/1 Manrope, sans-serif; }
.brand svg { width: 32px; height: 32px; border-radius: 8px; }
.top .cta { padding: 8px 14px; font-size: 14px; box-shadow: none; }

/* Hero: a banner above the text on phones; behind it, on the left's open water, from 768px up. */
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; background: var(--fm-950); color: #fff; box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.hero .bg { position: relative; }
.hero .bg img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero .bg::after { content: ''; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(to top, var(--fm-950), transparent); }
.hero .copy { position: relative; max-width: 672px; padding: 4px 20px 40px; }
.hero .eyebrow { color: var(--cyan-200); }
.hero h1 { margin-top: 12px; font-size: 30px; line-height: 1.25; font-weight: 800; color: #fff; }
.hero .lead { margin-top: 16px; color: rgb(255 255 255 / .85); }
.benefits { margin-top: 24px; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 10px; }
.benefits .icon { color: var(--cyan-300); }
.benefits strong { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.benefits span.t { display: block; font-size: 14px; color: rgb(255 255 255 / .75); }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.how { padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: rgb(255 255 255 / .9); text-decoration: none; }
.how:hover { color: #fff; text-decoration: underline; }
.free { margin-top: 12px; font-size: 14px; color: rgb(255 255 255 / .75); }
.ribbon { pointer-events: none; position: absolute; top: 76px; right: 76px; z-index: 10; width: 300px; padding: 6px 0; transform: translate(50%, -50%) rotate(45deg); background: linear-gradient(to right, #ffd23f, #ff9f1c); color: #2a1600; text-align: center; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .3); }
.ribbon p:first-child { font-size: 11px; line-height: 1.25; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.ribbon p:last-child { font-size: 10px; line-height: 1.25; font-weight: 600; }

/* /dev's first screen: the headline over the example, framed as on a partner's page */
.dev-hero { padding: 32px 20px 24px; }
.dev-hero .intro { max-width: 768px; }
.dev-hero .actions { margin-top: 24px; }
.dev-hero figure { margin-top: 32px; }
.dev-hero .frame { outline-color: rgb(255 255 255 / .1); }
.dev-hero iframe { display: block; }
.dev-hero figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: rgb(255 255 255 / .7); }

/* Sample cards */
.mock { margin: 0 auto; width: 100%; max-width: 448px; overflow: hidden; border-radius: 24px; background: var(--surface); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); outline: 1px solid var(--line); }
.packet .head { padding: 20px 20px 24px; color: #fff; background: linear-gradient(to bottom right, var(--fm-700), var(--sky-600)); }
.packet .by { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgb(255 255 255 / .8); }
.packet .by .logo { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: #fff; color: var(--fm-700); }
.packet .by .icon { font-size: 18px; }
.packet .hi { margin-top: 16px; font: 700 24px/1.3 Manrope, sans-serif; }
.packet .sub { margin-top: 4px; font-size: 14px; color: rgb(255 255 255 / .8); }
.stack { display: grid; gap: 12px; padding: 16px; font-size: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.row > .icon { color: var(--accent); }
.row .txt { min-width: 0; flex: 1; }
.row b { display: block; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row small { display: block; font-size: 12px; color: var(--muted); }
.note { padding: 12px; border-radius: 12px; outline: 1px solid var(--note-ring); }
.note p:first-child { font-size: 12px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; color: var(--note-title); }
.note p:last-child { margin-top: 4px; color: var(--text); }
.docs > p { font-size: 12px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; color: var(--muted); }
.docs div { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.docs span.doc { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); outline: 1px solid var(--line); font-size: 12px; color: var(--text); }
.docs .icon { font-size: 16px; color: #ef4444; }
.picker .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.picker .bar span:first-child { font-weight: 600; color: var(--ink); }
.picker .bar .icon { color: var(--accent); }
.picker .list { display: grid; gap: 8px; padding: 16px; font-size: 14px; }
.picker .row.picked { background: var(--picked-bg); outline: 2px solid var(--picked-ring); }
.picker .ready { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: linear-gradient(to right, var(--fm-700), var(--sky-600)); color: #fff; font-size: 14px; font-weight: 600; }
.picker .ready .icon { font-size: 18px; }

/* A browser window around a screenshot or the live example */
.frame { display: block; overflow: hidden; border-radius: 16px; background: var(--surface); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); outline: 1px solid var(--line); }
.frame .bar { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame .bar i { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.frame .bar i:nth-child(1) { background: #f87171; }
.frame .bar i:nth-child(2) { background: #fbbf24; }
.frame .bar i:nth-child(3) { background: #34d399; }
.frame .bar span { min-width: 0; margin-left: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--muted); }
.frame img { width: 100%; }
a.frame { text-decoration: none; transition: outline-color .15s; }
a.frame:hover { outline-color: var(--fm-300); }

/* Itineraries */
.itin-head { display: grid; gap: 24px; }
.ticks { display: grid; gap: 12px; font-size: 14px; color: var(--text); }
.ticks li { display: flex; gap: 8px; }
.ticks .icon { font-size: 18px; color: var(--accent); }
.shot { position: relative; margin-top: 32px; }
.shot .browser { display: none; }
.phone { margin: 0 auto; width: 256px; overflow: hidden; border: 6px solid #111827; border-radius: 36px; background: #111827; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); outline: 1px solid #374151; }
.phone img { width: 100%; border-radius: 28px; }
.shot figcaption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }

/* Local know-how and /dev's callouts */
.know { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.know .card { padding: 12px; }
.callouts { margin-top: 32px; display: grid; gap: 16px; }
.steps { margin-top: 32px; display: grid; gap: 16px; }

/* /dev's post kit, and a post as it shows in a feed */
.posts { display: grid; gap: 40px; align-items: center; }
.posts .lead { max-width: 672px; }
.kit { margin-top: 24px; display: grid; gap: 16px; }
.kit-steps { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text); }
.kit-steps li { display: flex; align-items: center; gap: 8px; }
.kit-steps .num { width: 24px; height: 24px; font-size: 12px; }
.posts .cta { margin-top: 32px; }
.post { margin: 0 auto; width: 100%; max-width: 384px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.post .who { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.post .avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fm-600); color: #fff; font: 700 14px/1 Manrope, sans-serif; }
.post .who > span:last-child { min-width: 0; }
.post .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink); }
.post .who small { display: block; font-size: 12px; color: var(--muted); }
.post .who small .icon { font-size: 12px; vertical-align: -2px; }
.post > p { padding: 10px 16px 12px; font-size: 14px; line-height: 1.375; color: var(--text); }
.post > p span { color: var(--muted); }
.post .media { display: grid; grid-template-columns: 2fr 1fr; gap: 2px; background: var(--media-gap); }
.post .media .main { position: relative; grid-row: span 2; }
.post .media img { width: 100%; height: 100%; object-fit: cover; }
.post .media .main img { aspect-ratio: 1; }
.post .badge { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: 11px; font-weight: 600; }
.post .badge .icon { font-size: 14px; }
.post .reactions { display: flex; justify-content: space-around; padding: 8px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--muted); }
.post .reactions span { display: flex; align-items: center; gap: 4px; }
.post .reactions .icon { font-size: 16px; }

/* Pricing, and /dev's closing call to action */
.pricing { position: relative; overflow: hidden; padding: 40px 24px; border-radius: 24px; text-align: center; color: #fff; background: linear-gradient(to bottom right, var(--fm-700), var(--fm-600), var(--sky-600)); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.pricing .eyebrow { color: var(--cyan-200); }
.pricing h2 { margin-top: 8px; font-size: 30px; line-height: 1.2; font-weight: 800; color: #fff; }
.pricing h2:first-child { margin-top: 0; }
.pricing .lead { margin: 16px auto 0; max-width: 672px; color: rgb(255 255 255 / .85); }
.pricing .incl { margin: 24px auto 0; max-width: 576px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; color: rgb(255 255 255 / .9); }
.pricing .incl span { display: inline-flex; align-items: center; gap: 6px; }
.pricing .incl .icon { font-size: 18px; color: var(--cyan-300); }
.pricing .cta { margin-top: 32px; }
.pricing .more { margin-top: 16px; font-size: 14px; color: rgb(255 255 255 / .8); }
.pricing .more a { font-weight: 600; }
.pricing .more a:hover { color: #fff; }

/* The legal pages, in the colours myfirstmate.pro's markdown shows them in */
.prose { --prose-h1: var(--fm-700); --prose-h2: var(--fm-600); --prose-strong: oklch(41.27% 0.152 19.44); --prose-link: var(--sky-600); --prose-marker: oklch(83.69% 0.14 74.4); max-width: 820px; margin: 32px auto 0; color: var(--text); font-family: -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif; line-height: 1.75; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) {
  .prose { --prose-h1: var(--fm-300); --prose-h2: var(--fm-300); --prose-strong: oklch(80% 0.1 19.44); --prose-link: oklch(74% 0.13 237); }
}
.prose h1, .prose h2, .prose h3, .prose strong, .prose b { font-family: inherit; }
.prose h1 { margin: 48px 0 32px; font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--prose-h1); }
.prose h1:first-child { margin-top: 0; }
.prose h2 { margin: 48px 0 24px; font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--prose-h2); }
.prose h3 { margin: 32px 0 12px; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--prose-h2); }
.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin: 20px 0; }
.prose ul { list-style: disc; padding-left: 24px; }
.prose ol { list-style: decimal; padding-left: 24px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--prose-marker); }
.prose li > p { margin: 0; }
.prose strong, .prose b { font-weight: 600; color: var(--prose-strong); }
.prose a { color: var(--prose-link); text-underline-offset: 2px; }
.prose code { font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace; }
.prose pre { padding: 12px 16px; border-radius: 6px; background: oklch(27.8% 0.033 256.848); color: oklch(92.8% 0.006 264.531); }
.prose pre code { white-space: pre-wrap; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 6px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--ink); }
@media (min-width: 640px) {
  .prose h1 { font-size: 36px; }
}

/* The footer, as myfirstmate.pro's (lib/components/home/HomeFooter.svelte): one line that breaks only at its bullets */
footer { margin-top: 64px; padding: 14px 16px; border-top: 1px solid var(--foot-line); background: var(--foot-bg); color: var(--foot-fg); }
footer .line { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px; font-size: 12px; line-height: 1.5; text-align: center; }
footer .line > * { white-space: nowrap; }
footer .dot { user-select: none; color: var(--foot-dot); }
footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
footer a:hover, footer a:focus-visible { color: var(--foot-hover); }

@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .h2 { font-size: 30px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 18px; }
  .hero .copy { padding: 4px 40px 40px; }
  .dev-hero { padding: 48px 40px 24px; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .benefits li { flex-direction: column; gap: 6px; }
  .ribbon { top: 100px; right: 100px; width: 400px; padding: 8px 0; }
  .ribbon p:first-child { font-size: 14px; }
  .ribbon p:last-child { font-size: 12px; }
  .cols2 { grid-template-columns: 1fr 1fr; }
  .shot .browser { display: block; }
  .phone { display: none; }
  .know { gap: 16px; }
  .know .card { padding: 16px; }
  .callouts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .kit { grid-template-columns: repeat(3, 1fr); }
  .pricing { padding: 56px 48px; }
  .pricing h2 { font-size: 36px; }
  .pricing .lead { font-size: 18px; }
}
@media (min-width: 768px) {
  .hero .bg { position: absolute; inset: 0; z-index: -1; }
  .hero .bg img { height: 100%; aspect-ratio: auto; object-position: right; }
  .hero .bg::after { inset: 0; height: auto; background: linear-gradient(to right, oklch(17.7% 0.053 265.47 / .95), oklch(17.7% 0.053 265.47 / .7), oklch(17.7% 0.053 265.47 / 0)); }
  .hero .copy { padding-top: 56px; padding-bottom: 56px; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 48px; line-height: 1.15; }
  .hero .copy { padding-top: 64px; padding-bottom: 64px; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .templates .mock { order: 1; }
  .templates .text { order: 2; }
  .itin-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
  .shot { margin-bottom: 40px; }
  .phone { display: block; position: absolute; bottom: -40px; left: 24px; width: 208px; }
  .shot figcaption { margin-top: 20px; padding-left: 240px; }
  .know, .callouts { grid-template-columns: repeat(4, 1fr); }
  .posts { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
  .kit { grid-template-columns: 1fr; }
}
@media (min-width: 1280px) {
  .kit { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
