/* ============================================================
   anon-msg-app · Neo-Brutalism design system
   Hard borders · offset shadows · loud color · heavy type
   ============================================================ */

:root {
  /* core palette */
  --bg: #f5efe6;            /* warm cream */
  --bg-2: #fff8e7;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #6b6b6b;

  --accent: #ffce00;        /* signature yellow */
  --accent-2: #ffe96b;
  --pink: #ff5ea8;
  --lime: #c4f25d;
  --cyan: #00d4d4;
  --violet: #b388ff;
  --green: #19c37d;
  --danger: #ff3b3b;

  /* surfaces */
  --card: #ffffff;
  --card-2: #fafafa;

  /* borders + shadows */
  --border: 3px solid #111111;
  --border-thin: 2px solid #111111;
  --shadow-hard: 6px 6px 0 0 #111111;
  --shadow-hard-lg: 10px 10px 0 0 #111111;
  --shadow-hard-sm: 4px 4px 0 0 #111111;
  --shadow-accent: 6px 6px 0 0 var(--accent);

  /* type */
  --font-sans:
    'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:
    'Archivo Black', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:
    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* radii (small on purpose — brutalism is sharp) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  background-image:
    linear-gradient(#e7dfcb 1px, transparent 1px),
    linear-gradient(90deg, #e7dfcb 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  min-height: 100vh;
}

a { color: #111; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: #000; }

::selection { background: var(--accent); color: #111; }

/* ============================================================
   Layout
   ============================================================ */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.shell {
  width: 100%;
  max-width: 480px;
  margin: 56px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.shell--wide { max-width: 1080px; }

/* ============================================================
   Top nav (used on landing + dashboard)
   ============================================================ */
.nav {
  border-bottom: var(--border);
  background: var(--bg-2);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav + .page,
.nav + main,
body > .page {
  padding-top: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-family: var(--font-display);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 44px; height: 44px;
  border: var(--border);
  background: var(--accent);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-4deg);
  transition: transform .15s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(0deg) translate(-1px, -1px); }
.brand-mark svg { width: 22px; height: 22px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink);
}
.nav-link:hover { background: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  border: var(--border);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-hard-sm);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.nav-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--accent); color: #fff; }
.nav-cta:active { transform: translate(0, 0); box-shadow: var(--shadow-hard-sm); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-hard-sm);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease),
              background-color .12s var(--ease);
  user-select: none;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: var(--shadow-hard-sm); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
}
.btn--primary:hover { background: var(--accent-2); box-shadow: 6px 6px 0 0 var(--ink); }
.btn--pink   { background: var(--pink); color: #fff; }
.btn--pink:hover { background: #ff7ebb; color: #fff; }
.btn--lime   { background: var(--lime); color: var(--ink); }
.btn--violet { background: var(--violet); color: #fff; }
.btn--violet:hover { background: #c4a3ff; color: #fff; }
.btn--cyan   { background: var(--cyan); color: var(--ink); }
.btn--ink    { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }
.btn--block  { width: 100%; }
.btn--lg     { padding: 16px 26px; font-size: 17px; border-radius: var(--r-md); box-shadow: var(--shadow-hard); }
.btn--lg:hover { box-shadow: 8px 8px 0 0 var(--ink); transform: translate(-3px, -3px); }
.btn--sm     { padding: 7px 12px; font-size: 13px; box-shadow: 3px 3px 0 0 var(--ink); border-width: 2px; }
.btn--sm:hover { box-shadow: 4px 4px 0 0 var(--ink); transform: translate(-1px, -1px); }
.btn--ghost  { background: transparent; box-shadow: none; border-color: var(--ink); }
.btn--ghost:hover { background: var(--bg-2); transform: none; box-shadow: var(--shadow-hard-sm); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #ff6262; color: #fff; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-hard);
}
.card h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 900;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.card .subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.card--accent { background: var(--accent); }
.card--pink   { background: var(--pink); color: #fff; }
.card--lime   { background: var(--lime); }
.card--cyan   { background: var(--cyan); }
.card--violet { background: var(--violet); color: #fff; }
.card--ink    { background: var(--ink); color: #fff; }

/* ============================================================
   Form
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.input, .textarea {
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  outline: none;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.input:focus, .textarea:focus {
  box-shadow: var(--shadow-hard);
  transform: translate(-2px, -2px);
}
.input::placeholder, .textarea::placeholder { color: #9a9a9a; }
.textarea { resize: vertical; min-height: 160px; line-height: 1.5; }

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 50px; }
.input-reveal {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 2px solid #111; border-radius: 8px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 800; font-size: 14px;
}
.input-reveal:hover { background: var(--accent-2); }

.strength {
  display: flex; gap: 6px; margin-top: 2px;
}
.strength span {
  flex: 1; height: 8px;
  border: 2px solid #111; border-radius: 4px;
  background: #fff;
}
.strength.is-1 span:nth-child(-n+1) { background: var(--danger); }
.strength.is-2 span:nth-child(-n+2) { background: #ff9b3d; }
.strength.is-3 span:nth-child(-n+3) { background: var(--accent); }
.strength.is-4 span:nth-child(-n+4) { background: var(--green); }
.strength small { font-weight: 800; font-size: 12px; min-width: 90px; text-align: right; }

.alert {
  border: var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  box-shadow: var(--shadow-hard-sm);
  background: #fff;
}
.alert--error { background: var(--pink); color: #fff; }
.alert--ok    { background: var(--lime); color: var(--ink); }
.alert--info  { background: var(--accent); color: var(--ink); }

.swap {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin: 18px 0 0;
}
.swap a { font-weight: 800; text-decoration: underline; }

/* ============================================================
   Landing
   ============================================================ */
.hero {
  position: relative;
  padding: 56px 0 72px;
  border-bottom: var(--border);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--ink);
  border: var(--border); border-radius: var(--r-pill);
  padding: 6px 14px;
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: var(--shadow-hard-sm);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 18px 0 16px;
  text-transform: uppercase;
}
.hero h1 .hl {
  position: relative;
  display: inline-block;
}
.hero h1 .hl::after {
  content: "";
  position: absolute; left: -2px; right: -2px; bottom: 6px;
  height: 16px;
  background: var(--accent);
  z-index: -1;
  border: 2px solid #111;
}
.hero h1 .hl-2::after { background: var(--pink); }
.hero p.lead {
  font-size: 18px;
  color: var(--ink-2);
  font-weight: 600;
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center;
}
.hero-meta {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.hero-meta span {
  display: inline-flex; align-items: center; gap: 6px;
}

/* Hero visual — chat-bubble collage */
.hero-visual {
  position: relative;
  height: 460px;
}
.bubble {
  position: absolute;
  border: var(--border);
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-weight: 700;
  box-shadow: var(--shadow-hard);
  max-width: 260px;
  transform-origin: center;
}
.bubble .who { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; }
.bubble .text { margin-top: 4px; font-size: 15px; line-height: 1.4; }
.bubble--a { top: 18px; left: 12px; background: var(--accent); transform: rotate(-3deg); }
.bubble--b { top: 110px; right: 0; background: var(--pink); color: #fff; transform: rotate(2deg); }
.bubble--c { top: 230px; left: 36px; background: var(--lime); transform: rotate(-1deg); }
.bubble--d { bottom: 18px; right: 24px; background: var(--cyan); transform: rotate(3deg); }
.bubble--e { bottom: 110px; left: 80px; background: #fff; transform: rotate(2deg); }
.bubble .emoji { font-size: 22px; margin-right: 6px; }

.sticker {
  position: absolute;
  border: var(--border);
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-6deg);
}
.sticker--yellow { background: var(--accent); color: var(--ink); transform: rotate(6deg); top: 290px; right: -10px; }

/* Marquee ticker */
.ticker {
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--ink);
  color: var(--accent);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex; gap: 56px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 22px;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 56px; }
.ticker-track em { font-style: normal; color: var(--pink); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Section header */
.section {
  padding: 80px 0;
  border-bottom: var(--border);
}
.section-alt {
  background: var(--bg-2);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.section-title .hl { background: var(--accent); padding: 0 6px; box-shadow: 4px 4px 0 0 var(--ink); }
.section-sub {
  font-size: 17px;
  color: var(--ink-2);
  font-weight: 600;
  max-width: 620px;
  margin: 0 0 36px;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  border: var(--border);
  background: #fff;
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-hard);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.feature:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 0 var(--ink); }
.feature .icon {
  width: 56px; height: 56px;
  border: var(--border);
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  font-size: 28px;
  box-shadow: var(--shadow-hard-sm);
  margin-bottom: 14px;
}
.feature:nth-child(2) .icon { background: var(--pink); color: #fff; }
.feature:nth-child(3) .icon { background: var(--lime); }
.feature:nth-child(4) .icon { background: var(--cyan); }
.feature:nth-child(5) .icon { background: var(--violet); color: #fff; }
.feature:nth-child(6) .icon { background: var(--ink); color: var(--accent); }
.feature h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 19px;
}
.feature p { margin: 0; color: var(--muted); font-weight: 600; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  border: var(--border);
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-hard);
  position: relative;
}
.step .num {
  position: absolute;
  top: -22px; left: -22px;
  width: 56px; height: 56px;
  border: var(--border);
  background: var(--accent);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  box-shadow: var(--shadow-hard-sm);
}
.step h3 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 22px;
}
.step p { margin: 0; color: var(--muted); font-weight: 600; }

/* Examples */
.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.example {
  border: var(--border);
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-hard);
  transform: rotate(-1deg);
  transition: transform .15s var(--ease);
}
.example:nth-child(2) { transform: rotate(1.2deg); background: var(--accent); }
.example:nth-child(3) { transform: rotate(-0.5deg); background: var(--lime); }
.example:nth-child(4) { transform: rotate(2deg); background: var(--pink); color: #fff; }
.example:nth-child(5) { transform: rotate(-1.5deg); background: var(--cyan); }
.example:nth-child(6) { transform: rotate(0.6deg); background: var(--violet); color: #fff; }
.example:hover { transform: rotate(0) translate(-2px, -2px); box-shadow: 8px 8px 0 0 var(--ink); }
.example .who { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; }
.example .text { font-size: 17px; font-weight: 700; line-height: 1.35; margin-top: 6px; }
.example .time { margin-top: 12px; font-size: 12px; font-weight: 700; opacity: 0.6; }

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.faq details {
  border: var(--border);
  background: #fff;
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-hard-sm);
}
.faq details[open] { box-shadow: var(--shadow-hard); transform: translate(-2px, -2px); }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 20px;
  width: 28px; height: 28px;
  border: 2px solid #111; border-radius: 6px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 12px;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); font-weight: 600; }

/* Big CTA */
.big-cta {
  background: var(--accent);
  border-top: var(--border);
  border-bottom: var(--border);
}
.big-cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 56px 0;
  gap: 24px;
}
.big-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* Footer */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 48px 0 32px;
  border-top: var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  color: var(--accent);
}
.footer a { color: #fff; text-decoration: none; display: block; padding: 4px 0; font-weight: 600; }
.footer a:hover { color: var(--accent); }
.footer .brand { color: #fff; }
.footer .brand:hover { color: var(--accent); }
.footer p { color: #c4c4c4; font-weight: 600; margin: 8px 0 0; }
.footer-bot {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  flex-direction: column;
  border-top: 2px solid #2a2a2a;
  padding-top: 18px;
  color: #c4c4c4; font-size: 13px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-bot > span:first-child { width: 100%; }
.footer-bot .credit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  line-height: 1; flex-wrap: wrap;
}
.footer-bot .credit-line { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.footer-bot .heart { font-size: 14px; line-height: 1; }
.footer-bot .nexaric {
  display: inline-flex; align-items: center; line-height: 0;
  text-decoration: none; transition: transform .15s var(--ease);
}
.footer-bot .nexaric:hover { transform: translate(-2px, -2px); }
.footer-bot .nexaric img { height: 32px; width: auto; display: block; }

/* ============================================================
   Auth split layout (signup / login)
   ============================================================ */
.auth-split {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
.auth-side {
  background: var(--accent);
  border-right: var(--border);
  position: relative;
  overflow: hidden;
  padding: 56px 44px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#111 1px, transparent 1px),
    linear-gradient(90deg, #111 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.08;
  pointer-events: none;
}
.auth-side .top h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 22px 0 16px;
}
.auth-side .top p {
  font-weight: 700; max-width: 380px; color: #111;
}
.auth-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.auth-pill {
  border: var(--border);
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 800; font-size: 13px; text-transform: uppercase;
  box-shadow: var(--shadow-hard-sm);
}
.auth-pill.is-on { background: var(--ink); color: var(--accent); }
.testimonial {
  border: var(--border);
  background: #fff;
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-hard);
  position: relative;
  transform: rotate(-1.5deg);
  max-width: 340px;
}
.testimonial .text { font-weight: 800; font-size: 17px; line-height: 1.3; }
.testimonial .who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.testimonial .ava {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #111;
}
.testimonial .name { font-weight: 800; font-size: 13px; }
.testimonial .role { font-size: 12px; color: var(--muted); font-weight: 600; }

.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 56px 28px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  border: var(--border);
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-hard-lg);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.auth-card .lead { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0 0 22px; }

/* ============================================================
   Send page
   ============================================================ */
.send-shell {
  max-width: 1200px;
  width: 100%;
  margin: 28px auto;
  padding: 0 20px;
}
.send-card {
  border: var(--border);
  background: #fff;
  border-radius: var(--r-lg);
  padding: 56px 64px;
  box-shadow: var(--shadow-hard-lg);
}
.send-card .recipient { margin-bottom: 28px; }
.send-card .recipient .avatar { width: 120px; height: 120px; font-size: 48px; }
.send-card .page-title { font-size: clamp(32px, 4.5vw, 46px); }
.send-card .textarea { min-height: 240px; font-size: 16px; padding: 18px 20px; }
.send-card .form { gap: 20px; }

/* Two-column composer:
   LEFT  = avatar / handle / heading / promise / trust badge (sticky)
   RIGHT = chips + textarea + Send button */
.send-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.4fr);
  gap: 72px;
  align-items: start;
}
.send-left {
  display: flex; flex-direction: column; align-items: flex-start;
  position: sticky; top: 96px;
  min-width: 0;
}
.send-left .avatar {
  width: 128px; height: 128px;
  font-size: 50px;
  border: var(--border);
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-hard);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.send-left .handle {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}
.send-left .handle b { color: var(--ink); }
.send-left .page-title {
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.send-left .page-title span {
  background: var(--accent);
  padding: 0 6px;
  box-shadow: 3px 3px 0 0 var(--ink);
  display: inline-block;
}
.send-left .promise {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}
.send-right { min-width: 0; }
.send-right .field { gap: 14px; }
.send-right .chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: flex-start;
  margin: 0 0 14px;
}
.send-right .chip { padding: 9px 16px; font-size: 13px; }
.trust-badge {
  display: flex; gap: 12px; align-items: flex-start;
  border: var(--border);
  background: var(--lime);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-hard-sm);
  line-height: 1.45;
  align-self: flex-start;
}
.trust-badge .trust-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
.trust-badge strong { display: block; font-size: 14px; margin-bottom: 2px; }
.recipient {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 22px;
}
.avatar {
  width: 96px; height: 96px;
  border: var(--border);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 40px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-hard);
  background: var(--accent);
  text-transform: uppercase;
}
.avatar--sm { width: 48px; height: 48px; font-size: 18px; box-shadow: 3px 3px 0 0 var(--ink); border-width: 2px; }
.avatar--xs { width: 36px; height: 36px; font-size: 14px; box-shadow: 3px 3px 0 0 var(--ink); border-width: 2px; }
.avatar--ghost { background: repeating-linear-gradient(45deg, #eee 0 6px, #f7f7f7 6px 12px); color: var(--ink); }

.recipient .handle {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.recipient .handle b { color: var(--ink); }

.page-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  line-height: 1.05;
}
.page-title span { background: var(--accent); padding: 0 6px; box-shadow: 3px 3px 0 0 var(--ink); }

.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 22px 0 16px;
  justify-content: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border: var(--border);
  background: #fff;
  border-radius: var(--r-pill);
  font-weight: 800; font-size: 13.5px;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .12s var(--ease);
}
.chip:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.chip--picked { background: var(--ink); color: var(--accent); }

.compose { position: relative; }
.counter {
  position: absolute; right: 14px; bottom: 12px;
  font-weight: 800;
  font-size: 12px;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid #111;
  border-radius: var(--r-pill);
  padding: 2px 10px;
}
.counter--warn { background: #ffd000; }
.counter--max  { background: var(--danger); color: #fff; }

.foot-cta {
  margin-top: 24px; text-align: center;
  font-size: 14px; color: var(--muted); font-weight: 700;
}
.foot-cta a { font-weight: 900; text-decoration: underline; }

.success-screen { text-align: center; padding: 16px 0 8px; }
.success-screen .check {
  width: 96px; height: 96px;
  border: var(--border); border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-hard);
}
.success-screen h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.success-screen p { margin: 0 auto 24px; color: var(--muted); font-weight: 600; max-width: 340px; }

/* ============================================================
   Dashboard
   Vertically stacked boxes — single column, no side-by-side grid.
   ============================================================ */
.dashboard {
  padding: 32px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 880px;
}
.dash-box {
  border: var(--border);
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-hard);
}
.dash-grid {
  display: block;
}
.dash-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.dash-head .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dash-head .who h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.dash-head .who p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.dash-head .who p strong { color: var(--ink); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat {
  border: var(--border);
  background: #fff;
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-hard-sm);
}
.stat:nth-child(1) { background: var(--accent); }
.stat:nth-child(2) { background: var(--lime); }
.stat:nth-child(3) { background: var(--cyan); }
.stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .lbl {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-top: 6px;
}

.share-card {
  border: var(--border);
  background: var(--bg-2);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-hard-sm);
}
.share-card h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.link {
  background: #fff;
  border: var(--border-thin);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
  user-select: all;
  margin-bottom: 12px;
}
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row .btn { padding: 8px 14px; font-size: 13px; }

.side-tip {
  border: var(--border);
  background: var(--lime);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-hard-sm);
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 14px;
}
.side-tip .emo { font-size: 22px; line-height: 1; }

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.section-title .badge {
  background: var(--ink); color: var(--accent);
  border: var(--border-thin); border-radius: var(--r-pill);
  padding: 2px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
}
.section-title .filter {
  display: inline-flex; gap: 4px;
  border: var(--border-thin);
  background: #fff;
  border-radius: var(--r-pill);
  padding: 4px;
}
.section-title .filter button {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-weight: 800; font-size: 12px;
  cursor: pointer;
  color: var(--muted);
}
.section-title .filter button.is-on { background: var(--ink); color: var(--accent); }

.search {
  position: relative;
  margin-bottom: 14px;
}
.search input {
  width: 100%;
  border: var(--border);
  border-radius: var(--r-pill);
  padding: 12px 16px 12px 44px;
  font: inherit; font-weight: 700;
  background: #fff;
  outline: none;
}
.search input:focus { box-shadow: var(--shadow-hard); transform: translate(-2px, -2px); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }

.empty {
  border: var(--border);
  border-radius: var(--r-lg);
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-2);
  box-shadow: var(--shadow-hard);
}
.empty .stamp {
  width: 92px; height: 92px;
  border: var(--border); border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 40px;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-6deg);
}
.empty h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.empty p { margin: 0 auto; color: var(--muted); font-weight: 600; max-width: 340px; }

.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg {
  display: flex; gap: 14px;
  border: var(--border);
  background: #fff;
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-hard-sm);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
  position: relative;
}
.msg.unread::before {
  content: "";
  position: absolute; left: -3px; top: -3px;
  width: 14px; height: 14px;
  border: 2px solid #111; border-radius: 50%;
  background: var(--pink);
  box-shadow: 2px 2px 0 0 var(--ink);
}
.msg:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.msg .body { flex: 1; min-width: 0; }
.msg .content {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg .meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
  font-size: 12px; color: var(--muted); font-weight: 700;
}
.msg .meta-actions { display: flex; gap: 6px; }
.msg .meta-actions button,
.msg .meta-actions a {
  background: transparent;
  border: 0;
  font: inherit; font-weight: 800;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted);
}
.msg .meta-actions button:hover,
.msg .meta-actions a:hover { background: var(--bg-2); color: var(--ink); }
.msg .meta-actions .danger:hover { background: var(--danger); color: #fff; }
.msg .reactions {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.msg .rxn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 2px solid #111; border-radius: var(--r-pill);
  background: var(--bg-2);
  padding: 6px 12px;
  min-height: 36px;
  font-weight: 800; font-size: 12px;
  cursor: pointer;
  transition: transform .1s var(--ease), background-color .1s var(--ease);
}
.msg .rxn:hover { transform: translate(-1px, -1px); }
.msg .rxn.is-on { background: var(--accent); }

.dashboard-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 18px;
}

