/* Homepage "Zeg het. Je Hand doet het." — what you say on the left, the device your
   Hand uses on the right. Uses the same cream surfaces, dark voice bubble and device
   renderings as the feature pages, so the section sits in the site's palette. */
.hands-flow-section {
  --flow-stage-a: #f8efe3;
  --flow-stage-b: #f2e7d9;
  --flow-stage-line: color-mix(in srgb, #8c6a48 16%, transparent);
  --flow-bubble: #24201d;
  --flow-bubble-text: #f7f0e6;
  --flow-paper: #fffdf9;
  --flow-device-shadow: 0 34px 60px -26px rgb(46 43 37 / 52%), 0 12px 26px -16px rgb(46 43 37 / 34%);
  scroll-margin-top: 6rem;
  padding-top: clamp(82px, 9vw, 130px);
}
:root[data-theme="dark"] .hands-flow-section {
  --flow-stage-a: color-mix(in srgb, var(--color-accent-100) 55%, var(--color-neutral-100));
  --flow-stage-b: var(--color-neutral-100);
  --flow-stage-line: var(--marketing-panel-border);
  --flow-bubble: #0f0e0c;
  --flow-device-shadow: 0 34px 60px -26px rgb(0 0 0 / 70%), 0 12px 26px -16px rgb(0 0 0 / 50%);
}
.hands-flow-anchor { display: block; position: relative; top: -90px; width: 0; height: 0; }

/* Heading */
.hands-flow-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end;
  column-gap: clamp(34px, 5vw, 88px);
  margin-bottom: clamp(26px, 3.2vw, 40px);
}
.hands-flow-heading .eyebrow { margin-bottom: 14px; }
.hands-flow-heading h2 {
  margin: 0;
  font: var(--font-heading-weight) clamp(43px, 5.3vw, 79px) / .99 var(--font-heading);
  letter-spacing: -.04em;
}
.hands-flow-heading h2 span { color: var(--color-accent); }
.hands-flow-heading-detail { max-width: 560px; padding-bottom: 5px; }
.hands-flow-heading-detail p {
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 76%, transparent);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.58;
}
.hands-flow-voice-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--color-accent-700);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 4px;
}

/* Tabs: plain pills, the chosen one filled */
.hands-flow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.hands-flow-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 15px;
  border: 1px solid var(--marketing-control-border);
  border-radius: 999px;
  background: var(--marketing-control-bg);
  color: var(--color-text);
  font: 700 14px / 1 var(--font-body);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.hands-flow-tab svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .8; }
