/* K6N on phones (up to 699px, set on the link tag). A layout of its own, not the desktop page stacked up.
   1. The whole logo shows.  2. Each demo comes before its details and fits on about one screen.
   3. No box inside a box.   4. Service names fill the width.   5. No empty space held open. */

:root { --bar: 60px; --gut: 20px; }
.band { padding: 60px 0; }
.title { font-size: 34px; }
.lead { font-size: 21px; line-height: 1.32; }
.bar-nav { gap: 18px; }

/* Hero: the whole logo, then large words. Short enough for the next section to show below it. */
.hero { min-height: 0; padding: 44px 0 40px; }
.hero-mark { margin: 0; padding: 0 var(--gut); }
.hero-mark svg { width: 100%; }
.hero-foot { margin-top: 0; padding-top: 48px; gap: 28px; }
.hero h1 { font-size: min(11.2vw, 56px); line-height: 1.04; letter-spacing: -.025em; text-wrap: wrap; }
.hero .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero .btn { padding: 12px 8px; }

/* Service names fill the width. --em is each word's width. */
#websites .word { --em: 7.2; }
#apps .word { --em: 3.75; }
#chatbots .word { --em: 7.75; }
#voice .word { --em: 4.3; }
#automation .word { --em: 9.45; }
.band > .wrap > .word { font-size: calc((100vw - 2 * var(--gut)) / var(--em)); }

