/* LEOCITY99 Digital Contact Card — burgundy, gold and ivory brand theme */

:root {
  color-scheme:light;
  --bg:#f5efe5;
  --accent:#f0ce80;
  --muted:#796453;
  --line:#d5c2a3;
  --text:#3b2122
}

* {
  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 12% 16%,#e2c1843d,transparent 48%),radial-gradient(ellipse at 88% 85%,#a64a4b10,transparent 48%)
}

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(--accent);
  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:#725b4b;
  font-weight:400;
  border-left:1px solid #c6b191;
  margin-left:15px;
  padding-left:16px
}

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

.topnote:before {
  content:'';
  height:4px;
  width:4px;
  background:var(--accent);
  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 #c9ae79;
  border-radius:24px;
  overflow:hidden;
  background:#ffffff;
  box-shadow:0 30px 100px #4d201c26
}

.identity {
  color:#fff7e9;
  position:relative;
  overflow:hidden;
  padding:40px;
  display:flex;
  flex-direction:column;
  min-height:570px;
  background:radial-gradient(ellipse at 0% 100%,#8b152745,transparent 65%),linear-gradient(145deg,#220e12,#430e1b)
}

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

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

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

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

.identity h1 {
  font-family:Arial,Helvetica,sans-serif;
  font-size:46px;
  line-height:1.08;
  letter-spacing:-1.6px;
  font-weight:700;
  margin:0 0 17px
}

.identity h1 em {
  font-style:normal;
  font-weight:700;
  color:var(--accent)
}

.intro {
  font-size:13px;
  line-height:1.7;
  color:#ddc6bb;
  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:#e4ceba;
  letter-spacing:.6px
}

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

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

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

.actions {
  background:#fff9ef;
  color:#3b2122;
  padding:45px 38px 34px;
  border-left:1px solid #cdb58b;
  display:flex;
  flex-direction:column
}

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

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

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

.channel:hover {
  background:#fff1db;
  border-color:#aa762c;
  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:600
}

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

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

.wa {
  --icon:#8e2130;
  --icon-bg:#f6e6c7
}

.tg {
  --icon:#8e2130;
  --icon-bg:#f6e6c7
}

.web {
  --icon:#8e2130;
  --icon-bg:#f6e6c7
}

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

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

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

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

.share:hover {
  color:#4d1020
}

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

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

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

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

dialog {
  width:min(380px,calc(100% - 32px));
  border:1px solid #cdb58b;
  background:#ffffff;
  color:var(--text);
  padding:30px;
  border-radius:20px;
  text-align:center;
  box-shadow:0 35px 100px #37151a33
}

dialog::backdrop {
  background:#21070fd1;
  backdrop-filter:blur(8px)
}

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

.close:hover {
  background:#f7e8d2
}

dialog h2 {
  font-family:Arial,Helvetica,sans-serif;
  font-size:28px;
  font-weight:700;
  margin:15px 0 10px
}

dialog p {
  font-size:12px;
  color:#75553f;
  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:#891c2f;
  font-size:16px;
  letter-spacing:1px;
  margin-bottom:12px
}

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

.toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translate(-50%,20px);
  opacity:0;
  pointer-events:none;
  border:1px solid #cba55f;
  background:#431420;
  color:#ffffff;
  padding:13px 18px;
  border-radius:10px;
  font-size:12px;
  box-shadow:0 5px 30px #37151a33;
  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 #c7a772;
  background:#fff7e8;
  color:#4d2528;
  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(176px,31svh,220px);
    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 #cdb58b;
    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:220px;
    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 #cdb58b;
    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
  }

}




/* Preserve the supplied logo on the dark burgundy brand panel. */
.logo { background:transparent; padding:0; border-radius:0; }
.actions a:focus-visible,.actions button:focus-visible { outline-color:#8e2130; }
.identity > * { position:relative; z-index:1; }
@media(max-width:700px) { .identity-bottom { position:absolute; } }
@media(max-width:960px) and (max-height:500px) and (orientation:landscape) {
  .identity-bottom { position:static; }
}

.topnote:before { background:#a82c3e; }
dialog a:focus-visible,dialog button:focus-visible,.topbar a:focus-visible { outline-color:#8e2130; }
