:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --surface: #fffdf8;
  --ink: #182524;
  --muted: #536260;
  --line: #d8d5cb;
  --coral: #c94739;
  --coral-dark: #922f27;
  --mint: #cde7dc;
  --mint-dark: #165d53;
  --warning: #fff0cf;
  --danger: #a52c25;
  --shadow: 0 18px 48px rgba(35, 51, 48, 0.12);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  overflow-wrap: break-word;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--mint-dark);
  text-underline-offset: 0.18em;
}

button,
input,
summary {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #126b91;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset: 10px auto auto 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(83, 98, 96, 0.22);
  background: rgba(247, 244, 237, 0.96);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
}

.brand-small {
  min-height: 36px;
  font-size: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav > a,
.language-menu summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.main-nav > a:hover,
.main-nav > a[aria-current="page"],
.language-menu summary:hover {
  background: var(--mint);
}

.language-menu {
  position: relative;
}

.language-menu summary {
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu ul {
  position: absolute;
  right: 0;
  z-index: 30;
  width: max-content;
  min-width: 178px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 8px 0 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  list-style: none;
}

[dir="rtl"] .language-menu ul {
  right: auto;
  left: 0;
}

[dir="rtl"] .language-menu a {
  text-align: right;
}

#post-url {
  direction: ltr;
  text-align: left;
}

.language-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.language-menu a:hover,
.language-menu a[aria-current="page"] {
  background: var(--paper);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 44px;
  background:
    radial-gradient(circle at 10% 8%, rgba(205, 231, 220, 0.95) 0 13%, transparent 31%),
    linear-gradient(145deg, #f7f4ed 40%, #f1e9db 100%);
}

.hero::after {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -88px;
  bottom: -88px;
  border: 22px solid rgba(201, 71, 57, 0.12);
  border-radius: 48px;
  content: "";
  transform: rotate(12deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 9px;
  color: var(--coral-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

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

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 15ch;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 8vw, 4.3rem);
}

h2 {
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

h3 {
  font-size: 1.08rem;
}

.hero-intro {
  max-width: 57ch;
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 1.08rem;
}

.promise-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise-list li::before {
  margin-right: 9px;
  color: var(--mint-dark);
  content: "✓";
  font-weight: 900;
}

.tool-card {
  min-width: 0;
  padding: clamp(18px, 5vw, 30px);
  border: 1px solid rgba(24, 37, 36, 0.13);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.tool-heading h2,
.tool-heading p {
  margin-bottom: 2px;
}

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

.tool-icon {
  display: grid;
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px 15px 18px 18px;
  background: var(--mint);
  color: var(--mint-dark);
  font-size: 1.5rem;
  font-weight: 900;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 750;
}

.url-field {
  position: relative;
}

.url-field input {
  width: 100%;
  min-height: 54px;
  padding: 11px 90px 11px 13px;
  border: 2px solid #abb2ac;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.url-field input:hover {
  border-color: var(--muted);
}

.url-field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-tools {
  position: absolute;
  inset: 5px 5px 5px auto;
  display: flex;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  padding: 9px 15px;
  cursor: pointer;
  font-weight: 780;
  text-decoration: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.63;
}

.button-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 5px 0 var(--coral-dark);
}

.button-primary:hover:not(:disabled) {
  background: #b93b31;
  transform: translateY(1px);
  box-shadow: 0 4px 0 var(--coral-dark);
}

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

.button-quiet {
  padding-inline: 11px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
}

.submit-button {
  width: 100%;
  margin-top: 13px;
}

.rights-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.tool-status {
  min-height: 1.7em;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-status[aria-busy="true"]::before {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin-right: 8px;
  border: 2px solid var(--line);
  border-top-color: var(--coral);
  border-radius: 50%;
  content: "";
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}
