/* Potato Labs — site styles. 70% corporate core, 30% Bit Spud flavour. */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/space-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url("/fonts/press-start-2p.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #12122A; --night: #12122A; --deep: #1C1C3D; --gridline: #34346A;
  --paper: #FAF8F2; --card: #FFFFFF; --line: #E4E0F0; --slate: #5A5878;
  --yellow: #FFD23F; --yellow-shade: #E0A800; --gold-deep: #B88700;
  --russet: #C19852; --magenta: #FF4F9A; --magenta-deep: #D81B7A;
  --cyan: #3DDCFF; --cyan-deep: #0A86AA; --lime: #7CFF6B; --lime-deep: #1E9E3A;
  --lav: #F4F1FF; --dust: #A9A6C8;
  --head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --px: "Press Start 2P", ui-monospace, monospace;
  --radius: 14px; --wrap: 1160px;
  --shadow: 0 1px 2px rgba(18,18,42,.05), 0 8px 24px rgba(18,18,42,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--magenta-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.02em; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-shade); }
.btn-primary:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 0 var(--yellow-shade); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-shade); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.kicker-light { color: var(--yellow); }
.px-line { font-family: var(--px); font-size: .62rem; line-height: 1.8; color: var(--magenta); margin: 10px 0 0; letter-spacing: .02em; }
.px-yellow { color: var(--yellow); } .px-lime { color: var(--lime); }

/* Scroll progress (block motif) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: repeating-linear-gradient(90deg, var(--yellow) 0 14px, transparent 14px 17px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,248,242,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-icon { width: 36px; height: 32px; display: inline-block; }
.brand-icon img, .brand-icon svg { width: 36px; height: 32px; image-rendering: pixelated; }
.brand-word { font-family: var(--head); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.035em; }
.brand-light, .brand-light:hover { color: var(--lav); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:not(.btn):hover { color: var(--magenta-deep); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.bars { top: 21px; } .bars::before { top: -7px; left: 0; } .bars::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lede { font-size: 1.14rem; color: #34344F; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .94rem; color: var(--slate); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; display: inline-block; }
.dot-y { background: var(--yellow-shade); } .dot-m { background: var(--magenta); } .dot-c { background: var(--cyan-deep); }

.console { background: var(--night); border-radius: 18px; border: 1px solid var(--gridline); box-shadow: 0 30px 60px -20px rgba(18,18,42,.45), 8px 8px 0 var(--magenta); overflow: hidden; color: var(--lav); }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--deep); border-bottom: 1px solid var(--gridline); }
.console-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--gridline); }
.console-bar span:first-child { background: var(--magenta); } .console-bar span:nth-child(2) { background: var(--yellow); } .console-bar span:nth-child(3) { background: var(--lime); }
.console-bar em { margin-left: 10px; font-family: var(--mono); font-style: normal; font-size: .75rem; color: var(--dust); }
.console-body { padding: 30px 26px 26px; display: flex; flex-direction: column; align-items: center; background: repeating-linear-gradient(0deg, var(--night) 0 3px, #15152f 3px 6px); }
.runlist { list-style: none; padding: 0; margin: 22px 0 0; width: 100%; font-family: var(--mono); font-size: .8rem; }
.runlist li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--gridline); border-radius: 8px; margin-top: 8px; background: rgba(28,28,61,.85); }
.runlist .tick { color: var(--lime); width: 12px; }
.runlist .running .tick { color: var(--yellow); }
.runlist em { margin-left: auto; font-style: normal; color: var(--dust); font-size: .72rem; }
.blocks-mini { display: inline-flex; gap: 2px; }
.blocks-mini i { width: 7px; height: 7px; border: 1.5px solid var(--cyan); display: inline-block; }
.blocks-mini i.on { background: var(--cyan); }

/* Sprite stages */
.spud-stage { position: relative; image-rendering: pixelated; }
.spud-stage svg { width: 100%; height: auto; }
.spud-hero { width: 180px; }
.spud-assess { width: 170px; }
.spud-step { width: 64px; margin-bottom: 14px; }
.spud-about { width: 84px; }
.spud-form { width: 96px; }
.spud-thanks { width: 120px; margin: 0 auto; }
.spud-stage .frame { position: absolute; inset: 0; }
.spud-stage .frame.base { position: relative; }
.spud-stage .frame.blink { opacity: 0; }
.anim .spud-stage.bob { animation: bob 2.4s steps(2) infinite; }
.anim .spud-stage .frame.blink { animation: blink 4.6s steps(1) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }
@keyframes blink { 0%, 90%, 100% { opacity: 0; } 93%, 96% { opacity: 1; } }
.anim .pop { opacity: 0; transform: translateY(14px) scale(.9); }
.anim .pop.in { opacity: 1; transform: none; transition: opacity .35s steps(4), transform .35s steps(4); }

