/* Homepage polish using unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   Product screenshots and article typography retain their existing treatment. */

.home-page {
  --home-gap: 96px;
  --home-line: #e4e5eb;
  --home-surface: #f5f6f8;
}

/* One page edge and one rhythm, measured between the contents of sections. */
.home-page .section,
.home-page .header-inner {
  width: min(1280px, calc(100% - 96px));
}
.home-page .header-inner { min-height: 72px; gap: 24px; }
.home-page .header-actions { gap: 16px; }
.home-page .desktop-nav { gap: 24px; }
.home-page .hero { padding-block: 48px 64px; }
.home-page .hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 24px 64px;
  align-items: start;
}
.home-page .hero-copy > .release-badge {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  min-height: 24px;
}
.home-page .hero-copy > h1 { grid-column: 1; grid-row: 2; margin: 0; }
.home-page .hero-detail { grid-column: 2; grid-row: 2; padding-top: 4px; }
.home-page .hero-actions { gap: 16px; margin-top: 24px; }
.home-page .hero-actions .iphone-link { margin: 0; padding-block: 12px; }
.home-page .hero-detail .requirements { margin-top: 12px; }
.home-page .hero-visual { margin-top: 40px; }
.home-page .wn-demo-home { padding-block: 0 48px; }
.home-page .topics-section { padding-block: 48px; }
.home-page .product-section { padding-block: 48px; }
.home-page .capture-section { padding-block: 48px; gap: 64px; align-items: start; }
.home-page .follow-section { padding-block: 48px var(--home-gap); }
.home-page .privacy-inner { padding-block: 64px; gap: 64px; align-items: start; }
.home-page .pricing-section { padding-block: var(--home-gap) 48px; }
.home-page .faq-section { padding-block: 48px; gap: 64px; }
.home-page .download-section { padding-block: 48px; }
.home-page .download-inner { padding: 48px; }
.home-page .site-footer { padding-block: 16px 40px; gap: 40px; }
.home-page .section-heading h2,
.home-page .capture-copy h2,
.home-page .privacy-inner h2,
.home-page .download-inner h2 { margin-top: 12px; }
.home-page .section-heading > p:last-child:not(.eyebrow),
.home-page .section-lead { margin-top: 16px; }
.home-page .workflow-grid,
.home-page .tools-grid,
.home-page .plans { margin-top: 32px; gap: 24px; }
.home-page .workflow-card,
.home-page .capture-format,
.home-page .plan { padding: 24px; }
.home-page .workflow-card h3,
.home-page .capture-format h3,
.home-page .plan h3 { margin-top: 12px; }
.home-page .workflow-card p,
.home-page .capture-format p,
.home-page .plan p { margin-top: 12px; }
.home-page .workflow-card > .text-link { padding-top: 24px; }
.home-page .plan { display: flex; flex-direction: column; align-items: flex-start; }
.home-page .plan > p { margin-bottom: 24px; }
.home-page .plan > .button {
  flex-shrink: 0;
  align-self: flex-start;
  max-width: 100%;
  margin-top: auto;
  padding-inline: 16px;
  white-space: nowrap;
}
.home-page .capture-steps { margin-block: 24px; gap: 24px; }
.home-page .capture-steps li { gap: 12px; }
.home-page .capture-editing { padding: 0; }
.home-page .tool-item { gap: 16px; }
.home-page .tools-grid { column-gap: 48px; row-gap: 32px; }
.home-page .privacy-links { gap: 8px; margin-top: 24px; }
.home-page .processing-row dd { margin-top: 8px; }
.home-page .billing-note { margin-top: 24px; }
.home-page .download-actions { margin-top: 24px; gap: 16px; }
.home-page .download-note { margin-top: 16px; }

/* Color belongs to the logo and the product, with neutral supporting chrome. */
.home-page .release-badge { border: 0; border-radius: 0; background: none; }
.home-page .workflow-card,
.home-page .capture-format,
.home-page .plan-pro,
.home-page .download-inner { background: var(--home-surface); border-color: var(--home-line); }
.home-page .feature-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  border-radius: 0;
  background: none;
  color: var(--text-secondary);
}
.home-page .feature-icon svg { width: 18px; height: 18px; }
.home-page .tool-item > i {
  width: 24px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text-secondary);
}
.home-page .tool-item > i svg { width: 18px; height: 18px; }
.home-page .format-name { color: var(--text-secondary); letter-spacing: 0; }
.home-page .wn-desktop-scene { background: var(--home-surface); }
.home-page .wn-dictation-play { background: white; border-color: var(--home-line); color: var(--text-primary); }

