/* Mako product site
   Shared by every Mako product site. Derived from mako.design: a sticky glass bar, a two-part hero
   (the promise on the left, the product mark on a glowing tile on the right), then quiet sections.
   Colours: the shared Mako greys (mako-kit/brand/colours.json) and this product's own colour, set in the first block.
   Type: Bricolage Grotesque for display (self-hosted, SIL Open Font License), the system face for text. */

@font-face {
  font-family: "Bricolage";
  src: url("assets/bricolage.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  /* mako.directory: Green */
  --brand: #0f7a4a;
  --brand-hi: #2fbf79;
  --on-brand: #ffffff;
  --dot: #f0a23a;
  --canvas: #f7f9fa;
  --surface: #ffffff;
  --ink: #0f2a3a;
  --muted: #5b6b75;
  --line: #d5e0e5;
  --glass: rgb(255 255 255 / .62);
  --edge: rgb(15 42 58 / .10);
  --shade: rgb(15 42 58 / .14);
  --tile: #ffffff;
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2fbf79;
    --brand-hi: #2fbf79;
    --on-brand: #06141a;
    --canvas: #0b1a22;
    --surface: #122733;
    --ink: #e8f1f5;
    --muted: #a3b4bd;
    --line: #244250;
    --glass: rgb(18 39 51 / .62);
    --edge: rgb(232 241 245 / .10);
    --shade: rgb(0 0 0 / .35);
    --tile: #05090c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* The family's drifting light */
body::before, body::after { content: ""; position: fixed; inset: -15%; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(60% 45% at 8% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 65%),
    radial-gradient(50% 40% at 100% 30%, color-mix(in srgb, var(--brand-hi) 16%, transparent), transparent 65%);
  animation: drift 40s ease-in-out infinite alternate;
}
body::after {
  background: radial-gradient(45% 35% at 70% 105%, color-mix(in srgb, var(--dot) 18%, transparent), transparent 65%);
  animation: drift 52s ease-in-out infinite alternate-reverse;
}
@keyframes drift { to { transform: translate3d(3%, 2%, 0) scale(1.06); } }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Bar */
.bar { position: sticky; top: 0; z-index: 10; padding-top: max(12px, env(safe-area-inset-top, 0px)); }
.bar-inner { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 8px 8px 14px; border: 1px solid var(--edge); border-radius: 22px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 8px 30px var(--shade); }
.logo { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; font: 700 1.2rem/1 var(--display); letter-spacing: -.02em; }
.logo b { color: var(--brand); font-weight: inherit; }
.logo img { width: 40px; height: 27px; flex: none; filter: drop-shadow(0 2px 3px var(--shade)); }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 16px; border: 1px solid transparent; font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 45%, transparent); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--glass); }
.btn-quiet:hover { border-color: var(--brand); }
.bar .btn { min-height: 44px; }
@media (max-width: 760px) { .nav { display: none; } }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin: 0; font: 800 clamp(2.9rem, 7.6vw, 6.2rem)/.92 var(--display); font-stretch: 85%; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero h1 .stop { color: var(--dot); }
.hero .kicker { display: inline-block; margin: 0 0 20px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--ink); font-size: .9rem; font-weight: 650; }
.hero p.lead { max-width: 38ch; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* The mark on its tile: the one bold moment */
.mark { position: relative; justify-self: center; width: min(100%, 420px); }
.mark::before { content: ""; position: absolute; inset: 6%; z-index: -1; border-radius: 40px; background: conic-gradient(from 200deg, var(--brand), var(--dot), var(--brand-hi), var(--brand)); filter: blur(60px); opacity: .42; animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { to { transform: rotate(8deg) scale(1.05); opacity: .58; } }
.mark-tile { display: grid; place-items: center; aspect-ratio: 1; border-radius: 22%; background: var(--tile); border: 1px solid var(--edge); box-shadow: 0 30px 80px var(--shade), inset 0 1px 0 rgb(255 255 255 / .2); }
.mark-tile img { width: 64%; height: auto; filter: drop-shadow(0 10px 18px var(--shade)); }

/* Sections: a header (.sec) then its content, on one left edge */
section.block { padding-block: clamp(56px, 7vw, 104px); }
section.block + section.block { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.sec { max-width: 780px; margin: 0 0 clamp(28px, 4vw, 48px); }
.sec h2 { margin: 0; font: 750 clamp(2.1rem, 5vw, 3.4rem)/1 var(--display); font-stretch: 88%; letter-spacing: -.035em; }
.sec .lede { max-width: 56ch; margin: 14px 0 0; color: var(--muted); font-size: 1.12rem; }

/* Points */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin: 0; padding: 0; list-style: none; }
.points li { padding-top: 20px; border-top: 2px solid var(--brand); min-width: 0; }
.points h3 { margin: 0 0 8px; font: 700 1.3rem/1.15 var(--display); letter-spacing: -.02em; }
.points p { margin: 0; color: var(--muted); }

/* Apps */
.groups { display: grid; gap: clamp(28px, 4vw, 44px); }
.group h3 { margin: 0 0 14px; font: 700 1.25rem/1 var(--display); letter-spacing: -.02em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tile { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: 22px; border: 1px solid var(--edge); background: var(--glass); min-width: 0; }
.tile::before { content: ""; width: 10px; height: 10px; margin-top: .45em; border-radius: 50%; background: linear-gradient(180deg, var(--brand-hi), var(--brand)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.tile div { display: grid; gap: 3px; min-width: 0; }
.tile b { font: 700 1.08rem/1.25 var(--display); letter-spacing: -.01em; }
.tile span { color: var(--muted); font-size: .94rem; line-height: 1.45; }
.tile small { color: color-mix(in srgb, var(--brand) 70%, var(--ink)); font-size: .82rem; font-weight: 650; }
.note { margin: 22px 0 0; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.plan { display: grid; align-content: start; gap: 6px; padding: clamp(20px, 2.6vw, 28px); border-radius: 26px; border: 1px solid var(--edge); background: var(--glass); min-width: 0; }
.plan.pick { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 16%, var(--glass)), var(--glass) 70%); border-color: color-mix(in srgb, var(--brand) 40%, var(--edge)); }
.plan h3 { margin: 0; font: 700 1.3rem/1.1 var(--display); letter-spacing: -.02em; }
.price { margin: 6px 0 0; font: 800 clamp(2rem, 4vw, 2.6rem)/1 var(--display); font-stretch: 88%; letter-spacing: -.03em; }
.price small { font: 500 1rem/1 var(--text); color: var(--muted); letter-spacing: 0; }
.plan .alt { margin: 0; color: var(--muted); font-size: .95rem; }
.plan ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.plan li { position: relative; padding-left: 20px; }
.plan li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.extras { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.soon { display: grid; gap: 10px; max-width: 640px; padding: clamp(22px, 3vw, 34px); border-radius: 28px; border: 1px solid var(--edge); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 14%, var(--glass)), var(--glass) 70%); }
.soon h3 { margin: 0; font: 750 clamp(1.6rem, 3vw, 2.1rem)/1.05 var(--display); font-stretch: 88%; letter-spacing: -.03em; }
.soon p { margin: 0; color: var(--muted); }

/* Plain-words notices (not a bank, not a law firm) */
.notice { display: grid; gap: 8px; max-width: 780px; padding: clamp(20px, 2.6vw, 28px); border-radius: 24px; border: 1px solid var(--edge); border-left: 4px solid var(--dot); background: var(--glass); }
.notice h3 { margin: 0; font: 700 1.2rem/1.2 var(--display); letter-spacing: -.02em; }
.notice p { margin: 0; color: var(--muted); }

/* Feature: the first directory */
.feature { display: grid; gap: 10px; max-width: 780px; margin-top: 24px; padding: clamp(20px, 2.6vw, 28px); border-radius: 26px; border: 1px solid var(--edge); background: var(--glass); }
.feature h3 { margin: 0; font: 700 1.3rem/1.15 var(--display); letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--muted); }
.feature .btn { justify-self: start; margin-top: 6px; }

/* Contact */
.mail { display: inline-block; margin-top: 4px; font: 700 clamp(1.3rem, 3.4vw, 2.1rem)/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration-color: var(--brand); overflow-wrap: anywhere; }

footer.site { padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
footer.site a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
footer.site span { flex: 1 1 300px; min-width: 0; }
footer.site nav { display: flex; gap: 22px; }
footer.site strong { color: var(--ink); font-weight: 650; }

/* Legal pages */
.prose { max-width: 70ch; padding-block: clamp(40px, 7vw, 88px) 72px; }
.prose h1 { margin: 0 0 14px; font: 800 clamp(2.6rem, 7vw, 4.4rem)/.95 var(--display); font-stretch: 85%; letter-spacing: -.04em; }
.prose h2 { margin: 36px 0 8px; font: 700 1.35rem/1.2 var(--display); letter-spacing: -.02em; }
.prose .lede { color: var(--muted); font-size: 1.15rem; }
.prose li { margin-bottom: 6px; }
.prose .version { margin-top: 40px; color: var(--muted); font-size: .9rem; }

/* Ultra-wide: let the page breathe */
@media (min-width: 1800px) {
  html { font-size: 112%; }
  .wrap { max-width: 1480px; }
}
@media (min-width: 2400px) {
  html { font-size: 125%; }
  .wrap { max-width: 1760px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mark { width: min(62%, 260px); justify-self: start; order: -1; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .points { grid-template-columns: 1fr; }
  .mark { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
