/* Amkana website. Static, no JavaScript. Colours from the 05 Black Box brand sheet. */
:root {
  --ink: #0b0b0f;
  --paper: #f2f2ef;
  --white: #ffffff;
  --muted: #5c5f66;
  --hint: #62656e;
  --line: #e3e3df;
  --rule: #d5d5d0;
  --accent: #2f6bff;
  --accent-ink: #1f55e0;
  --accent-text: #2860eb; /* brand blue darkened slightly for WCAG AA text contrast */
  --field-border: #85888f;
  --navy: #0c0f1e;
  --on-dark: #a0a3ab;
  --on-dark-soft: #c9cbd1;
  --radius: 20px;
  --max: 1200px;
  --gutter: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 124px; height: 40px; }
.nav-desktop { display: flex; gap: 36px; }
.nav-desktop a, .nav-mobile a { text-decoration: none; color: #3a3d44; font-size: 15px; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--ink); }
.nav-desktop a[aria-current="page"] { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span, .nav-mobile summary span::before, .nav-mobile summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.nav-mobile summary span::before { position: absolute; top: -6px; }
.nav-mobile summary span::after { position: absolute; top: 6px; }
.nav-mobile[open] summary span { background: transparent; }
.nav-mobile[open] summary span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.nav-mobile[open] summary span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }
.nav-mobile ul { position: absolute; right: 0; top: 52px; margin: 0; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(11, 11, 15, 0.12); min-width: 220px; }
.nav-mobile li a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 16px; }
.nav-mobile li a:hover { background: var(--paper); }
.nav-mobile a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--paper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color 0.15s ease, transform 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #26262d; }
.btn-accent { background: var(--accent-text); color: var(--white); min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-accent:hover { background: var(--accent-ink); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Sections */
.section { padding: 112px 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.section-ink .eyebrow, .section-navy .eyebrow { color: #7fa2ff; }
.h2 { font-size: clamp(32px, 4.2vw, 48px); }
.lead { font-size: 19px; color: var(--muted); margin-top: 16px; max-width: 640px; }
.note { font-size: 14px; color: var(--hint); }

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -0.035em; max-width: 1000px; margin: 20px auto 0; }
.hero .lead { font-size: 20px; margin: 28px auto 0; max-width: 760px; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 44px; flex-wrap: wrap; }

/* Workflow diagram */
.flow { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; }
.flow li { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 16px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 15px; animation: flow-pulse 6s ease-in-out infinite; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 40px; height: 2px; background: var(--accent); }
.flow li:nth-child(2) { animation-delay: 1.5s; }
.flow li:nth-child(3) { animation-delay: 3s; }
.flow li:last-child { background: var(--accent-text); border-color: var(--accent-text); color: var(--white); animation-delay: 4.5s; }
@keyframes flow-pulse { 0%, 20%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); } 8% { box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.16); } }
.flow-caption { margin-top: 20px; }

