/* marketegy.com styles: the light board. Ground, pale tiles, ink text, and the logo blue for the dot and the one solid action. */

:root {
  --ground: #F5F9FF;
  --white: #FFFFFF;
  --blue: #1D4ED8;
  --blue-hover: #1A43BC;
  --ink: #1A237E;
  --gray: #4A5578;
  --tile: #E2EAFC;                       /* a touch deeper than #E6EEFC so tiles hold on dim phones */
  --tile-edge: rgba(26, 35, 126, 0.28);  /* edge on every tile */
  --line: rgba(26, 35, 126, 0.10);
  --field: #7C88B0;                       /* form and ghost edges, 3.5:1 on white */
  --dot: var(--blue);
  --glyph-bg: var(--tile);
  --dot-on-dark: #93B4FF;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (max-width: 599px) { body { font-size: 16px; } }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4.2vw, 32px); }  /* grows smoothly from 16 to 32 px; no jump at a breakpoint */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

/* glyphs: shapes take currentColor, the dot takes --dot, hollow rings take --glyph-bg */
svg.g { display: block; width: 100%; height: auto; overflow: visible; }


.wm { font-family: 'Space Grotesk', 'Instrument Sans', sans-serif; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 24px; line-height: 1; }
.wm:hover { color: var(--ink); }
.wm i, .hdot, .dot { display: inline-block; border-radius: 50%; background: var(--dot); }
.wm i { width: 0.24em; height: 0.24em; margin-left: 0.07em; vertical-align: baseline; }
.hdot { width: 0.17em; height: 0.17em; margin-left: 0.05em; vertical-align: baseline; }
.dot { width: 10px; height: 10px; flex: none; }

/* labels: small, sentence case, never monospace (the "//" labels stay M3S's) */
.label { font-size: 15px; font-weight: 600; color: var(--gray); letter-spacing: 0; margin: 0 0 12px; }
.sec > .wrap > .label, .notfound .label { display: inline-block; padding: 5px 10px; border-radius: 8px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge); color: var(--ink); margin-bottom: 16px; font-size: 15px; line-height: 1.3; white-space: nowrap; }

