@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
}

:root {
  --pearl: #f7f6f3;
  --silver: #e9e7e2;
  --lavender: #d7c0e6;
  --lavender-deep: #c1b1d6;
  --champagne: #e5c9a6;
  --ink: #1e1e24;
  --muted: #5c5660;
  --card: #ffffff;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  background-color: #efe8ee;
}
body {
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  background: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #efe8ee;
  background-image: url("assets/img/bg-canvas.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

a { color: inherit; }

.wrap {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.brand {
  margin-bottom: 36px;
}
.brand .lockup {
  display: block;
  height: 44px;
  width: auto;
}
.brand .sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.brand::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--lavender-deep), var(--champagne));
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-synthesis: none;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.18;
  letter-spacing: 0.004em;
  margin: 0 0 14px;
}
.lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 28em;
  margin: 0 0 28px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.tab {
  appearance: none;
  border: 1px solid #ece8e2;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 22px;
  font: 600 15px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  background: var(--lavender-deep);
  border-color: transparent;
  color: #2a2430;
}

h2.device {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: 0.004em;
  line-height: 1.25;
  margin: 8px 0 16px;
}

.steps { display: grid; gap: 12px; }
.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  box-shadow: 0 1px 0 rgba(30, 30, 36, 0.04);
  border: 1px solid rgba(30, 30, 36, 0.04);
}
.step h3 {
  margin: 0 0 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}
.step p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

.dl {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px dashed #c9c3bc;
  color: #8a8490;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  cursor: default;
}

.panel { display: none; }
.panel.active { display: block; }

.section {
  margin-top: 56px;
}
.section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: 0.004em;
  line-height: 1.25;
  margin: 0 0 10px;
}
.section .note {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 16px;
}

.desktops {
  display: grid;
  gap: 18px;
}
.desk-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(30, 30, 36, 0.05);
}
.desk-card img {
  display: block;
  width: 100%;
  height: auto;
}
.desk-card figcaption {
  padding: 12px 16px 14px;
  font-size: 14px;
  color: var(--muted);
}

.login-sk {
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, rgba(193, 177, 214, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 70% at 10% 90%, rgba(208, 179, 137, 0.18), transparent 50%),
    linear-gradient(180deg, #f3efe9 0%, #eee6f0 100%);
  border-radius: 24px;
  padding: 48px 24px;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(30, 30, 36, 0.05);
}
.login-card {
  width: min(380px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 36px 28px 28px;
  box-shadow: 0 16px 40px rgba(30, 30, 36, 0.08);
  text-align: center;
}
.login-card .lockup {
  height: 36px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 16px;
  display: block;
}
.login-card .hint {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}
.field {
  text-align: left;
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  border: 1px solid var(--silver);
  background: var(--pearl);
  border-radius: 12px;
  padding: 12px 14px;
  font: 16px/1.3 "Inter", system-ui, sans-serif;
  color: var(--ink);
  outline: none;
}
.field input:focus { border-color: var(--lavender-deep); }
.enter {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--lavender-deep);
  color: #2a2430;
  font: 600 16px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
}
.toast {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.toast.show { display: block; }

footer {
  margin-top: 56px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); padding-top: 24px; }
  h1 { font-size: 34px; }
  .brand .lockup { height: 38px; }
  .tab { flex: 1 1 calc(50% - 10px); text-align: center; }
}
