/* gifcropper.com — "cutting mat" design system, mobile-first */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --card: #fffdf8;
  --ink: #16201c;
  --ink-2: #39443f;
  --muted: #6b746e;
  --line: #e2dbcc;
  --line-2: #d4ccba;
  --mat: #0e6b50;
  --mat-deep: #0a4f3b;
  --mat-soft: #dcebe2;
  --mat-tint: #eef5f0;
  --amber: #f2a93b;
  --amber-soft: #fdf0d9;
  --warn: #9b3b12;
  --stage: #18211d;
  --radius: 20px;
  --radius-sm: 12px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  --shadow: 0 1px 0 rgba(22, 32, 28, .04), 0 12px 32px -12px rgba(22, 32, 28, .18), 0 40px 80px -40px rgba(22, 32, 28, .22);
  --checker: repeating-conic-gradient(#e7e2d6 0% 25%, #fbf9f4 0% 50%) 0 0 / 14px 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--mat); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--mat-soft); }

h1, h2, h3 { font-family: var(--display); color: var(--ink); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.logo svg { width: 30px; height: 30px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 4px; border-radius: 999px; background: rgba(255, 253, 248, .7); border: 1px solid var(--line); }
.site-nav a {
  display: block; padding: 6px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.site-nav a:hover { background: var(--paper-2); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--card); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 18px 0 8px; }
.hero::before {
  /* cutting-mat grid, fading out */
  content: ""; position: absolute; inset: -64px 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--grid-strong, rgba(14, 107, 80, .09)) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(14, 107, 80, .09) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(14, 107, 80, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(14, 107, 80, .045) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-head { text-align: center; max-width: 760px; margin: 0 auto 22px; }
.breadcrumb ol { display: flex; justify-content: center; gap: 6px; list-style: none; margin: 0 0 8px; padding: 0; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); }
.hero h1 {
  font-size: clamp(44px, 9vw, 86px); line-height: .98; letter-spacing: -.045em; font-weight: 800;
  margin: 6px 0 12px;
}
.hero h1 .ink-mark { position: relative; white-space: nowrap; }
.hero h1 .ink-mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .2em; z-index: -1;
  background: var(--amber); opacity: .55; border-radius: 4px; transform: skewX(-12deg);
}
.lede { margin: 0 auto; color: var(--ink-2); font-size: clamp(17px, 2.2vw, 19.5px); max-width: 600px; }
.chips-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.chips-trust li { display: inline-flex; align-items: center; gap: 6px; }
.chips-trust svg { width: 16px; height: 16px; color: var(--mat); }

/* ---------- Tool card ---------- */
.tool {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px;
}
/* crop marks around the card */
.tool::before, .tool::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border-color: var(--mat); border-style: solid; opacity: .55;
}
.tool::before { top: -10px; left: -10px; border-width: 2px 0 0 2px; }
.tool::after { bottom: -10px; right: -10px; border-width: 0 2px 2px 0; }

.trust {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 10px;
  font-size: 13.5px; color: var(--mat-deep); font-weight: 500;
}
.trust svg { width: 15px; height: 15px; flex: none; }