/* Name, one line, demo, then the details */
.split { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
.split .say { display: contents; }
.split .lead { order: 1; margin-bottom: 24px; }
.split .show { order: 2; }
.split .points { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 26px; }
.split .aside { order: 4; margin-top: 18px; font-size: 15px; }
.points li, .dark .points li { border-top: 2px solid; padding: 10px 0 0; font-size: 15px; line-height: 1.35; }
.points li { border-color: var(--ink); }
.dark .points li { border-color: var(--line-d); }
.cap { margin-top: 12px; font-size: 14px; }
.panel { padding: 20px; margin: 0 calc(-1 * var(--gut)); }

/* Projects: one at a time */
.js .proj-tabs.js-only { display: grid !important; grid-template-columns: 4fr 5fr 5fr; border: 2px solid var(--ink); margin-top: 26px; }
.proj-tabs button { min-height: 50px; padding: 6px 2px; border: 0; background: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
.proj-tabs button + button { border-left: 2px solid var(--ink); }
.proj-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.proj-tabs button:focus-visible { outline-offset: -6px; }
.js .proj:not(.is-on) { display: none; }
.proj, .proj-flip { display: flex; flex-direction: column; gap: 0; margin-top: 22px; }
html:not(.js) .proj { margin-top: 56px; }
.proj-say { display: contents; }
.js .proj-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.proj-say > p { order: 2; }
.proj-say > .proj-tag { order: 1; margin: 0 0 8px; }
.proj-say > .hint { order: 3; margin: 16px 0 14px; padding-top: 14px; border-top-width: 2px; min-height: 62px; font-size: 16px; line-height: 1.4; }
.stage { order: 4; background: none; padding: 0; gap: 14px; }
.proj-say > .textbtn, .proj-say > .proj-link { order: 5; align-self: flex-start; margin-top: 8px; }

/* Holdr: one card, the customer above and the café below */
.stage-2 { gap: 0; background: #111; border-radius: 24px; overflow: hidden; border: 2px solid #111; }
.stage-2 .device { max-width: none; border: 0; border-radius: 0; }
.stage-2 .dev-label { padding: 14px 20px 0; }
.stage-2 .dev-in { padding: 6px 20px 18px; }
.h-phone .dev-in { min-height: 286px; }
.h-cafe .dev-in { min-height: 272px; }
.h-logo, .c-name { font-size: 24px; }
.h-sub { margin: 2px 0 8px; }
.h-row { padding: 9px 0; }
.c-list { margin-bottom: 12px; }
.c-list li { padding: 8px 10px; }
.h-pos { font-size: 84px; }
.h-big { margin: 4px 0 14px; }

.s-phone { max-width: min(74vw, 290px); border-width: 7px; border-radius: 40px; }

/* Amenease */
#amen-who { width: 100%; }
#amen-who button { flex: 1; }
.a-phone { max-width: none; border: 0; border-radius: 24px; }
.a-phone .dev-in { min-height: 0; padding: 22px 18px 18px; }
.a-title { margin-top: 10px; }
.a-sub { margin-bottom: 14px; }
.a-slots { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.a-slot { min-height: 64px; padding: 8px 11px; border-radius: 14px; }

/* Your business */
.yours-in { gap: 30px; }
.biz { margin: 18px 0 12px; font-size: 28px; }
.bigcode { font-size: min(23vw, 150px); }

/* Ten services: two columns of codes */
.index { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 20px; margin-top: 24px; }
.index a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; min-height: 86px; padding: 12px 0; }
.index small { display: none; }
.index b { font-size: 17px; font-weight: 400; color: var(--mute-d); }
.code { font-size: 32px; width: auto; }

/* Sample website: already phone-sized here, so there is no Computer or Phone switch */
.maker-ctl .seg { width: 100%; margin-bottom: 8px; }
.maker-ctl .seg button { flex: 1; }
.maker-ctl .seg:last-child { display: none; }
.frame-bed { background: none; padding: 0; margin-top: 4px; }
.frame, .frame[data-size="phone"] { max-width: none; border-radius: 18px; }
.frame-bar { display: none; }
.mini { min-height: 500px; }
[data-look="bold"] .mini-h { font-size: min(9.2vw, 44px); }

/* Notifications: the top half of a lock screen */
.lock-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 18px; background: none; padding: 0; }
.lock { order: 2; height: 440px; max-width: none; border: 8px solid #3A3E45; border-bottom: 0; border-radius: 44px 44px 0 0; padding: 26px 12px 0; }
.lock-time { font-size: 68px; margin-bottom: 18px; }
.lock-say { display: contents; }
.lock-say > div { order: 1; }
.lock-say .asks-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.lock-say .ask { padding: 10px 4px; text-align: center; }
.lock-say .cap { order: 3; margin: 0; }

/* Chat: the box keeps its height, the messages sit at the bottom and scroll */
.js .log { min-height: 0; height: 226px; overflow-y: auto; overscroll-behavior: contain; margin-top: 12px; gap: 10px; }
.log p { max-width: 86%; padding: 11px 16px; flex: none; }
.log p:first-child { margin-top: auto; }
.asks { margin-top: 14px; padding-top: 14px; min-height: 152px; }

/* Call */
.call-top { flex-wrap: nowrap; }
.toggle { flex: none; }
.toggle button { padding: 8px 12px; font-size: 15px; }
.turns > div { grid-template-columns: 56px 1fr; }
.say-row { min-height: 0; }

/* Automation */
.word + .head2 { margin-top: 18px; }
.head2 { gap: 12px; }
.clean { gap: 20px; margin-top: 22px; }
.clean table { margin-top: 10px; }
.clean th, .clean td { padding-top: 10px; padding-bottom: 10px; }
.clean .btn { min-height: 46px; padding: 8px 16px; font-size: 16px; }
.todo { min-height: 236px; padding: 22px 20px; }
.fix-block { margin-top: 12px; gap: 10px; }

/* Dashboard */
.board { gap: 8px; margin-top: 22px; }
.tile { padding: 16px; }
.tile-hot { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-content: center; padding: 18px 16px; }
.tile-hot h3 { grid-column: 2; align-self: end; font-size: 16px; font-weight: 400; }
.tile-hot .huge { grid-column: 1; grid-row: 1 / 4; font-size: 100px; padding: 0; margin: 0; align-self: center; }
.tile-hot .tile-b { grid-column: 2; margin: 0 0 4px; font-size: 19px; }
.tile-hot .tile-b + p { grid-column: 2; font-size: 15px; line-height: 1.3; }
.plot { height: 124px; margin-top: 14px; }
.scrub { margin-top: 0; }
.tile-s { order: 1; }
.tile-do { order: 2; }
.tile-do ul { margin-top: 12px; }
.tile-do li { padding: 10px 0; line-height: 1.35; }

/* Five more */
.rows { margin-top: 24px; }
.row { gap: 8px; padding: 20px 0; }
.word-s { font-size: min(9.6vw, 44px); }
.row p { font-size: 16px; line-height: 1.4; }

/* Where to start */
.picks { margin-top: 22px; }
.picks label { min-height: 64px; padding: 11px 0; column-gap: 14px; }
.see { font-size: 17px; line-height: 1.25; }
.build { font-size: 15px; line-height: 1.3; }
.picks-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picks-foot .btn { padding: 10px 6px; font-size: 16px; text-align: center; }
html:not(.js) .picks-foot { grid-template-columns: 1fr; }
.status { grid-column: 1 / -1; min-height: 0; }

/* How we work: the number sits beside its text */
.steps { gap: 0; margin-top: 24px; border-bottom: 2px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 68px 1fr; align-items: start; border-top-width: 2px; padding: 16px 0 18px; }
.steps .huge { font-size: 60px; grid-row: 1 / 3; line-height: 1; }
.steps h3 { margin: 0 0 4px; font-size: 21px; }
.steps p { grid-column: 2; font-size: 16px; line-height: 1.4; }

/* Names */
.band.about { padding-top: 0; }
.letters { margin-top: 24px; }
.trio { gap: 0; margin-top: 22px; }
.trio > div { border-top: 1px solid var(--line-l); padding: 12px 0; }
.trio h3 { font-size: 19px; }

/* Contact */
.title-xl { font-size: min(10.6vw, 52px); }
.people { gap: 24px; margin-top: 40px; padding-top: 22px; }
.people a { font-size: min(5.7vw, 25px); }
.foot { margin-top: 32px; }
.hot { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }

/* Small phones */
@media (max-width: 359px) {
  :root { --gut: 16px; }
  .bar-nav { gap: 12px; }
  .bar-nav a { font-size: 15px; }
  .proj-tabs button { font-size: 14px; }
  .hero .btn { font-size: 15px; }
  .toggle button { padding: 8px 9px; font-size: 14px; }
  .call-top { flex-wrap: wrap; }
  .a-slot { padding: 8px; }
  .tile-hot .huge { font-size: 84px; }
  .tile-s { padding: 14px 10px; }
}
