/* Letsafely by Hastech — teal / white, system fonts only, no external assets. */
:root {
  --teal-900: #0a4f49;
  --teal-800: #0c5c56;
  --teal-700: #0f6f67;
  --teal-600: #147f76;
  --teal-100: #e6f4f2;
  --teal-50: #f3faf9;
  --ink: #16302d;
  --muted: #3d5552;
  --line: #c5dbd7;
  --card: #ffffff;
  --danger: #8c1d18;
  --danger-bg: #fdecec;
  --focus: #0a4f49;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(10, 79, 73, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--teal-50);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  font-size: 1rem;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--teal-900);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--teal-800);
  color: #fff;
  padding: 1.25rem 0;
  margin-bottom: 1rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}

.brand {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand .by {
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.92;
}
.placeholder-note {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #e8f6f4;
}

.today-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #e8f6f4;
}
.today-field input {
  border: 1px solid #9ad4cd;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.disclaimer {
  background: #fff8e8;
  border: 1px solid #e4d2a3;
  color: #3d3416;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
}
.disclaimer p { margin: 0; }

.layout {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

h1, h2 {
  margin: 0 0 0.75rem;
  color: var(--teal-900);
  font-size: 1.2rem;
}
.card-head h1 { margin-bottom: 0; }

.muted { color: var(--muted); font-size: 0.95rem; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--teal-100);
  padding: 0.05em 0.3em;
  border-radius: 4px;
}

.field { display: grid; gap: 0.3rem; margin-bottom: 0.9rem; }
.row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .row { grid-template-columns: 1fr 1fr; }
}

label, legend {
  font-weight: 600;
  color: var(--teal-900);
}
.choice {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 500;
  margin: 0.25rem 0;
  color: var(--ink);
}
.choice.tight { margin-bottom: 0.6rem; }

fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.9rem;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #9fb9b5;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}
textarea { resize: vertical; min-height: 10rem; }

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
.property-list button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.btn {
  appearance: none;
  border: 0;
  background: var(--teal-700);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}
.btn:hover { background: var(--teal-900); }
.btn-secondary {
  background: var(--teal-100);
  color: var(--teal-900);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: #d7eeeb; }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid #e3b2af;
}
.btn-danger:hover { background: var(--danger-bg); }

.property-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.property-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.55rem;
  background: var(--teal-50);
}
.property-list li[aria-current="true"] {
  border-color: var(--teal-700);
  background: var(--teal-100);
}
.property-list .pick {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  flex: 1;
  padding: 0.25rem;
}

.checklist-item {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.checklist-item:first-child { border-top: 0; }
.checklist-item .hint { margin: 0.2rem 0 0.5rem; }
.renewal-flags { margin: 0.4rem 0 0; font-size: 0.9rem; }
.renewal-flags span {
  display: inline-block;
  margin: 0.15rem 0.35rem 0 0;
  background: var(--teal-100);
  color: var(--teal-900);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.errors {
  margin-top: 0.9rem;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}
.errors ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }

.task-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.task-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: var(--teal-50);
}
.task-list .when {
  font-weight: 700;
  color: var(--teal-900);
}
.task-list .type {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-800);
}
.task-list p { margin: 0.2rem 0 0; }

.empty { margin: 0.6rem 0 0; color: var(--muted); }

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.stores-line {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}
.header-actions {
  max-width: 24rem;
}
.btn-placeholder {
  background: #fff;
  color: var(--teal-900);
  border: 2px dashed #7ec4bc;
}
.btn-placeholder::before {
  content: "PLACEHOLDER";
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #fff3c4;
  color: #5a3d00;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.btn-placeholder:hover { background: #f3faf9; }
.notify-note {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: #fff3c4;
}
.hero {
  background: linear-gradient(180deg, var(--teal-100) 0%, var(--teal-50) 72%);
  padding: 0.25rem 0 2rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin: 0 0 0.65rem;
  line-height: 1.2;
}
.hero-lead {
  margin: 0;
  max-width: 46rem;
  font-size: 1.05rem;
}
.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  margin-top: 1.25rem;
}
.hero-panel h2 {
  margin-top: 1.25rem;
}
.below-hero {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 3rem;
}
.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}
input[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.btn:disabled,
.btn:disabled:hover {
  background: #9bb8b4;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}
