/* Infiniclick Media Digital Contact Card — compact mobile layout */

:root {
  color-scheme:dark;
  --bg:#0c0d0e;
  --gold:#e9c578;
  --muted:#9b9c9e;
  --line:#2e2e2e;
  --text:#f6f3eb
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  background-image:radial-gradient(ellipse at 25% 35%,#b98c3a0a,transparent 55%)
}

button,a {
  -webkit-tap-highlight-color:transparent
}

button {
  font:inherit
}

a {
  color:inherit;
  text-decoration:none
}

button {
  cursor:pointer
}

button:focus-visible,a:focus-visible {
  outline:3px solid var(--gold);
  outline-offset:5px
}

.topbar {
  width:min(1120px,calc(100% - 80px));
  margin:0 auto;
  height:100px;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.topmark {
  font-size:15px;
  letter-spacing:1px;
  font-weight:700
}

.topmark span {
  font-size:10px;
  letter-spacing:2px;
  color:#8e8f91;
  font-weight:400;
  border-left:1px solid #3e3c35;
  margin-left:15px;
  padding-left:16px
}

.topnote {
  font-size:10px;
  letter-spacing:1.7px;
  color:#818284;
  display:flex;
  align-items:center;
  gap:9px
}

.topnote:before {
  content:'';
  height:4px;
  width:4px;
  background:var(--gold);
  border-radius:50%
}

main {
  width:100%;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 32px 60px
}

.card {
  width:min(940px,100%);
  display:grid;
  grid-template-columns:0.94fr 1.06fr;
  border:1px solid #4b4231;
  border-radius:24px;
  overflow:hidden;
  background:#171819;
  box-shadow:0 30px 100px #0005
}

.identity {
  position:relative;
  overflow:hidden;
  padding:40px;
  display:flex;
  flex-direction:column;
  min-height:570px;
  background:radial-gradient(ellipse at 35% 32%,#54422440,transparent 65%),linear-gradient(135deg,#20201d,#151617)
}

.identity:after {
  content:'';
  position:absolute;
  width:440px;
  height:440px;
  border:1px solid #ddbd7f0b;
  border-radius:50%;
  top:-185px;
  left:-145px;
  box-shadow:0 0 0 35px #ddbd7f03,0 0 0 80px #ddbd7f03;
  pointer-events:none
}

.eyebrow {
  font-size:10px;
  font-weight:500;
  letter-spacing:2.3px;
  color:#b8a477;
  display:flex;
  align-items:center;
  gap:10px
}

.eyebrow:before {
  content:'';
  width:18px;
  height:1px;
  background:var(--gold)
}

.logo {
  width:min(300px,100%);
  height:auto;
  display:block;
  margin:60px 0 32px;
  position:relative;
  z-index:1
}

.identity h1 {
  font-family:Georgia,'Times New Roman',serif;
  font-size:49px;
  line-height:1.08;
  letter-spacing:-1.6px;
  font-weight:400;
  margin:0 0 17px
}

.identity h1 em {
  font-weight:400;
  color:var(--gold)
}

.intro {
  font-size:13px;
  line-height:1.7;
  color:#a9a8a4;
  margin:0
}

.identity-bottom {
  margin-top:auto;
  padding-top:40px;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.identity-domain {
  font-size:12px;
  color:#c9c5bb;
  letter-spacing:.6px
}

.qr-trigger {
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #494334;
  border-radius:8px;
  padding:10px 12px;
  background:#d9bb7b08;
  color:#deca9d;
  font-size:11px;
  transition:background .2s
}

.qr-trigger:hover {
  background:#d9bb7b17
}

.qr-trigger svg {
  width:16px;
  height:16px
}

.actions {
  padding:45px 38px 34px;
  border-left:1px solid #353128;
  display:flex;
  flex-direction:column
}

.section-label {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:2px;
  color:#90918e;
  margin:0 0 24px
}

.channels {
  display:flex;
  flex-direction:column;
  gap:12px
}

.channel {
  display:flex;
  align-items:center;
  gap:15px;
  border:1px solid #383838;
  padding:18px 16px;
  border-radius:12px;
  background:#1d1e1f;
  min-height:86px;
  transition:background .2s,border-color .2s,transform .2s
}

.channel:hover {
  background:#252625;
  border-color:#82704b;
  transform:translateY(-2px)
}

.channel-icon {
  width:42px;
  height:42px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--icon-bg);
  color:var(--icon)
}

.channel-icon svg {
  width:23px;
  height:23px
}

.channel-copy {
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0
}

.channel-copy strong {
  font-size:14px;
  font-weight:500
}

.channel-copy span {
  font-size:12px;
  color:#9c9e9c;
  letter-spacing:.2px
}

.arrow {
  margin-left:auto;
  width:16px;
  height:16px;
  color:#a5a59e;
  flex-shrink:0
}

.wa {
  --icon:#69d899;
  --icon-bg:#2a9c581a
}

.tg {
  --icon:#78bff4;
  --icon-bg:#4ea5ed1a
}

.web {
  --icon:#dec591;
  --icon-bg:#d5b97612
}

.save {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:17px 20px;
  background:linear-gradient(100deg,#e9cd8f,#caa456);
  color:#211c12;
  border:1px solid #efd69c;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  margin-top:28px;
  box-shadow:0 3px 16px #d5ad5a0a;
  transition:filter .2s
}

.save:hover {
  filter:brightness(1.09)
}

.save svg {
  height:19px;
  width:19px
}

.share {
  border:0;
  background:transparent;
  color:#adada6;
  padding:18px 10px 0;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  font-size:12px
}

.share:hover {
  color:var(--gold)
}

.share svg {
  width:15px;
  height:15px
}

.smallnote {
  text-align:center;
  font-size:10px;
  color:#71736f;
  letter-spacing:.2px;
  margin:17px 0 0
}

.footer {
  font-size:10px;
  letter-spacing:2px;
  text-align:center;
  color:#646561;
  padding:0 20px 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px
}

.footer:before,.footer:after {
  content:'';
  width:24px;
  height:1px;
  background:#4f4736
}

dialog {
  width:min(380px,calc(100% - 32px));
  border:1px solid #5d5037;
  background:#191a1b;
  color:var(--text);
  padding:30px;
  border-radius:20px;
  text-align:center;
  box-shadow:0 35px 100px #0008
}

dialog::backdrop {
  background:#000b;
  backdrop-filter:blur(8px)
}

.close {
  position:absolute;
  right:12px;
  top:12px;
  background:transparent;
  color:#bdbdb9;
  border:0;
  width:32px;
  height:32px;
  font-size:24px;
  border-radius:50%
}

.close:hover {
  background:#ffffff0d
}

dialog h2 {
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:400;
  margin:15px 0 10px
}

dialog p {
  font-size:12px;
  color:#b1b3ae;
  line-height:1.6;
  margin:0 0 24px
}

.qr-image {
  display:block;
  width:218px;
  height:218px;
  max-width:100%;
  margin:0 auto 22px;
  background:#fff;
  border-radius:10px;
  padding:8px
}

.dialog-number {
  display:block;
  color:#e1c37c;
  font-size:16px;
  letter-spacing:1px;
  margin-bottom:12px
}

.dialog-link {
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:4px;
  color:#abb0ab
}

.toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translate(-50%,20px);
  opacity:0;
  pointer-events:none;
  border:1px solid #6f5d39;
  background:#28251f;
  color:#f0dbad;
  padding:13px 18px;
  border-radius:10px;
  font-size:12px;
  box-shadow:0 5px 30px #0006;
  transition:opacity .2s,transform .2s;
  width:max-content;
  max-width:calc(100% - 32px);
  z-index:10
}

.toast.show {
  opacity:1;
  transform:translate(-50%,0)
}

.copy-box {
  width:100%;
  height:130px;
  border:1px solid #645333;
  background:#101111;
  color:#eee;
  padding:12px;
  border-radius:8px;
  line-height:1.5;
  resize:none
}

@media(min-width:1200px) {
  .card {
    transform:translateY(-12px)
  }

}

/* Compact phone layout: fit the available screen without clipping content. */
    @media(max-width:700px) {
  body {
    min-height:100vh;
    min-height:100svh
  }

  .topbar,.footer,.eyebrow,.intro,.identity-domain,.section-label,.smallnote {
    display:none
  }

  main {
    padding: max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    align-items:center
  }

  .card {
    max-width:420px;
    display:block;
    border-radius:20px
  }

  .identity {
    min-height:0;
    padding:14px 18px 12px
  }

  .identity:after {
    top:-270px;
    left:-120px
  }

  .logo {
    width:clamp(140px,24svh,190px);
    max-width:calc(100% - 56px);
    margin:0
  }

  .identity h1 {
    font-size:clamp(24px,4.5svh,31px);
    line-height:1.15;
    letter-spacing:-.8px;
    text-align:center;
    margin:10px 0 0
  }

  .identity h1 br {
    display:none
  }

  .identity-bottom {
    position:absolute;
    right:18px;
    top:18px;
    margin:0;
    padding:0
  }

  .qr-trigger {
    width:44px;
    height:44px;
    min-height:44px;
    justify-content:center;
    gap:0;
    font-size:0;
    padding:0;
    border-radius:10px
  }

  .qr-trigger svg {
    width:21px;
    height:21px
  }

  .actions {
    border-left:0;
    border-top:1px solid #353128;
    padding:14px
  }

  .channels {
    gap:6px
  }

  .channel {
    min-height:56px;
    padding:9px 12px;
    gap:12px;
    border-radius:10px
  }

  .channel-copy {
    gap:4px
  }

  .channel-copy strong {
    font-size:13px
  }

  .channel-copy span {
    font-size:12px;
    line-height:1.2
  }

  .channel-icon {
    width:34px;
    height:34px
  }

  .channel-icon svg {
    width:21px;
    height:21px
  }

  .save {
    min-height:46px;
    margin-top:10px;
    padding:12px;
    font-size:13px
  }

  .share {
    min-height:44px;
    margin-top:2px;
    padding:10px;
    font-size:12px
  }

  dialog {
    max-height:calc(100svh - 24px);
    padding:24px;
    overflow:auto
  }

  dialog h2 {
    margin-top:12px
  }

  .qr-image {
    width:clamp(144px,32svh,218px);
    height:auto
  }

}

/* Larger phones use the extra room for comfortable spacing. */
    @media(max-width:700px) and (min-height:620px) {
  .identity {
    padding:20px 22px 18px
  }

  .identity-bottom {
    right:22px;
    top:22px
  }

  .identity h1 {
    margin-top:14px
  }

  .actions {
    padding:18px
  }

  .channels {
    gap:9px
  }

  .channel {
    min-height:64px;
    padding:12px
  }

  .channel-icon {
    width:38px;
    height:38px
  }

  .save {
    margin-top:14px;
    min-height:48px
  }

  .share {
    margin-top:6px
  }

}

/* Phone landscape: put the brand beside the actions to use the width. */
    @media(max-width:960px) and (max-height:500px) and (orientation:landscape) {
  body {
    min-height:100vh;
    min-height:100svh
  }

  .topbar,.footer,.eyebrow,.intro,.identity-domain,.section-label,.smallnote {
    display:none
  }

  main {
    padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    align-items:center
  }

  .card {
    display:grid;
    grid-template-columns:.8fr 1.2fr;
    max-width:800px;
    border-radius:18px
  }

  .identity {
    min-height:0;
    padding:20px 18px;
    justify-content:center
  }

  .logo {
    width:180px;
    max-width:100%;
    margin:0 auto
  }

  .identity h1 {
    font-size:27px;
    line-height:1.1;
    letter-spacing:-.8px;
    text-align:center;
    margin:12px 0
  }

  .identity h1 br {
    display:block
  }

  .identity-bottom {
    position:static;
    padding:0;
    margin:0;
    justify-content:center
  }

  .qr-trigger {
    width:auto;
    height:44px;
    min-height:44px;
    padding:0 12px;
    gap:8px;
    font-size:11px
  }

  .qr-trigger svg {
    width:18px;
    height:18px
  }

  .actions {
    border-top:0;
    border-left:1px solid #353128;
    padding:12px
  }

  .channels {
    gap:6px
  }

  .channel {
    min-height:50px;
    padding:7px 12px;
    gap:10px
  }

  .channel-copy {
    gap:3px
  }

  .channel-copy strong {
    font-size:13px
  }

  .channel-copy span {
    font-size:11px;
    line-height:1.2
  }

  .channel-icon {
    width:32px;
    height:32px
  }

  .channel-icon svg {
    width:20px;
    height:20px
  }

  .save {
    min-height:44px;
    padding:10px;
    margin-top:8px;
    font-size:13px
  }

  .share {
    min-height:44px;
    margin-top:0;
    padding:8px;
    font-size:11px
  }

  dialog {
    max-height:calc(100svh - 16px);
    padding:16px;
    overflow:auto
  }

  dialog h2 {
    font-size:23px;
    margin:8px 0
  }

  dialog p {
    margin:0 0 10px;
    font-size:11px
  }

  .qr-image {
    width:120px;
    height:auto;
    margin-bottom:10px
  }

  .dialog-number {
    font-size:14px;
    margin-bottom:8px
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }

  .channel:hover {
    transform:none
  }

}

@media print {
  body {
    background:white;
    color:black
  }

  .topbar,.footer,.share,.smallnote {
    display:none
  }

  main {
    padding:0
  }

  .card {
    width:100%;
    box-shadow:none
  }

  body,.card {
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact
  }

}

