/* ============================================================
   SEOTECH CLIENT DEMO ACCESS
   A deliberately different palette from the main site:
   warm porcelain / deep ink / sage — calm, premium, trustworthy.
   NOT black-and-gold.
   ============================================================ */
:root{
  --bg:        #F4F2EC;
  --bg-deep:   #EAE7DD;
  --panel:     #FFFFFF;
  --ink:       #1B2A28;
  --ink-soft:  #3D4F4C;
  --mute:      #6E7E79;
  --line:      rgba(27,42,40,0.12);
  --sage:      #4F7A6E;
  --sage-soft: rgba(79,122,110,0.10);
  --sage-line: rgba(79,122,110,0.35);
  --error:     #B5544A;

  --font-display:'Fraunces','Georgia',serif;
  --font-body:'Inter',-apple-system,sans-serif;
  --font-mono:'IBM Plex Mono',monospace;

  --ease: cubic-bezier(0.16,0.84,0.32,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }

::selection{ background:var(--sage-soft); }
:focus-visible{ outline:2px solid var(--sage); outline-offset:3px; border-radius:4px; }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

/* subtle paper texture */
body::before{
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
  opacity:0.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   HEADER (minimal — no main nav, no ads, no clutter)
   ============================================================ */
.demo-header{
  padding:26px 40px;
  display:flex; align-items:center; justify-content:space-between;
  position:relative; z-index:1;
}
.demo-logo{ display:flex; align-items:center; gap:10px; }
.demo-logo .mark{
  width:30px; height:30px; border-radius:7px;
  background:var(--panel); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
}
.demo-logo .mark svg{ width:16px; height:16px; }
.demo-logo .word{
  font-family:var(--font-display); font-weight:600; font-size:16.5px;
  color:var(--ink);
}
.demo-logo .word b{ color:var(--sage); }
.back-link{
  font-size:13.5px; color:var(--mute);
  display:flex; align-items:center; gap:7px;
  transition:color 0.2s;
}
.back-link:hover{ color:var(--ink); }

/* ============================================================
   MAIN SPLIT LAYOUT
   ============================================================ */
.demo-main{
  flex:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  position:relative; z-index:1;
}

/* ---- Left: context panel ---- */
.demo-context{
  padding:60px 64px;
  display:flex; flex-direction:column; justify-content:center;
}
.dc-eyebrow{
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--sage);
  display:flex; align-items:center; gap:10px; margin-bottom:22px;
}
.dc-eyebrow::before{ content:''; width:16px; height:1px; background:var(--sage); }
.demo-context h1{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(32px,4vw,46px); line-height:1.12;
  color:var(--ink); margin:0 0 20px; max-width:480px;
}
.demo-context .dc-lede{
  font-size:15.5px; color:var(--ink-soft); line-height:1.7;
  max-width:440px; margin-bottom:40px;
}
.dc-included{ display:flex; flex-direction:column; gap:16px; max-width:440px; }
.dc-item{ display:flex; gap:14px; align-items:flex-start; }
.dc-item .di-icon{
  width:30px; height:30px; border-radius:7px; flex-shrink:0;
  background:var(--sage-soft); color:var(--sage);
  display:flex; align-items:center; justify-content:center; font-size:13px;
}
.dc-item strong{ display:block; font-size:14px; color:var(--ink); margin-bottom:2px; }
.dc-item span{ font-size:13px; color:var(--mute); }

/* ---- Right: login panel ---- */
.demo-login-wrap{
  background:var(--bg-deep);
  display:flex; align-items:center; justify-content:center;
  padding:60px 48px;
  position:relative;
}
.demo-login-wrap::before{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(circle at 75% 25%, var(--sage-soft), transparent 60%);
  pointer-events:none;
}
.login-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:48px;
  width:100%; max-width:420px;
  box-shadow:0 24px 60px -20px rgba(27,42,40,0.18);
  position:relative; z-index:1;
}
.login-card h2{
  font-family:var(--font-display); font-weight:600; font-size:24px;
  color:var(--ink); margin:0 0 8px;
}
.login-card .lc-sub{ font-size:13.5px; color:var(--mute); margin:0 0 32px; }

