/* Motoyla site. Colour roles follow the approved app design (light 3.6, dark 3.5 Candidate A). */
:root {
  color-scheme: light dark;
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --group: #E9EDF1;
  --raised: #E9EDF1;
  --raised-pressed: #D9DDE0;
  --divider: #CBD2D9;
  --boundary: #6C7682;
  --edge: #56616D;
  --text: #141A21;
  --text-2: #56616D;
  --accent: #7D2947;
  --primary: #7D2947;
  --primary-pressed: #62203A;
  --primary-ring: transparent;
  --on-primary: #FFFFFF;
  --focus: #A85A75;
  --caution: #9A5A00;
  --band: #141A21;
  --band-2: #1E252C;
  --band-sep: #343D46;
  --band-text: #FFFFFF;
  --band-text-2: #A8B1BA;
  --band-accent: #F2B866;
  --shadow: 0 18px 40px rgba(20, 26, 33, .16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171517;
    --surface: #282628;
    --group: #323032;
    --raised: #3F3C3F;
    --raised-pressed: #4B474B;
    --divider: #5B565B;
    --boundary: #908A90;
    --edge: #A29CA2;
    --text: #F5F2F4;
    --text-2: #CEC8CC;
    --accent: #E89EBA;
    --primary: #7D2947;
    --primary-pressed: #62203A;
    --primary-ring: #E89EBA;
    --on-primary: #FFFFFF;
    --focus: #F5F2F4;
    --caution: #F2B866;
    --band: #282628;
    --band-2: #323032;
    --band-sep: #5B565B;
    --band-text: #F5F2F4;
    --band-text-2: #CEC8CC;
    --band-accent: #F2B866;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--boundary);
}
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--divider); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav { display: flex; gap: 4px 22px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 6px 0; }
.nav a:hover { color: var(--text); }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--boundary); border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
}
.lang:hover { background: var(--raised); }

/* Wordmark: text with a short route stroke under "yla" */
.wordmark {
  display: inline-flex; align-items: baseline; position: relative;
  font-weight: 750; font-size: 24px; letter-spacing: -0.035em; color: var(--text); text-decoration: none;
  padding-bottom: 6px;
}
.wordmark span { color: var(--accent); }
.wordmark svg { position: absolute; left: 47%; bottom: -1px; width: 53%; height: 9px; overflow: visible; }
.wordmark path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--boundary); border-radius: 999px; padding: 6px 12px;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--caution); }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 750; margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 17px; text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 2px var(--primary-ring); }
.btn-primary:hover { background: var(--primary-pressed); }
.btn-secondary { background: var(--raised); color: var(--text); }
.btn-secondary:hover { background: var(--raised-pressed); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; min-height: 560px; }
.phone {
  margin: 0; width: min(290px, 70vw);
  border-radius: 34px; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px var(--edge), var(--shadow);
}
.phone img { width: 100%; }
.hero-visual .phone:first-child { transform: translateY(-10px); z-index: 1; }
.hero-visual .phone:nth-child(2) { margin-left: -70px; transform: translateY(70px); z-index: 2; }
.figcap { font-size: 13px; color: var(--text-2); margin-top: 14px; }
.hero .figcap { text-align: center; }

/* Sections */
section { scroll-margin-top: 16px; }
.section { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--divider); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 750; max-width: 20em; }
.section .intro { font-size: 19px; color: var(--text-2); max-width: 40em; margin-top: 18px; }

/* Problem: questions as hairline rows */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: 40px; }
.questions { list-style: none; border-top: 1px solid var(--divider); }
.questions li { padding: 18px 0; border-bottom: 1px solid var(--divider); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.who h3 { font-size: 20px; margin-bottom: 10px; }
.who p + h3 { margin-top: 26px; }
.who p { color: var(--text-2); }

/* Product walkthrough */
.steps { margin-top: 48px; display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(20px, 4vw, 56px); align-items: start;
  padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--divider);
}
.step-num { font-size: 15px; font-weight: 700; color: var(--accent); padding-top: 10px; }
.step h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; }
.step p { color: var(--text-2); margin-top: 14px; max-width: 34em; }
.facts { list-style: none; margin-top: 18px; border-top: 1px solid var(--divider); max-width: 34em; }
.facts li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--divider); position: relative; font-size: 16px; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 10px; height: 2px; background: var(--accent); }
.label {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--group); border-radius: 6px; padding: 3px 8px; margin-top: 18px;
}
.step-media { width: 100%; max-width: 300px; justify-self: end; }
.step .phone { width: 100%; }
.step-media .figcap { text-align: center; }