/* Keep the existing family and readable body scale; give headings some air. */
.home-page .brand { font-weight: 600; letter-spacing: -.02em; }
.home-page .hero-copy > h1 {
  font-size: clamp(48px, 4.45vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.03em;
}
.home-page .hero-lead { padding: 0; font-size: 20px; line-height: 1.6; letter-spacing: 0; }
.home-page .eyebrow {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.home-page .section-heading h2,
.home-page .capture-copy h2,
.home-page .privacy-inner h2,
.home-page .faq-section > h2,
.home-page .download-inner h2 {
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.home-page .section-heading { max-width: 720px; }
.home-page .workflow-card > .eyebrow { font-size: 14px; letter-spacing: 0; }
.home-page .workflow-card h3,
.home-page .capture-format h3,
.home-page .tool-item h3 { font-size: 22px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.home-page .capture-steps h3,
.home-page .processing-row dt,
.home-page .faq-item summary { font-weight: 500; letter-spacing: 0; }
.home-page .plan h3 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.home-page .plan-pro h3 { font-size: 24px; line-height: 1.3; }
.home-page .button,
.home-page .header-download,
.home-page .text-link { font-weight: 500; }
.home-page .header-download { min-height: 40px; padding: 8px 16px; gap: 8px; line-height: 20px; }
.home-page .button { min-height: 48px; padding: 10px 20px; gap: 8px; line-height: 24px; }
.home-page .button svg,
.home-page .header-download svg { width: 18px; height: 18px; }
.home-page .requirements { font-size: 14px; }
.home-page .iphone-link { font-size: 16px; font-weight: 500; color: var(--text-link); }
.home-page .privacy-links .text-link { font-size: 16px; }
.home-page .faq-item > p { font-size: var(--body-copy); line-height: 1.7; }
.home-page .download-inner > p:not(.eyebrow):not(.download-note) { max-width: 680px; margin-inline: auto; }

/* Guide links remain in the HTML. On phones each topic opens independently. */
.home-page .topic-rows { margin-block: 32px 24px; }
.home-page .topic-row { grid-template-columns: 32px minmax(0, 1fr) auto; padding-block: 24px; gap: 24px; }
.home-page .topic-number { font-variant-numeric: tabular-nums; }
.home-page .topic-row h3 { margin-bottom: 8px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.home-page .topic-row p { max-width: 64ch; line-height: 1.6; }
.home-page .topic-guides { margin-top: 12px; }
.home-page .topic-guides > summary { display: none; }
.home-page .topic-examples { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 0; }
.home-page .topic-open { font-weight: 500; }

/* A single stage for the unchanged native light and dark images. */
.home-page .screenshot-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.home-page .visual-caption { max-width: 640px; margin: 0; text-align: left; }
.home-page .screenshot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.home-page .appearance-options { display: flex; align-items: center; padding: 4px; border: 1px solid var(--home-line); border-radius: 12px; }
.home-page .appearance-options button { min-height: 36px; padding: 4px 12px; border: 0; border-radius: 8px; background: none; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.home-page .appearance-options button[aria-pressed=true] { background: #eceef2; color: var(--text-strong); }
.home-page .screenshot-original { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--text-secondary); }
.home-page .screenshot-more { margin-top: 16px; padding-top: 0; border: 0; }

/* The viewer uses the existing full image; the page keeps its original link fallback. */
.home-page .screenshot-viewer {
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100svh - 32px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: white;
  color: var(--text-primary);
  overflow: hidden;
}
.home-page .screenshot-viewer[open] { display: flex; flex-direction: column; }
.home-page .screenshot-viewer::backdrop { background: rgb(17 18 22 / 55%); }
.home-page .screenshot-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--home-line);
}
.home-page #screenshot-viewer-title { font-size: 16px; font-weight: 500; line-height: 24px; }
.home-page .screenshot-viewer-actions { display: flex; gap: 8px; }
.home-page .screenshot-viewer-actions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: white;
  font-size: 14px;
  line-height: 20px;
}
.home-page .screenshot-viewer-actions button:hover,
.home-page .screenshot-viewer-actions button[aria-pressed=true] { background: var(--home-surface); }
.home-page .screenshot-viewer-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}
.home-page .screenshot-viewer-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.home-page .screenshot-viewer[data-zoomed=true] .screenshot-viewer-scroll { display: block; }
.home-page .screenshot-viewer[data-zoomed=true] .screenshot-viewer-image { width: var(--viewer-zoom-width); max-width: none; max-height: none; }
.home-page #screenshot-viewer-caption { flex: none; padding: 12px 16px; border-top: 1px solid var(--home-line); font-size: 14px; line-height: 20px; }
.home-page .workflow-card,
.home-page .capture-format,
.home-page .plan { border-radius: 12px; }
.home-page .download-inner { border-radius: 16px; }
.home-page .step-mark { width: 32px; height: 32px; flex-basis: 32px; }
.home-page .faq-item summary { padding-block: 20px; }
.home-page .faq-item summary > span { color: var(--text-secondary); }
.home-page .faq-item > p { padding-bottom: 24px; }

/* The illustrated destination stays legible instead of shrinking to a desktop. */
.home-page .wn-dictation-demo { margin-block: 24px; }
.home-page .wn-desktop-scene { padding: 24px 24px 16px; border-radius: 16px; }
.home-page .wn-app-panel { height: 360px; min-height: 0; }
.home-page .wn-compose-meta { font-size: 13px; }
.home-page .wn-incoming { font-size: 13px; }
.home-page .wn-destination { min-height: 120px; font-size: 17px; }
.home-page .wn-dock { gap: 8px; padding: 8px 12px; }
.home-page .wn-dock button { min-width: 0; font-size: 11px; line-height: 16px; }
.home-page .wn-dock img { width: 40px; height: 40px; }
.home-page .wn-dock-divider { height: 36px; }
.home-page .wn-proof-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 20px 0 0;
  margin: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--home-line);
  border-radius: 0;
  background: none;
}
.home-page .wn-proof-action > .wn-proof-instruction { flex: 1 1 440px; margin: 0; font-size: 17px; line-height: 1.6; font-weight: 400; }
.home-page .wn-proof-action .install-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.home-page .wn-proof-action a.install-button { min-height: 48px; padding: 10px 16px; font-size: 16px; line-height: 24px; }
.home-page .wn-proof-action .wn-other-platform { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 24px; }
.home-page .wn-dictation-demo .wn-illustration-note { font-size: 13px !important; color: var(--text-secondary); }

