:root {
  color-scheme: light;
  --cream: #fff7ec;
  --cream-deep: #f4e5d5;
  --paper: #fffaf4;
  --ink: #2a1517;
  --muted: #6f5b55;
  --brick: #bd472e;
  --brick-dark: #91301f;
  --blush: #f4d2c6;
  --clay: #b9784f;
  --dirt: #70422e;
  --line: #d7b8a4;
  --focus: #1155cc;
  --shadow: 0 7px 0 var(--ink);
  --font-display:
    "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  --font-body:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(244, 210, 198, 0.3),
      transparent 27rem
    ),
    var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

body::selection {
  color: var(--ink);
  background: var(--blush);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
.button {
  min-height: 48px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand > span:last-child > span {
  color: var(--brick);
}

.brand__emoji {
  display: grid;
  width: 42px;
  height: 38px;
  place-items: center;
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(42, 21, 23, 0.15));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  color: #fffaf4;
  background: var(--brick);
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.button:hover {
  background: var(--brick-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--ink);
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.button--small {
  min-height: 42px;
  padding: 8px 16px;
}

.button--secondary {
  color: var(--ink);
  background: var(--paper);
}

.button--secondary:hover {
  background: var(--cream-deep);
}

.text-link {
  font-weight: 800;
  text-decoration-color: var(--brick);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brick-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 7.7vw, 6.4rem);
}

h1 > span,
.profile-heading h1 > span {
  position: relative;
  color: var(--brick);
  white-space: nowrap;
}

h1 > span::after,
.profile-heading h1 > span::after {
  position: absolute;
  right: -4px;
  bottom: 0.03em;
  left: -4px;
  z-index: -1;
  height: 0.24em;
  border-radius: 999px;
  background: var(--blush);
  content: "";
  transform: rotate(-1.5deg);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.lede {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  padding-block: clamp(70px, 9vw, 128px);
}

.capture-form {
  max-width: 640px;
  margin-top: 34px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 11px 15px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
}

input::placeholder,
textarea::placeholder {
  color: #8c7a74;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.evidence-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.capture-form__row,
.keyword-form > div {
  display: flex;
  gap: 12px;
}

.capture-form__row input {
  flex: 1;
}

.field-note,
.small,
.optional {
  color: var(--muted);
  font-size: 0.9rem;
}

.field-note {
  margin-top: 10px;
}

.field-error {
  min-height: 1.5em;
  margin: 7px 0 0;
  color: #8e1b12;
  font-weight: 750;
}

.finds-card,
.keyword-preview,
.plan-card,
.profile-card,
.keyword-column {
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.76);
  box-shadow: var(--shadow);
}

.finds-card {
  padding: clamp(26px, 4vw, 42px);
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 11px;
  border: 2px solid var(--clay);
  border-radius: 999px;
  color: var(--brick-dark);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 900;
}

.find-meter,
.usage-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin: 28px 0 20px;
  padding: 15px;
  border-radius: 16px;
  background: var(--clay);
  list-style: none;
}

.find-meter li,
.usage-meter li {
  display: grid;
  min-height: 35px;
  place-items: center;
  border: 2px solid #6f3e2c;
  border-radius: 55% 45% 52% 48% / 48% 52% 46% 54%;
  color: var(--paper);
  background: var(--dirt);
  box-shadow: inset 0 6px 0 #49281f;
  font-size: 0.8rem;
  font-weight: 900;
}
.usage-meter li.is-used {
  opacity: 1;
  background: var(--brick);
}

.section {
  padding-block: clamp(66px, 8vw, 112px);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 42px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  list-style: none;
}

.step-grid li {
  position: relative;
  min-height: 240px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--ink);
}

.step-grid li:nth-child(2) {
  transform: rotate(0.8deg);
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 48% 52% 44% 56%;
  color: var(--paper);
  background: var(--brick);
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 900;
}

.step-grid p,
.section-heading p,
.keyword-preview p,
.closer p,
.profile-heading > p:last-child {
  color: var(--muted);
}

.keyword-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 76px);
  padding: clamp(30px, 5vw, 58px);
}

.keyword-preview__lists {
  display: grid;
  gap: 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 800;
}

.chips--include li {
  border-radius: 8px 18px 18px 8px;
  box-shadow: inset 4px 0 0 var(--brick);
}

.chips--exclude li {
  border-style: dashed;
  border-color: var(--dirt);
  border-radius: 999px;
  background: var(--cream-deep);
}

.closer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(80px, 10vw, 136px);
}

.closer h2 {
  margin-bottom: 8px;
}

.ground-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
}

.ground-footer__top p {
  margin: 0;
  color: var(--muted);
}

.ground-scene {
  height: clamp(72px, 7.64vw, 110px);
  overflow: hidden;
}

.ground-scene svg {
  display: block;
  width: 100%;
  height: 100%;
}

.app-shell,
.profile-page {
  padding-block: 32px 100px;
}

.boundary-note {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) 1fr;
  gap: 18px;
  margin-bottom: 44px;
  padding: 18px 20px;
  border: 2px dashed var(--clay);
  border-radius: 16px;
  background: rgba(244, 210, 198, 0.36);
}

.boundary-note p {
  margin: 0;
  color: var(--muted);
}

