:root {
  color-scheme: light;
  --ink: #242424;
  --muted: #656565;
  --line: #e1e4e7;
  --paper: #ffffff;
  --soft: #f7fafb;
  --blue: #0789bd;
  --blue-deep: #175b9d;
  --green: #2f8c4b;
  --orange: #b96a2d;
  --map: #eaf6f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

img {
  height: auto;
}

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

.site-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.logo-link {
  display: block;
  width: 150px;
  flex: 0 0 auto;
}

.logo-link img {
  width: 100%;
}

.primary-nav {
  padding-top: 19px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 31px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav a,
.site-footer a,
.app-sidebar a,
.text-link,
.press-links a {
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active,
.site-footer a:hover,
.app-sidebar a:hover,
.text-link:hover,
.press-links a:hover {
  color: var(--blue-deep);
}

.page-shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 0;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  column-gap: 66px;
  align-items: start;
}

.app-sidebar {
  padding-top: 5px;
}

.app-sidebar h2 {
  margin-bottom: 14px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.app-sidebar nav {
  display: grid;
  gap: 12px;
}

.app-sidebar a {
  max-width: 170px;
  color: #8c8c8c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.22;
  text-transform: uppercase;
}

.app-sidebar a.current {
  color: #1f1f1f;
}

.content-column {
  min-width: 0;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 62px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.app-icon {
  width: 118px;
  margin-bottom: 24px;
}

.eyebrow,
.kicker {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 12px;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.04;
}

.kicker {
  margin-bottom: 24px;
  color: #1f1f1f;
}

.hero-summary {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.main-device {
  width: 100%;
  justify-self: center;
}

.store-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
}

.app-store-link {
  display: inline-block;
  width: 135px;
  flex: 0 0 auto;
}

.text-link {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro {
  max-width: 780px;
  margin: 0 auto;
  padding: 66px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.intro p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.intro p:first-child {
  color: var(--ink);
  font-size: 21px;
}

.map-context {
  max-width: 620px;
  margin: 32px auto 0;
}

.map-context img {
  width: 100%;
  height: auto;
  aspect-ratio: 423 / 283;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.feature-band,
.showcase,
.video-section,
.press,
.download {
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1.16;
}

.section-heading p,
.download p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  min-width: 0;
  padding: 22px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfbfb;
}

.feature-grid img {
  width: 58px;
  margin-bottom: 18px;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.25;
}

.feature-grid p,
figcaption {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

figure {
  margin: 0;
  display: grid;
  align-content: start;
  gap: 13px;
}

figure img {
  width: 100%;
  height: 410px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--map);
}

.wide-shot img {
  height: 330px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101820 url("/assets/images/youtube-poster.jpg") center / cover no-repeat;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.press-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.press-card {
  display: grid;
  min-height: 160px;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  line-height: 1.3;
  background: #fbfbfb;
}

.press-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.press-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  border-radius: 5px;
}

.press-summary {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.download {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 30px;
  align-items: center;
}

.download h2 {
  margin-bottom: 14px;
}

.download p:last-child {
  margin-bottom: 0;
}

.tool-hero,
.tool-workspace,
.format-reference {
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

.tool-hero {
  padding-top: 0;
}

.tool-hero h1 {
  max-width: 780px;
}

.tool-workspace {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.input-format-guide {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 18px 24px;
  margin: -6px 0 24px;
  padding: 18px 20px;
  border: 1px solid #d8e4e8;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: #f8fbf9;
}

.input-format-guide-header {
  min-width: 0;
}

.input-format-guide-header h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.input-format-guide-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.accepted-format-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.accepted-format-list li {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dfe7eb;
  border-radius: 5px;
  background: #ffffff;
}

.accepted-format-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accepted-format-list code {
  min-width: 0;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.tool-tabs {
  display: inline-flex;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}

.tool-tab {
  min-width: 112px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.tool-tab:last-child {
  border-right: 0;
}

.tool-tab.active {
  background: var(--blue-deep);
  color: #ffffff;
}

.tool-panel {
  min-height: 420px;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.tool-form,
.tool-results,
.result-panel {
  min-width: 0;
}

.tool-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.tool-form h3,
.result-panel h3 {
  margin-bottom: 0;
}

.tool-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-form input,
.tool-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ccd4da;
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.tool-form input:focus,
.tool-form select:focus {
  outline: 3px solid rgba(7, 137, 189, 0.18);
  border-color: var(--blue);
}

.field-help {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.field-pair {
  display: grid;
  gap: 14px;
}

.primary-button,
.copy-button {
  border: 1px solid var(--line);
  border-radius: 5px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.primary-button {
  min-height: 46px;
  padding: 0 18px;
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  color: #ffffff;
}

.copy-button {
  min-height: 32px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--blue-deep);
}

.tool-results {
  display: grid;
  gap: 18px;
}

.tool-status {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
}

.tool-status.error {
  border-color: #c65b4c;
  color: #8b2f24;
  background: #fff8f6;
}

.result-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.empty-result {
  min-height: 170px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: #fbfcfd;
}

.empty-result p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.result-panel dl {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid #edf0f2;
}

.result-row:first-child {
  border-top: 0;
}

.result-row dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.result-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.result-row dd span {
  min-width: 0;
  overflow-wrap: break-word;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.45;
}

.result-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.result-split .result-row {
  grid-template-columns: 1fr;
  gap: 6px;
}

.result-split .result-row dd {
  align-items: flex-start;
  flex-direction: column;
}

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

.format-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfbfb;
}

.format-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  padding: 42px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .feature-grid,
  .format-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .primary-nav {
    padding-top: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .page-shell {
    padding-top: 54px;
    grid-template-columns: 152px minmax(0, 1fr);
    column-gap: 42px;
  }

  .app-sidebar a {
    font-size: 12px;
  }

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

  .main-device {
    width: min(720px, 100%);
  }

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

@media (max-width: 720px) {
  .site-header,
  .page-shell {
    width: min(100% - 32px, 1100px);
  }

  .page-shell {
    padding-top: 34px;
    display: block;
  }

  .app-sidebar {
    padding: 0 0 30px;
    margin-bottom: 42px;
    border-bottom: 1px solid var(--line);
  }

  .app-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }

  .app-sidebar a {
    max-width: none;
    font-size: 11px;
    letter-spacing: 0.11em;
  }

  .product-hero,
  .tool-hero,
  .intro,
  .feature-band,
  .tool-workspace,
  .format-reference,
  .showcase,
  .video-section,
  .press,
  .download {
    padding-bottom: 54px;
  }

  .feature-band,
  .tool-workspace,
  .format-reference,
  .showcase,
  .video-section,
  .press,
  .download {
    padding-top: 54px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .feature-grid,
  .format-grid,
  .showcase-grid,
  .press-links,
  .download {
    grid-template-columns: 1fr;
  }

  .tool-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .input-format-guide {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .accepted-format-list {
    grid-template-columns: 1fr;
  }

  .tool-tab {
    min-width: 0;
    padding: 0 10px;
    font-size: 12px;
  }

  .result-split,
  .result-row {
    grid-template-columns: 1fr;
  }

  .result-row dd {
    align-items: flex-start;
    flex-direction: column;
  }

  figure img,
  .wide-shot img {
    height: auto;
    max-height: 560px;
  }
}

@media (max-width: 500px) {
  .site-header {
    padding-top: 24px;
  }

  .logo-link {
    width: 150px;
  }

  .primary-nav {
    gap: 12px 16px;
    font-size: 11px;
  }

  .app-sidebar nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

  .app-icon {
    width: 96px;
  }
}