/* Claude section: ink band, like the cockpit */
.band { background: var(--band); color: var(--band-text); border-top: 0; }
.band .eyebrow { color: var(--band-accent); }
.band .intro { color: var(--band-text-2); }
.band a { color: var(--band-text); }
.planned {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 14px; font-weight: 600; color: var(--band-text);
  border: 1px solid var(--band-text-2); border-radius: 999px; padding: 6px 12px;
}
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--band-sep); }
.flow li { list-style: none; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--band-sep); }
.flow li + li { padding-left: 24px; border-left: 1px solid var(--band-sep); }
.flow .n { font-size: 14px; font-weight: 700; color: var(--band-accent); }
.flow h3 { font-size: 19px; margin: 8px 0 8px; letter-spacing: -0.01em; }
.flow p { color: var(--band-text-2); font-size: 16px; }

.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 40px; background: var(--band-2); border-radius: 10px; overflow: hidden; }
.example > div { padding: 24px; }
.example > div + div { border-left: 1px solid var(--band-sep); }
.example .k { font-size: 13px; font-weight: 600; color: var(--band-text-2); margin-bottom: 10px; }
.query { font-size: clamp(19px, 2vw, 23px); font-weight: 600; line-height: 1.4; }
.fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 16px; }
.fields dt { color: var(--band-text-2); }
.fields dd { margin: 0; font-weight: 600; }
.example .note { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--band-sep); font-size: 14px; color: var(--band-text-2); padding: 14px 24px 16px; }

.limits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: 48px; }
.limits h3 { font-size: 20px; margin-bottom: 14px; }
.limits ul { list-style: none; border-top: 1px solid var(--band-sep); }
.limits li { padding: 12px 0; border-bottom: 1px solid var(--band-sep); color: var(--band-text-2); font-size: 16px; }
.limits li strong { color: var(--band-text); font-weight: 600; }

/* Project */
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); margin-top: 40px; }
.lead p { color: var(--text-2); }
.lead p + p { margin-top: 16px; }
.lead .founder-name { color: var(--text); font-weight: 600; }
.done { list-style: none; border-top: 1px solid var(--divider); }
.done li { display: grid; grid-template-columns: minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--divider); }
.done strong { font-weight: 600; }
.done span { color: var(--text-2); font-size: 15px; margin-top: 2px; }
.open { margin-top: 28px; padding: 18px 20px; background: var(--group); border-radius: 10px; color: var(--text); font-size: 16px; }

/* Contact */
.contact { text-align: left; }
.mail {
  display: inline-block; margin-top: 28px;
  font-size: clamp(30px, 6vw, 64px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 3px; text-underline-offset: 8px; overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--divider); padding: 48px 0 56px; font-size: 15px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.site-footer h2 { font-size: 16px; color: var(--text); margin-bottom: 10px; letter-spacing: 0; }
.site-footer p + p { margin-top: 10px; }
.site-footer .small { font-size: 13px; margin-top: 28px; }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 64px 0; }
.notfound h1 { font-size: clamp(32px, 5vw, 56px); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 0; padding-bottom: 70px; }
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
  .step-num { grid-column: 1 / -1; padding: 0; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .hero-visual .phone { width: min(230px, 54vw); }
  .hero-visual .phone:nth-child(2) { margin-left: -48px; transform: translateY(48px); }
  .hero-visual { padding-bottom: 48px; }
  .problem-grid, .project-grid, .limits, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step-media { justify-self: center; max-width: 260px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li, .flow li + li { padding: 20px 0; border-left: 0; }
  .example { grid-template-columns: minmax(0, 1fr); }
  .example > div + div { border-left: 0; border-top: 1px solid var(--band-sep); }
  .questions li { font-size: 18px; }
  .btn { width: 100%; }
}
