/* MyFmHub website. Colours, type and shapes follow the MyFmHub brand guide, which is taken from the app's stylesheet
   (flask-play app/static/css/app.css), so the site and the app look like one product. Fonts are served from this site,
   not Google Fonts, so no visitor data goes to a third party. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "bootstrap-icons";
  font-display: block;
  src: url("../fonts/bootstrap-icons.woff2") format("woff2");
}

:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-active: #134e4a;
  --primary-subtle: #e6f4f2;
  --on-primary: #ffffff;
  --ink: #12302d;
  --mint: #5eead4;
  --text: #1f2a29;
  --text-muted: #5b6b69;
  --page: #f4f6f6;
  --surface: #ffffff;
  --surface-subtle: #fbfcfc;
  --table-head: #f8faf9;
  --border: #e1e7e6;
  --border-table: #e8eeed;
  --border-control: #cfd8d6;
  --border-control-strong: #bfcac8;
  --secondary-text: #33413f;
  --secondary-hover: #eef2f1;
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
  --danger: #dc3545;
  --neutral: #6c757d;

  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 48px;
  --space-6: 80px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 40, 0.06), 0 1px 3px rgba(16, 42, 40, 0.04);
  --shadow-lg: 0 12px 32px rgba(16, 42, 40, 0.10);
  --content: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.i { font-family: "bootstrap-icons"; font-style: normal; font-weight: 400; line-height: 1; }

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding-left: max(var(--space-3), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-3), env(safe-area-inset-right, 0px));
}
@media (min-width: 992px) {
  .wrap { padding-left: max(var(--space-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-4), env(safe-area-inset-right, 0px)); }
}
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: var(--space-2) var(--space-3); z-index: 20; }
.skip:focus { left: var(--space-3); }

/* buttons, as in the app */
.btn {
  display: inline-flex; align-items: center; gap: 0.45em; font: inherit; font-weight: 500; line-height: 1.5;
  padding: 0.55rem 1.1rem; border: 1px solid transparent; border-radius: var(--radius-md); text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn-sm { padding: 0.3rem 0.75rem; font-size: 15px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-active); }
.btn-secondary { background: var(--surface); border-color: var(--border-control); color: var(--secondary-text); }
.btn-secondary:hover { background: var(--secondary-hover); border-color: var(--border-control-strong); color: var(--text); }
.btn-on-ink { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #ffffff; }
.btn-on-ink:hover { border-color: #ffffff; color: #ffffff; }

/* header: the app's ink navbar */
.site-header { background: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-4); min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 0.35em; color: #ffffff; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: #ffffff; }
.brand .i { color: var(--mint); }
.nav { display: flex; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.nav a { color: rgba(255, 255, 255, 0.78); font-weight: 500; text-decoration: none; }
.nav a:hover { color: #ffffff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.header-actions .signin { color: rgba(255, 255, 255, 0.85); font-weight: 500; text-decoration: none; }
.header-actions .signin:hover { color: #ffffff; }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .brand { font-size: 18px; } .header-actions { gap: var(--space-2); } }

/* sections */
.section { padding-block: var(--space-6); }
.section-surface { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-2); }
.section-head { max-width: 40rem; margin-bottom: var(--space-5); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 36px); }
.section-head p { margin-top: var(--space-3); color: var(--text-muted); font-size: 17px; }

/* hero */
.hero { padding-block: var(--space-6); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-5); align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.03em; line-height: 1.05; }
.hero .lead { margin-top: var(--space-4); font-size: 19px; color: var(--text-muted); max-width: 32rem; }
.hero .actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero .small-print { margin-top: var(--space-3); font-size: 14px; color: var(--text-muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* screenshots of the app */
.shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot.phone { justify-self: center; width: min(100%, 300px); border: 8px solid var(--ink); border-radius: 28px; }
.showcase { display: grid; gap: var(--space-6); }
.show-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: center; }
.show-row.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.show-row.reverse .show-text { order: 2; }
.show-text h3 { font-size: clamp(22px, 2.4vw, 26px); }
.show-text p { margin-top: var(--space-3); color: var(--text-muted); font-size: 17px; }
@media (max-width: 900px) {
  .show-row, .show-row.reverse { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .show-row.reverse .show-text { order: 0; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm); }
.feature .icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--primary-subtle); color: var(--primary); font-size: 20px; margin-bottom: var(--space-3); }
.feature h3 { font-size: 18px; }
.feature p { margin-top: var(--space-2); color: var(--text-muted); font-size: 15px; }

/* why MyFmHub: the four benefits, two by two (not numbered: they're not a sequence) */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 800px) { .benefits { grid-template-columns: minmax(0, 1fr); } }
.benefit { display: flex; gap: var(--space-3); background: var(--surface-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); }
.benefit .icon { flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--ink); color: var(--mint); font-size: 22px; }
@media (max-width: 600px) { .benefit { flex-direction: column; } }
.benefit h3 { font-size: 20px; }
.benefit p { margin-top: var(--space-2); color: var(--text-muted); font-size: 16px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 30rem; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 20px; }
.price { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.plan li { display: flex; gap: var(--space-2); }
.plan li .i { color: var(--primary); margin-top: 4px; }
.plan .btn { margin-top: auto; justify-content: center; }
.plans-note { margin-top: var(--space-4); color: var(--text-muted); font-size: 15px; max-width: 48rem; }

/* the thank-you page after the contact form */
.thanks-title { font-size: clamp(30px, 4vw, 40px); }
.actions-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* contact form */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact .section-head { margin-bottom: 0; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-4); }
@media (max-width: 600px) { .contact-form { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 500; color: var(--text); }
.req { color: var(--danger); }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-control); border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: rgba(15, 118, 110, 0.55); box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.18); }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.form-note { color: var(--text-muted); font-size: 14px; }
/* the trap for bots: off the page, out of the tab order, hidden from screen readers */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* call to action band and footer: the one ink band */
.cta { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding-block: var(--space-6); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.cta h2 { color: #ffffff; font-size: clamp(28px, 3.4vw, 36px); }
.cta p { margin-top: var(--space-2); font-size: 17px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.site-footer { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.7); font-size: 14px; padding-block: var(--space-5); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }
.site-footer h3 { color: #ffffff; font-size: 14px; letter-spacing: 0; margin-bottom: var(--space-2); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer p + p { margin-top: var(--space-2); }
