/* Ask'a landing — classic mobile messenger look */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #bdbdb4 repeating-linear-gradient(45deg, #c4c4bb 0 6px, #bdbdb4 6px 12px);
  color: #1b1b1b;
  font: 15px/1.5 Verdana, Tahoma, "DejaVu Sans", sans-serif;
}

a { color: #b10f0f; }
a:focus-visible, .btn:focus-visible, .softkey:focus-visible { outline: 2px dashed #1b1b1b; outline-offset: 2px; }

.icon { width: 1em; height: 1em; vertical-align: -0.15em; flex: none; }
img.icon { object-fit: contain; image-rendering: pixelated; }
.st-online  { color: #2fae2f; }
.st-away    { color: #e0a800; }
.st-offline { color: #cc2222; }
.st-white   { color: #ffffff; }

/* phone screen */
.screen {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  border-left: 1px solid #7a7a72;
  border-right: 1px solid #7a7a72;
  box-shadow: 0 0 0 4px #9a9a92, 0 6px 24px rgba(0, 0, 0, .35);
  padding-bottom: 64px;
}

/* glossy red title bar */
.gloss {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .12) 48%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(to bottom, #e04848 0%, #8c0505 100%);
  color: #fff;
  text-shadow: 0 1px 0 #5a0000;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 10px;
  border-bottom: 1px solid #5a0000;
  font-family: Tahoma, Verdana, sans-serif;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
}
.topbar .brand .icon { width: 22px; height: 22px; }
.topbar .status { margin-left: auto; font-size: 12px; opacity: .9; }
.topbar .lang {
  color: #fff;
  font: bold 12px Tahoma, Verdana, sans-serif;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 3px;
  padding: 2px 6px;
}

/* splash */
.splash {
  text-align: center;
  padding: 34px 16px 26px;
  border-bottom: 1px solid #5a0000;
}
.splash .daisy-big {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
.wordmark {
  margin: 6px 0 0;
  font: bold 60px/1 Tahoma, Verdana, sans-serif;
  letter-spacing: -1px;
  text-shadow: 0 2px 0 #5a0000, 0 4px 10px rgba(0, 0, 0, .35);
}
.notaff {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, .75);
  font: bold 11px Tahoma, Verdana, sans-serif;
  letter-spacing: 2px;
}

/* sections as windows */
.win { border-bottom: 1px solid #cfcfc7; }
.win-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  background: linear-gradient(to bottom, #fbfbf8 0%, #e6e6df 100%);
  border-top: 1px solid #fff;
  border-bottom: 1px solid #c3c3bb;
  border-left: 4px solid #c42020;
  font: bold 15px Tahoma, Verdana, sans-serif;
  color: #8c0505;
}
.win-body { padding: 12px 14px 16px; }
.win-body p { margin: 0 0 10px; }
.win-body ul { margin: 0 0 10px; padding-left: 0; list-style: none; }
.win-body li { position: relative; padding: 4px 0 4px 22px; border-bottom: 1px dotted #d6d6ce; }
.win-body li:last-child { border-bottom: 0; }
.win-body li > .icon { position: absolute; left: 0; top: 8px; }

h1.lead {
  margin: 0 0 8px;
  font: bold 21px/1.3 Tahoma, Verdana, sans-serif;
  color: #1b1b1b;
}

code, .mono, .uin { white-space: nowrap; }

code, .mono {
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 14px;
  background: #f3f3ee;
  border: 1px solid #dcdcd4;
  padding: 0 3px;
}

.note { font-size: 13px; color: #555; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #5a0000;
  border-radius: 3px;
  font: bold 15px Tahoma, Verdana, sans-serif;
  text-decoration: none;
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .1) 48%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(to bottom, #e04848 0%, #8c0505 100%);
  text-shadow: 0 1px 0 #5a0000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 0, 0, .3);
}
.btn:active { background: linear-gradient(to bottom, #8c0505 0%, #c42020 100%); }
.btn-plain {
  color: #1b1b1b;
  text-shadow: none;
  border-color: #8a8a82;
  background: linear-gradient(to bottom, #ffffff 0%, #e2e2db 50%, #d2d2ca 51%, #e8e8e1 100%);
}
.btn-plain:active { background: #d2d2ca; }

/* price */
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 10px;
  font-family: Tahoma, Verdana, sans-serif;
}
.price b { font-size: 36px; color: #8c0505; }
.price span { font-size: 16px; color: #444; }
.quote {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 3px solid #c42020;
  background: #fbf3f3;
}

/* uin badge */
.uin {
  display: inline-block;
  padding: 2px 8px;
  font: bold 18px "Lucida Console", "Courier New", monospace;
  background: #fff;
  border: 1px solid #8c0505;
  color: #8c0505;
}

/* phone mock for the "look" section */
.phone {
  max-width: 340px;
  margin: 4px auto 12px;
  border: 6px solid #2a2a2a;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  font: 13px/1.4 Tahoma, Verdana, sans-serif;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}
.phone .ph-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-weight: bold;
  border-bottom: 1px solid #5a0000;
}
.phone .ph-bar .icon { width: 16px; height: 16px; }
.phone .ph-bar small { margin-left: auto; font-weight: normal; }
.contacts { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #c3c3bb; }
/* Override .win-body li absolute-icon layout — contacts live inside .win-body */
.contacts li {
  display: flex;
  align-items: center;
  gap: 6px;
  position: static;
  padding: 3px 8px;
  border-bottom: 1px dotted #ddd;
}
.contacts li.sel { background: #ffe1e1; }
.contacts li > .icon {
  position: static;
  width: 14px;
  height: 14px;
  flex: none;
}
.chat { padding: 6px 8px; }
.chat .line { margin: 0 0 6px; }
.chat .who { display: block; font-weight: bold; }
.chat .in  .who { color: #b10f0f; }
.chat .out .who { color: #1c3fa8; }
.ph-soft {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  color: #fff;
  font-weight: bold;
  background: linear-gradient(to bottom, #555 0%, #1d1d1d 100%);
}

/* softkey bar */
.softkeys {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 0 6px calc(env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, #4d4d4d 0%, #2a2a2a 50%, #161616 51%, #262626 100%);
  border-top: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.softkey {
  min-width: 96px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 4px;
  color: #fff;
  font: bold 15px Tahoma, Verdana, sans-serif;
  text-decoration: none;
  text-shadow: 0 1px 0 #000;
}
.softkey:active { background: rgba(255, 255, 255, .15); }
.softkeys .mid { color: #9a9a92; font: 11px Tahoma, Verdana, sans-serif; }
.softkeys .mid .icon { width: 18px; height: 18px; }

/* footer */
.foot {
  padding: 14px;
  background: #efefe9;
  font: 13px/1.6 Tahoma, Verdana, sans-serif;
  color: #444;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
.foot p { margin: 0; }

/* legal */
.legal .win-body h2 {
  margin: 16px 0 6px;
  font: bold 16px Tahoma, Verdana, sans-serif;
  color: #8c0505;
}
.legal .win-body h2:first-child { margin-top: 0; }
:target { scroll-margin-top: 54px; }
.legal :target { background: #fff6c8; }

@media (max-width: 380px) {
  body { font-size: 14px; }
  .wordmark { font-size: 50px; }
  .softkey { min-width: 80px; padding: 0 8px; }
}
