:root {
  color-scheme: light;
  --ink: #111827;
  --navy: #0f172a;
  --muted: #5f6b7d;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --line: #dbe3ea;
  --teal: #0f766e;
  --teal-strong: #0b5f59;
  --teal-soft: #e7f7f5;
  --blue: #2563eb;
  --blue-soft: #edf3ff;
  --amber: #c56705;
  --amber-soft: #fff6e8;
  --focus: #22c1bb;
  --shadow: 0 16px 40px rgb(15 23 42 / 9%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --content: 1180px;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.manual-mini-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--line);
}

.manual-mini-header > a {
  width: min(var(--content), calc(100% - 40px));
  min-height: 52px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.manual-mini-header span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--teal);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 900;
}

.manual-mini-header strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 11px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.topbar__actions,
.hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: white;
  background: var(--teal);
}

.button--primary:hover {
  background: var(--teal-strong);
}

.button--ghost {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button--ghost:hover {
  background: var(--surface-soft);
}

.button--light {
  color: var(--navy);
  background: white;
}

.button--outline-light {
  color: white;
  background: transparent;
  border-color: rgb(255 255 255 / 34%);
}

.button--outline-light:hover {
  background: rgb(255 255 255 / 8%);
}

.hero {
  color: white;
  background:
    radial-gradient(circle at 14% 10%, rgb(15 118 110 / 22%), transparent 34%),
    linear-gradient(155deg, #0f172a 0%, #101d35 62%, #0d2730 100%);
}

.hero__inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  padding: 84px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: 56px;
}

.eyebrow,
.section-kicker,
.mini-kicker,
.toc__label {
  margin: 0 0 12px;
  color: #0a8e86;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero .eyebrow {
  color: #59d5cf;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero__summary {
  max-width: 600px;
  margin: 24px 0 0;
  color: #c8d4e3;
  font-size: 17px;
  line-height: 1.8;
}

.hero__actions {
  margin-top: 32px;
}

.hero__note {
  margin: 18px 0 0;
  color: #93a4ba;
  font-size: 12px;
}

.screenshot-frame {
  margin: 0;
  padding: 12px;
  background: #17253d;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgb(0 0 0 / 32%);
}

.screenshot-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 68% 43%;
  border-radius: 15px;
}

.screenshot-frame figcaption {
  padding: 10px 4px 0;
  color: #a9b7c9;
  font-size: 11px;
}

.contents-band {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.contents-band__inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 68px;
}

.contents-band h2,
.guide-section h2,
.sources h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.04em;
}