.setup-trail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 66px;
  padding: 0;
  list-style: none;
}

.setup-trail li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.setup-trail li:not(:last-child)::after {
  width: clamp(18px, 4vw, 58px);
  border-top: 3px dotted var(--line);
  content: "";
}

.setup-trail span,
.keyword-column__heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.setup-trail [aria-current="step"] {
  color: var(--ink);
}

.setup-trail [aria-current="step"] span {
  color: var(--paper);
  background: var(--brick);
  box-shadow: 0 3px 0 var(--ink);
}

.setup-panel {
  max-width: 760px;
  margin-inline: auto;
}

.setup-panel--wide {
  max-width: 1040px;
}

.setup-panel h1,
.profile-heading h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.setup-panel form:not(.keyword-form) {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin-top: 34px;
}

.setup-panel form:not(.keyword-form) .button {
  justify-self: start;
  margin-top: 8px;
}

.service-boundary {
  margin: 34px 0;
  padding: 22px;
  border-left: 8px solid var(--brick);
  border-radius: 0 16px 16px 0;
  background: var(--paper);
}

.service-boundary p {
  margin: 6px 0 0;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button-row--end {
  justify-content: flex-end;
  margin-top: 28px;
}

.keyword-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.keyword-column {
  min-width: 0;
  padding: 26px;
}

.keyword-column__heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.keyword-column__heading > span {
  flex: 0 0 auto;
  color: var(--paper);
  background: var(--brick);
  font-weight: 900;
}

.keyword-column__heading h2 {
  margin-bottom: 5px;
  font-size: 1.55rem;
}

.keyword-column__heading p {
  color: var(--muted);
  font-size: 0.92rem;
}

.editable-chips {
  min-height: 54px;
  margin: 22px 0;
}

.editable-chips:empty::after {
  color: var(--muted);
  content: "No terms yet.";
  font-style: italic;
}

.chip-remove {
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.chip-remove:hover {
  background: var(--blush);
}

.keyword-form > div input {
  min-width: 0;
}

.recently-removed {
  margin-top: 22px;
  padding: 20px;
  border: 2px dashed var(--line);
  border-radius: 16px;
}

.recently-removed h2 {
  font-size: 1rem;
}

.recently-removed ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recently-removed button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--dirt);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.status-message {
  min-height: 1.5em;
  margin-top: 18px;
  color: var(--brick-dark);
  font-weight: 800;
  text-align: right;
}

.profile-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 28px;
}

.plan-card,
.profile-card {
  padding: clamp(24px, 4vw, 38px);
}

.plan-card {
  position: sticky;
  top: 22px;
}

.plan-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.plan-card h2,
.profile-card h2 {
  font-size: 1.65rem;
}

.usage {
  display: grid;
  gap: 12px;
  margin-block: 28px 8px;
}

.usage strong {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.usage--unavailable strong {
  max-width: 8ch;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.95;
}

.usage--unavailable + .usage-meter {
  opacity: 0.42;
}

.usage span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.usage-meter {
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  padding: 8px;
}

.usage-meter li {
  min-height: 20px;
  background: #9d6e59;
  box-shadow: inset 0 4px 0 #684332;
  opacity: 0.5;
}

.plan-callout,
.tester-note {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed var(--line);
}

.plan-callout span,
.tester-note span {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-sections {
  display: grid;
  gap: 22px;
}
.forwarding-control {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
  width: 100%;
}
.forwarding-control input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 0.9rem;
}
.forwarding-control .button {
  justify-self: start;
}
.forwarding-control .button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}
.forwarding-control p:empty {
  display: none;
}
[data-forwarding-description]:empty {
  display: none;
}
.profile-card[data-forwarding-section] {
  grid-template-columns: minmax(0, 1fr);
}
[data-forwarding-claim] {
  display: grid;
  gap: 0.8rem;
}
[data-forwarding-claim] .button {
  justify-self: start;
}
[data-forwarding-claim] input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
[data-forwarding-claim] label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
}
[data-profile-link] {
  overflow-wrap: anywhere;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) 1fr;
  gap: 28px;
}

.profile-card > p {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.profile-keywords {
  display: grid;
  gap: 20px;
}

@media (max-width: 800px) {
  .hero,
  .keyword-preview,
  .profile-layout {
    grid-template-columns: 1fr;
  }

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

  .step-grid li {
    min-height: 0;
  }

  .keyword-editor {
    grid-template-columns: 1fr;
  }

  .plan-card {
    position: static;
  }

  .ground-footer__top,
  .closer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 78px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand__emoji {
    width: 36px;
    font-size: 1.55rem;
  }

  .hero {
    gap: 54px;
    padding-block: 54px 82px;
  }

  h1,
  .setup-panel h1,
  .profile-heading h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .capture-form__row,
  .keyword-form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .finds-card,
  .keyword-preview,
  .plan-card,
  .profile-card,
  .keyword-column {
    border-radius: 19px;
  }

  .boundary-note,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .setup-trail {
    gap: 6px;
  }

  .setup-trail li {
    gap: 5px;
    font-size: 0.72rem;
  }

  .setup-trail span {
    width: 31px;
    height: 31px;
  }

  .setup-trail li:not(:last-child)::after {
    width: 10px;
  }

  .usage {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .button,
  .wallow-sheen {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
