:root {
  color-scheme: dark;
  font: 100%/1.5 "Segoe UI", system-ui, sans-serif;
  --paper: #111210;
  --card: #191b18;
  --line: #343831;
  --text: #f5f5ee;
  --muted: #b6bdb1;
  --yellow: #f9db46;
  --green: #46e181;
  color: var(--text);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  min-height: 4.5rem;
  padding: .85rem max(1rem, calc((100% - 66rem) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b0c0a;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; font-size: 1.55rem; letter-spacing: -.06em; }
.brand span, .welcome em { color: var(--yellow); }
.brand i { position: relative; width: 2rem; height: 2rem; margin-right: .65rem; border-radius: .55rem; background: var(--yellow); }
.brand i::before, .brand i::after { content: ""; position: absolute; width: .68rem; height: .35rem; border: 2px solid #151609; border-radius: 1rem; transform: rotate(-43deg); }
.brand i::before { top: .49rem; left: .72rem; }
.brand i::after { top: .85rem; left: .36rem; }
main { max-width: 68rem; margin: auto; padding: 2.5rem 1rem 4rem; }
h1 { margin: 0 0 1.35rem; font-size: clamp(1.65rem, 4vw, 2.5rem); letter-spacing: -.055em; line-height: 1.1; }
h1 span { color: var(--green); }
h2 { margin: 0 0 1rem; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.025em; }
.welcome {
  position: relative;
  min-height: 21rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
  border: 1px solid #4b4629;
  border-radius: 1.5rem;
  background: radial-gradient(ellipse at 90% 80%, #243d28, transparent 52%), linear-gradient(130deg, #232119, #121512);
}
.welcome h2 { font-size: clamp(2.45rem, 7vw, 5rem); letter-spacing: -.075em; line-height: .98; }
.welcome em { font-style: normal; }
.welcome p { max-width: 35ch; margin: 1rem 0 0; color: var(--muted); }
.mockup { margin: 0; display: grid; justify-items: center; gap: .75rem; }
.phone {
  width: min(100%, 13rem);
  border: .38rem solid #0c0e0c;
  border-radius: 1.55rem;
  overflow: hidden;
  background: #101a15;
  box-shadow: 0 0 0 1px #566251, 0 1rem 3rem #0009;
}
.phone-top { padding: .9rem .65rem; background: #163b30; display: flex; align-items: center; gap: .55rem; }
.phone-top span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--green); color: #102416; font-size: .75rem; font-weight: 700; }
.phone-top strong { font-size: .86rem; }
.phone-chat { min-height: 9rem; padding: .75rem; display: grid; align-content: space-between; justify-items: center; gap: 1rem; background-image: radial-gradient(#3e5144 1px, transparent 1px); background-size: 13px 13px; }
.phone-date { font-size: .75rem; background: #24372e; border-radius: .3rem; padding: .18rem .5rem; }
.phone-compose { position: relative; padding: .65rem 2rem .65rem .6rem; border-radius: .85rem; background: #25382f; font-size: .85rem; }
.phone-compose::after { content: "➤"; position: absolute; right: .55rem; bottom: .55rem; color: var(--green); }
figcaption { max-width: 100%; overflow-wrap: anywhere; padding: .4rem .75rem; border: 1px solid #3f6548; border-radius: .5rem; background: #111f17; color: #d0ded1; font-size: .875rem; }
figcaption b, #preview, .link a { color: var(--green); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 2rem); margin-bottom: 1.25rem; }
#login { width: min(100%, 32rem); }
label { display: grid; gap: .4rem; font-weight: 600; margin-bottom: 1rem; }
input, textarea, button { font: inherit; }
input:not([type=checkbox]), textarea { width: 100%; padding: .72rem .85rem; border: 1px solid #4b5249; border-radius: .55rem; color: var(--text); background: #101310; }
input::placeholder { color: #9ba499; }
input[type=checkbox] { accent-color: var(--green); width: 1rem; height: 1rem; }
input:read-only { background: #222722; }
textarea { resize: vertical; }
button { border: 1px solid transparent; border-radius: .55rem; padding: .65rem 1rem; background: var(--yellow); color: #171705; font-weight: 750; cursor: pointer; }
button:hover { background: #ffeb82; }
button:disabled { opacity: .55; cursor: wait; }
.secondary { color: var(--text); background: #242922; border-color: #414a40; }
.secondary:hover { background: #30382e; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.fields { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check, .actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
#preview { display: block; margin: -.4rem 0 1rem; overflow-wrap: anywhere; }
#status { color: var(--green); }
#status:empty { display: none; }
#status.error { color: #ffaaa1; }
.link { padding: 1rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.link a { overflow-wrap: anywhere; text-underline-offset: .2em; }
.link p { margin: .25rem 0 0; color: var(--muted); }
@media (max-width: 42rem) {
  main { padding-top: 1.5rem; }
  .welcome { grid-template-columns: 1fr; gap: 1.5rem; }
  #login { width: 100%; }
}
@media (max-width: 34rem) { .fields { grid-template-columns: 1fr; gap: 0; } }