/* Empty state */
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; gap: 4px;
  min-height: 300px; padding: 26px 18px; border-radius: 14px;
  border: 1.5px dashed var(--line-2); background: var(--mat-tint);
  transition: border-color .2s, background .2s;
}
.dropzone.is-over { border-color: var(--mat); background: var(--mat-soft); }
.dz-visual { position: relative; width: 168px; height: 112px; margin-bottom: 10px; border-radius: 12px; background: var(--stage); overflow: hidden; box-shadow: 0 10px 24px -10px rgba(22, 32, 28, .5); }
.dz-visual .sun { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); left: 26px; top: 64px; animation: bounce 1.6s var(--ease) infinite alternate; }
.dz-visual .hill { position: absolute; left: -10%; right: -10%; bottom: -30px; height: 60px; border-radius: 50%; background: #2f8f6d; }
.dz-visual .frame {
  position: absolute; left: 52px; top: 18px; width: 82px; height: 70px;
  outline: 1.5px solid #fff; box-shadow: 0 0 0 200px rgba(10, 14, 12, .45);
  animation: drift 3.2s var(--ease) infinite alternate;
}
.dz-visual .frame::before, .dz-visual .frame::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 2.5px solid #fff;
}
.dz-visual .frame::before { left: -3px; top: -3px; border-width: 2.5px 0 0 2.5px; }
.dz-visual .frame::after { right: -3px; bottom: -3px; border-width: 0 2.5px 2.5px 0; }
@keyframes bounce { from { transform: translate(0, 0); } to { transform: translate(100px, -40px); } }
@keyframes drift { from { transform: translate(-14px, 0) scale(.92); } to { transform: translate(18px, 4px) scale(1.04); } }
.dz-title { font-family: var(--display); font-size: clamp(21px, 3vw, 26px); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.dz-hint { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: 600 15.5px/1 var(--body);
  text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .15s, box-shadow .15s;
}
.btn:hover { background: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--mat); border-color: var(--mat); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 8px 18px -8px rgba(14, 107, 80, .7);
}
.btn-primary:hover { background: var(--mat-deep); border-color: var(--mat-deep); }
.btn-primary:disabled { opacity: .65; cursor: progress; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-ghost { min-height: 34px; padding: 6px 12px; font-size: 13.5px; font-weight: 500; background: transparent; }
.btn-link {
  display: block; margin: 4px auto 0; padding: 8px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 500 14px var(--body); text-decoration: underline; text-underline-offset: 3px;
}

/* Editor */
.editor { display: grid; gap: 14px; }
.stage-col { min-width: 0; }
.stage-area {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 240px; padding: 22px; border-radius: 14px; background-color: var(--stage);
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.stage {
  position: relative; display: inline-block; line-height: 0; overflow: hidden;
  background: var(--checker); user-select: none; -webkit-user-select: none; cursor: crosshair;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
}
.stage img { display: block; max-width: 100%; -webkit-user-drag: none; pointer-events: none; }
.stage.no-crop { cursor: default; }
.file-meta, .result-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.file-meta span, .result-stats span { padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.file-meta b { font-weight: 600; word-break: break-all; }

/* Crop box with photo-editor style corner brackets */
.crop-box {
  position: absolute; cursor: move; touch-action: none;
  box-shadow: 0 0 0 9999px rgba(8, 12, 10, .6);
  outline: 1px solid rgba(255, 255, 255, .9);
}
.crop-box:focus-visible { outline: 2px solid var(--amber); outline-offset: 0; }
.crop-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px));
}
.crop-handle { position: absolute; touch-action: none; }
.crop-handle::after { content: ""; position: absolute; inset: -12px; }
.h-nw, .h-ne, .h-se, .h-sw { width: 20px; height: 20px; border: 0 solid #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.h-nw { left: 0; top: 0; border-width: 4px 0 0 4px; cursor: nwse-resize; }
.h-ne { right: 0; top: 0; border-width: 4px 4px 0 0; cursor: nesw-resize; }
.h-se { right: 0; bottom: 0; border-width: 0 4px 4px 0; cursor: nwse-resize; }
.h-sw { left: 0; bottom: 0; border-width: 0 0 4px 4px; cursor: nesw-resize; }
.h-n, .h-s { left: 50%; width: 26px; height: 4px; margin-left: -13px; background: #fff; border-radius: 2px; cursor: ns-resize; }
.h-n { top: 0; } .h-s { bottom: 0; }
.h-e, .h-w { top: 50%; width: 4px; height: 26px; margin-top: -13px; background: #fff; border-radius: 2px; cursor: ew-resize; }
.h-e { right: 0; } .h-w { left: 0; }
@media (pointer: coarse) {
  .h-nw, .h-ne, .h-se, .h-sw { width: 26px; height: 26px; }
  .crop-handle::after { inset: -16px; }
}

/* Sidebar */
.panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 4px 2px; }
.group { border: 0; margin: 0; padding: 0; min-width: 0; }
.group-title, .group legend {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0; margin: 0 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.segmented [role="tab"] {
  min-height: 38px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: var(--ink-2); font: 500 14.5px var(--body);
}
.segmented [role="tab"][aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(22, 32, 28, .15); }
.tab-panel { padding-top: 12px; }

/* Ratio picker: little shape icons */
.ratio-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ratio {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  font: 500 12.5px var(--body); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.ratio i { display: block; height: 22px; border: 1.75px solid currentColor; border-radius: 3px; }
.ratio i.free { width: 22px; border-style: dashed; }
.ratio:hover { border-color: var(--line-2); }
.ratio[aria-pressed="true"] { border-color: var(--mat); background: var(--mat-tint); color: var(--mat-deep); }

/* Platform cards */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pf {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 9px; text-align: left;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  font: 600 14px/1.25 var(--body); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s;
}
.pf:hover { border-color: var(--line-2); }
.pf small { grid-column: 2; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.pf[aria-pressed="true"] { border-color: var(--mat); background: var(--mat-tint); }
.badge {
  grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  color: #fff; font: 700 12px var(--display); letter-spacing: -.02em;
}
.b-discord { background: #5865f2; }
.b-slack { background: #4a154b; }
.b-x { background: #111; }
.b-ig { background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #833ab4); }
.note { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.px-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.px-grid label, .size-grid label { position: relative; display: block; }
.px-grid span, .size-grid span.lbl {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 600; color: var(--muted); pointer-events: none;
}
.px-grid input[type="number"] { padding-left: 26px; padding-right: 4px; }
input[type="number"], select {
  width: 100%; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card); color: var(--ink); font: 500 16px var(--body); font-variant-numeric: tabular-nums;
}
input[type="number"]:focus, select:focus { outline: none; border-color: var(--mat); box-shadow: 0 0 0 3px var(--mat-soft); }
.row { display: flex; gap: 6px; margin-top: 8px; }

.size-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.size-grid input[type="number"] { padding-left: 34px; }
.switch { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14.5px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + i { background: var(--mat); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 3px solid var(--amber); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 36px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font: 500 14px var(--body); cursor: pointer;
}
.chip small { color: var(--muted); margin-left: 5px; font-size: 12px; }
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--mat-tint); border-color: var(--mat); color: var(--mat-deep); }

.seg-radio { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg-radio label { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; }
.seg-radio label:has(input:checked) { border-color: var(--mat); background: var(--mat-tint); }
.seg-radio input { accent-color: var(--mat); }

.output-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--paper); }
.preview-box { position: relative; overflow: hidden; background: var(--checker); border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); max-width: 100%; }
.preview-box img { position: absolute; max-width: none; }
.preview-box img.is-pixelated { image-rendering: pixelated; }
.output-label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.output { margin: 2px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.output b { font-family: var(--display); font-size: 19px; letter-spacing: -.01em; }

details.options summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 6px; }
details.options summary::-webkit-details-marker { display: none; }
details.options summary::before { content: "+"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; line-height: 1; }
details.options[open] summary::before { content: "−"; }
details.options > div { padding-top: 10px; }

.progress { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.progress .bar { height: 100%; background: var(--mat); transform-origin: left; transform: scaleX(0); transition: transform .1s linear; }

.result { padding: 14px; border-radius: 14px; background: var(--mat-tint); border: 1px solid var(--mat-soft); animation: rise .35s var(--ease); }
.result-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 600; color: var(--mat-deep); }
.result-title svg { width: 18px; height: 18px; }
.result img { display: block; max-height: 240px; margin: 0 auto; background: var(--checker); border-radius: 6px; }
.result .btn { margin-top: 12px; }
.warn { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--amber-soft); color: var(--warn); font-size: 14px; }
.tool-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--warn); font-size: 15px; text-align: center; }

/* ---------- Content sections ---------- */
.section { padding: 64px 0 0; }
.section-head { max-width: 680px; margin: 0 0 26px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mat); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.section h2, .band h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 12px; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 17.5px; }
.section h3, .band h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; margin: 0 0 6px; }
.section p, .band p { margin: 0 0 12px; }
.sizes + .note { margin-top: 16px; }

/* Split intro: copy + illustration */
.split { display: grid; gap: 28px; align-items: center; }
.split .copy p { color: var(--ink-2); font-size: 17px; }
.figure {
  position: relative; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* Steps */
.steps { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.step { position: relative; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.step-num { position: absolute; right: 14px; top: -10px; font: 800 96px/1 var(--display); color: var(--paper-2); letter-spacing: -.06em; pointer-events: none; }
.step-icon { position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px; background: var(--mat-tint); color: var(--mat); }
.step-icon svg { width: 24px; height: 24px; }
.step h3, .step p { position: relative; }
.step p { margin: 0; color: var(--ink-2); }

/* Platform size cards */
.sizes { display: grid; gap: 14px; }
.size-card { display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.size-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.size-card header h3 { margin: 0; font-size: 19px; }
.size-card .badge { grid-row: auto; width: 34px; height: 34px; font-size: 13px; }
.size-shapes { display: flex; align-items: flex-end; gap: 12px; height: 78px; margin-bottom: 14px; padding: 10px; border-radius: 12px; background: var(--paper); }
.size-shapes span { display: grid; place-items: center; border: 1.5px dashed var(--mat); border-radius: 4px; background: rgba(14, 107, 80, .06); font-size: 11px; font-weight: 600; color: var(--mat-deep); }
.size-list { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14.5px; }
.size-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.size-list li:last-child { border-bottom: 0; }
.size-list b { font-weight: 600; }
.size-card p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; }
.size-card .btn { margin-top: auto; align-self: flex-start; }

/* Feature grid */
.features { display: grid; gap: 12px; }
.feature { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 4px 14px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature .ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--ink); color: var(--amber); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17.5px; margin: 2px 0 0; }
.feature p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Deep-dive cards (dark band) */
.band { margin-top: 64px; padding: 64px 0; background: var(--stage); color: #e9eee9; position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 24px 24px;
}
.band .wrap { position: relative; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--amber); }
.band .section-head p, .band p { color: #c3ccc6; }
.band a { color: var(--amber); }
.dives { display: grid; gap: 14px; }
.dive { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.dive svg { display: block; width: 100%; height: auto; margin-bottom: 18px; }
.dive ul { margin: 0; padding: 0; list-style: none; }
.dive li { position: relative; padding: 0 0 12px 24px; color: #c3ccc6; font-size: 15.5px; }
.dive li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 2px solid var(--amber); border-width: 2px 0 0 2px; }
.dive li strong { color: #fff; font-weight: 600; }
kbd { display: inline-block; min-width: 24px; padding: 1px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); border-bottom-width: 2px; font: 600 13px var(--body); text-align: center; color: #fff; }

/* Tips strip */
.tips { display: grid; gap: 12px; counter-reset: tip; }
.tip { padding: 18px 20px; border-left: 3px solid var(--amber); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.tip h3 { font-size: 17px; }
.tip p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* FAQ accordion */
.faq-layout { display: grid; gap: 22px; }
.faq-list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.qa summary .pm { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .25s var(--ease), background .2s; }
.qa summary .pm::before, .qa summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 1px; }
.qa summary .pm::after { transform: rotate(90deg); transition: transform .25s var(--ease); }
.qa[open] summary .pm { background: var(--ink); }
.qa[open] summary .pm::before { background: var(--card); }
.qa[open] summary .pm::after { transform: rotate(0); background: var(--card); }
.qa summary:hover h3 { color: var(--mat-deep); }
.qa > div { padding: 0 48px 18px 2px; color: var(--ink-2); }
.qa > div p { margin: 0; }

/* Explore card */
.explore { display: grid; gap: 14px; }
.explore-card {
  display: grid; gap: 18px; align-items: center; padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.explore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.explore-card h3 { font-size: 24px; margin: 0 0 6px; }
.explore-card p { margin: 0; color: var(--ink-2); }
.explore-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: var(--mat); }
.explore-card svg.art { width: 100%; max-width: 220px; height: auto; justify-self: center; }

/* Prose pages (about / privacy / terms) */
.prose-page { max-width: 760px; margin: 0 auto; padding: 24px 0 0; }
.prose-page h1 { font-size: clamp(38px, 7vw, 60px); line-height: 1; letter-spacing: -.04em; font-weight: 800; margin: 8px 0 18px; }
.prose-page h2 { font-size: 24px; letter-spacing: -.02em; margin: 34px 0 8px; }
.prose-page p, .prose-page li { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; padding: 40px 0 34px; background: var(--paper-2); border-top: 1px solid var(--line); font-size: 15px; }
.site-footer .cols { display: grid; gap: 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--mat); text-decoration: underline; }
.footer-title { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.site-footer .fine { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-head > *, .tool { animation: rise .6s var(--ease) both; }
.hero-head > :nth-child(2) { animation-delay: .06s; }
.hero-head > :nth-child(3) { animation-delay: .12s; }
.hero-head > :nth-child(4) { animation-delay: .18s; }
.tool { animation-delay: .22s; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; }
  .explore-card { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 720px) {
  .wrap { padding: 0 28px; }
  .tool { padding: 16px; }
  .split { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .dives { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 96px; }
  .band { margin-top: 96px; padding: 88px 0; }
}
@media (min-width: 980px) {
  .editor { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 18px; }
  .stage-col { position: sticky; top: 16px; }
  .stage-area { min-height: 460px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: 1fr 1.7fr; gap: 56px; align-items: start; }
  .faq-layout .section-head { position: sticky; top: 24px; }
}
@media (max-width: 479px) {
  .site-header .logo-text { display: none; }
  .site-nav a { padding: 6px 11px; font-size: 14.5px; }
  .ratio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Resizer page extras */
.size-card > svg { display: block; width: 100%; height: auto; margin-bottom: 16px; padding: 12px; border-radius: 12px; background: var(--paper); }
.compare .size-card p { margin: 0; }
.dive > p { margin: 0; }
@media (min-width: 980px) {
  .dives.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.prose-page .breadcrumb ol { justify-content: flex-start; }

.dz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dz-actions .btn:not(.btn-primary) { background: var(--card); }
.dz-actions .btn svg { width: 19px; height: 19px; }
.dz-actions .btn[data-sample] svg { color: var(--amber); }
