:root {
  --apple-bg: #f5f5f7;
  --apple-surface: rgba(255, 255, 255, 0.88);
  --apple-surface-strong: #ffffff;
  --apple-border: rgba(15, 23, 42, 0.08);
  --apple-text: #1d1d1f;
  --apple-subtle: #6e6e73;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

body {
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 113, 227, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.9), transparent 30%),
    var(--apple-bg);
  color: var(--apple-text);
}

.workspace-shell,
.page-sections,
.page-footer,
header.max-w-7xl {
  max-width: min(1240px, calc(100vw - 2rem));
}

.quick-start-wrap {
  margin: 0 auto 0.75rem;
}

.quick-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.quick-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(29, 29, 31, 0.05);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.quick-step-index {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.12);
  color: var(--apple-blue);
  font-size: 0.72rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.quick-step-text {
  color: var(--apple-text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.apple-page.is-rtl {
  direction: rtl;
}

.ios-card {
  background: var(--apple-surface);
  border-radius: 32px;
  box-shadow: var(--apple-shadow);
  border: 1px solid var(--apple-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.color-input {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
  background: transparent;
}

input[type="text"],
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(29, 29, 31, 0.08);
  outline: none;
  transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
  color: var(--apple-text);
}

input[type="text"]:focus,
select:focus {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}

.ios-btn {
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  transition: all 150ms ease-in-out;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.ios-btn.is-active {
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(0, 113, 227, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-black {
  background: linear-gradient(180deg, var(--apple-blue), #0068d1);
  color: #fff;
}

.btn-black:hover {
  background: linear-gradient(180deg, var(--apple-blue-hover), #006edb);
}

@keyframes ctaBreath {
  0%, 100% {
    box-shadow:
      0 12px 24px rgba(0, 113, 227, 0.16),
      0 0 0 0 rgba(0, 113, 227, 0.08);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      0 16px 30px rgba(0, 113, 227, 0.22),
      0 0 0 8px rgba(0, 113, 227, 0.03);
    transform: translateY(-1px);
  }
}

.btn-pink {
  background: linear-gradient(180deg, #34aadc, #0a84ff);
  color: #fff;
}

.btn-pink:hover {
  background: linear-gradient(180deg, #45b4e2, #2991ff);
}

.btn-white {
  background: rgba(255, 255, 255, 0.9);
  color: var(--apple-text);
  border: 1px solid rgba(29, 29, 31, 0.08);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 1);
}

.ios-picker {
  position: relative;
}

.ios-picker.is-open {
  z-index: 90;
}

.ios-field {
  width: 100%;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: var(--apple-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ios-picker-trigger {
  text-align: left;
}

.ios-field-icon {
  flex: 0 0 auto;
  color: #8e8e93;
  font-size: 0.95rem;
  line-height: 1;
}

.ios-color-swatch {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.08);
}

.ios-popover {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: auto;
  z-index: 100;
  width: min(24rem, calc(100vw - 3rem));
  min-width: 20rem;
  max-width: 100%;
  padding: 0.85rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ios-swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.ios-advanced-color {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.ios-spectrum {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  overflow: hidden;
  border-radius: 1rem;
  background: red;
  box-shadow:
    inset 0 0 0 1px rgba(29, 29, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  touch-action: none;
  cursor: crosshair;
}

.ios-spectrum-sat,
.ios-spectrum-val {
  position: absolute;
  inset: 0;
}

.ios-spectrum-sat {
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.ios-spectrum-val {
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));
}

.ios-spectrum-handle {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 1px rgba(29, 29, 31, 0.12),
    0 4px 10px rgba(15, 23, 42, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ios-slider-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  color: var(--apple-subtle);
  font-size: 0.82rem;
}

.ios-slider-label span {
  flex: 0 0 2.5rem;
}

.ios-hue-slider {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 0.75rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3b30 0%, #ff9500 16%, #ffcc00 32%, #34c759 48%, #5ac8fa 64%, #007aff 80%, #af52de 100%);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.08);
  appearance: none;
  -webkit-appearance: none;
}

.ios-hue-slider::-webkit-slider-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.98);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(29, 29, 31, 0.12),
    0 4px 10px rgba(15, 23, 42, 0.16);
  -webkit-appearance: none;
}

.ios-hue-slider::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.98);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(29, 29, 31, 0.12),
    0 4px 10px rgba(15, 23, 42, 0.16);
}

.ios-channel-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.ios-channel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--apple-subtle);
}

.ios-channel input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(245, 245, 247, 0.92);
  color: var(--apple-text);
  text-align: center;
  outline: none;
}

.ios-swatch-btn {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.08);
}

.ios-swatch-btn.is-active {
  box-shadow:
    0 0 0 2px rgba(0, 113, 227, 0.22),
    0 0 0 1px rgba(29, 29, 31, 0.08);
}

.ios-inline-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: rgba(245, 245, 247, 0.9);
  color: var(--apple-subtle);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.ios-hex-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--apple-text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.ios-mini-btn {
  width: 100%;
  min-height: 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(245, 245, 247, 0.95);
  color: var(--apple-blue);
  font-weight: 600;
}

.ios-option-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ios-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  color: var(--apple-text);
  background: transparent;
  text-align: left;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.ios-option:hover,
.ios-option.is-active {
  background: rgba(0, 113, 227, 0.08);
}

.ios-option-check {
  width: 1rem;
  height: 1rem;
  opacity: 0;
}

.ios-option-check::before {
  content: "\2713";
  color: var(--apple-blue);
  font-size: 0.9rem;
  line-height: 1;
}

.ios-option.is-active .ios-option-check {
  opacity: 1;
}

.apple-page h1,
.apple-page h2,
.apple-page h3 {
  color: var(--apple-text);
  letter-spacing: -0.03em;
}

header.max-w-7xl {
  position: relative;
  z-index: 120;
}

.apple-page p,
.apple-page label,
.apple-page span {
  color: var(--apple-subtle);
}

.topbar {
  position: relative;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.topbar-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.topbar-title {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-text);
}

.topbar-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.remix-hero-card {
  width: 100%;
  padding: 1.15rem;
  margin: 0 0 1.5rem;
  border-radius: 1.65rem;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(255, 255, 255, 0.86) 44%),
    radial-gradient(circle at 88% 18%, rgba(255, 159, 10, 0.22), transparent 34%);
  border: 1px solid rgba(0, 113, 227, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.remix-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--apple-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.remix-title {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.remix-body {
  margin: 0;
  color: var(--apple-subtle);
  line-height: 1.65;
  font-size: 0.95rem;
}

.remix-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.35rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(29, 29, 31, 0.06);
}

.remix-actions .ios-btn {
  width: 100%;
  min-width: 0;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
  font-size: 0.98rem;
  box-shadow: none;
  border: 1px solid transparent;
  padding-inline: 1rem;
}

.remix-actions .btn-white {
  background: transparent;
  border-color: transparent;
  color: var(--apple-subtle);
}

.remix-actions .btn-white:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--apple-text);
}

@media (min-width: 720px) {
  .remix-actions {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  }

  .remix-actions .ios-btn {
    min-height: 4.15rem;
  }
}

.scan-helper {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.12);
}

.scan-helper h4 {
  margin: 0 0 0.4rem;
  color: var(--apple-text);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.scan-helper p {
  margin: 0;
  color: var(--apple-subtle);
  line-height: 1.65;
  font-size: 0.9rem;
}

.remix-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 255, 0.86)),
    radial-gradient(circle at 100% 0, rgba(0, 113, 227, 0.12), transparent 38%);
}

.remix-section::after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  right: -4rem;
  top: -4rem;
  border-radius: 999px;
  background: rgba(255, 159, 10, 0.16);
  pointer-events: none;
}

