/* Re-tap Search — screens from Figma "HE - Marketing visuals" (nodes 116:98, 116:2, 116:174) */

.screen h2,
.screen h3 { margin: 0; font-weight: 500; color: var(--blue-600); }

.title { font-size: 32px; line-height: 40px; }
.section { padding-top: 12px; font-size: 18px; line-height: 23px; }

.card { background: var(--blue-50); border-radius: 12px; }
.flex { flex: 1 1 0; min-width: 0; }
.row { display: flex; gap: 16px; }
.row > .card { height: 100%; }
.grow { flex: 1 1 0; min-height: 0; }
.h76 { height: 76px; }
.h139 { height: 139px; }

/* ---------- Screen layers ---------- */

.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 787px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 16px;
  overflow: hidden;
  background: var(--white);
}

.home .hero { height: 333px; flex: none; }

.search { padding-bottom: 0; visibility: hidden; }
.search .grid { display: flex; flex-direction: column; gap: 16px; }
.search .recent { flex: 1 1 0; min-height: 0; border-radius: 12px 12px 0 0; }

/* Search input: default 370×56 filled pill → active 296×46 outlined pill */
.input {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 370px;
  height: 56px;
  padding: 0 16px 0 15px;
  border: 1px solid transparent;
  border-radius: 1000px;
  background: var(--blue-50);
}
.input-icon { flex: none; }
.placeholder { font-size: 16px; line-height: 20px; color: var(--blue-400); white-space: nowrap; }

.typed {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  height: 20px;
  font-size: 16px;
  line-height: 20px;
  color: var(--blue-600);
  visibility: hidden;
}
.typed .ch { display: none; }
.caret {
  width: 1.5px;
  height: 20px;
  margin-left: 1px;
  background: var(--blue-600);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.cancel {
  position: absolute;
  top: 43.5px;
  right: 16px;
  font-size: 18px;
  line-height: 23px;
  font-weight: 500;
  color: var(--blue-600);
  visibility: hidden;
}

.active-list {
  position: absolute;
  top: 94px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  visibility: hidden;
}
.active-list .list { display: flex; flex-direction: column; gap: 8px; }
.active-list .list .card { height: 48.8px; }

/* ---------- Bottom navigation ---------- */

.nav {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 402px;
  height: 87px;
  display: flex;
  padding: 16px 0;
  border-top: 1px solid var(--blue-200);
  background: var(--white);
}
.tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tab .icon { position: relative; width: 32px; height: 32px; }
.tab .icon img { position: absolute; inset: 0; display: block; }
.tab .label { font-size: 14px; line-height: 18px; color: var(--blue-600); }

/* ---------- iOS keyboard ---------- */

.keyboard {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 402px;
  height: 290px;
  background: #d1d3d9;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  color: #000;
  visibility: hidden;
}
.kb-row { position: absolute; display: flex; justify-content: space-between; }
.r1 { top: 8px; left: 3px; right: 3px; }
.r2 { top: 62px; left: 22px; right: 22px; }
.r3 { top: 116px; left: 3px; right: 3px; height: 42px; }
.r4 { top: 170px; left: 3px; right: 3px; gap: 6px; justify-content: flex-start; }

.key {
  display: block;
  width: 35px;
  height: 42px;
  padding-top: 1px;
  border-radius: 4.6px;
  background: #fff;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.3);
  font-size: 26px;
  font-weight: 300;
  line-height: 34px;
  letter-spacing: 0.36px;
  text-align: center;
}
.kb-letters {
  position: absolute;
  left: 58px;
  right: 58px;
  display: flex;
  justify-content: space-between;
}
.kb-mod { display: block; }
.r4 .key {
  padding-top: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 42px;
  letter-spacing: -0.32px;
}
.r4 .mod { width: 91px; flex: none; background: #abb0bc; }
.r4 .space { flex: 1 1 0; width: auto; }
.kb-extra {
  position: absolute;
  top: 235px;
  left: 31px;
  right: 31px;
  display: flex;
  justify-content: space-between;
}
.kb-extra img { display: block; }
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 100px;
  background: #000;
}
