:root {
  --bg: #f2f0e7;
  --paper: #fffef8;
  --ink: #1c1d18;
  --muted: #606257;
  --line: #d8d6c9;
  --accent: #d9ff4f;
  --accent-strong: #bde51b;
  --coral: #ff694b;
  --sky: #b8e8ff;
  --shadow: 0 18px 50px rgba(28, 29, 24, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-sans: "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(28, 29, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 29, 24, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 5%, rgba(217, 255, 79, 0.35), transparent 28rem),
    radial-gradient(circle at 92% 22%, rgba(184, 232, 255, 0.35), transparent 26rem);
  content: "";
  pointer-events: none;
}

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

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button {
  cursor: pointer;
}

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

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

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  top: 7px;
  left: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark::after {
  right: 6px;
  bottom: 6px;
  width: 13px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: skew(-24deg);
}

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

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255, 254, 248, 0.72);
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: 670px;
  padding-block: 60px 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

h1 em {
  position: relative;
  display: inline-block;
  font-style: italic;
}

h1 em::after {
  position: absolute;
  right: -0.04em;
  bottom: -0.07em;
  left: 0.02em;
  height: 0.13em;
  border-radius: 999px;
  background: var(--coral);
  content: "";
  transform: rotate(-1.5deg);
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 760;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--accent);
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-coral {
  background: var(--coral);
  color: #1b1c18;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.button-small {
  min-height: 40px;
  padding: 8px 14px;
  border-width: 1px;
  font-size: 0.86rem;
}

.hero-art {
  position: relative;
  min-height: 500px;
}

.art-frame {
  position: absolute;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: 10px 12px 0 var(--ink);
}

.art-frame-one {
  inset: 18px 70px 150px 0;
  background:
    linear-gradient(135deg, rgba(255, 105, 75, 0.88), rgba(255, 202, 72, 0.9)),
    var(--coral);
  transform: rotate(-4deg);
}

.art-frame-one::before {
  position: absolute;
  inset: 18% 12% 12% 16%;
  border: 2px solid rgba(28, 29, 24, 0.86);
  border-radius: 50%;
  content: "";
}

.art-frame-one::after {
  position: absolute;
  right: 12%;
  bottom: 11%;
  width: 42%;
  height: 28%;
  border: 2px solid rgba(28, 29, 24, 0.86);
  background: var(--paper);
  content: "";
  transform: rotate(8deg);
}

.art-frame-two {
  right: 0;
  bottom: 30px;
  width: 58%;
  height: 50%;
  background: var(--sky);
  transform: rotate(5deg);
}

.art-frame-two::before {
  position: absolute;
  top: 20%;
  left: 15%;
  width: 54%;
  height: 12%;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 26px 0 rgba(28, 29, 24, 0.35), 0 52px 0 rgba(28, 29, 24, 0.18);
  content: "";
}

.art-label {
  position: absolute;
  top: 8px;
  right: 24px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.art-check {
  position: absolute;
  bottom: 0;
  left: 15%;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 2.5rem;
  font-weight: 900;
  transform: rotate(-8deg);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--ink);
  background: var(--paper);
}

.trust-item {
  padding: 22px 28px;
  text-align: center;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--ink);
}

