/* Layout of the phone page (/m): one column, big touch targets, readable at 360px. */

header.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 16px;
  background: var(--anthracite);
  color: #ffffff;
}

header.top .brand {
  display: block;
  height: 32px;
}

header.top .brand-sub {
  color: #c9d1d7;
  font-size: 15px;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
}

select {
  width: 100%;
  min-height: 56px;
  padding: 0 12px;
  border: 2px solid var(--anthracite);
  border-radius: var(--r-btn);
  background: var(--paper);
  color: var(--anthracite);
  font: inherit;
  font-size: 18px;
}

.rec-wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 8px 0;
}

/* The record button is the logo's disc: anthracite, with the label in Cople. */
.rec-button {
  display: grid;
  place-items: center;
  width: min(72vw, 264px);
  aspect-ratio: 1;
  padding: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--anthracite);
  color: #ffffff;
  font: 900 24px/1.15 var(--display);
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.28s cubic-bezier(0.2, 0.9, 0.25, 1.06);
}

.rec-button:hover,
.rec-button:focus-visible {
  background: var(--deep);
}

.rec-button:focus-visible {
  outline: 3px solid var(--anthracite);
  outline-offset: 4px;
}

.rec-button[data-mode="recording"] {
  background: var(--err);
  animation: pulse 1.2s infinite;
}

.rec-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.rec-time {
  min-height: 1.5em;
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(180, 35, 24, 0);
  }
}

.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
}

.panel > h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 18px;
  color: var(--muted);
}

.steps li::before {
  content: "○";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-size: 14px;
  flex: none;
}

.steps li.done {
  color: var(--anthracite);
  font-weight: 700;
}

.steps li.done::before {
  content: "✓";
  border-color: var(--anthracite);
  background: var(--anthracite);
  color: #ffffff;
}

#reply .wa-bubble {
  margin-bottom: 14px;
  font-size: 18px;
}

#reply .button {
  width: 100%;
}

#notice {
  font-size: 16px;
}
