/* Framewave Software: a deep room with light moving through it. One accent, lots of air. */
:root {
  --bg: #0a0d12;
  --bg-2: #0f1520;
  --panel: rgba(18, 24, 33, 0.72);
  --line: rgba(143, 173, 214, 0.18);
  --fg: #eef2f7;
  --muted: #8e99aa;
  --accent: #4fa3ff;
  --accent-2: #7fd3ff;
  --accent-ink: #0a0d12;
  --display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% -10%, #15233a 0%, var(--bg) 60%);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 6.4vw, 78px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

#waves { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.frame-cursor { position: fixed; z-index: 1; width: 120px; height: 120px; pointer-events: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.4s; }
.frame-cursor.on { opacity: 0.55; }
.frame-cursor i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent-2); }
.frame-cursor i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame-cursor i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frame-cursor i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frame-cursor i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.top, main, footer { position: relative; z-index: 2; }
/* On a narrow screen the buttons go under the logo rather than break their words. */
.top { max-width: 1160px; margin: 0 auto; padding: 22px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand b { color: var(--accent); font-weight: 800; }
.brand img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a:focus-visible { color: var(--fg); }
.top nav .pill { color: var(--fg); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

main { max-width: 1160px; margin: 0 auto; padding: 0 20px 80px; }
.hero { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 56px 0 48px; max-width: 820px; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 62ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; font-family: var(--body); backdrop-filter: blur(8px); transition: transform 0.15s, border-color 0.15s; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 40px rgba(79, 163, 255, 0.35); }
.btn:focus-visible, .hum:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.hum { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 13px; cursor: pointer; padding: 6px 0; }
.hum .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background 0.2s; }
.hum.live .dot { background: #ff5a5f; animation: blink 1s infinite; }
.hum:hover { color: var(--fg); }
@keyframes blink { 50% { opacity: 0.3; } }

.band { display: flex; flex-wrap: wrap; gap: 14px 32px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.band b { color: var(--fg); font-weight: 600; }

.section { padding-top: 96px; display: flex; flex-direction: column; gap: 22px; }
.grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; backdrop-filter: blur(10px); transition: transform 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-3px); border-color: rgba(79, 163, 255, 0.5); }
.card p { color: var(--muted); font-size: 15px; }

.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 36px; align-items: center; margin-top: 10px; }
.product-copy { display: flex; flex-direction: column; gap: 18px; }
.product-copy p { color: var(--muted); }
.product-copy ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.product-visual { min-width: 0; }
.cutplan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; backdrop-filter: blur(10px); }
.cutplan div { display: flex; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.cutplan span { color: var(--muted); flex: none; }
.cutplan em { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cutplan .shared { border-left: 3px solid var(--accent); }
.cutplan .entry { border-left: 3px solid #ff5a5f; }

.steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; padding: 24px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: 13px; }
.steps p { color: var(--muted); font-size: 15px; }

.contact { padding-bottom: 20px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.email { padding: 12px 16px; border: 1px dashed var(--line); border-radius: 12px; font-size: 14px; user-select: all; }

footer { max-width: 1160px; margin: 0 auto; padding: 26px 20px 60px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer img { max-width: 100%; height: auto; }

@media (max-width: 900px) {
  /* Of the top's text links only the way up, from a proposal to its cover, stays: as one more button. */
  .top nav a:not(.pill, .up) { display: none; }
  .top nav { flex-wrap: wrap; gap: 10px; }
  .top nav .pill, .top nav .up { padding: 8px 12px; }
  .top nav .up { color: var(--fg); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
  .grid.three, .steps, .product { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 24px; }
}
@media (max-width: 480px) {
  /* A phone held upright: the top takes less of the screen (one row where the logo and one
     button fit, two closer rows on a proposal), and the page keeps a little more of its width. */
  .top { padding: 14px 16px; gap: 10px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .top nav { font-size: 14px; gap: 8px; }
  .top nav .pill, .top nav .up { padding: 7px 11px; }
  main { padding: 0 16px 64px; }
  footer { padding: 24px 16px 48px; }
  .btn { padding: 13px 18px; }
  .section { padding-top: 64px; }
}
/* On a phone a client in Brazil writes by WhatsApp sooner than by e-mail. Where a page's contact
   gives both and says so (`whats-first`, the Mr.Moo pages), WhatsApp's row comes first there, its
   button wide and in the accent colour, and the e-mail's button steps back to a plain one. */
@media (max-width: 659px) {
  .whats-first > .whats { order: 1; }
  .whats-first > .contact-row:not(.whats) { order: 2; }
  .whats-first > .contact-row ~ p { order: 3; }
  .whats-first > .whats .btn { width: 100%; justify-content: center; background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 32%, transparent); }
  .whats-first .contact-row:not(.whats) .btn.primary { background: var(--panel); color: var(--fg); border-color: var(--line); box-shadow: none; }
}
/* The narrowest phones: a proposal's two buttons still share a row. */
@media (max-width: 340px) { .top nav { font-size: 13px; gap: 6px; } .top nav .pill, .top nav .up { padding: 7px 9px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hum.live .dot { animation: none; }
  .btn, .card { transition: none; }
}
