:root {
  --paper: #f1edf6;
  --paper-2: #e5ddee;
  --ink: #1a1612;
  --ink-2: #4b4339;
  --ink-3: #8a8073;
  --hug: #c44a3f;
  --hug-2: #a83a30;
  --hug-soft: #ecb8ad;
  --hug-bg: #fae9e0;
  --line: #d3c8da;
  --violet: #635bff;
  --serif:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(
      ellipse 60% 40% at 85% -5%,
      rgba(132, 102, 178, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 70% 50% at -5% 105%,
      rgba(196, 74, 63, 0.07) 0%,
      transparent 55%
    ),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 16px;
}
.app {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 30px 70px;
}
header.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--line);
}
.brand-link {
  display: inline-flex;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.brand-link:hover {
  opacity: 0.84;
  transform: translateY(-1px);
}
.brand-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-text .em {
  color: var(--hug);
  font-weight: 500;
}
.brand-text .small {
  font-size: 18px;
  color: var(--ink-3);
  margin-left: 1px;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a,
footer a {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.nav a:hover,
footer a:hover {
  color: var(--hug);
  border-bottom-color: var(--hug);
}
.nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: start;
  padding: 52px 0 30px;
}
h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 7.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
h1 em {
  color: var(--violet);
  font-style: italic;
}
.lede {
  max-width: 58ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-2);
}
.account-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 46px -30px rgba(40, 25, 10, 0.26);
}
.account-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.account-card .sub {
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 18px;
}
.system-login {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}
.system-login label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.system-login input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  font: 500 14px var(--sans);
  outline: none;
  transition:
    border-color 0.14s,
    box-shadow 0.14s;
}
.system-login input:focus {
  border-color: rgba(99, 91, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.13);
}
.auth-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-btn {
  width: 100%;
  min-height: 43px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.14s,
    border-color 0.14s,
    background 0.14s,
    color 0.14s;
}
.auth-btn.primary {
  background: var(--ink);
  color: var(--paper);
}
.auth-btn.primary:hover {
  background: var(--hug);
  transform: translateY(-1px);
}
.auth-btn.guest {
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink-2);
  border-color: var(--line);
}
.auth-btn.guest:hover {
  border-color: var(--hug-soft);
  color: var(--hug-2);
  transform: translateY(-1px);
}
.provider-stack {
  display: grid;
  gap: 10px;
}
.provider-btn {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s,
    transform 0.16s,
    background 0.16s;
}
.provider-btn:hover {
  border-color: var(--hug-soft);
  background: #fffdf8;
  transform: translateY(-1px);
}
.provider-btn strong {
  display: block;
  font-size: 14px;
}
.provider-btn span.copy {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.provider-btn span.state {
  color: var(--hug);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(26, 22, 18, 0.1);
  box-shadow: inset 0 -8px 16px rgba(26, 22, 18, 0.04);
  font-weight: 800;
}
.google-logo .g {
  font-size: 21px;
  line-height: 1;
  background: conic-gradient(
    from -35deg,
    #4285f4 0 24%,
    #34a853 24% 43%,
    #fbbc05 43% 63%,
    #ea4335 63% 82%,
    #4285f4 82% 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: Arial, sans-serif;
}
.meta-logo {
  background: #eef4ff;
  color: #0866ff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.1em;
}
.email-logo {
  background: var(--ink);
  color: #fff;
  font-size: 18px;
}
.openai-logo {
  background: #f4f1e9;
  color: #171717;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.anthropic-logo {
  background: #f0e8dd;
  color: #1f1a14;
  font-family: Georgia, serif;
  font-size: 21px;
}
.provider-divider {
  margin: 4px 0 0;
  padding-top: 4px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.profile-preview {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  color: inherit;
  cursor: default;
  text-align: left;
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    transform 0.16s,
    background 0.16s;
  font: inherit;
}
.profile-preview:hover {
  transform: none;
}
.profile-preview.signed {
  border-color: rgba(99, 91, 255, 0.44);
  background: #f4effb;
  cursor: pointer;
}
.profile-preview.signed:hover {
  border-color: rgba(99, 91, 255, 0.52);
  background: #eee7f6;
  box-shadow: 0 14px 34px -26px rgba(40, 25, 10, 0.36);
  transform: translateY(-1px);
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hug);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.profile-row strong {
  display: block;
}
.profile-row span {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
}
.profile-action {
  margin-top: 10px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo-signout {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition:
    color 0.15s,
    text-decoration-color 0.15s;
}
.demo-signout:hover {
  color: var(--hug);
  text-decoration-color: var(--hug);
}
.note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--hug-bg);
  border: 1px solid rgba(196, 74, 63, 0.2);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 14px;
}
.setup-list {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  max-width: 620px;
}
.setup-list div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.52);
}
.setup-list strong {
  display: block;
  margin-bottom: 4px;
}
.setup-list p {
  color: var(--ink-2);
}
footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
footer em {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
  font-size: 13px;
}
@media (max-width: 820px) {
  header.top {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav {
    justify-content: flex-start;
    gap: 14px;
  }
  main {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }
}
