:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --mist: #eef3f6;
  --paper: #f7fafb;
  --line: rgba(26, 35, 50, 0.1);
  --teal: #0b6e6a;
  --teal-deep: #085652;
  --teal-soft: rgba(11, 110, 106, 0.12);
  --ember: #c45c26;
  --ember-soft: rgba(196, 92, 38, 0.12);
  --ok: #1a7a4c;
  --ok-soft: rgba(26, 122, 76, 0.12);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(26, 35, 50, 0.08);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(11, 110, 106, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(165deg, #e8eef2 0%, var(--mist) 45%, #e4ebe8 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-deep);
}

.page {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 3.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  animation: rise 0.6s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero {
  margin-bottom: 1.75rem;
  animation: rise 0.7s ease 0.05s both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 4.5vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.hero-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

.hero-lead em {
  font-style: normal;
  color: var(--ember);
  font-weight: 600;
}

.panel {
  background: color-mix(in srgb, var(--paper) 92%, white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  animation: rise 0.75s ease 0.1s both;
}

.panel + .panel,
.features,
.security {
  margin-top: 1.25rem;
}

.security {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 110, 106, 0.22);
  background:
    linear-gradient(145deg, rgba(11, 110, 106, 0.1), rgba(247, 250, 251, 0.85) 55%),
    rgba(247, 250, 251, 0.9);
  animation: rise 0.78s ease 0.12s both;
}

.security h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  letter-spacing: -0.03em;
  color: var(--teal-deep);
}

.security-lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 48ch;
}

.security-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.security-list li {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.security-list strong {
  color: var(--ink);
  font-weight: 700;
}

.security-list code,
.hint code,
.read-state code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal-deep);
}

label.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

textarea,
input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.5;
}

textarea:focus,
input[type="text"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 12px;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s, opacity 0.2s, color 0.2s;
}

a.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn:not(:disabled):active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:not(:disabled):hover,
a.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:not(:disabled):hover,
a.btn-secondary:hover {
  background: rgba(26, 35, 50, 0.04);
  color: var(--ink);
}

.btn-danger {
  background: var(--ember);
  color: #fff;
}

.btn-danger:not(:disabled):hover,
a.btn-danger:hover {
  background: #a84b1d;
  color: #fff;
}

.btn-block {
  width: 100%;
}

.features {
  display: grid;
  gap: 0.85rem;
  animation: rise 0.8s ease 0.15s both;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(247, 250, 251, 0.65);
  backdrop-filter: blur(6px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-deep);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon.is-ember {
  background: var(--ember-soft);
  color: var(--ember);
}

.feature h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.result-panel {
  text-align: left;
}

.result-panel[hidden],
#createform[hidden],
.gone[hidden] {
  display: none !important;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.result-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.result-panel .hint {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: stretch;
}

.link-box {
  cursor: pointer;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 50;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(26, 35, 50, 0.25);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.read-state {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.read-state .state-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 18px;
  object-fit: cover;
}

.read-state h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  letter-spacing: -0.03em;
}

.read-state p {
  margin: 0 auto 1.35rem;
  max-width: 36ch;
  color: var(--ink-soft);
}

.note-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.5;
  min-height: 220px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

.burn-notice {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--ember-soft);
  color: #8a3f16;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  animation: rise 0.85s ease 0.2s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .page {
    padding-top: 2.5rem;
  }

  .panel {
    padding: 1.65rem;
  }

  .security {
    padding: 1.55rem 1.45rem;
  }

  .security-list {
    grid-template-columns: 1fr 1fr;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .features .feature:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  textarea {
    min-height: 260px;
  }
}

@media (max-width: 420px) {
  .link-row {
    grid-template-columns: 1fr;
  }

  .brand-tag {
    display: none;
  }
}

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