/* headings: big, condensed, sentence case, one blue word where it earns it */
.h1, .h2 { font-weight: 650; font-stretch: 85%; color: var(--ink); margin: 0; }
.h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 18px; }
.h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 14px; }
.blue { color: var(--blue); }
.lede { color: var(--gray); margin: 0 0 28px; font-size: 18px; }
@media (max-width: 599px) { .lede { font-size: 17px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; border: 0; cursor: pointer; padding: 13px 22px; border-radius: 10px; background: var(--blue); color: #FFFFFF; }
.btn:hover { background: var(--blue-hover); color: #FFFFFF; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--field); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 249, 255, 0.94); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.site-nav { display: none; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--blue); }
.site-nav .btn { padding: 9px 15px; font-size: 15px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.site-nav .btn:hover { background: var(--ink); color: #FFFFFF; }
@media (min-width: 900px) { .site-nav { display: flex; } .menu-btn { display: none; } }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (min-width: 900px) { .menu-btn { display: none; } }  /* must follow the .menu-btn rules above */
.menu-panel { border-top: 1px solid var(--line); background: var(--ground); }
.menu-panel[hidden] { display: none; }
.menu-panel ul { list-style: none; margin: 0 auto; padding-top: 8px; padding-bottom: 16px; }
.menu-panel a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; border-bottom: 1px solid var(--line); }
.menu-panel li:last-child a { color: var(--blue); border-bottom: 0; }
@media (min-width: 900px) { .menu-panel { display: none !important; } }

/* ---------- sections ---------- */
.sec { padding: 64px 0; border-top: 1px solid var(--line); }
.sec.white { background: var(--white); }
@media (max-width: 599px) { .sec { padding: 48px 0; } }


.gridded { position: relative; overflow: hidden; }
.gridded > .grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(26, 35, 126, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(26, 35, 126, 0.05) 1px, transparent 1px);
  background-size: 96px 96px; }
.gridded > .axis { position: absolute; left: 0; right: 0; top: 0; height: 8px; pointer-events: none;
  background-image: repeating-linear-gradient(to right, rgba(26, 35, 126, 0.18) 0 1px, transparent 1px 24px); }
.gridded > .wrap { position: relative; }

/* ---------- hero: the board ---------- */
.hero-grid { display: grid; gap: 36px; padding: 44px 0 56px; align-items: center; }
@media (min-width: 1120px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(432px, 0.85fr); gap: 48px; padding: 64px 0 80px; } .board { justify-self: center; align-self: center; } }
.hero .desc { font-weight: 600; color: var(--gray); margin: 0 0 14px; font-size: 16px; }
.hero .sub { font-size: clamp(20px, 2.4vw, 24px); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--ink); }
.hero .body { color: var(--gray); margin: 0 0 28px; max-width: 560px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-text { container-type: inline-size; }
.hero .h1 { font-size: clamp(30px, 9.2cqw, 60px); }
@media (min-width: 1120px) { .hero .h1 { font-size: clamp(30px, 9.2cqw, 76px); } }
.hero .hero-note { font-size: 15px; color: var(--gray); margin: 16px 0 0; text-wrap: pretty; }
.hero .h1 .nb { white-space: nowrap; }
@media (max-width: 479px) { .hero .ctas .btn { width: 100%; } }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(372px, 100%); }
.tile { position: relative; aspect-ratio: 1; border-radius: 11%; background: var(--tile); color: var(--ink); box-shadow: inset 0 0 0 1px var(--tile-edge); text-decoration: none; display: block; container-type: inline-size; --dot: var(--blue); --glyph-bg: var(--tile);
  animation: rise 520ms cubic-bezier(.2, .8, .2, 1) both; }
.tile .lab { position: absolute; left: 8%; top: 8%; right: 6%; font-weight: 600; font-size: clamp(10.4px, 11.2cqw, 13px); font-stretch: 88%; letter-spacing: -0.01em; line-height: 1.15; white-space: nowrap; display: flex; align-items: center; gap: 0.35em; }
.tile .num { display: inline-flex; align-items: center; justify-content: center; width: 1.35em; height: 1.35em; border-radius: 50%; border: 1.5px solid currentColor; font-size: max(0.78em, 8px); font-weight: 700; flex: none; }
.tile svg { position: absolute; width: 38%; left: 31%; top: 34%; }
.tile .foot { position: absolute; left: 9%; right: 9%; bottom: 9%; height: 7px; background-image: repeating-linear-gradient(to right, rgba(26, 35, 126, 0.35) 0 1.5px, transparent 1.5px 20%); border-bottom: 1.5px solid rgba(26, 35, 126, 0.35); }
.tile .foot::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1.5px; height: 100%; background: rgba(26, 35, 126, 0.35); }
.tile.go { background: var(--blue); color: #FFFFFF; box-shadow: none; --dot: #FFFFFF; --glyph-bg: var(--blue); animation: land 620ms cubic-bezier(.3, 1.25, .5, 1) 560ms both; }
.tile.go .foot { background-image: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.7) 0 1.5px, transparent 1.5px 20%); border-bottom-color: rgba(255, 255, 255, 0.7); }
.tile.go .foot::after { background: rgba(255, 255, 255, 0.7); }
.tile.go:hover { background: var(--blue-hover); color: #FFFFFF; }
.tile.center { display: block; background: none; box-shadow: none; }
.tile.center .fav { position: absolute; inset: 0; width: 100%; height: 100%; top: 0; left: 0; }
.board .tile:nth-child(2) { animation-delay: 70ms; } .board .tile:nth-child(3) { animation-delay: 140ms; }
.board .tile:nth-child(4) { animation-delay: 210ms; } .board .tile:nth-child(5) { animation-delay: 280ms; }
.board .tile:nth-child(6) { animation-delay: 350ms; } .board .tile:nth-child(8) { animation-delay: 420ms; }
.board .tile:nth-child(9) { animation-delay: 490ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes land { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* belief */
.belief p { color: var(--gray); margin: 0 0 14px; font-size: 18px; }
@media (max-width: 599px) { .belief p { font-size: 17px; } }

/* the fix */
.fix-card { background: var(--white); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); padding: 28px; margin-bottom: 24px; position: relative; overflow: hidden; }
.fix-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ink); }
.fix-card .head { font-size: clamp(20px, 2.4vw, 24px); font-weight: 650; letter-spacing: -0.015em; margin: 6px 0 22px; }
.fix-card .access { color: var(--gray); font-size: 16px; margin: -14px 0 22px; }
.fix-cols { display: grid; gap: 28px; }
@media (min-width: 860px) { .fix-cols { grid-template-columns: 1.15fr 0.85fr; gap: 40px; } }
.setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.setup li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--gray); font-size: 16px; }
.setup li svg { width: 40px; color: var(--ink); }
.setup li svg.lift { transform: translateY(-6px); }
.setup li b { color: var(--ink); }
.fix-notes p { color: var(--gray); font-size: 16px; margin: 0 0 12px; }
.health { color: var(--gray); font-size: 15px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.fix-notes .yours { color: var(--ink); font-weight: 650; font-size: 19px; margin-top: 18px; }
.dont { color: var(--gray); font-size: 16px; margin: 0; }

/* the five questions */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

@media (min-width: 1100px) { .cards { grid-template-columns: repeat(5, 1fr); } }
.qcard { border-radius: 18px; padding: 20px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.qcard svg { width: 44px; color: var(--ink); margin-bottom: 12px; }
.qcard .lab { font-weight: 650; font-size: 19px; letter-spacing: -0.015em; }
.qcard p { margin: 4px 0 10px; color: var(--gray); font-size: 16px; }
.qcard ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--ink); }
.qcard ul li + li { margin-top: 2px; }
.qcard.roof { background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge); --glyph-bg: var(--tile); }

