/* 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: 20px; margin: 0; padding: 0; list-style: none; }
.nav a { color: rgba(255, 255, 255, 0.78); font-weight: 500; text-decoration: none; white-space: nowrap; }
.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; }
.nav a[aria-current="page"] { color: #ffffff; }
@media (max-width: 860px) { .nav { display: none; } }
/* the menu button: shown when the nav is hidden. A <details>, so it works without JavaScript */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-md); color: #ffffff; font-size: 22px; border: 1px solid rgba(255, 255, 255, 0.25); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: rgba(255, 255, 255, 0.1); }
.menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; margin: 0; padding: var(--space-2) 0; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.menu a { display: block; padding: 8px 16px; color: var(--text); text-decoration: none; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--primary-subtle); color: var(--primary); }
@media (min-width: 861px) { .menu { display: none; } }
@media (max-width: 480px) { .brand { font-size: 18px; } .header-actions { gap: var(--space-2); } .header-actions .signin { display: none; } }

/* 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; }
/* 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; }

/* a numbered sequence of steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); }
.steps li { counter-increment: step; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--mint); font-weight: 700; margin-bottom: var(--space-3); }
.steps h3 { font-size: 18px; }
.steps p { margin-top: var(--space-2); color: var(--text-muted); font-size: 15px; }

/* 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); }

/* FAQ: questions open to show their answer (<details>, no JavaScript) */
.faq { display: grid; gap: var(--space-2); max-width: 48rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-weight: normal; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-lg); }
.faq details p { margin: 0; padding: 0 var(--space-4) var(--space-3); color: var(--text-muted); }

/* 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; }
.form-error { color: var(--danger); 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, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .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); }

/* A boxed note inside a section */
.callout { margin-top: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-sm); }
.callout h3 { font-size: 18px; }
.callout p { margin-top: var(--space-2); color: var(--text-muted); }

/* A small label beside a heading, e.g. Optional on a step */
.tag { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--primary-subtle); color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }

/* the header nav: one page, so the links are anchors */
.nav { align-items: center; }
.hero .eyebrow { margin-bottom: var(--space-3); }

/* the benefits under the hero's buttons */
.reassure { margin: var(--space-4) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 15px; color: var(--text-muted); }
.reassure li { display: inline-flex; align-items: center; gap: 6px; }
.reassure .i { color: var(--primary); }
.section-head p + p { margin-top: var(--space-2); }
.section-head strong { color: var(--ink); }

/* spreadsheets, MyFmHub, traditional CAFM: MyFmHub in the middle */
.spectrum { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr); gap: var(--space-3); align-items: center; }
.spectrum-card { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); height: 100%; }
.spectrum-card.us { background: var(--surface); border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.spectrum-card .tag { margin: 0 0 var(--space-2); }
.spectrum-card h3 { font-size: 20px; }
.spectrum-card p { margin-top: var(--space-2); color: var(--text-muted); font-size: 15px; }
.spectrum-card ul { margin: var(--space-3) 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 15px; color: var(--text-muted); }
.spectrum-card.us ul { list-style: none; padding-left: 0; color: var(--text); }
.spectrum-card.us li { display: flex; gap: var(--space-2); }
.spectrum-card.us li .i { color: var(--primary); margin-top: 4px; }
.spectrum-arrow { color: var(--border-control-strong); font-size: 22px; }
@media (max-width: 900px) {
  .spectrum { grid-template-columns: minmax(0, 1fr); max-width: 32rem; }
  .spectrum-arrow { justify-self: center; transform: rotate(90deg); }
}

/* card grids with the last row centred: five three across, seven four across */
.features-5 { display: flex; flex-wrap: wrap; justify-content: center; }
.features-5 .feature { flex: 0 0 calc((100% - 2 * var(--space-3)) / 3); }
@media (max-width: 900px) { .features-5 .feature { flex-basis: calc((100% - var(--space-3)) / 2); } }
@media (max-width: 600px) { .features-5 .feature { flex-basis: 100%; } }
.features-7 { display: flex; flex-wrap: wrap; justify-content: center; }
.features-7 .feature { flex: 0 0 calc((100% - 3 * var(--space-3)) / 4); }
@media (max-width: 1000px) { .features-7 .feature { flex-basis: calc((100% - var(--space-3)) / 2); } }
@media (max-width: 600px) { .features-7 .feature { flex-basis: 100%; } }

/* one line said with emphasis at the end of a section */
.key-message { margin-top: var(--space-5); text-align: center; font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.callout-strong { color: var(--ink) !important; font-weight: 600; }

/* plans */
.plan-for { color: var(--text-muted); margin-top: calc(-1 * var(--space-1)); }
.plans-included { margin-top: var(--space-4); display: flex; align-items: center; gap: var(--space-2); font-weight: 500; color: var(--ink); }
.plans-included .i { color: var(--primary); }
.plans-note { text-align: center; margin-inline: auto; margin-top: var(--space-2); }


/* the closing band's button and the line under it */
.cta-action { display: grid; gap: var(--space-2); justify-items: start; }
.cta-small { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin: 0 !important; }
