/* The dealership contact card: graphite paper on black, a 1px edge that catches the light, layered shadows, and one
   champagne accent for what is live (the hour, the open channel, the copied number). */
:root {
  --page: #000000;          /* the page */
  --card: #15161a;          /* the card */
  --card-2: #1c1d22;        /* the open row */
  --ink: #f3f1ec;           /* the words */
  --muted: #8d8f98;         /* the small words */
  --line: rgba(255, 255, 255, 0.07);   /* the thin lines */
  --accent: #e7c58c;        /* champagne: the hour, the open channel */
  --accent-ink: #1a1408;    /* words on the accent */
  --ok: #9fd8b1;            /* the copied check */
}

* { box-sizing: border-box; }
html { touch-action: manipulation; }
html, body { margin: 0; overflow-x: clip; }
body {
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vh, 32px) 14px;
  position: relative;
  overflow: hidden;
}

.card {
  --pad: clamp(14px, min(4.4vw, 3.2vh), 22px);
  position: relative;
  width: min(92vw, 384px);
  padding: var(--pad);
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 18% -10%, rgba(231, 197, 140, 0.07), transparent 60%),
    linear-gradient(180deg, #1a1b20, var(--card));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 1px 1px rgba(0, 0, 0, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.5),
    0 30px 70px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  isolation: isolate;
}
.card__light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px 160px at var(--lx, 50%) var(--ly, -20%), rgba(255, 255, 255, 0.06), transparent 70%);
  z-index: -1;
}

.card__head { display: flex; align-items: center; gap: 12px; }
.card__mark {
  width: clamp(34px, 5vh, 40px); aspect-ratio: 1; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #2a2b31, #18191d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px rgba(0, 0, 0, 0.5);
}
.card__mark svg { width: 58%; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; }
.card__mark-arc { stroke: rgba(231, 197, 140, 0.45); }
.card__names { display: flex; flex-direction: column; line-height: 1.15; }
.card__brand { font-weight: 640; font-stretch: 108%; font-size: clamp(15px, 2.6vh, 17px); letter-spacing: -0.01em; }
.card__place { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- today's hours */
.hours { margin-top: clamp(10px, 2.2vh, 18px); }
.hours__line { display: flex; align-items: baseline; gap: 8px; font-size: 13px; white-space: nowrap; }
.hours__state { color: var(--accent); font-weight: 600; display: inline-block; }
.hours__sep { width: 1px; height: 10px; background: var(--line); align-self: center; }
.hours__close { color: var(--ink); }
.hours__left { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.hours__bar { position: relative; margin-top: 9px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.hours__open {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, rgba(231, 197, 140, 0.18), rgba(231, 197, 140, 0.55));
  transform-origin: left center;
}
.hours__tick { position: absolute; top: -5px; left: 0; width: 0; height: 14px; }
.hours__tick-line {
  position: absolute; left: -1px; top: 0; width: 2px; height: 14px; border-radius: 2px;
  background: var(--ink); box-shadow: 0 0 0 3px rgba(21, 22, 26, 0.9);
}
.hours__ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: #5f616a; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- the three channels */
.ways { list-style: none; margin: clamp(10px, 2vh, 16px) 0 0; padding: 0; display: grid; gap: 6px; }
.way {
  position: relative;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.way::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 60%);
  opacity: var(--lit, 0);
}
.way__row {
  width: 100%;
  display: flex; align-items: center; gap: 11px;
  padding: clamp(8px, 1.5vh, 11px) 12px;
  text-align: left;
}
.way__icon {
  flex: none; width: 32px; aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.way__icon svg { width: 17px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.way__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.way__title { font-size: 14px; font-weight: 600; }
.way__sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.way__chev { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--muted); }
.way__chev svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.way__more { height: 0; overflow: hidden; }
.way__inner { display: flex; align-items: center; gap: 10px; padding: 0 12px 11px 55px; }
.way__number { font-size: 15px; font-weight: 560; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.copy {
  position: relative; margin-left: auto; height: 30px; min-width: 92px; padding: 0 13px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 620;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 12px rgba(231, 197, 140, 0.18);
  overflow: hidden;
}
.copy__face, .copy__done { display: flex; align-items: center; justify-content: center; gap: 5px; height: 100%; }
.copy__done { position: absolute; inset: 0; opacity: 0; }
.copy__done svg { width: 14px; fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.way__inner--write { justify-content: space-between; }
.way__quote { font-size: 12.5px; color: var(--muted); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.way__send { flex: none; font-size: 12.5px; font-weight: 600; color: var(--accent); }

.way__inner--slots { gap: 6px; }
.slot {
  height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 560;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }

/* ---------------------------------------------------------------- the advisor */
.advisor {
  display: flex; align-items: center; gap: 11px;
  margin-top: clamp(10px, 2vh, 16px); padding-top: clamp(10px, 2vh, 14px);
  border-top: 1px solid var(--line);
}
.advisor__face {
  width: 32px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 660; letter-spacing: 0.02em; color: var(--accent-ink);
  background: linear-gradient(150deg, #f0d7a8, #c99f5e);
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px rgba(231, 197, 140, 0.35);
}
.advisor__text { display: flex; flex-direction: column; line-height: 1.2; }
.advisor__name { font-size: 13px; font-weight: 600; }
.advisor__role { font-size: 11.5px; color: var(--muted); }
.advisor__langs { margin-left: auto; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

@media (hover: hover) {
  .slot:hover { background: rgba(255, 255, 255, 0.09); }
  .slot[aria-pressed="true"]:hover { background: var(--accent); }
}

/* the short box of the phone: the place line and the hour ends give their room to the channels */
@media (max-height: 470px) {
  .card__place, .hours__ends { display: none; }
  .advisor__role { display: none; }
}

.pointer {
  position: fixed; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; z-index: 10;
  fill: #fff; stroke: #111; stroke-width: 1.3; stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); opacity: 0;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* narrow screens: the detail starts under the icon, so the three slots stay inside the row */
@media (max-width: 440px) {
  .way__inner { padding-left: 12px; }
  .way__inner--slots { gap: 5px; }
  .slot { padding: 0 9px; font-size: 11.5px; flex: 1 1 0; }
}