/* ============================================================
   404
   ============================================================ */
.notfound {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}
.notfound-card {
  max-width: 540px; text-align: center;
  padding: 48px 36px;
  border: var(--border); border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-hard-lg);
}
.notfound-card .stamp {
  display: inline-block;
  border: var(--border); border-radius: var(--r-md);
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 96px;
  background: var(--pink); color: #fff;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-hard);
  margin-bottom: 18px;
  letter-spacing: -0.05em;
}
.notfound-card h1 {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.notfound-card p {
  color: var(--muted); font-weight: 700; margin: 0 0 22px;
}

/* ============================================================
   Tooltip / toast
   ============================================================ */
.toast-stack {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 100;
}
.toast {
  background: #111; color: var(--accent);
  border: var(--border);
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-hard);
  animation: popIn .25s var(--ease);
}
.toast.ok { background: var(--green); color: #fff; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .15s var(--ease);
}
.modal {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  max-width: 420px; width: 100%;
  box-shadow: var(--shadow-hard-lg);
  animation: popIn .2s var(--ease);
}
.modal h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.modal p { color: var(--muted); font-weight: 700; margin: 0 0 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; }
  .features, .steps, .examples { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  /* Send page keeps 2 columns until 720px — most laptops (1024-1280px) still see side-by-side */
  .send-right .chips { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .send-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .send-left { position: static; align-items: center; text-align: center; }
  .send-left .page-title { text-align: center; }
  .send-left .handle { text-align: center; }
  .send-right .chips { justify-content: center; }
  .trust-badge { align-self: stretch; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .hero { padding: 36px 0 48px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .hero-cta { gap: 10px; }
  .hero-cta .btn--lg { width: 100%; }
  .hero-meta { gap: 12px; font-size: 12px; }
  .hero-visual { height: 320px; }
  .section { padding: 56px 0; }
  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .section-sub { font-size: 15px; margin: 0 0 24px; }
  .features, .steps, .examples, .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 22px; }
  .example { padding: 18px; }
  .faq details { padding: 14px 16px; }
  .stat .num { font-size: 22px; }
  .stat { padding: 12px 8px; }
  .stats { gap: 8px; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .dash-head nav, .dash-head .who { width: 100%; }
  .dash-box { padding: 22px 18px; }
  .dashboard { padding: 28px 0 64px; gap: 20px; }
  .msg { padding: 14px; gap: 10px; }
  .msg .content { font-size: 14.5px; }
  .msg .reactions { gap: 5px; }
  .msg .rxn { padding: 3px 8px; font-size: 11.5px; }
  .section-title { gap: 6px; }
  .section-title .filter button { padding: 5px 9px; font-size: 11px; }
  .nav { position: relative; }
  .nav-inner { height: auto; padding: 16px 0 14px; gap: 14px; flex-wrap: wrap; }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; gap: 6px; padding-top: 4px; border-top: 2px solid var(--line); margin-top: 2px; }
  .nav-link { padding: 8px 12px; font-size: 12.5px; min-height: 40px; display: inline-flex; align-items: center; }
  .nav-cta { padding: 11px 16px; font-size: 12.5px; min-height: 42px; }
  .auth-split { min-height: 100vh; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .auth-main { padding: 28px 18px; }
  .auth-card { padding: 28px 22px; }
  .auth-card h1 { font-size: 30px; }
  .send-card { padding: 28px 22px; }
  .send-shell { margin: 24px auto 40px; padding: 0 12px; }
  .send-left .avatar { width: 88px; height: 88px; font-size: 36px; margin-bottom: 12px; }
  .send-left .page-title { font-size: 28px; text-align: center; }
  .send-left .promise { font-size: 14px; text-align: center; }
  .send-right .chip { padding: 9px 12px; font-size: 12px; min-height: 38px; }
  .send-right .textarea { min-height: 160px; padding: 16px 18px; }
  .counter { font-size: 11px; padding: 2px 8px; }
  .notfound-card { padding: 36px 24px; }
  .notfound-card .stamp { font-size: 72px; padding: 12px 22px; }
  .big-cta-inner { padding: 48px 0; }
  .big-cta h2 { font-size: clamp(28px, 8vw, 40px); }
  .ticker-track { font-size: 16px; gap: 36px; }
  .bubble { max-width: 200px; font-size: 13px; padding: 10px 14px; }
  .feature .icon { width: 48px; height: 48px; font-size: 22px; }
  .step { padding: 24px 18px; }
  .step .num { width: 46px; height: 46px; font-size: 20px; top: -18px; left: -14px; }
  .footer { padding: 48px 0 32px; }
  .footer-grid { gap: 32px; margin-bottom: 32px; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { text-align: center; }
}

@media (max-width: 380px) {
  .nav-cta, .nav-link { padding: 10px 10px; font-size: 12px; min-height: 40px; }
  .hero h1 { font-size: 36px; }
  .send-left .page-title { font-size: 24px; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes pop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.pop { animation: pop 0.45s var(--ease); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s var(--ease) both; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-6px) rotate(var(--rot, 0deg)); }
}
.bubble, .sticker { animation: float 6s ease-in-out infinite; }
.bubble--a { --rot: -3deg; }
.bubble--b { --rot: 2deg; animation-delay: .5s; }
.bubble--c { --rot: -1deg; animation-delay: 1s; }
.bubble--d { --rot: 3deg; animation-delay: 1.5s; }
.bubble--e { --rot: 2deg; animation-delay: 2s; }

/* ============================================================
   Accessibility helpers
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