/* Feedback only; the homepage demonstrates one destination per playback. */
.home-page .button,
.home-page .appearance-options button,
.home-page .screenshot-original,
.home-page .wn-dictation-play {
  transition: color 160ms cubic-bezier(.22, 1, .36, 1), background-color 160ms cubic-bezier(.22, 1, .36, 1), border-color 160ms cubic-bezier(.22, 1, .36, 1);
}
.home-page .text-link:hover svg,
.home-page .wn-dock button:hover img,
.home-page .wn-dock button:focus-visible img { transform: none; }
.home-page .appearance-options button:hover { background: var(--home-surface); }

@media (max-width: 1180px) {
  .home-page .section,
  .home-page .header-inner { width: calc(100% - 64px); }
  .home-page .hero-copy { gap: 24px 40px; }
  .home-page .capture-section,
  .home-page .privacy-inner,
  .home-page .faq-section { gap: 40px; }
  .home-page .hero-copy > h1 { font-size: clamp(48px, 5.2vw, 60px); }
}

@media (max-width: 780px) {
  .home-page { --home-gap: 64px; }
  .home-page .section,
  .home-page .header-inner { width: calc(100% - 48px); }
  .home-page .header-inner { min-height: 64px; gap: 16px; }
  .home-page .hero { padding-block: 32px 48px; }
  .home-page .hero-copy { display: block; }
  .home-page .hero-copy > h1 { margin-top: 20px; font-size: 48px; line-height: 1.1; }
  .home-page .hero-detail { padding: 0; margin-top: 20px; }
  .home-page .hero-lead { font-size: 18px; line-height: 1.6; }
  .home-page .hero-visual { margin-top: 32px; }
  .home-page .wn-demo-home,
  .home-page .topics-section,
  .home-page .product-section,
  .home-page .capture-section,
  .home-page .follow-section,
  .home-page .faq-section,
  .home-page .download-section { padding-block: 32px; }
  .home-page .wn-demo-home { padding-top: 16px; }
  .home-page .privacy-inner { padding-block: 48px; gap: 32px; }
  .home-page .pricing-section { padding-block: 64px 32px; }
  .home-page .workflow-grid { gap: 16px; }
  .home-page .plans { grid-template-columns: 1fr; gap: 16px; }
  .home-page .workflow-card { padding: 24px; }
  .home-page .feature-icon { position: static; margin-bottom: 20px; }
  .home-page .capture-section { gap: 32px; }
  .home-page .capture-copy h2 { max-width: 540px; }
  .home-page .tools-grid { gap: 32px; }
  .home-page .faq-section { gap: 24px; }
  .home-page .download-inner { padding: 40px 24px; }
  .home-page .section-heading h2,
  .home-page .capture-copy h2,
  .home-page .privacy-inner h2,
  .home-page .faq-section > h2,
  .home-page .download-inner h2 { font-size: 32px; }
}