/* Problems */
.problems { text-align: center; padding: 72px 0; }
.problems h2 { font-size: 36px; }
.problem-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-list li { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .num { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.card h3 { font-size: 22px; margin-top: 32px; }
.card p { color: var(--muted); font-size: 16px; margin-top: 14px; }

/* Before / after */
.tag { display: inline-block; padding: 6px 16px; border: 1.5px solid var(--accent-text); border-radius: 999px; background: var(--white); color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.compare > div { border-radius: var(--radius); padding: 36px; min-height: 230px; }
.compare .before { background: var(--white); }
.compare .after { background: var(--ink); color: var(--white); }
.compare h3 { font-size: 24px; }
.compare p { font-size: 18px; margin-top: 16px; color: var(--muted); }
.compare .after p { color: var(--on-dark-soft); }

/* Steps */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { border-top: 2px solid var(--rule); padding-top: 22px; counter-increment: step; }
.steps li:first-child { border-top-color: var(--accent); }
.steps li::before { content: "0" counter(step); display: block; color: var(--accent-text); font-weight: 700; font-size: 15px; }
.steps h3 { font-size: 22px; margin-top: 12px; }
.steps p { color: var(--muted); font-size: 16px; margin-top: 10px; }

/* Principles */
.principles { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 80px; }
.principles li { position: relative; padding-left: 28px; }
.principles li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.principles h3 { font-size: 22px; }
.principles p { color: var(--on-dark); font-size: 16px; margin-top: 10px; }
.section-ink .note { color: var(--on-dark); margin-top: 56px; }

/* Founder */
.founder { display: grid; grid-template-columns: 440px 1fr; gap: 80px; align-items: center; }
.photo-placeholder { aspect-ratio: 44 / 34; border: 1.5px dashed #b9b9b3; border-radius: var(--radius); background: var(--paper); display: grid; place-items: center; color: var(--hint); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-align: center; padding: 16px; }
.founder h2 { font-size: 40px; margin-top: 14px; }
.placeholder-text { margin-top: 20px; font-size: 18px; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 16px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 20px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 900px; }

/* CTA band */
.cta { text-align: center; padding: 104px 0 88px; }
.cta h2 { font-size: clamp(34px, 5vw, 58px); max-width: 1000px; margin: 0 auto; }
.cta .btn { margin-top: 44px; }
.cta .email { display: block; margin-top: 20px; color: var(--on-dark); text-decoration: none; }
.cta .email:hover { color: var(--white); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark); font-size: 14px; }
.site-footer .container { border-top: 1px solid #262a3a; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 36px; padding-bottom: 44px; flex-wrap: wrap; }
.site-footer .logo-white { width: 112px; height: 36px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* Inner pages */
.page-hero { padding: 96px 0 64px; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 64px); margin-top: 16px; max-width: 900px; }
.page-hero .lead { font-size: 20px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: var(--muted); margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-top: 6px; }
.service { display: grid; grid-template-columns: 320px 1fr; gap: 64px; padding: 56px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service h2 { font-size: 30px; margin-top: 18px; }
.service ul { margin: 0; padding-left: 20px; color: var(--muted); }
.service li + li { margin-top: 8px; }
.service .human { margin-top: 20px; padding: 16px 20px; background: var(--paper); border-radius: 14px; font-size: 16px; color: var(--muted); }
.service .human strong { color: var(--ink); }
.contact-box { background: var(--paper); border-radius: var(--radius); padding: 40px; max-width: 760px; }
.contact-box .btn { margin-top: 24px; }
.contact-box .address { display: block; margin-top: 12px; font-size: 22px; font-weight: 700; word-break: break-all; text-decoration: none; }
.draft-banner { background: #fff7e0; border: 1px solid #f0d78c; color: #5c4a10; border-radius: 12px; padding: 14px 18px; font-size: 15px; margin-bottom: 32px; }

/* Responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .founder { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .flow { grid-template-columns: 1fr; gap: 20px; max-width: 420px; margin-left: auto; margin-right: auto; }
  .flow li { min-height: 52px; font-size: 14px; }
  .flow li:not(:last-child)::after { left: 50%; top: 100%; width: 2px; height: 20px; }
  .problem-list { grid-template-columns: 1fr; gap: 16px; }
  .problem-list li { background: var(--white); border-radius: 16px; padding: 20px; font-size: 18px; text-align: left; }
  .compare, .principles, .founder, .service { grid-template-columns: 1fr; }
  .service { gap: 20px; }
  .principles { gap: 36px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 56px 0 56px; text-align: left; }
  .hero .lead { font-size: 17px; margin-left: 0; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 16px; text-align: center; }
  .problems { text-align: left; }
  .problems h2 { font-size: 28px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card h3 { margin-top: 20px; }
  .compare > div { padding: 28px 24px; min-height: 0; }
  .faq summary { font-size: 17px; }
  .cta { text-align: left; padding: 80px 0 64px; }
  .cta .btn { width: 100%; }
  .header-actions .btn { padding: 0 18px; font-size: 14px; }
  .brand img { width: 100px; height: 32px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .site-footer nav { flex-direction: column; gap: 12px; }
  .contact-box { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow li { animation: none; }
  .btn { transition: none; }
}

/* Utilities (no inline styles, so a strict CSP can be used) */
.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-56 { margin-top: 56px; }
.pt-0 { padding-top: 0; }
.h2-sm { font-size: clamp(28px, 3.4vw, 40px); }
.lead-sm { font-size: 17px; }
.founder-name { font-size: clamp(30px, 3.4vw, 40px); margin-top: 14px; }
main { flex: 1 0 auto; }

/* Contact page: inquiry form */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.inquiry { max-width: 680px; }
.inquiry[hidden] { display: none; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field .optional { font-weight: 400; color: var(--hint); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--field-border); border-radius: 12px; padding: 13px 14px; min-height: 50px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.15); }
.field [aria-invalid="true"] { border-color: #c62828; }
.field-hint { font-size: 14px; color: var(--hint); margin-top: 8px; }
.field-error { font-size: 14px; color: #c62828; margin-top: 6px; min-height: 0; }
.field-error:empty { display: none; }
.inquiry .btn { border: 0; cursor: pointer; font-family: inherit; }
.inquiry .btn:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin-top: 18px; font-size: 15px; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fdecec; color: #8e1c1c; padding: 14px 16px; }
.form-status.is-success { background: #e8f5ec; color: #1d5b31; padding: 14px 16px; }
.form-status a { font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-layout .contact-box { padding: 32px; }
.contact-layout .contact-box .address { font-size: 18px; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .inquiry .btn { width: 100%; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