.lc-group{ margin-bottom:18px; }
.lc-group label{
  display:block; font-size:12.5px; color:var(--ink-soft); margin-bottom:7px; font-weight:500;
}
.lc-input-wrap{ position:relative; }
.lc-input-wrap i.lc-leading{
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  color:var(--mute); font-size:14px;
}
.lc-group input{
  width:100%;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:9px;
  padding:13px 14px 13px 40px;
  font-size:15px; font-family:inherit; color:var(--ink);
  transition:border-color 0.2s, background 0.2s;
}
.lc-group input:focus{ outline:none; border-color:var(--sage-line); background:var(--panel); }
.lc-toggle-pass{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:var(--mute); font-size:14px; padding:6px;
}

.lc-error{
  display:none;
  font-size:13px; color:var(--error);
  background:rgba(181,84,74,0.08);
  border:1px solid rgba(181,84,74,0.25);
  border-radius:8px;
  padding:11px 14px;
  margin-bottom:18px;
  align-items:center; gap:9px;
}
.lc-error.show{ display:flex; }

.lc-submit{
  width:100%;
  background:var(--sage); color:#fff;
  border:none; border-radius:9px;
  padding:14px; font-size:15px; font-weight:600;
  display:flex; align-items:center; justify-content:center; gap:9px;
  transition:background 0.2s, transform 0.2s;
  margin-top:6px;
}
.lc-submit:hover{ background:#436D62; transform:translateY(-1px); }
.lc-submit:disabled{ opacity:0.7; cursor:default; transform:none; }

.lc-hint{
  margin-top:24px; padding-top:20px; border-top:1px solid var(--line);
  font-size:12.5px; color:var(--mute); text-align:center; line-height:1.6;
}
.lc-hint b{ color:var(--ink-soft); font-family:var(--font-mono); }

/* ============================================================
   POST-LOGIN STATE (simple demo shell)
   ============================================================ */
.demo-shell{ display:none; min-height:100vh; flex-direction:column; }
.demo-shell.active{ display:flex; }
body.logged-in .demo-header,
body.logged-in .demo-main{ display:none; }

.shell-top{
  padding:20px 40px; display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--line); background:var(--panel);
}
.shell-top .demo-logo .word{ font-size:15px; }
.shell-badge{
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.06em; text-transform:uppercase;
  background:var(--sage-soft); color:var(--sage);
  padding:5px 12px; border-radius:100px;
}
.shell-logout{
  font-size:13px; color:var(--mute); display:flex; align-items:center; gap:7px;
  border:1px solid var(--line); border-radius:8px; padding:8px 14px; background:var(--panel);
  transition:border-color 0.2s, color 0.2s;
}
.shell-logout:hover{ border-color:var(--sage-line); color:var(--ink); }

.shell-body{
  flex:1; display:flex; align-items:center; justify-content:center;
  padding:60px 40px;
}
.shell-welcome{ text-align:center; max-width:520px; }
.shell-welcome .sw-icon{
  width:64px; height:64px; border-radius:16px; margin:0 auto 24px;
  background:var(--sage-soft); color:var(--sage);
  display:flex; align-items:center; justify-content:center; font-size:26px;
}
.shell-welcome h2{
  font-family:var(--font-display); font-weight:600; font-size:30px; margin:0 0 14px; color:var(--ink);
}
.shell-welcome p{ font-size:15px; color:var(--ink-soft); line-height:1.7; margin-bottom:32px; }
.shell-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; text-align:left; }
.shell-tile{
  background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:22px;
}
.shell-tile i{ color:var(--sage); font-size:18px; margin-bottom:12px; display:block; }
.shell-tile strong{ display:block; font-size:14px; color:var(--ink); margin-bottom:5px; }
.shell-tile span{ font-size:12.5px; color:var(--mute); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:980px){
  .demo-main{ grid-template-columns:1fr; }
  .demo-context{ padding:48px 32px 20px; text-align:left; }
  .demo-login-wrap{ padding:32px; }
  .shell-grid{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .demo-header{ padding:20px 22px; }
  .demo-context{ padding:36px 22px 12px; }
  .login-card{ padding:32px 26px; }
  .shell-top{ padding:16px 22px; }
  .shell-body{ padding:40px 22px; }
}