.remix-section > * {
  position: relative;
  z-index: 1;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--apple-subtle);
}

.language-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.language-picker {
  min-width: 14rem;
}

.language-trigger {
  min-height: 3.15rem;
}

.preview-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.preview-heading {
  margin-bottom: 1.25rem;
}

.preview-heading h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.preview-heading p {
  margin: 0;
  color: var(--apple-subtle);
  font-size: 0.9rem;
  line-height: 1.55;
}

.preview-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding-top: 1rem;
}

.qr-frame {
  background: var(--apple-surface-strong);
  max-width: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 30px rgba(15, 23, 42, 0.06);
}

.preview-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 1rem auto 0;
  padding-top: 0;
}

.preview-actions .ios-btn {
  width: min(18rem, 100%);
  flex: 0 0 auto;
  min-height: 3.25rem;
  padding-inline: 1.25rem;
}

.preview-actions #download-btn {
  animation: ctaBreath 3.4s ease-in-out infinite;
}

.preview-actions #download-btn:hover {
  background: linear-gradient(180deg, #1781f0, #006edf);
  box-shadow: 0 18px 34px rgba(0, 113, 227, 0.24);
}

.workspace-rail > .ios-card:first-child,
.workspace-editor > .ios-card:first-child,
.workspace-preview {
  padding: 2rem;
}

.workspace-rail > .ios-card:first-child {
  text-align: center;
}