.trust-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.96rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding-block: clamp(68px, 9vw, 116px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2,
.article-heading {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-heading p {
  margin-bottom: 6px;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.tool-card {
  position: relative;
  display: flex;
  grid-column: span 4;
  min-height: 270px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tool-card:nth-child(1),
.tool-card:nth-child(4) {
  grid-column: span 7;
}

.tool-card:nth-child(2),
.tool-card:nth-child(5) {
  grid-column: span 5;
}

.tool-card:nth-child(3) {
  grid-column: span 12;
  min-height: 210px;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 9px 0 var(--ink);
}

.tool-card:nth-child(1) {
  background: var(--accent);
}

.tool-card:nth-child(2) {
  background: var(--sky);
}

.tool-card:nth-child(3) {
  background: #ffd8c9;
}

.tool-card:nth-child(4) {
  background: #ece7ff;
}

.tool-card:nth-child(5) {
  background: #fff6c9;
}

.tool-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 850;
}

.tool-card h3 {
  max-width: 18ch;
  margin: 40px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.tool-card p {
  max-width: 46ch;
  margin-bottom: 0;
  color: rgba(28, 29, 24, 0.7);
}

.tool-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
}

.page-hero {
  padding-block: clamp(54px, 8vw, 100px) 42px;
}

.page-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.9rem, 6.3vw, 5.8rem);
}

.page-hero .hero-copy {
  max-width: 720px;
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: start;
  margin-bottom: clamp(72px, 9vw, 116px);
}

.tool-shell {
  padding: clamp(20px, 3.5vw, 38px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.tool-aside {
  position: sticky;
  top: 22px;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 248, 0.7);
  backdrop-filter: blur(12px);
}

.tool-aside h2 {
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.tool-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-aside li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-aside li::before {
  position: absolute;
  top: 19px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.upload-zone {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 34px 24px;
  border: 2px dashed rgba(28, 29, 24, 0.5);
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(217, 255, 79, 0.2), transparent 62%),
    rgba(242, 240, 231, 0.55);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.upload-zone.is-drag {
  border-color: var(--coral);
  background: rgba(255, 105, 75, 0.1);
  transform: scale(1.01);
}

.upload-zone.is-ready {
  min-height: 220px;
  background: rgba(217, 255, 79, 0.13);
}

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

.upload-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--accent);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
}

.upload-zone strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.upload-zone p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.file-summary {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7f6ef;
}

.file-summary.is-visible {
  display: flex;
}

.file-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: repeating-conic-gradient(#e8e5dc 0 25%, #fff 0 50%) 50% / 14px 14px;
  object-fit: contain;
}

.file-meta {
  min-width: 0;
}

.file-meta strong {
  display: block;
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.field {
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.field-title {
  display: block;
  margin-bottom: 8px;
  font-size: 0.83rem;
  font-weight: 760;
}

.field input[type="number"],
.field input[type="text"],
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9f8f2;
  color: var(--ink);
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}

.field-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9f8f2;
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 720;
}

.preset:hover,
.preset.is-active {
  border-color: var(--ink);
  background: var(--accent);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.status {
  min-height: 24px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.status[data-tone="error"] {
  color: #b52e19;
}

.status[data-tone="success"] {
  color: #26641d;
}

.result-card {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--accent);
}

.result-card.is-visible {
  display: grid;
}

.result-preview {
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(28, 29, 24, 0.35);
  border-radius: 14px;
  background: repeating-conic-gradient(#f4f2e8 0 25%, #fff 0 50%) 50% / 18px 18px;
}

.result-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  padding: 11px;
  border: 1px solid rgba(28, 29, 24, 0.3);
  border-radius: 12px;
  background: rgba(255, 254, 248, 0.55);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
}

.stat span {
  color: rgba(28, 29, 24, 0.68);
  font-size: 0.73rem;
  text-transform: uppercase;
}

.alignment-grid {
  display: grid;
  width: 126px;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.alignment-option {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9f8f2;
}

.alignment-option::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  content: "";
}

.alignment-option.is-active {
  border-color: var(--ink);
  background: var(--accent);
}

.alignment-option.is-active::before {
  background: var(--ink);
}

.preview-frame {
  display: none;
  max-width: 100%;
  max-height: 280px;
  margin: 20px auto 0;
  border-radius: 12px;
  object-fit: contain;
}

.preview-frame.is-visible {
  display: block;
}

.prose {
  max-width: 760px;
}

.prose h2,
.prose h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.prose h2 {
  margin: 54px 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.prose h3 {
  margin: 30px 0 10px;
  font-size: 1.45rem;
}

.prose p,
.prose li {
  color: #45473e;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  border-bottom-color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prose tbody tr:hover {
  background: rgba(217, 255, 79, 0.18);
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--accent);
}

.article-cta p {
  max-width: 44ch;
  margin: 0;
  color: var(--ink);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}

.quick-links a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.quick-links a:hover {
  border-color: var(--ink);
  background: var(--accent);
}

.prose li + li {
  margin-top: 8px;
}

.note {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 216, 201, 0.55);
}

.content-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.content-split > h2 {
  position: sticky;
  top: 24px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.steps {
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 0 0 28px 64px;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 44px;
  bottom: 0;
  left: 21px;
  width: 1px;
  background: var(--line);
  content: "";
}

.step::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  content: counter(steps, decimal-leading-zero);
  counter-increment: steps;
  font-size: 0.76rem;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--ink);
}

.faq-list summary {
  position: relative;
  padding: 21px 44px 21px 0;
  cursor: pointer;
  font-weight: 740;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 19px;
  right: 4px;
  font-size: 1.35rem;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 760px;
  margin: 0;
  padding: 0 44px 20px 0;
  color: var(--muted);
}

.related-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-tools a {
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 15px;
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 740;
  text-decoration: none;
}

.related-tools a:hover {
  background: var(--accent);
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: #f6f4eb;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.55fr);
  gap: 36px;
  padding-block: 48px;
}

.footer-main h2 {
  max-width: 14ch;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.footer-main p,
.footer-main a {
  color: rgba(246, 244, 235, 0.68);
  font-size: 0.86rem;
}

.footer-col strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.82rem;
}

.footer-col a {
  display: block;
  padding-block: 4px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(246, 244, 235, 0.55);
  font-size: 0.76rem;
}

.notice {
  padding: 15px 18px;
  border: 1px solid #d6a82d;
  border-radius: 12px;
  background: #fff2c4;
  font-size: 0.88rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .hero-art {
    min-height: 390px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-aside {
    position: static;
  }

  .tool-card,
  .tool-card:nth-child(n) {
    grid-column: span 6;
    min-height: 240px;
  }

  .tool-card:nth-child(3) {
    grid-column: span 12;
  }

  .footer-main {
    grid-template-columns: 1.2fr repeat(3, 0.6fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    padding-inline: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .container {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    gap: 30px;
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .hero-art {
    min-height: 320px;
  }

  .art-frame-one {
    inset: 12px 55px 100px 0;
  }

  .art-frame-two {
    height: 45%;
  }

  .art-check {
    width: 68px;
    height: 68px;
    font-size: 2rem;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .section-heading,
  .content-split {
    grid-template-columns: 1fr;
  }

  .content-split > h2 {
    position: static;
  }

  .tool-card,
  .tool-card:nth-child(n) {
    grid-column: 1 / -1;
  }

  .control-grid,
  .result-card,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .result-card {
    display: none;
  }

  .result-card.is-visible {
    display: grid;
  }

  .related-tools {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-actions .button,
  .action-row .button {
    width: 100%;
  }

  .upload-zone {
    min-height: 220px;
    padding-inline: 14px;
  }

  .tool-shell {
    padding: 16px;
  }

  .file-summary {
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
