:root {
  --ink: #171510;
  --ink-soft: #4e493f;
  --muted: #756e61;
  --line: #d8d0bf;
  --paper: #f7f4ea;
  --surface: #fffdf8;
  --lime: #d8ff3c;
  --blue: #315fd5;
  --green: #18754e;
  --red: #b83b25;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --body: Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 21, 16, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 16, 0.032) 1px, transparent 1px), var(--paper);
  background-size: 48px 48px;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 12px;
}

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

.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 234, 0.92);
  backdrop-filter: blur(8px);
}

.masthead .shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.lockup-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--lime);
  font: 700 13px/1 var(--mono);
  transform: skewX(-10deg);
}

.lockup-name {
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--lime);
  text-underline-offset: 5px;
}

nav .nav-primary {
  padding: 7px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
}

nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

nav .language {
  min-width: 38px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: 700 10px/1 var(--mono);
}

.hero {
  min-height: calc(100vh - 150px);
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.eyebrow,
.solution-label {
  margin: 0 0 16px;
  color: var(--muted);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: 0.15em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 6.1vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  word-break: keep-all;
}

h1 mark {
  color: inherit;
  background: linear-gradient(transparent 60%, var(--lime) 60% 92%, transparent 92%);
}

.problem-copy {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.solution-card {
  padding: clamp(24px, 3.2vw, 38px);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--lime);
}

.solution-card h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.16;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.solution-copy {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
}

.solution-copy strong {
  color: var(--ink);
}

.outcomes {
  display: grid;
  gap: 9px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.outcomes li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.signal {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 12px/1 var(--mono);
}

.signal.exact {
  color: var(--green);
}

.signal.site {
  color: var(--blue);
}

.signal.none {
  color: var(--red);
}

.button {
  min-height: 52px;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 12px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  color: var(--ink);
  font: 800 16px/1.2 var(--body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

.button.primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.secondary {
  min-height: 40px;
  background: var(--surface);
  font-size: 13px;
}

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

.bookmarklet-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 13px;
  margin-top: 13px;
}

.bm-button {
  width: auto;
  min-width: 154px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: grab;
}

.bm-button:active {
  cursor: grabbing;
}

.drag-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.drag-hint strong {
  color: var(--ink);
  box-shadow: inset 0 -0.4em 0 var(--lime);
}

.bookmarklet-icon {
  font: 800 17px/1 var(--mono);
}

.text-action {
  min-height: 40px;
  display: grid;
  place-items: center;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  text-underline-offset: 3px;
}

.trust-line {
  margin: 13px 0 0;
  color: var(--muted);
  font: 700 10px/1.5 var(--mono);
  text-align: center;
}

.trial-boundary {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
}

.mobile-handoff {
  display: none;
  gap: 10px;
  margin-top: 22px;
}

.mobile-handoff > strong {
  font-size: 15px;
  text-align: center;
}

.mobile-handoff [role='status'] {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.mobile-handoff-fallback {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font: 11px/1.4 var(--mono);
}

footer {
  border-top: 1px solid var(--line);
}

.footer-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.footer-row a {
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .masthead .shell {
    min-height: 62px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 46px 0 58px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  h1 {
    font-size: clamp(47px, 12vw, 70px);
  }

  .problem-copy {
    margin-top: 22px;
  }

  .solution-card {
    box-shadow: 6px 6px 0 var(--lime);
  }

  .footer-row {
    padding: 22px 0;
    flex-wrap: wrap;
  }
}

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

  .masthead .shell {
    gap: 10px;
  }

  .lockup-name {
    display: none;
  }

  nav {
    gap: 8px;
  }

  nav a {
    font-size: 11px;
  }

  nav .nav-guide {
    display: none;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(43px, 13.7vw, 62px);
  }

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

  .solution-card {
    padding: 24px 20px;
  }

  .solution-card h2 {
    font-size: 29px;
  }

  .bookmarklet-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bm-button {
    width: 100%;
  }

  .drag-hint {
    text-align: center;
  }
}

@media (hover: none) and (pointer: coarse) {
  .desktop-actions {
    display: none;
  }

  .mobile-handoff {
    display: grid;
  }
}

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