/* how it works: the timeline (the ruler): Free Score at the start, The Fix in the middle, Re-score at the end */
.ruler { position: relative; margin: 30px 0 8px; padding-top: 56px; }
.ruler .track { height: 4px; background: var(--ink); border-radius: 4px; }
.ruler .ticks { position: relative; height: 12px; margin-top: 6px; opacity: 0.5; background-image: repeating-linear-gradient(to right, var(--ink) 0 2px, transparent 2px 10%); }
.ruler .ticks::after { content: ""; position: absolute; right: 0; top: 0; width: 2px; height: 100%; background: var(--ink); }
.ruler .stop { position: absolute; top: 0; width: 34px; }
.ruler .stop.s1 { left: 0; }
.ruler .stop.s2 { left: 50%; transform: translateX(-50%); }
.ruler .stop.s3 { right: 0; }
.ruler .stop svg { width: 34px; color: var(--ink); --glyph-bg: var(--ground); }
.ruler .marker { position: absolute; top: 48px; width: 20px; height: 20px; border-radius: 50%; }
.ruler .marker.ring { left: 7px; border: 3px solid var(--ink); background: var(--ground); }
.ruler .marker.half { left: 50%; margin-left: -10px; border: 3px solid var(--blue); background: linear-gradient(90deg, var(--blue) 50%, var(--ground) 50%); }
.ruler .marker.now { right: 7px; background: var(--blue); }
.ruler .stop.s2 svg { transform: translateY(4px); }
.steps { display: grid; gap: 14px; margin: 18px 0 28px; padding: 0; list-style: none; grid-template-columns: repeat(3, 1fr); }
.steps li:nth-child(2) { text-align: center; }
.steps li:nth-child(3) { text-align: right; }
.steps b { display: block; font-size: 15px; color: var(--gray); }
.steps span { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.steps .step-g { display: none; }
@media (max-width: 799px) {
  .ruler { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
  .steps li, .steps li:nth-child(2), .steps li:nth-child(3) { text-align: left; position: relative; padding: 0 0 24px 52px; min-height: 58px; }
  .steps li::before { content: ""; position: absolute; left: 15.5px; top: 40px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--ink); opacity: 0.5; }
  .steps li:last-child::before { display: none; }
  .steps .step-g { display: block; position: absolute; left: 0; top: 0; width: 34px; color: var(--ink); --glyph-bg: var(--ground); }
}
.start { background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-edge); border-radius: 18px; padding: 22px 24px; }
.start p { margin: 0; color: var(--ink); }
.start .label { margin-bottom: 8px; }

/* promises */
.promises { display: grid; gap: 28px 40px; }
@media (min-width: 800px) { .promises { grid-template-columns: repeat(2, 1fr); } }
.promise { border-left: 3px solid var(--tile); padding-left: 18px; }
.promise .n { font-size: 14px; font-weight: 600; color: var(--gray); margin: 0 0 4px; }
.promise h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 8px; }
.promise p { color: var(--gray); font-size: 16px; margin: 0; }
.hold { font-weight: 650; font-size: 20px; margin: 36px 0 0; }

