:root {
  --plum: #4d2745;
  --aubergine: #64335b;
  --rose: #f7c9be;
  --cream: #fff8f1;
  --paper: #fffdf9;
  --mist: #e9e5f6;
  --sage: #9cb7a2;
  --ink: #221827;
  --muted: #6f6170;
  --line: rgba(77, 39, 69, 0.14);
  --shadow: 0 24px 70px rgba(77, 39, 69, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 248, 241, 0.96), rgba(255, 253, 249, 0.9)),
    radial-gradient(circle at 18% 20%, rgba(247, 201, 190, 0.72), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(156, 183, 162, 0.32), transparent 22%),
    linear-gradient(135deg, #fff8f1 0%, #fffdf9 48%, #f3ece8 100%);
}

body.reset-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--plum);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--plum);
  position: relative;
  box-shadow: 0 10px 24px rgba(77, 39, 69, 0.2);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  height: 5px;
  border-bottom: 3px solid var(--rose);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.topbar-link,
.text-link {
  color: var(--plum);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero {
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding: clamp(34px, 7vh, 86px) 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(32px, 7vw, 82px);
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 22px;
  padding: 9px 12px;
  border: 1px solid rgba(156, 183, 162, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #3f6049;
  font-size: 13px;
  font-weight: 750;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
}

.hero h1,
.reset-card h1 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  font-weight: 850;
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--plum), var(--aubergine));
  color: white;
  box-shadow: 0 14px 30px rgba(77, 39, 69, 0.24);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.visual-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.82), rgba(255, 248, 241, 0.72)),
    linear-gradient(135deg, rgba(233, 229, 246, 0.7), rgba(247, 201, 190, 0.42));
  box-shadow: var(--shadow);
}

.journal-sheet {
  position: absolute;
  inset: 58px 44px 92px;
  padding: 28px;
  border: 1px solid rgba(77, 39, 69, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 18px 46px rgba(77, 39, 69, 0.12);
}

.sheet-row {
  height: 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(100, 51, 91, 0.14);
}

.sheet-row.short {
  width: 56%;
  background: rgba(156, 183, 162, 0.35);
}

.sheet-row.medium {
  width: 76%;
}

.mood-strip {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mood {
  min-height: 64px;
  border: 1px solid rgba(77, 39, 69, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.mood:nth-child(2) {
  background: rgba(247, 201, 190, 0.5);
}

.mood:nth-child(3) {
  background: rgba(156, 183, 162, 0.38);
}

.mood:nth-child(4) {
  background: rgba(233, 229, 246, 0.72);
}

.floating-note {
  position: absolute;
  right: 24px;
  top: 28px;
  width: 168px;
  padding: 18px;
  border-radius: 8px;
  background: var(--plum);
  color: white;
  box-shadow: 0 18px 40px rgba(77, 39, 69, 0.25);
}

.note-line {
  height: 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.note-line:last-child {
  width: 62%;
  margin-bottom: 0;
  background: var(--rose);
}

.reset-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 48px;
  align-items: center;
}

.brand-panel {
  padding: 28px;
}

.logo {
  margin: 0 0 18px;
  color: var(--plum);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: 0;
}

.scribble {
  width: 150px;
  height: 12px;
  margin-top: -8px;
  margin-left: 78px;
  border-bottom: 6px solid var(--plum);
  border-radius: 100%;
  transform: rotate(3deg);
  opacity: 0.92;
}

.tagline {
  max-width: 340px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.illustration-card {
  position: relative;
  min-height: 190px;
  max-width: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 50px rgba(77, 39, 69, 0.08);
}

.sun {
  position: absolute;
  top: 48px;
  right: 84px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fdc3a0;
}

.wave {
  position: absolute;
  left: -20px;
  right: -20px;
  height: 95px;
  border-radius: 50% 50% 0 0;
}

.wave.one {
  bottom: 18px;
  background: rgba(247, 201, 190, 0.8);
  transform: rotate(-2deg);
}

.wave.two {
  bottom: -8px;
  background: rgba(148, 123, 190, 0.58);
  transform: rotate(3deg);
}

.wave.three {
  bottom: -34px;
  background: rgba(77, 39, 69, 0.55);
}

.quote-card {
  display: flex;
  max-width: 390px;
  margin-top: 24px;
  padding: 26px;
  align-items: center;
  gap: 18px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--plum), var(--aubergine));
  box-shadow: 0 18px 50px rgba(77, 39, 69, 0.18);
}

.face {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fdc3a0;
}

.face::before,
.face::after {
  content: "";
  position: absolute;
  top: 25px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid var(--plum);
  border-radius: 0 0 8px 8px;
}

.face::before {
  left: 16px;
}

.face::after {
  right: 16px;
}

.quote-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.reset-card {
  width: 100%;
  padding: 34px;
  border: 1px solid rgba(77, 39, 69, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.reset-card header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--plum);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reset-card h1 {
  font-size: 30px;
  line-height: 1.15;
}

.intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

label {
  display: block;
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  background: rgba(255, 248, 241, 0.66);
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus {
  border-color: rgba(100, 51, 91, 0.55);
  background: white;
  box-shadow: 0 0 0 4px rgba(100, 51, 91, 0.1);
}

.helper {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.message {
  min-height: 22px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.error {
  color: #9f2d38;
}

.success {
  color: #047857;
}

.footer-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.not-found {
  width: min(680px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.not-found h1 {
  margin: 0;
  color: var(--plum);
  font-size: clamp(44px, 8vw, 80px);
  line-height: 1;
}

.not-found p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .topbar {
    width: min(520px, calc(100% - 32px));
  }

  .topbar-link {
    font-size: 14px;
  }

  .hero {
    width: min(520px, calc(100% - 32px));
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 68px);
  }

  .visual-panel {
    min-height: 420px;
  }

  .journal-sheet {
    inset: 54px 22px 86px;
    padding: 22px;
  }

  body.reset-body {
    align-items: flex-start;
  }

  .reset-shell {
    max-width: 480px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .brand-panel {
    padding: 10px 4px 0;
  }

  .tagline {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .illustration-card,
  .quote-card {
    display: none;
  }

  .reset-card {
    padding: 28px 22px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero {
    width: calc(100% - 48px);
    max-width: 342px;
    margin-left: 24px;
    margin-right: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .topbar-link {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-copy {
    max-width: 300px;
  }

  .button {
    width: 100%;
  }

  .visual-panel {
    min-height: 360px;
    max-width: 342px;
  }

  .floating-note {
    right: 18px;
    width: 138px;
  }
}

@media (max-width: 440px) {
  .hero h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .hero-copy {
    font-size: 17px;
  }
}