@media (max-width: 600px) {
  .home-page .section,
  .home-page .header-inner { width: calc(100% - 40px); }
  .home-page .hero-copy > h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.02em; }
  .home-page .hero-actions { gap: 8px 16px; }
  .home-page .hero-actions .button { min-height: 48px; padding-inline: 16px; font-size: 16px; }
  .home-page .section-heading h2,
  .home-page .capture-copy h2,
  .home-page .privacy-inner h2,
  .home-page .faq-section > h2,
  .home-page .download-inner h2 { font-size: 30px; line-height: 1.2; }
  .home-page .hero-copy > .release-badge { font-size: 13px; line-height: 20px; }
  .home-page .privacy-links .text-link { min-height: 44px; font-size: 16px; }
  .home-page .faq-item > p { font-size: 17px; }
  .home-page .topic-row { grid-template-columns: 24px minmax(0, 1fr); gap: 16px; }
  .home-page .topic-row h3 { font-size: 24px; }
  .home-page .topic-row .topic-open { grid-column: 2; min-height: 44px; display: inline-flex; align-items: center; }
  .home-page .topic-guides { margin-top: 8px; }
  .home-page .topic-guides > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 16px; list-style: none; font-size: 16px; font-weight: 500; color: var(--text-link); }
  .home-page .topic-guides > summary::-webkit-details-marker { display: none; }
  .home-page .topic-guides > summary::after { content: '+'; flex: none; color: var(--text-secondary); }
  .home-page .topic-guides[open] > summary::after { content: '−'; }
  .home-page .topic-examples { display: grid; gap: 8px; padding-block: 8px; }
  .home-page .topic-examples a { padding-block: 4px; }
  .home-page .screenshot-meta { gap: 8px; }
  .home-page .screenshot-actions { gap: 8px 16px; }
  .home-page .appearance-options button { min-height: 44px; }
  .home-page .visual-caption { font-size: 14px; }
  .home-page .tools-grid { grid-template-columns: 1fr; }
  .home-page .wn-desktop-scene { padding: 16px 12px 12px; }
  .home-page .wn-app-panel { height: auto; min-height: 360px; }
  .home-page .wn-dictation-demo[data-state=recording] .wn-dictated,
  .home-page .wn-dictation-demo[data-state=processing] .wn-dictated { position: static; }
  .home-page .wn-caret { display: none; }
  .home-page .wn-dictation-action p { min-height: 48px; font-size: 14px; line-height: 24px; }
  .home-page .wn-compose-body { padding: 16px; }
  .home-page .wn-destination { font-size: 16px; min-height: 120px; }
  .home-page .wn-dock { gap: 4px; padding: 8px; }
  .home-page .wn-dock img { width: 32px; height: 32px; }
  .home-page .wn-dock-divider { height: 28px; }
  .home-page .wn-dock button { font-size: 11px; }
  .home-page .wn-proof-action { gap: 16px; }
  .home-page .wn-proof-action .install-actions { align-items: center; }
  .home-page .wn-proof-action a.install-button { width: auto; }
  .home-page #screenshot-viewer-title { flex-basis: 100%; }
  .home-page .download-actions .button { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { transition: none !important; }
}
