/* Bundled for faster first paint. Source: normalize.css + style.css + site-ui.css */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

:root {
  --bg: #fffaf4;
  --surface: #ffffff;
  --ink: #111017;
  --muted: #5a5260;
  --line: #ded4cf;
  --line-strong: #1a1621;
  --accent: #ec284f;
  --accent-2: #ff9136;
  --success: #117f53;
  --danger: #bf2942;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 16, 23, 0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(18, 16, 23, 0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(950px at 108% -12%, #ffd9c0, transparent 58%),
    radial-gradient(920px at -24% 18%, #ffd5df, transparent 58%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 2px solid #1a1621;
  background: rgba(255, 252, 249, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #1a1621;
}

.logo span {
  color: var(--accent);
  font-size: 0.8em;
  letter-spacing: 0;
}

.header-nav {
  justify-self: center;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.header-nav a {
  border: 2px solid #1a1621;
  border-radius: 10px;
  padding: 8px 12px;
  color: #1a1621;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: #fff;
}

.nav-label-short {
  display: none;
}

.header-nav a.active,
.header-nav a:hover {
  background: #1a1621;
  color: #fff;
  text-decoration: none;
}

.language {
  position: relative;
}

.language .current {
  border: 2px solid #1a1621;
  border-radius: 10px;
  background: #fff;
  min-height: 40px;
  min-width: 148px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
  white-space: nowrap;
  color: #1a1621;
  cursor: pointer;
}

.language .dropdown {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 184px;
  max-width: 220px;
  border: 2px solid #1a1621;
  border-radius: 10px;
  background: #fff;
  display: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.language.open .dropdown {
  display: block;
}

.language .dropdown a {
  display: block;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1a1621;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

.language .dropdown a:hover {
  background: #f5efe9;
  text-decoration: none;
}

.page-main {
  padding: 30px 0 50px;
}

.hero {
  margin-bottom: 16px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.55;
  margin-left: auto;
  margin-right: auto;
}

.input-card {
  border: 2px solid #1a1621;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.download-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.download-form input {
  border: 2px solid #1a1621;
  border-radius: 10px;
  min-height: 50px;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #1a1621;
}

.download-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(236, 40, 79, 0.18);
}

.btn {
  border: 2px solid #1a1621;
  border-radius: 10px;
  min-height: 50px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn-icon {
  width: 50px;
  min-width: 50px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon span[hidden] {
  display: none !important;
}

.btn-primary {
  border-color: #1a1621;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible {
  background: linear-gradient(90deg, #d81b43, #f57d22);
}

.btn-ghost {
  background: #fff;
  color: #1a1621;
}

.loading {
  margin: 16px 0;
  padding: 12px;
  border: 2px solid #1a1621;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.loading-bar {
  margin-top: 8px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #1a1621;
  background: #fff5ee;
  overflow: hidden;
}

.loading-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.error-message {
  margin: 16px 0;
  border: 2px solid #1a1621;
  background: #ffeef1;
  color: var(--danger);
  border-radius: 10px;
  padding: 10px 12px;
}

.page-copy {
  margin-top: 42px;
  display: grid;
  gap: 36px;
}

.page-copy article {
  border: 2px solid #1a1621;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.page-copy article.page-copy-about {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  text-align: center;
}

.page-copy article.page-copy-about .about-inline {
  max-width: min(980px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  margin-bottom: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-copy h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.page-copy p {
  margin: 8px 0;
  color: #332f3a;
  line-height: 1.6;
}

.page-copy-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #332f3a;
  display: grid;
  gap: 8px;
}

.page-copy-list li {
  line-height: 1.55;
}

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

.page-copy-subcard {
  border: 2px solid #1a1621;
  border-radius: 10px;
  padding: 12px;
  background: #fff9f4;
}

.page-copy-subcard h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-copy-subcard .page-copy-list {
  margin-top: 0;
}

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

.step-item {
  border: 2px solid #1a1621;
  border-radius: 10px;
  padding: 10px;
  background: #fff9f4;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1a1621;
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.step-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.step-item p {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  border: 2px solid #1a1621;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list details p {
  margin-top: 10px;
}

.site-footer {
  border-top: 2px solid #1a1621;
  background: rgba(255, 255, 255, 0.9);
  margin-top: 24px;
}

.footer-inner {
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
  color: #4f4856;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #1a1621;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-links a.active,
.footer-links a:hover {
  color: var(--accent);
}

.static-page {
  border: 2px solid #1a1621;
  border-radius: 14px;
  background: #fff;
  padding: 20px;
}

.static-page h1 {
  margin-top: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.static-page h2 {
  margin: 18px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.static-page .updated {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.policy-list {
  margin: 0;
  padding-left: 20px;
}

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

.contact-card {
  border: 2px solid #1a1621;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form input,
.contact-form textarea {
  border: 2px solid #1a1621;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* iOS Safari auto-zooms focused controls smaller than 16px. */
@supports (-webkit-touch-callout: none) {
  .download-form input,
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }
}

.contact-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  border: 2px solid #1a1621;
}

.contact-alert.success {
  background: #effaf3;
  color: var(--success);
}

.contact-alert.error {
  background: #fff2f4;
  color: #b22136;
}

@media (max-width: 940px) {
  .site-header {
    position: static;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo lang"
      "nav nav";
    min-height: auto;
    padding: 10px 0;
  }

  .logo {
    grid-area: logo;
  }

  .language {
    grid-area: lang;
    justify-self: end;
  }

  .header-nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .header-nav a {
    text-align: center;
    padding: 8px 8px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .download-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .download-form .btn-primary {
    grid-column: 1 / -1;
  }

  .steps-grid,
  .page-copy-columns,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1080px, calc(100% - 20px));
  }

  .hero h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .page-copy {
    margin-top: 32px;
    gap: 24px;
  }

  .language .current {
    min-width: 140px;
  }

  .language .dropdown {
    min-width: 180px;
    max-width: 200px;
  }

  .input-card,
  .page-copy article,
  .static-page {
    border-radius: 12px;
  }
}

.media-results {
  margin-top: 18px;
}

.result-summary {
  color: #37303d;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.media-list {
  display: grid;
  gap: 14px;
}

.media-list-item {
  border: 2px solid #1a1621;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
  align-content: start;
}

.media-col-preview {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.media-preview {
  border: 2px dashed #1a1621;
  border-radius: 10px;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, #fff5ee, #fff5ee 10px, #ffe7d9 10px, #ffe7d9 20px);
  aspect-ratio: 4 / 5;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fff;
}

.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.media-preview-fallback {
  padding: 10px;
  color: #2d2734;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media-col-content {
  display: grid;
  gap: 8px;
  align-content: start;
}

.media-title {
  margin: 2px 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #181420;
}

.media-meta {
  border: 2px solid #1a1621;
  border-radius: 10px;
  background: #fffdf9;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.media-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #332f39;
}

.media-meta-label {
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.media-meta-value {
  text-align: right;
  overflow-wrap: anywhere;
}

.media-post {
  border-top: 2px dashed #ccbfb7;
  padding-top: 8px;
  display: grid;
  gap: 4px;
}

.media-post-text {
  margin: 0;
  color: #3b3540;
  font-size: 13px;
  line-height: 1.5;
}

.media-actions {
  align-self: stretch;
  display: flex;
  width: 100%;
}

.media-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 2px solid #1a1621;
  border-radius: 10px;
  background: #fff;
  color: #181420;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  min-height: 54px;
  padding: 12px 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
}

.media-btn:hover,
.media-btn:focus,
.media-btn:focus-visible {
  text-decoration: none;
  background: #181420;
  color: #fff;
}

.media-actions a.media-btn,
.media-actions a.media-btn:hover,
.media-actions a.media-btn:focus,
.media-actions a.media-btn:focus-visible,
.media-actions a.media-btn:active,
.media-actions a.media-btn:visited {
  text-decoration: none !important;
}

.media-btn.primary {
  background: linear-gradient(90deg, var(--accent, #ec284f), var(--accent-2, #ff9136));
  color: #fff;
}

.media-btn.primary:hover,
.media-btn.primary:focus,
.media-btn.primary:focus-visible {
  background: linear-gradient(90deg, #d81b43, #f57d22);
  color: #fff;
}

@media (max-width: 920px) {
  .media-preview {
    aspect-ratio: 3 / 4;
    min-height: 250px;
  }
}

@media (min-width: 1180px) {
  .media-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}