.workspace-rail > .ios-card:first-child .topbar-title,
.workspace-rail > .ios-card:first-child .content-title {
  text-wrap: balance;
}

.page-sections {
  margin-top: 2.5rem;
}

.result-text {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scenario-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.96);
  border: 1px solid rgba(29, 29, 31, 0.06);
  color: var(--apple-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-badge--soft {
  min-height: 2.2rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--apple-subtle);
  font-size: 0.84rem;
  font-weight: 500;
}

.content-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  color: var(--apple-text);
}

.content-body {
  color: var(--apple-subtle);
  line-height: 1.75;
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: rgba(245, 245, 247, 0.82);
  border: 1px solid rgba(29, 29, 31, 0.06);
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--apple-text);
}

.info-card p {
  margin: 0;
  color: var(--apple-subtle);
  line-height: 1.7;
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(245, 245, 247, 0.82);
  border: 1px solid rgba(29, 29, 31, 0.06);
  color: var(--apple-text);
}

.feature-item::before {
  content: "•";
  color: var(--apple-blue);
  font-size: 1.1rem;
  line-height: 1.2;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(245, 245, 247, 0.82);
  border: 1px solid rgba(29, 29, 31, 0.06);
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--apple-text);
}

.faq-item p {
  margin: 0;
  color: var(--apple-subtle);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-card {
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--apple-text);
  font-size: 1rem;
  font-weight: 500;
}

.footer-copy {
  margin: 0;
  color: var(--apple-text);
  font-size: 0.95rem;
}

.contact-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-back {
  padding-left: 0.25rem;
}

.contact-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-back-link:hover {
  color: var(--accent-blue);
}

.contact-back-link::before {
  content: "\2190";
}

.contact-hero {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-hero-copy {
  max-width: 44rem;
}

.contact-page-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1d1d1f;
}

.contact-page-body {
  margin-top: 0.9rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #5b6575;
  max-width: 42rem;
}

.contact-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  max-width: 18rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
}

.contact-info-card,
.contact-form-card {
  padding: 2rem;
}

.contact-email-row {
  margin-top: 1rem;
}

.contact-email-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
}

.contact-email-link:hover {
  text-decoration: underline;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  padding-left: 1.1rem;
  color: #5b6575;
  line-height: 1.75;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.contact-field {
  display: grid;
  gap: 0.45rem;
}

.contact-field label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #4b5563;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  padding: 0.95rem 1rem;
  font-size: 0.98rem;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

.contact-submit {
  margin-top: 0.35rem;
  justify-self: start;
  min-width: 12rem;
}

.contact-note {
  color: #6b7280;
  font-size: 0.93rem;
  line-height: 1.7;
}

.contact-note a {
  color: var(--accent-blue);
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

.contact-status {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.7;
}

.contact-status.is-success {
  color: #17803d;
}

.contact-status.is-error {
  color: #c03444;
}

.contact-footer-card {
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .quick-steps {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .topbar {
    align-items: stretch;
  }

  .language-switch,
  .language-picker {
    width: 100%;
  }

  .preview-panel {
    min-height: 460px;
  }

  .preview-actions {
    width: 100%;
    margin-top: 1rem;
  }

  .preview-actions .ios-btn {
    width: 100%;
  }

  .ios-swatch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ios-channel-row {
    grid-template-columns: 1fr;
  }

  .ios-popover {
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
  }

  .footer-links {
    gap: 1.25rem;
  }

  .contact-hero,
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-hero {
    padding: 1.6rem;
  }

  .contact-hero-badges {
    justify-content: flex-start;
    max-width: none;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .workspace-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .workspace-rail {
    position: static;
  }

  .quick-steps {
    justify-content: center;
  }

  .contact-hero,
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-hero-badges {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .workspace-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .workspace-rail {
    grid-column: 1 / -1;
    position: static;
  }

  .workspace-editor,
  .workspace-preview {
    align-self: start;
  }
}

@media (min-width: 1100px) {
  .workspace-shell {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(350px, 390px) minmax(360px, 420px);
    gap: 1.75rem;
    justify-content: center;
    align-items: start;
  }

  .workspace-rail {
    position: sticky;
    top: 1.25rem;
    align-self: start;
  }

  .workspace-editor,
  .workspace-preview {
    align-self: start;
  }

  .workspace-preview {
    min-width: 0;
  }

  .preview-panel {
    min-height: 600px;
  }

  .preview-stage {
    padding-top: 0.35rem;
  }

  .preview-actions {
    margin-top: 0.7rem;
  }

  .page-sections,
  .page-footer {
    padding-inline: 0.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-actions #download-btn {
    animation: none;
  }

  .ios-btn,
  .quick-step {
    transition: none;
  }
}