.hands-flow-tab:hover { border-color: color-mix(in srgb, var(--color-text) 30%, transparent); }
.hands-flow-tab[aria-selected="true"] {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
}
.hands-flow-tab[aria-selected="true"] svg { opacity: 1; }
.hands-flow-tab:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Stage */
.hands-flow-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--flow-stage-line);
  border-radius: clamp(24px, 2.6vw, 34px);
  background: linear-gradient(160deg, var(--flow-stage-a) 0%, var(--flow-stage-b) 100%);
}
.hands-flow-panel[hidden] { display: none !important; }
.hands-flow-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  /* Tall enough for the phone, so the stage keeps one height across the tabs. */
  min-height: calc(2.17 * clamp(212px, 18.5vw, 250px) + 2 * clamp(28px, 3.8vw, 60px) + 6px);
  padding: clamp(28px, 3.8vw, 60px);
  animation: hands-flow-in 320ms ease both;
}
@keyframes hands-flow-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* What you say, and what your Hand does */
.hands-flow-talk {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 540px;
}
.hands-flow-said {
  align-self: flex-end;
  max-width: 94%;
  padding: 16px 20px 19px;
  border-radius: 22px 22px 6px 22px;
  background: var(--flow-bubble);
  color: var(--flow-bubble-text);
  box-shadow: 0 14px 30px -18px rgb(36 32 29 / 60%);
}
.hands-flow-said-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #f3aa78;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hands-flow-said-label svg { width: 14px; height: 14px; }
.hands-flow-said p {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 21px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.hands-flow-reply {
  align-self: flex-start;
  max-width: 94%;
  padding: 15px 18px 17px;
  border: 1px solid var(--marketing-panel-border);
  border-radius: 6px 22px 22px 22px;
  background: var(--color-neutral-100);
  box-shadow: var(--shadow-sm);
}
.hands-flow-reply-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: color-mix(in srgb, var(--color-text) 66%, transparent);
  font-size: 14px;
  line-height: 1.3;
}
.hands-flow-reply-head strong { color: var(--color-text); font-weight: 800; }
.hands-flow-reply-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--marketing-panel-border);
  border-radius: 50%;
  background: #fff;
}
.hands-flow-reply-mark img { display: block; width: 20px; height: 20px; }
.hands-flow-actions { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hands-flow-actions li {
  position: relative;
  padding-left: 27px;
  color: color-mix(in srgb, var(--color-text) 84%, transparent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.hands-flow-actions li::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hands-flow-more {
  align-self: flex-start;
  display: inline-flex;
  gap: 6px;
  margin: 4px 0 0 2px;
  color: var(--color-accent-700);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.hands-flow-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Device column */
.hands-flow-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}
.hands-flow-device { margin: 0; }

/* Android phone with the real Hands onboarding */
.hands-flow-phone { width: clamp(212px, 18.5vw, 250px); }
.hands-flow-phone-body {
  position: relative;
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(150deg, #34302b, #141210 70%);
  box-shadow: inset 0 0 0 1.5px #4d4842, var(--flow-device-shadow);
}
.hands-flow-phone-body::before,
.hands-flow-phone-body::after {
  content: '';
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2b2824;
}
.hands-flow-phone-body::before { top: 20%; height: 8%; }
.hands-flow-phone-body::after { top: 32%; height: 15%; }
.hands-flow-phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #eff2ec;
}
.hands-flow-phone-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 2px 18px 0 22px;
  color: #201e1d;
  font: 700 11px / 1 var(--font-body);
}
.hands-flow-phone-status i {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #0d0c0b;
}
.hands-flow-phone-status svg { width: 36px; height: 11px; }
.hands-flow-phone-screen img { display: block; width: 100%; height: auto; }

/* Retro computer (same object as on the Hands Computer page) with the real desktop */
.hands-flow-retro {
  --rc-top: #f8f2ea;
  --rc-bottom: #ece3d6;
  --rc-line: #dbd0c0;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 470px);
}
:root[data-theme="dark"] .hands-flow-retro {
  --rc-top: #3b362f;
  --rc-bottom: #302c26;
  --rc-line: #4d463c;
}
.hands-flow-retro-monitor {
  width: 80cqw;
  padding: 4.4cqw 4.8cqw 0;
  border: 1.5px solid var(--rc-line);
  border-radius: 5cqw 5cqw 3.2cqw 3.2cqw;
  background: linear-gradient(180deg, var(--rc-top), var(--rc-bottom));
  box-shadow: var(--flow-device-shadow);
}
.hands-flow-retro-glass {
  position: relative;
  aspect-ratio: 1046 / 772;
  overflow: hidden;
  border-radius: 4.6cqw / 5.4cqw;
  background: #0c0b0a;
}
.hands-flow-retro-glass img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.hands-flow-retro-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(60% 40% at 30% 16%, rgb(255 255 255 / 8%), transparent 70%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 60%), inset 0 0 7cqw rgb(0 0 0 / 55%);
}
.hands-flow-retro-chin { display: flex; align-items: center; justify-content: space-between; height: 7.6cqw; padding: 0 .4cqw; }
.hands-flow-retro-chin b { color: #a19786; font: 750 2.3cqw / 1 var(--font-body); letter-spacing: .04em; }
.hands-flow-retro-chin span { display: flex; gap: 1.3cqw; }
.hands-flow-retro-chin i { width: 1.8cqw; height: 1.8cqw; box-sizing: border-box; border: 1px solid var(--rc-line); border-radius: 50%; background: var(--rc-bottom); }
.hands-flow-retro-neck { width: 40cqw; height: 2.4cqw; box-sizing: border-box; border: 1.5px solid var(--rc-line); border-top: 0; border-radius: 0 0 1.8cqw 1.8cqw; background: var(--rc-bottom); }
.hands-flow-retro-case {
  display: flex;
  align-items: center;
  gap: 3.2cqw;
  width: 100cqw;
  height: 14cqw;
  box-sizing: border-box;
  padding: 0 4.2cqw;
  border: 1.5px solid var(--rc-line);
  border-radius: 2cqw;
  background: linear-gradient(180deg, var(--rc-top), var(--rc-bottom));
  box-shadow: var(--flow-device-shadow);
}
.hands-flow-retro-bay { display: flex; align-items: center; justify-content: center; width: 29.6cqw; height: 6.4cqw; box-sizing: border-box; border: 1px solid var(--rc-line); border-radius: .9cqw; }
.hands-flow-retro-bay i { width: 20.4cqw; height: .95cqw; border-radius: 1cqw; background: rgb(0 0 0 / 38%); }
.hands-flow-retro-vents { display: flex; gap: 1.15cqw; margin-right: auto; }
.hands-flow-retro-vents i { width: .46cqw; height: 4.6cqw; border-radius: 1px; background: var(--rc-line); }
.hands-flow-retro-leds { display: flex; flex-direction: column; gap: 1.4cqw; }
.hands-flow-retro-leds i { width: 1.15cqw; height: 1.15cqw; border-radius: 50%; background: var(--rc-line); }
.hands-flow-retro-leds i:first-child { background: var(--color-accent-2); box-shadow: 0 0 6px var(--color-accent-2); }
.hands-flow-retro-power {
  display: grid;
  place-items: center;
  width: 10.6cqw;
  height: 6.4cqw;
  box-sizing: border-box;
  border: 1px solid var(--rc-line);
  border-radius: 1.4cqw;
  background: var(--rc-top);
  color: var(--color-accent);
  box-shadow: 0 2px 0 var(--rc-line);
}
.hands-flow-retro-power svg { width: 3.2cqw; height: 3.2cqw; }

/* Laptop with the real code editor, the real terminal beside it */
.hands-flow-laptop {
  position: relative;
  width: min(100%, 560px);
  padding-bottom: 7%;
}
.hands-flow-laptop-screen {
  width: 86%;
  margin: 0 7%;
  box-sizing: border-box;
  padding: 2.1% 2.1% 2.8%;
  border-radius: 16px 16px 5px 5px;
  background: linear-gradient(180deg, #282521, #161412);
  box-shadow: inset 0 0 0 1.5px #46413b, var(--flow-device-shadow);
}
.hands-flow-laptop-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10.4;
  object-fit: cover;
  object-position: 0 0;
  border-radius: 4px;
}
.hands-flow-laptop-base {
  position: relative;
  display: block;
  width: 100%;
  height: 13px;
  margin-top: -1px;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #ece8e1 0%, #d3cdc3 55%, #b8b1a6 100%);
  box-shadow: 0 18px 26px -16px rgb(46 43 37 / 55%);
}
.hands-flow-laptop-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 42%;
  width: 16%;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: #c3bcb1;
}
:root[data-theme="dark"] .hands-flow-laptop-base { background: linear-gradient(180deg, #6b655c 0%, #4d4841 60%, #3a3631 100%); }
:root[data-theme="dark"] .hands-flow-laptop-base::before { background: #45403a; }
.hands-flow-term {
  position: absolute;
  right: -1%;
  bottom: 0;
  width: 54%;
  aspect-ratio: 1277 / 607;
  overflow: hidden;
  border-radius: 10px;
  background: #1c1a17;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 55%), 0 24px 44px -18px rgb(20 18 15 / 65%);
}
.hands-flow-term img {
  position: absolute;
  top: -15.32%;
  left: -10.81%;
  width: 114.88%;
  max-width: none;
  height: auto;
}

/* Gmail draft next to the PDF it answers (example content) */
.hands-flow-desk {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / .84;
}
.hands-flow-pdf {
  position: absolute;
  top: 3%;
  left: 2%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 44%;
  aspect-ratio: 1 / 1.36;
  box-sizing: border-box;
  padding: 9% 7%;
  border: 1px solid #e6ddd0;
  border-radius: 6px;
  background: var(--flow-paper);
  box-shadow: var(--flow-device-shadow);
  transform: rotate(-4deg);
}
.hands-flow-pdf-badge {
  position: absolute;
  top: 7%;
  right: 7%;
  padding: 3px 6px;
  border-radius: 4px;
  background: #d24b3e;
  color: #fff;
  font: 800 9px / 1 var(--font-body);
  letter-spacing: .06em;
}
.hands-flow-pdf b { margin-bottom: 6px; color: #2e2b25; font: 800 clamp(13px, 1.15vw, 16px) / 1.2 var(--font-body); }
.hands-flow-pdf i { display: block; height: 5px; border-radius: 3px; background: #ebe4d9; }
.hands-flow-pdf i:nth-of-type(2) { width: 82%; }
.hands-flow-pdf i:nth-of-type(4) { width: 90%; }
.hands-flow-pdf i:nth-of-type(5) { width: 58%; }
.hands-flow-pdf-table { display: grid; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #ebe4d9; }
.hands-flow-pdf-table i { width: 100% !important; height: 9px; background: #f3eee6; }
.hands-flow-pdf small { margin-top: auto; color: #8a8173; font-size: 10px; font-weight: 600; }
.hands-flow-mail {
  position: absolute;
  right: 0;
  bottom: 2%;
  width: 70%;
  box-sizing: border-box;
  padding: 15px 18px 16px;
  border: 1px solid #e4ddd2;
  border-radius: 16px;
  background: #fff;
  color: #2e2b25;
  box-shadow: 0 32px 56px -26px rgb(46 43 37 / 55%), 0 6px 16px rgb(46 43 37 / 8%);
}
.hands-flow-mail-top { display: flex; align-items: center; gap: 9px; }
.hands-flow-mail-top img { display: block; width: 22px; height: 17px; }
.hands-flow-mail-top b { font-size: 14px; font-weight: 800; }
.hands-flow-mail-top span {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid #f1cdb4;
  border-radius: 999px;
  background: #fff3eb;
  color: #8c491a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.hands-flow-mail dl { margin: 12px 0 11px; border-top: 1px solid #eee8df; }
.hands-flow-mail dl div { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eee8df; font-size: 12.5px; }
.hands-flow-mail dt { flex: 0 0 74px; color: #8a8173; }
.hands-flow-mail dd { margin: 0; font-weight: 650; }
.hands-flow-mail-body p { margin: 0 0 7px; color: #3d3a35; font-size: 13px; line-height: 1.5; }
.hands-flow-mail-body p:last-child { margin-bottom: 0; }

/* Footer */
.hands-flow-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
}
.hands-flow-footer p { margin: 0; max-width: 680px; color: color-mix(in srgb, var(--color-text) 72%, transparent); font-size: 14px; line-height: 1.5; }
.hands-flow-footer p strong { color: var(--color-text); }
.hands-flow-footer-links { display: flex; gap: 14px; align-items: center; flex: 0 0 auto; }
.hands-flow-footer-links a { color: var(--color-accent-700); font-weight: 800; font-size: 13px; text-decoration: none; }
.hands-flow-footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hands-flow-footer-links .hands-flow-signup {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 11px 16px;
  border-radius: 99px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}
.hands-flow-footer-links .hands-flow-signup:hover { background: var(--color-accent-600); text-decoration: none; }

@media (max-width: 1180px) {
  .hands-flow-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hands-flow-said p { font-size: 18px; }
  .hands-flow-actions li { font-size: 14px; }
}
@media (max-width: 920px) {
  .hands-flow-heading { grid-template-columns: 1fr; gap: 16px; }
  .hands-flow-heading-detail { max-width: 720px; }
  .hands-flow-panel { grid-template-columns: 1fr; gap: 34px; min-height: 0; }
  .hands-flow-talk { max-width: 620px; }
  .hands-flow-visual { padding-bottom: 6px; }
  .hands-flow-phone { width: 220px; }
  .hands-flow-retro { width: min(100%, 420px); }
  .hands-flow-laptop { width: min(100%, 520px); }
  .hands-flow-desk { width: min(100%, 480px); }
}
@media (max-width: 620px) {
  .hands-flow-section { padding-top: clamp(66px, 10vw, 95px); }
  .hands-flow-heading h2 { font-size: clamp(39px, 9.2vw, 57px); }
  .hands-flow-heading-detail p { font-size: 16px; }
  .hands-flow-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .hands-flow-tab { justify-content: center; padding: 0 12px; font-size: 13px; }
  .hands-flow-stage { border-radius: 22px; }
  .hands-flow-panel { gap: 28px; padding: 18px 16px 26px; }
  .hands-flow-said, .hands-flow-reply { max-width: 100%; }
  .hands-flow-said { padding: 14px 16px 16px; }
  .hands-flow-said p { font-size: 17px; }
  .hands-flow-reply { padding: 13px 15px 15px; }
  .hands-flow-phone { width: 200px; }
  .hands-flow-phone-body { border-radius: 36px; padding: 8px; }
  .hands-flow-phone-screen { border-radius: 29px; }
  .hands-flow-mail { width: 78%; padding: 12px 13px 13px; }
  .hands-flow-mail-top span { padding: 3px 7px; font-size: 10px; }
  .hands-flow-mail dt { flex-basis: 64px; }
  .hands-flow-mail dl div { font-size: 11.5px; padding: 6px 0; }
  .hands-flow-mail-body p { font-size: 12px; }
  .hands-flow-desk { aspect-ratio: 1 / .98; }
  .hands-flow-pdf { width: 50%; }
  .hands-flow-footer { align-items: start; flex-direction: column; gap: 14px; }
  .hands-flow-footer-links { width: 100%; justify-content: space-between; }
}
@media (max-width: 370px) {
  .hands-flow-tab { font-size: 12px; gap: 6px; }
  .hands-flow-tab svg { width: 16px; height: 16px; flex-basis: 16px; }
  .hands-flow-mail-top span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hands-flow-panel { animation: none; }
  .hands-flow-tab { transition: none; }
}