/* Strip */
.for-strip { background: var(--ink); color: var(--lav); }
.for-strip p { margin: 0; padding: 16px 0; font-size: .95rem; text-align: center; color: var(--dust); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: #F2EFE6; }
.section-dark { background: var(--night); color: var(--lav); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a:not(.btn) { color: var(--cyan); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-lede { font-size: 1.08rem; color: var(--slate); }

.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: #CFC8E6; }
.card p { color: var(--slate); margin: 0; font-size: .98rem; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(3n+2) .icon svg { stroke: var(--cyan); }
.card:nth-child(3n) .icon svg { stroke: var(--magenta); }

.ways { margin-top: 64px; }
.ways-title { font-size: 1.5rem; margin-bottom: 20px; }
.way { border-top: 3px solid var(--ink); padding: 18px 4px 0; }
.way p { color: var(--slate); margin: 0; }
.way-tag { font-size: .8rem; color: var(--gold-deep) !important; margin-bottom: 8px !important; font-weight: 700; }
.way-feature { border-top-color: var(--yellow); }

/* Assessment */
.assess-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.assess-visual { display: flex; flex-direction: column; align-items: center; padding: 40px 20px; border: 2px solid var(--gridline); border-radius: 20px; background: var(--deep); }
.assess-copy p { color: var(--dust); font-size: 1.06rem; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--lav); }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--cyan); box-shadow: 3px 3px 0 var(--magenta); }

/* Process */
.progress-track { height: 12px; border: 2px solid var(--ink); border-radius: 3px; margin: 0 0 34px; padding: 2px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: repeating-linear-gradient(90deg, var(--cyan-deep) 0 18px, transparent 18px 22px); transition: transform .2s linear; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step p { color: var(--slate); margin: 0; font-size: .97rem; }
.step-num { font-size: .78rem; color: var(--gold-deep) !important; margin-bottom: 6px !important; font-weight: 700; }

/* Pricing (kept grown-up: no mascot) */
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price h3 { font-size: 1.15rem; }
.amount { font-size: 1.42rem; font-weight: 700; margin: 6px 0 2px; letter-spacing: -0.02em; }
.amount span { font-weight: 400; font-size: .9rem; color: var(--slate); }
.per { font-size: .8rem; color: var(--slate); margin-bottom: 16px; }
.price p:not(.amount):not(.per) { color: var(--slate); font-size: .96rem; }
.price .note { margin-top: auto; margin-bottom: 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .88rem !important; color: var(--lime-deep) !important; font-weight: 500; }
.price-feature { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--yellow); }
.pricing-foot { margin-top: 30px; color: var(--slate); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.about-copy p { font-size: 1.06rem; color: #34344F; }
.sig { display: flex; flex-direction: column; margin-top: 24px; padding-left: 14px; border-left: 3px solid var(--yellow); }
.sig-name { font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.sig-role { color: var(--slate); font-size: .92rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat p { margin: 0; color: var(--slate); font-size: .92rem; }
.stat-num { font-size: 2.6rem !important; font-weight: 700; color: var(--ink) !important; line-height: 1.1; margin-bottom: 4px !important; }
.stat-spud { grid-column: 1 / -1; background: var(--night); border-color: var(--gridline); display: flex; align-items: center; gap: 18px; }
.stat-spud .px-line { color: var(--yellow); margin: 0; }

/* Register */
.register-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.register-copy p { color: var(--dust); font-size: 1.06rem; }
.slots { display: flex; align-items: center; gap: 6px; margin: 22px 0 30px; }
.slot { width: 26px; height: 26px; border: 3px solid var(--yellow); background: var(--yellow); }
.slots em { font-style: normal; color: var(--dust); font-size: .85rem; margin-left: 10px; }
.register-spud { display: flex; align-items: center; gap: 18px; }
.register-spud .px-line { margin: 0; }
.form-card { background: var(--card); color: var(--ink); border-radius: 20px; padding: 32px; box-shadow: 10px 10px 0 var(--magenta); position: relative; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--slate); }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { outline: none; border-color: var(--cyan-deep); box-shadow: 0 0 0 3px rgba(10,134,170,.18); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--magenta-deep); }
textarea { resize: vertical; min-height: 110px; }
.field-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 10px; background: #FFF8D9; border: 1.5px solid #F3E2A0; }
.field-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.field-check label { margin: 0; font-weight: 600; }
.privacy { font-size: .84rem; color: var(--slate); margin: 4px 0 18px; }
.form-status { margin: 12px 0 0; font-size: .94rem; min-height: 1.2em; }
.form-status.error { color: var(--magenta-deep); }
.loading-blocks { display: none; justify-content: center; gap: 4px; margin-top: 14px; }
.loading-blocks i { width: 14px; height: 14px; border: 2px solid var(--cyan-deep); display: block; }
.loading-blocks i.on { background: var(--cyan-deep); }
.is-sending .loading-blocks { display: flex; }
.thanks { text-align: center; padding: 20px 6px; }
.thanks:focus { outline: none; }
.thanks h3 { margin-top: 14px; font-size: 1.5rem; }
.thanks p { color: var(--slate); }
.thanks .px-line { color: var(--lime-deep); }
.muted-light { font-size: .92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list .mono { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.contact-list small { color: var(--slate); font-size: .88rem; }

/* Footer */
.site-footer { background: var(--night); color: var(--dust); padding: 44px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.footer-brand p { margin: 10px 0 0; font-size: .92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.footer-links a { color: var(--lav); text-decoration: none; font-size: .94rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-small { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--gridline); font-size: .82rem; font-family: var(--mono); }

/* Loader (Bit Spud loading screen from the brand kit) */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--night); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; transition: opacity .35s ease, visibility .35s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader { animation: ldfail .3s 3.5s forwards; }
@keyframes ldfail { to { opacity: 0; visibility: hidden; } }
.loader .spud-stage { width: 120px; }
.loader .ld-text { font-family: var(--px); font-size: .8rem; color: var(--yellow); min-width: 9ch; }
.loader .ld-blocks { display: flex; gap: 4px; }
.loader .ld-blocks i { width: 14px; height: 14px; border: 2px solid var(--cyan); display: block; }
.loader .ld-blocks i.on { background: var(--cyan); }
.loader .ld-sub { font-family: var(--mono); font-size: .8rem; color: var(--dust); margin: 0; }

/* Simple pages */
.page { padding: 64px 0 88px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }
.page p, .page li { color: #34344F; }
.center { text-align: center; }
.page-404 { min-height: 70vh; display: flex; align-items: center; }
.page-404 .spud-stage { width: 140px; margin: 0 auto 20px; }

/* Responsive */
@media (max-width: 1020px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav ul { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; }
  .nav ul.open { display: flex; }
  .nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav li .btn { margin-top: 14px; width: 100%; }
  .hero { padding: 36px 0 52px; }
  .hero-grid, .assess-grid, .about-grid, .register-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .cards-3 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .assess-visual { order: 2; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards-4, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 20px; box-shadow: 6px 6px 0 var(--magenta); }
  .cta-row .btn { width: 100%; }
  .console { box-shadow: 0 20px 40px -20px rgba(18,18,42,.45), 5px 5px 0 var(--magenta); }
  .spud-hero { width: 140px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.register-copy .px-line { color: var(--yellow); }
.form-card a { color: var(--magenta-deep); }
.form-card .thanks .px-line { color: var(--lime-deep); }
@media (max-width: 860px) { .assess-visual { padding: 26px 20px; } .spud-assess { width: 120px; } }
.section-dark .form-card h3 { color: var(--ink); }
.section-dark .form-card a:not(.btn) { color: var(--magenta-deep); }
section[id], main [id] { scroll-margin-top: 76px; }
