@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Jost:wght@500&display=swap');

:root {
  /* Brand palette */
  --brand-ink:    #211F1A;
  --brand-cream:  #EDE6DC;
  --brand-orange: #CF5F3A;
  --brand-olive:  #3C3B1E;
  --brand-gold:   #C99A4B;

  /* UI tokens */
  --bg:       #EDE6DC;
  --bg-2:     #E4DDD0;
  --ink:      #211F1A;
  --muted:    #5A5640;
  --accent:   #CF5F3A;
  --card-bg:  #EDE6DC;
  --border:   #D4CCC0;
}


* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 48px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 600;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

.cta {
  display: inline-block;
  color: var(--brand-cream);
  background: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}

.cta:hover {
  opacity: 0.85;
}

footer {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Landing page ────────────────────────────────────────────────────────── */

body.landing {
  flex-direction: column;
  gap: 0;
}

.landing-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 32px 48px;
  max-width: 480px;
  width: 100%;
}

.landing-mark {
  position: relative;
  width: 170px;
  margin-bottom: 36px;
}

.landing-tiger {
  display: block;
  width: 170px;
  mix-blend-mode: multiply;
}

.landing-moon {
  position: absolute;
  top: -4px;
  left: 12px;
  width: 30px;
  mix-blend-mode: multiply;
}

.landing-wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 2.6rem;
  letter-spacing: 0.22em;
  color: var(--brand-ink);
  margin: 0 0 20px;
  line-height: 1;
}

.landing-rule {
  width: 48px;
  height: 1.5px;
  background: var(--brand-gold);
  margin: 0 auto 20px;
  border: none;
}

.landing-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 32px;
  font-weight: 500;
}

.landing-lede {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin: 0 0 36px;
}

.landing footer {
  color: var(--muted);
  font-size: 0.78rem;
  padding-bottom: 32px;
}

/* ── Dashboard ───────────────────────────────────────────────────────────── */

.dashboard body {
  align-items: flex-start;
  padding: 32px 24px;
}

.dashboard .wrap {
  max-width: 800px;
  margin: 0 auto;
  align-items: stretch;
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar .eyebrow {
  margin: 0;
  text-align: left;
}

.username {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.logout-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}

.logout-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Accordion container ─────────────────────────────────────────────────── */
.accordion {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

/* ── Accordion trigger ───────────────────────────────────────────────────── */
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background 0.12s ease;
}

.accordion-trigger:hover {
  background: var(--bg);
}

.accordion-trigger-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.accordion-trigger::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b675f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 8 11 13 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.25s ease;
}

.accordion-item.is-open .accordion-trigger::after {
  transform: rotate(180deg);
}

/* ── Accordion body — grid height animation ──────────────────────────────── */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.accordion-item.is-open .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-body-inner {
  overflow: hidden;
}

.accordion-body-content {
  padding: 4px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

/* ── Stack list ──────────────────────────────────────────────────────────── */
.proton-note {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 16px 0;
}

.proton-note strong {
  color: var(--ink);
}

.stack-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
}

.stack-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}

.stack-row:last-child {
  border-bottom: none;
}

a.stack-row:hover {
  background: var(--bg);
}

.stack-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.stack-row-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.stack-row-notes {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}

.stack-row-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent);
}

.stack-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.stack-row-user {
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
}

.stack-row-url {
  font-size: 0.75rem;
  color: var(--muted);
}

.subsection-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted);
  margin: 20px 0 10px 4px;
}

/* ── Branding ────────────────────────────────────────────────────────────── */
.brand-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.color-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.swatch-block {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.swatch-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.swatch-value {
  font-size: 0.7rem;
  color: var(--muted);
}

.logo-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-placeholder {
  width: 160px;
  height: 100px;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--card-bg);
}

.empty-note {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 4px;
}

.dashboard footer {
  align-self: center;
}

/* ── To-Do list ──────────────────────────────────────────────────────────── */
.todo-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.todo-group-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted);
  margin: 20px 0 8px 4px;
}

.todo-group-label:first-child {
  margin-top: 8px;
}

.todo-items {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
}

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}

.todo-item:last-child {
  border-bottom: none;
}

.todo-item:hover {
  background: var(--bg);
}

.todo-item input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.todo-item-text {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
  cursor: pointer;
  flex: 1;
}

.todo-item.is-done .todo-item-text {
  text-decoration: line-through;
  color: var(--muted);
}

.priority-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
}

.priority-high {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.priority-medium {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.priority-low {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ── Asset downloads ─────────────────────────────────────────────────────── */
.asset-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.asset-dl {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
