/* Board: tiles fitted edge to edge on 8px gaps. Colours follow the HeyNoy logo. Hero = name band, link row, three columns
   (ark rail, the inbox, colour rail). Then demo panel, stage bar, close-up board, marquee,
   plans table, question tiles, action row, block wordmark. */

.board { padding: var(--margin); display: grid; gap: var(--gap); }
.tile { background: var(--surface); border-radius: var(--radius); padding: 22px; overflow: hidden; position: relative; min-width: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; grid-template-columns: repeat(12, 1fr); grid-template-rows: 170px 64px 1fr; }
.band { grid-column: 1 / -1; background: var(--ink); color: var(--bg); display: flex; align-items: center; padding: 0 190px 0 22px; }
.band h1 { margin: 0; font-size: clamp(96px, 10.5vw, 168px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.8; white-space: nowrap; display: flex; align-items: baseline; gap: 0.18em; }
.band h1 .mark { width: 0.78em; height: 0.78em; object-fit: contain; flex: none; align-self: center; border-radius: 0.16em; margin-right: 0.04em; }
.band h1 small { align-self: center; font-size: 0.14em; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; white-space: normal; max-width: 30ch; color: var(--run-2); }
.band { position: relative; }
.band .lang { position: absolute; top: 18px; right: 22px; font-size: 16px; color: var(--run-2); }
.band .lang b { color: var(--accent); }
.band .lang a { color: #fff; }
.band .lang a:hover { color: var(--run-2); }
.links { grid-column: span 3; padding: 0; }
.links a { display: block; height: 100%; padding: 20px 22px; text-decoration: none; font-size: 16px; font-weight: 500; transition: background-color 160ms var(--ease); }
.links a:hover { background: var(--run-1); color: var(--ink); }
.rail-left { grid-column: 1 / 3; display: grid; grid-template-rows: 1.15fr 1fr; gap: var(--gap); min-height: 0; }
.rail-left .pic { padding: 0; }
.rail-left .pic figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; background: var(--bg); padding: 8px 10px; border-radius: 6px; font-size: 13px; line-height: 1.3; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.facts b { font-weight: 600; display: block; }
.centre { grid-column: 3 / 11; padding: 0; background: var(--run-1); display: grid; grid-template-rows: 1fr auto; }
.centre .shot { padding: 28px 28px 0; overflow: hidden; }
.statement { background: var(--bg); margin: 0 8px 8px; border-radius: 6px; padding: 24px; }
.statement p { margin: 0; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; max-width: 30ch; }
.rail-right { grid-column: 11 / 13; display: grid; grid-template-rows: repeat(5, 1fr); gap: var(--gap); }
.rail-right .tile { font-size: 15px; line-height: 1.35; }
.rail-right .r1 { background: var(--run-1); }
.rail-right .r2 { background: var(--run-2); }
.rail-right .r3 { background: var(--run-3); color: var(--ink); }
.rail-right .r4 { background: var(--run-4); color: #fff; }
.rail-right .act { background: var(--accent); padding: 0; }
.rail-right .act a { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 22px; color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 17px; transition: background-color 160ms var(--ease); }
.rail-right .act a:hover { background: #b3e62c; }
.rail-right .act span { font-size: 28px; line-height: 1; transition: transform 160ms var(--ease); }
.rail-right .act a:hover span { transform: translateX(6px); }

/* ---------- section heads ---------- */
.sect { padding: 160px var(--margin) 0; }
.sect > h2, .head-tile h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin: 0 0 12px; text-wrap: balance; }
.sect > p { max-width: 52ch; margin: 0 0 32px; }
.sect > h2, .sect > p, .how-head > div, .bar-notes { padding-inline: 14px; }
.how-head { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: end; margin-bottom: var(--gap); }
.how-head p { max-width: 46ch; margin: 0 0 8px; }
.how-head .pic { height: 300px; }
.phone-only { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: calc(100% - 48px); }
.chip { font-size: 28px; font-weight: 600; padding: 10px 18px; border-radius: 8px; background: #fff; color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; }

/* ---------- demo panel ---------- */
.demo { display: grid; grid-template-columns: 62fr 38fr; background: var(--run-1); border-radius: var(--radius); overflow: hidden; min-height: 600px; }
.demo-left { padding: 28px; display: grid; align-content: start; gap: 16px; }
.demo-right { background: var(--run-2); padding: 20px 22px; display: grid; align-content: start; gap: 4px; }
.ctl { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; font-size: 15px; }
.ctl > span:first-child { font-weight: 500; }
.choice { display: flex; background: var(--bg); border-radius: 6px; padding: 3px; gap: 2px; }
.choice button { font: 500 14px/1 var(--font); border: 0; background: transparent; color: var(--ink); padding: 9px 10px; border-radius: 4px; cursor: pointer; transition: background-color 150ms var(--ease); }
.choice button:hover { background: var(--run-1); }
.choice button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.switch { width: 52px; height: 30px; border-radius: 15px; border: 0; background: var(--run-3); position: relative; cursor: pointer; transition: background-color 150ms var(--ease); flex: none; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 150ms var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.ctl input[type="range"] { width: 140px; accent-color: var(--accent); }
.demo-note { margin: 16px 0 0; font-size: var(--step-small); color: var(--ink); }

/* ---------- stage bar ---------- */
.bar { display: flex; gap: 6px; height: 22vh; min-height: 150px; }
.bar > div { border-radius: var(--radius); padding: 20px; display: flex; align-items: flex-start; font-size: clamp(20px, 2vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.bar .s1 { flex: 12; background: var(--run-2); }
.bar .s2 { flex: 26; background: var(--run-3); }
.bar .s3 { flex: 62; background: var(--ink); color: #fff; }
.bar-notes { display: flex; gap: 6px; margin-top: 16px; }
.bar-notes p { margin: 0; font-size: 17px; max-width: 26ch; }
.bar-notes .n1 { flex: 12; } .bar-notes .n2 { flex: 26; } .bar-notes .n3 { flex: 62; }

/* ---------- close-up board ---------- */
.mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 104px; padding: 0; }
.mosaic .tile { padding: 0; }
.m-6x4 { grid-column: span 6; grid-row: span 4; }
.m-6x2 { grid-column: span 6; grid-row: span 2; }
.m-3x4 { grid-column: span 3; grid-row: span 4; }
.m-3x2 { grid-column: span 3; grid-row: span 2; }
.mosaic .head-tile { padding: 22px; background: var(--bg); }
.head-tile p { margin: 0; max-width: 44ch; }
.cap { position: absolute; left: 20px; bottom: 18px; right: 20px; z-index: 1; }
.cap b { display: block; font-size: 18px; font-weight: 500; }
.cap span { font-size: 15px; color: var(--muted); }
.dark .cap span { color: var(--run-2); }
.c1 { background: var(--run-1); } .c2 { background: var(--run-2); } .c3 { background: var(--ink); color: #fff; } .c4 { background: var(--run-3); }
.zoom { position: absolute; font-size: 44px; line-height: 1.1; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; margin-top: 160px; background: var(--ink); color: var(--bg); padding-block: 22px; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(56px, 8vw, 128px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; padding-right: 0.6em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- plans table ---------- */
.plans { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 20px; }
.plans th, .plans td { text-align: left; padding: 20px 22px; vertical-align: top; }
.plans thead th { font-weight: 400; }
.plans thead th b { display: block; font-size: clamp(26px, 3vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plans thead th em { font-style: normal; font-size: clamp(26px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1.1; }
.plans thead th small { font-size: 16px; color: var(--ink); }
.plans tbody tr:nth-child(odd) > * { background: var(--surface); }
.plans tbody th { font-weight: 400; }
.plans .rec, .plans tbody tr > .rec { background: var(--accent); color: var(--accent-ink); }
.plans .rec small { color: var(--accent-ink); }
.plans .button { background: var(--ink); color: #fff; }
.plans .button:hover { background: #2a2c27; }
.plans .rec .button { background: var(--ink); color: var(--accent); }
.plans .lbl { display: none; }

/* ---------- questions ---------- */
.faq-wrap { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); padding: 160px var(--margin) 0; align-items: start; }
.faq-side { position: sticky; top: 24px; display: grid; gap: var(--gap); }
.faq-side .pic { height: 52svh; }
.faq-side h2 { padding: 0 14px 12px; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin: 0; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { background: var(--surface); border-radius: var(--radius); transition: background-color 200ms var(--ease); }
.faq-list summary { list-style: none; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 20px; font-weight: 500; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { width: 16px; height: 16px; position: relative; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform 200ms var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq-list details[open] { background: var(--accent); color: var(--accent-ink); }
.faq-list details[open] .plus::after { transform: rotate(0deg); }
.faq-list details p { margin: 0; padding: 0 24px 24px; max-width: 52ch; font-size: 17px; }
.faq-list details a { color: var(--accent-ink); }

/* ---------- action row ---------- */
.act-row { display: grid; grid-template-columns: 2fr 8fr 2fr; gap: 10px; margin-top: 160px; }
.act-row > div { height: 360px; border-radius: var(--radius); overflow: hidden; }
.act-row .flank-a { background: var(--run-3); border-radius: 0 var(--radius) var(--radius) 0; }
.act-row .flank-b { border-radius: var(--radius) 0 0 var(--radius); }
.act-row .flank-b img { width: 100%; height: 100%; object-fit: cover; }
.act-main { background: var(--accent); color: var(--accent-ink); padding: 40px; display: grid; align-content: center; gap: 10px; }
.act-main h2 { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.act-main p { margin: 0; max-width: 56ch; }
.field { display: flex; width: min(460px, 100%); background: #fff; border-radius: var(--radius); padding: 4px; margin-top: 14px; }
.field input { flex: 1; min-width: 0; border: 0; font: 400 17px/1 var(--font); padding: 0 14px; color: var(--ink); background: transparent; }
.field input:focus { outline: none; }
.field:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.field .button { background: var(--ink); color: var(--accent); }
.field .button:hover { background: #2a2c27; }

/* ---------- footer ---------- */
.foot { background: var(--field-2); margin-top: 120px; padding: 40px 24px 24px; }
.blocks { display: flex; gap: 4px; align-items: flex-end; height: 28svh; min-height: 200px; }
.blocks span { flex: 1; display: grid; place-items: center; border-radius: var(--radius); color: #fff; font-weight: 600; font-size: min(22svh, 15vw); line-height: 0.75; letter-spacing: -0.04em; overflow: hidden; }
.blocks .b1 { height: 100%; background: var(--ink); }
.blocks .b2 { height: 78%; background: var(--accent); color: var(--accent-ink); }
.blocks .b3 { height: 86%; background: var(--run-4); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr) 3fr; gap: 24px; margin-top: 56px; font-size: 15px; }
.foot-cols p { margin: 0 0 6px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font-size: var(--step-small); }
.foot-last .button { min-height: 40px; padding: 0 16px; }
.credits { margin-top: 16px; font-size: var(--step-small); color: var(--muted); max-width: 130ch; }
.credits a { color: var(--muted); }

/* ---------- interface fragments (data-ui keeps its own borders) ---------- */
[data-ui] { font-family: var(--font); color: var(--ink); }
.app { background: #fff; border-radius: 10px; display: grid; grid-template-columns: 280px 1fr; height: 100%; font-size: 15px; line-height: 1.4; overflow: hidden; }
.app-list { background: #f1f2ec; padding: 12px; display: grid; align-content: start; gap: 4px; }
.app-list h3 { font-size: 13px; font-weight: 600; margin: 4px 8px 8px; color: var(--muted); }
.conv { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px; border-radius: 8px; }
.conv.sel { background: #fff; }
.conv b { font-weight: 600; }
.conv small { font-size: 13px; color: var(--muted); }
.chan { font-size: 13px; font-weight: 600; padding: 3px 7px; border-radius: 4px; background: var(--run-1); justify-self: start; }
.app-thread { padding: 18px 22px; display: grid; align-content: start; gap: 12px; }
.app-thread .top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #e4e5de; } /* taste-skill-ignore: data-ui interface */
.msg { padding: 10px 14px; border-radius: 12px; max-width: 80%; }
.msg.in { background: #eeefe8; justify-self: start; }
.msg.draft { background: #f3fbdc; border: 1px dashed var(--accent); justify-self: end; } /* taste-skill-ignore: data-ui interface */
.msg.out { background: var(--ink); color: #fff; justify-self: end; }
.agent { font-size: 13px; color: var(--muted); justify-self: end; }
.btns { display: flex; gap: 8px; justify-content: flex-end; }
.btn { font: 600 14px/1 var(--font); padding: 11px 14px; border-radius: 6px; border: 0; background: #eeefe8; color: var(--ink); cursor: pointer; transition: background-color 150ms var(--ease); }
.btn:hover { background: #e3e5dc; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #2a2c27; }

/* ---------- entrances ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; grid-template-rows: none; min-height: auto; gap: 6px; }
  .band { height: auto; padding: 44px 16px 18px; }
  .band h1 .mark { width: 0.78em; height: 0.78em; }
  .band h1 { font-size: 16vw; flex-wrap: wrap; row-gap: 10px; }
  .band h1 small { flex-basis: 100%; font-size: 16px; max-width: none; }
  .band .lang { top: 14px; right: 16px; font-size: 15px; }
  .links { grid-column: span 1; min-height: 56px; }
  .centre { grid-column: 1 / -1; }
  .centre .shot { padding: 12px 12px 0; height: 250px; }
  .statement p { font-size: min(6vw, 24px); }
  .phone-only { display: inline-flex; }
  .act-phone { grid-column: 1 / -1; min-height: 52px; }
  .how-head { grid-template-columns: 1fr; }
  .how-head .pic { height: 200px; }
  .faq-side { position: static; }
  .faq-side .pic { height: 240px; }
  .chip { font-size: 20px; }
  .rail-right { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .rail-right .act { grid-column: 1 / -1; min-height: 96px; }
  .rail-left { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .rail-left .pic { min-height: 260px; }
  .app { grid-template-columns: 1fr; }
  .app-list { display: none; }
  .sect { padding-top: 96px; }
  .demo { grid-template-columns: 1fr; min-height: auto; }
  .demo-left { padding: 16px; }
  .bar { flex-direction: column; height: 70svh; }
  .bar > div { min-height: 72px; font-size: 17px; }
  .bar-notes { flex-direction: column; gap: 12px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 96px; gap: 6px; }
  .m-6x4 { grid-column: 1 / -1; grid-row: span 3; }
  .m-6x2 { grid-column: 1 / -1; grid-row: span 2; }
  .m-3x4, .m-3x2 { grid-column: span 1; grid-row: span 3; }
  .mosaic .head-tile { grid-row: span 2; }
  .zoom { font-size: 30px; }
  .marquee { margin-top: 96px; }
  .table-wrap { overflow-x: auto; margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }
  .plans { min-width: 640px; font-size: 17px; }
  .faq-wrap { grid-template-columns: 1fr; padding-top: 96px; }
  .faq-side h2 { font-size: 9vw; }
  .faq-list summary { font-size: 18px; min-height: 64px; }
  .act-row { grid-template-columns: 1fr 1fr; margin-top: 96px; }
  .act-row .act-main { grid-column: 1 / -1; order: -1; height: auto; padding: 28px 20px; border-radius: var(--radius); }
  .act-row > div { height: 120px; }
  .act-main h2 { font-size: 28px; }
  .field { flex-direction: column; gap: 6px; }
  .field input { min-height: 48px; }
  .foot { margin-top: 96px; }
  .blocks { height: 22svh; min-height: 140px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot { padding-inline: 20px; }
  .operator { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
}