.contents-grid {
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.contents-grid a {
  min-height: 116px;
  padding: 18px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.contents-grid a:hover {
  border-color: #95cfc9;
  box-shadow: 0 10px 24px rgb(15 23 42 / 7%);
  transform: translateY(-2px);
}

.contents-grid span {
  grid-row: 1 / 3;
  color: var(--teal);
  font-size: 15px;
  font-weight: 800;
}

.contents-grid strong {
  font-size: 15px;
}

.contents-grid small {
  color: var(--muted);
  font-size: 12px;
}

.mobile-toc {
  display: none;
}

.manual-layout {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 110px;
  display: grid;
  grid-template-columns: 230px minmax(0, 820px);
  justify-content: space-between;
  gap: 72px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-right: 20px;
}

.toc nav {
  display: grid;
  gap: 4px;
}

.toc nav a {
  padding: 9px 11px;
  color: var(--muted);
  border-left: 2px solid transparent;
  font-size: 13px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.toc nav a:hover,
.toc nav a.is-active,
.toc nav a[aria-current="true"] {
  color: var(--teal-strong);
  background: var(--teal-soft);
  border-left-color: var(--teal);
  font-weight: 800;
}

.toc__download {
  margin-top: 22px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--navy);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.guide {
  min-width: 0;
}

.guide-section {
  padding: 0 0 92px;
  scroll-margin-top: 24px;
}

.guide-section + .guide-section {
  padding-top: 84px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}

.section-heading > div > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.section-number {
  width: 40px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.formula {
  margin-top: 34px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  border: 1px solid #a6ddd8;
  border-radius: var(--radius-md);
  font-size: clamp(16px, 2.6vw, 22px);
  font-weight: 800;
}

.formula b {
  color: #78a9a5;
}

.example-prompt {
  margin-top: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--navy);
  border-radius: var(--radius-md);
}

.example-prompt p {
  margin: 6px 0 0;
  color: white;
  line-height: 1.65;
}

.label {
  color: #68ddd4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--navy);
  background: white;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

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

.four-points > div {
  min-height: 112px;
  padding: 18px;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.four-points span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.four-points p,
.model-list p,
.usage-list p,
.steps p,
.compare-card p,
.callout p {
  margin: 4px 0 0;
  color: var(--muted);
}

.subsection {
  margin-top: 52px;
}

.subsection h3,
.checklist h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.subsection__copy > p:not(.mini-kicker) {
  color: var(--muted);
}

blockquote {
  margin: 18px 0 0;
  padding: 14px 16px;
  color: #7b4b0d;
  background: var(--amber-soft);
  border-left: 4px solid #e6a135;
  border-radius: 0 10px 10px 0;
}

.shot-card {
  margin: 24px 0 0;
  overflow: hidden;
  background: #070b10;
  border: 1px solid #263346;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.shot-card img {
  width: 100%;
}

.shot-card figcaption {
  padding: 12px 15px;
  color: #c2cede;
  background: #111b2b;
  font-size: 12px;
}

.shot-card--portrait {
  background: white;
  border-color: var(--line);
}

.shot-card--portrait img {
  object-fit: contain;
  background: white;
}

.shot-card--portrait figcaption {
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
}

.media-crop {
  overflow: hidden;
  background: #000;
}

.media-crop img {
  height: 100%;
  object-fit: cover;
}

.media-crop--search {
  aspect-ratio: 16 / 7;
}

.media-crop--search img {
  object-position: 52% 48%;
}

.media-crop--model {
  aspect-ratio: 16 / 5;
}

.media-crop--model img {
  object-position: 52% 49%;
}

.media-crop--work {
  aspect-ratio: 16 / 9;
}

.media-crop--work img {
  object-position: 50% 40%;
}

.media-crop--attach {
  aspect-ratio: 16 / 10;
}

.media-crop--attach img {
  object-position: 50% 48%;
}

.compare-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-card {
  min-height: 178px;
  padding: 24px;
  border: 1px solid;
  border-radius: var(--radius-md);
}

.compare-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.compare-card h3 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: 20px;
}

.compare-card--blue {
  background: var(--blue-soft);
  border-color: #bed2ff;
}

.compare-card--blue span {
  color: var(--blue);
}

.compare-card--teal {
  background: var(--teal-soft);
  border-color: #a6ddd8;
}

.compare-card--teal span {
  color: var(--teal);
}

.compare-grid--compact .compare-card {
  min-height: 148px;
}

.model-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.model-list > div {
  padding: 12px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.model-recommendation {
  margin-bottom: 18px;
}

.model-time-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.model-time {
  justify-self: end;
  padding: 7px 10px;
  color: var(--navy);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.model-badge,
.usage-badge {
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--teal);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.model-badge--pro {
  background: var(--amber);
}

.callout {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid;
  border-radius: var(--radius-md);
}

.callout strong {
  display: block;
  color: var(--navy);
}

.callout--info {
  background: var(--surface-soft);
  border-color: var(--line);
}

.callout--success {
  background: var(--teal-soft);
  border-color: #a6ddd8;
}

.callout--warning {
  background: var(--amber-soft);
  border-color: #efc476;
}

.split-feature {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: start;
}

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

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.steps li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.steps h3,
.usage-list h3 {
  margin: 1px 0 0;
  color: var(--navy);
  font-size: 16px;
}

.steps .step-warning > span {
  background: var(--amber);
}

.steps--horizontal {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.screenshot-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.screenshot-grid .shot-card {
  margin-top: 0;
}

.limit-table {
  margin: 30px 0 0;
  display: grid;
  gap: 2px;
}

.limit-table > div {
  min-height: 56px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 16px;
}

.limit-table > div:nth-child(odd) {
  background: var(--surface-soft);
  border-radius: 9px;
}

.limit-table dt {
  color: var(--teal);
  font-weight: 800;
}

.limit-table dd {
  margin: 0;
}

.example-prompt--compact {
  background: #152039;
}

.usage-list {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.usage-list article {
  min-height: 126px;
  padding: 22px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.usage-badge--blue {
  background: var(--blue);
}

.usage-badge--teal {
  background: var(--teal);
}

.usage-badge--amber {
  background: var(--amber);
}

.checklist {
  margin-top: 28px;
  padding: 24px;
  background: var(--teal-soft);
  border: 1px solid #a6ddd8;
  border-radius: var(--radius-md);
}

.checklist ul {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.checklist label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checklist input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.sources {
  padding: 36px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  scroll-margin-top: 94px;
}

.sources h2 {
  font-size: 26px;
}

.sources ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 30px;
}

.sources li {
  break-inside: avoid;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.sources a:hover {
  color: var(--teal-strong);
}

.footer {
  padding: 36px max(20px, calc((100% - var(--content)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #c6d1df;
  background: var(--navy);
}

.footer strong {
  color: white;
}

.footer p {
  margin: 4px 0 0;
  font-size: 12px;
}

.footer__links {
  display: flex;
  gap: 18px;
}

.footer a {
  color: white;
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 26px;
  padding: 11px 16px;
  color: white;
  background: var(--navy);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1040px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero__copy {
    max-width: 760px;
  }

  .contents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 820px),
  (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  :root {
    --mobile-gutter: clamp(10px, 4vw, 24px);
    --mobile-pad-left: max(var(--mobile-gutter), env(safe-area-inset-left));
    --mobile-pad-right: max(var(--mobile-gutter), env(safe-area-inset-right));
  }

  html {
    scroll-padding-top: 72px;
  }

  .manual-mini-header > a {
    width: 100%;
    padding-left: var(--mobile-pad-left);
    padding-right: var(--mobile-pad-right);
  }

  .topbar__inner {
    min-height: 62px;
  }

  .brand small,
  .button--ghost {
    display: none;
  }

  .hero__inner {
    min-height: auto;
    padding: 64px 0;
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 54px);
  }

  .contents-band__inner {
    padding: 48px 0 54px;
  }

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

  .mobile-toc {
    width: min(760px, calc(100% - 32px));
    margin: 28px auto 0;
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .mobile-toc summary {
    min-height: 48px;
    padding: 12px 14px;
    color: var(--navy);
    cursor: pointer;
    font-weight: 800;
  }

  .mobile-toc nav {
    padding: 0 12px 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .mobile-toc a {
    padding: 9px 10px;
    color: var(--muted);
    background: var(--surface-soft);
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
  }

  .manual-layout {
    width: auto;
    margin-left: var(--mobile-pad-left);
    margin-right: var(--mobile-pad-right);
    padding-top: 0;
    display: block;
  }

  .toc {
    position: sticky;
    z-index: 100;
    top: 0;
    width: auto;
    margin-left: calc(var(--mobile-pad-left) * -1);
    margin-right: calc(var(--mobile-pad-right) * -1);
    padding: 6px var(--mobile-pad-right) 6px var(--mobile-pad-left);
    display: block;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    background: rgb(255 255 255 / 94%);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .toc::-webkit-scrollbar {
    display: none;
  }

  .toc__label,
  .toc__download {
    display: none;
  }

  .toc nav {
    width: max-content;
    display: flex;
    gap: 4px;
  }

  .toc nav a {
    min-height: 44px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    white-space: nowrap;
  }

  .toc nav a:hover,
  .toc nav a.is-active,
  .toc nav a[aria-current="true"] {
    border-left-color: transparent;
    border-bottom-color: var(--teal);
  }

  .guide {
    min-width: 0;
    padding-top: 24px;
  }

  .guide-section,
  .section-heading > div,
  .split-feature > *,
  .model-list > div > *,
  .usage-list article > *,
  .limit-table > div > *,
  .steps li > div {
    min-width: 0;
  }

  .guide-section h2 {
    font-size: clamp(28px, 6vw, 40px);
    overflow-wrap: anywhere;
  }

  .section-kicker,
  .mini-kicker,
  .label {
    font-size: clamp(12px, 2.5vw, 14px);
  }

  .button,
  .copy-button,
  .toc__download {
    min-height: 44px;
  }

  .shot-card img,
  .media-crop img {
    max-width: 100%;
  }

  .shot-card figcaption {
    overflow-wrap: anywhere;
  }

  .model-badge,
  .usage-badge,
  .model-time,
  .model-list p,
  .steps h3,
  .steps p,
  .limit-table dt,
  .limit-table dd {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .steps li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .split-feature,
  .screenshot-grid,
  .sources {
    grid-template-columns: 1fr;
  }

  .shot-card--portrait {
    max-width: 420px;
    margin-inline: auto;
  }

  .sources ul {
    columns: 1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: clamp(15px, 4vw, 16px);
  }

  .topbar__inner {
    width: calc(100% - 24px);
  }

  .button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .hero__inner,
  .contents-band__inner {
    width: calc(100% - 28px);
  }

  .hero__inner {
    padding: 50px 0;
  }

  .hero__summary {
    font-size: 15px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .formula {
    padding: 18px 12px;
    flex-wrap: wrap;
    gap: 7px;
  }

  .formula span {
    padding: 4px 8px;
    background: rgb(255 255 255 / 70%);
    border-radius: 7px;
  }

  .example-prompt {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .four-points,
  .compare-grid,
  .steps--horizontal {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .model-list > div,
  .usage-list article,
  .limit-table > div {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .model-badge,
  .usage-badge {
    max-width: 100%;
    width: fit-content;
    white-space: normal;
    text-align: center;
  }

  .model-time {
    justify-self: start;
  }

  .guide-section {
    padding-bottom: 70px;
  }

  .guide-section + .guide-section {
    padding-top: 66px;
  }

  .mobile-toc nav {
    grid-template-columns: 1fr;
  }

  .sources {
    padding: clamp(18px, 6vw, 24px);
  }

  .sources a {
    overflow-wrap: anywhere;
  }

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

@media (max-width: 360px) {
  :root {
    --mobile-gutter: clamp(8px, 3.5vw, 12px);
  }

  .manual-mini-header > a {
    gap: 8px;
  }

  .manual-mini-header strong {
    font-size: 13.5px;
  }

  .toc nav a {
    padding-inline: 10px;
    font-size: 12.5px;
  }

  .guide {
    padding-top: 20px;
  }

  .guide-section h2 {
    font-size: clamp(25px, 8vw, 30px);
    line-height: 1.22;
  }

  .section-heading {
    gap: 10px;
  }

  .subsection h3,
  .checklist h3 {
    font-size: clamp(20px, 6.5vw, 24px);
    overflow-wrap: anywhere;
  }

  .model-list > div,
  .usage-list article,
  .limit-table > div,
  .compare-card,
  .callout {
    padding: 14px;
  }

  .steps li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }

  .steps li > span {
    width: 28px;
    height: 28px;
  }

  .shot-card figcaption {
    padding-inline: 12px;
  }
}

@media (max-width: 300px) {
  :root {
    --mobile-gutter: 8px;
  }

  .manual-mini-header span {
    width: 28px;
    height: 28px;
  }

  .toc nav a {
    padding-inline: 9px;
    font-size: 12px;
  }

  .section-number {
    width: 36px;
  }

  .formula,
  .example-prompt,
  .sources,
  .model-list > div,
  .usage-list article,
  .limit-table > div,
  .compare-card,
  .callout {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@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;
  }
}