/* who it's for */
.fit { display: grid; gap: 32px; }
@media (min-width: 800px) { .fit { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
.fit h3 { font-size: 19px; font-weight: 650; margin: 0 0 16px; }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fit li { display: flex; gap: 12px; align-items: flex-start; color: var(--gray); font-size: 16px; }
.fit li .dot { margin-top: 7px; }
.fit li .x { flex: none; width: 10px; font-weight: 700; color: var(--gray); line-height: 1.4; }
.fit a { color: var(--ink); font-weight: 600; }

/* founder */
.founder { display: grid; gap: 32px; align-items: start; }
@media (min-width: 800px) { .founder { grid-template-columns: 0.75fr 1.25fr; gap: 48px; } }
.founder img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 18px; max-width: 420px; }
.founder .name { font-size: clamp(28px, 3.6vw, 38px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 4px; }
.founder .role { color: var(--gray); font-weight: 600; margin: 0 0 18px; }
.founder blockquote { margin: 0 0 22px; padding-left: 16px; border-left: 3px solid var(--ink); font-size: 18px; color: var(--ink); font-style: italic; }
.founder .bio p { color: var(--gray); margin: 0 0 14px; max-width: 640px; }

/* free score */
.score-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .score-grid { grid-template-columns: 1.25fr 0.75fr; gap: 32px; } }
.form-card { background: var(--white); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line), 0 12px 32px rgba(26, 35, 126, 0.06); padding: 26px; }
@media (min-width: 600px) { .form-card { padding: 32px; } }
.form-card .h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin: 0 0 10px; }
.form-card .intro { color: var(--gray); margin: 0 0 22px; font-size: 16px; }
.score-fields { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 640px) { .score-fields { grid-template-columns: 1fr 1fr; } }
.field { display: block; }
.field-label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field-optional { font-weight: 400; color: var(--gray); }
.req { color: var(--blue); font-weight: 700; }
.req-note { font-size: 14px; color: var(--gray); margin: -8px 0 16px; }
.req-note span { color: var(--blue); font-weight: 700; }
.field-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 10px; background: #FFFFFF; font: inherit; font-size: 16px; color: var(--ink); }
.field-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18); }
.field-input[aria-invalid="true"] { border-color: #B91C1C; }
.field-error { color: #B91C1C; font-size: 15px; margin: -6px 0 14px; }
.field-error:empty { margin: 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.score-state:focus { outline: none; }
.score-state p { color: var(--gray); }
.score-checks { color: var(--gray); padding-left: 1.25rem; margin: 0; }
.score-checks li + li { margin-top: 8px; }
.gets { display: grid; gap: 10px; }
.gets .label { margin-bottom: 4px; }
.get { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; }
.get .dot { margin-top: 7px; }
.get b { display: block; }
.get span { display: block; font-size: 15px; color: var(--gray); }
.talk { color: var(--gray); font-size: 16px; margin: 28px 0 0; }

/* sticky "Get your free score" bar on phones; hides once the form is on screen */
.score-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(245, 249, 255, 0.97); border-top: 1px solid var(--line); transition: transform 0.25s ease; }
.score-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 768px) { .score-bar { display: none; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: 48px 0; --dot: var(--dot-on-dark); }
.site-footer .row { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
@media (min-width: 768px) { .site-footer .row { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; } .site-footer .right { text-align: right; } }
.site-footer .wm { color: #FFFFFF; }
.site-footer p { margin: 0; font-size: 15px; }
.site-footer .practice { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.site-footer .built { font-style: italic; }
.site-footer .legal { margin-top: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
.site-footer .wm:hover { text-decoration: none; }  /* the logo is a link home, never underlined */
.site-footer .sep { color: rgba(255, 255, 255, 0.3); margin: 0 8px; }

/* ---------- legal pages and the 404 ---------- */
.doc { padding: 56px 0 72px; }
.doc .inner { max-width: none; }  
.doc h1 { font-size: clamp(36px, 5.4vw, 56px); font-weight: 650; font-stretch: 85%; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 8px; }
.doc h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.015em; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--gray); font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--ink); }
.doc .updated { color: var(--gray); font-size: 15px; margin: 0 0 8px; }
.notfound { padding: 88px 0 104px; }
.notfound .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* motion guardrails: final state with reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* about page */
.about-top { border-top: 0; }
.about-cta { margin-top: 28px; }
