/* QR Contact — nobul.tech design tokens (from website src) */
:root {
  --bg-white: #fff;
  --bg-brand: #f8f9f9;
  --text-brand: #101518;
  --text-silver: #81868b;
  --text-muted: #10151880;
  --footer-text: #62686d;
  --border: #0000001a;
  --btn-primary-border: #2b343b;
  --btn-primary-bg: #2b343b;
  --btn-primary-bg-gradient: linear-gradient(#222b32, #181d20);
  --btn-primary-text: #fff;
  --add-field-green: #0a7c42;
  --font-primary: Manrope, -apple-system, sans-serif;
  --font-mono: "Source Code Pro", monospace;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-tighter: -0.03em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(15px, 2.5vw, 18px);
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background: var(--bg-white);
  color: var(--text-brand);
  letter-spacing: var(--letter-spacing-tight);
  line-height: 1.4;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.brand {
  margin-bottom: clamp(2rem, 6vw, 3rem);
  position: relative;
  z-index: 1;
}

.brand a {
  display: inline-block;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 1.125rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.loading {
  color: var(--text-silver);
}

.error {
  color: #c00;
  padding: 1rem;
  border: 1px solid #fcc;
  border-radius: 8px;
  background: #fff5f5;
}

.state-hidden {
  display: none !important;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
}

.profile-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-text);
  margin: 0 0 0.5rem;
}

.display-name {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-tighter);
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-silver);
  margin: 0 0 1.5rem;
}

.contact-list {
  margin: 0 0 1.5rem;
  text-align: left;
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-silver);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: lowercase;
  margin-top: 0.75rem;
}

.contact-list dt:first-child {
  margin-top: 0;
}

.contact-list dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
}

.contact-list dd a {
  color: var(--text-brand);
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--letter-spacing-tight);
  border: 2px solid var(--btn-primary-border);
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s, border-color 0.15s;
}

.btn:hover {
  opacity: 0.92;
}

.btn-primary {
  background: var(--btn-primary-bg-gradient);
  color: var(--btn-primary-text);
  width: 100%;
  border-color: var(--btn-primary-border);
}

.reach-out,
.form-section {
  width: 100%;
  max-width: 420px;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.reach-out-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.reach-out-links .btn {
  width: auto;
  min-width: 8rem;
}

.btn-secondary {
  background: transparent;
  color: var(--btn-primary-border);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-brand);
  border-color: var(--btn-primary-border);
}

.your-details-heading {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-brand);
}

.share-form {
  margin-bottom: 0;
}

.share-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: opacity 0.2s ease;
}

.field-row-removed {
  display: none;
}

.field-row label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-silver);
}

.field-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field-input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-white);
  color: var(--text-brand);
  letter-spacing: var(--letter-spacing-tight);
}

.field-input-wrap input:focus {
  outline: none;
  border-color: var(--btn-primary-border);
  box-shadow: 0 0 0 2px rgba(43, 52, 59, 0.2);
}

.remove-field {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(180, 60, 60, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #b33c3c;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.remove-field:hover {
  background: #fee;
  border-color: #b33c3c;
  color: #8b2929;
}

.remove-field:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(179, 60, 60, 0.3);
}

.add-field-row {
  margin-top: 0.5rem;
  position: relative;
}

.add-field-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--add-field-green);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s, opacity 0.15s;
}

.add-field-btn:hover {
  opacity: 0.85;
}

.add-field-btn:focus {
  outline: none;
}

.add-field-btn:focus-visible {
  outline: 2px solid var(--add-field-green);
  outline-offset: 2px;
}

.add-field-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--add-field-green);
  color: #fff;
  flex-shrink: 0;
}

.add-field-btn-icon svg {
  width: 10px;
  height: 10px;
}

.add-field-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.35rem;
  min-width: 12rem;
  padding: 0.35rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.add-field-menu[hidden] {
  display: none;
}

.add-field-menu-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  text-align: left;
  color: var(--text-brand);
  background: none;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background 0.1s;
}

.add-field-menu-item:hover {
  background: var(--bg-brand);
}

.field-input-wrap-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.field-input-wrap-custom input {
  flex: 1;
  min-width: 6rem;
}

.field-input-wrap-custom .remove-field {
  align-self: center;
}

.share-form button[type="submit"] {
  margin-top: 1.25rem;
  width: 100%;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-message.success {
  color: #0a7c42;
}

.form-message.error {
  color: #c00;
}

.footer {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--footer-text);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

/* Print */
@media print {
  .reach-out,
  .reach-out-links,
  .btn {
    display: none !important;
  }
  .page {
    padding: 1rem;
  }
}
