:root {
  --bg: #eef0f4;
  --panel: #ffffff;
  --ink: #12161d;
  --muted: #5d6676;
  --line: #dde1e8;
  --accent: #2b3fd6;
  --accent-ink: #ffffff;
  --focus: rgba(43, 63, 214, .28);
  --mobile: #0e8f6e;
  --mobile-bg: #e3f6ef;
  --landline: #b25a08;
  --landline-bg: #fbeedb;
  --other: #566070;
  --other-bg: #e9ecf1;
  --error: #a63a3a;
  --error-bg: #f9e9e9;
  --notice: #8a6a12;
  --notice-bg: #f8f1da;
  --shadow: 0 1px 2px rgba(18, 22, 29, .06), 0 12px 32px -12px rgba(18, 22, 29, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1016;
    --panel: #161a22;
    --ink: #eceff5;
    --muted: #98a1b3;
    --line: #272d39;
    --accent: #7b8cff;
    --accent-ink: #0d1016;
    --focus: rgba(123, 140, 255, .35);
    --mobile: #4fd1a5;
    --mobile-bg: #11302a;
    --landline: #f0a25a;
    --landline-bg: #35261a;
    --other: #aab3c4;
    --other-bg: #232936;
    --error: #f08c8c;
    --error-bg: #34191b;
    --notice: #e6c76a;
    --notice-bg: #302a16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: 1.5rem 1rem; }
.panel { width: 100%; max-width: 30rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.75rem; box-shadow: var(--shadow); }
h1 { margin: 0; font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.lead { margin: .4rem 0 1.75rem; color: var(--muted); }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .45rem; }
input {
  display: block; width: 100%; padding: .95rem 1rem; font: inherit; font-size: 1.35rem; letter-spacing: .01em;
  color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--muted); opacity: .6; }
input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }
button {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; margin-top: .85rem; padding: .9rem 1rem;
  font: inherit; font-size: 1.05rem; font-weight: 650; color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: 12px; cursor: pointer; transition: filter .15s, transform .1s;
}
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
button:disabled { cursor: progress; filter: none; opacity: .85; }
.spinner { display: none; width: 1.05rem; height: 1.05rem; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
button:disabled .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

#result { margin-top: 1.5rem; }
#result:empty { display: none; }
.card { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; animation: reveal .22s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hero { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; }
.hero svg { flex: none; width: 3.5rem; height: 3.5rem; }
.hero-text { min-width: 0; }
.hero-title { margin: 0; font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.hero-sub { margin: .15rem 0 0; font-size: .92rem; opacity: .85; }
.hero.mobile { background: var(--mobile-bg); color: var(--mobile); }
.hero.landline { background: var(--landline-bg); color: var(--landline); }
.hero.other { background: var(--other-bg); color: var(--other); }

dl { margin: 0; padding: .5rem 1.25rem .75rem; }
.line { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
dt { color: var(--muted); font-size: .92rem; }
dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.note { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.25rem; }
.note svg { flex: none; width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.note h2 { margin: 0; font-size: 1.05rem; }
.note p { margin: .15rem 0 0; font-size: .95rem; }
.note.error { background: var(--error-bg); color: var(--error); }
.note.notice { background: var(--notice-bg); color: var(--notice); }
.note.loading { background: var(--other-bg); color: var(--other); }
.note.loading .spinner { display: inline-block; flex: none; margin-top: .3rem; }

footer { font-size: .85rem; color: var(--muted); }
@media (max-width: 30rem) {
  .panel { padding: 1.5rem 1.15rem; border-radius: 16px; }
  .hero-title { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  * { transition: none !important; }
}
