:root {
  color-scheme: light;
  --bg: #f4efe6;
  --ink: #161616;
  --muted: #4b4b4b;
  --line: #cfc4b2;
  --card: #fffaf2;
  --accent: #0c3d2e;
  --accent-ink: #f4efe6;
  --danger: #8b1e1e;
  --ok: #0c3d2e;
  --focus: #0b5cab;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.1rem 3rem;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.tagline, .price { font-weight: 600; }
.limit, .examples, p { color: var(--ink); }
.limit { font-size: 0.95rem; }

form.go, .upgrade, article.legal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}

.row { display: grid; gap: 0.25rem; margin: 0.7rem 0; }

label { font-weight: 600; }

input[type="text"], input[type="email"], input[type="url"], input:not([type]), input[inputmode="url"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.switches {
  border: 0;
  margin: 0.8rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.switches label { font-weight: 500; }

button, .copy {
  min-height: 2.8rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.error { color: var(--danger); font-weight: 700; }
.notice { color: var(--ok); font-weight: 600; }

.examples { padding-left: 1.1rem; }

footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

a { color: var(--accent); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 1.2rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
}

form.inline { display: inline; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.copy { font-size: 0.85rem; min-height: 2rem; margin-left: 0.4rem; }


.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 1.1rem;
}

.brand img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: transparent;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.switch-ui {
  position: relative;
  box-sizing: border-box;
  width: 2.75rem;
  height: 1.5rem;
  flex: 0 0 auto;
  background: #b9b0a2;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: background 0.15s ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  top: 50%;
  left: 0.12rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink);
  transform: translateY(-50%);
  transition: transform 0.15s ease, left 0.15s ease;
}

.switch input:checked + .switch-ui {
  background: var(--accent);
}

.switch input:checked + .switch-ui::after {
  left: calc(100% - 0.12rem - 1.05rem);
  transform: translateY(-50%);
}

.switch input:focus-visible + .switch-ui {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.copy-link {
  display: inline;
  min-height: 0;
  padding: 0;
  margin-left: 0.35rem;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.copy-link:hover {
  color: var(--ink);
}

