/* STL Viewer iOS showcase (/ios/, /ios/id/) on stlviewer.swift.id. Separate from src/site.css (Android pages). Colors follow the app's "slate" store look
   (ios-apps: store/stlviewer/screenshots/style.json): deep blue-slate #1d3557 -> #0c1729 with orange #f07a1f. */

:root {
  --slate: #1d3557;
  --slate-deep: #0c1729;
  --orange: #f07a1f;
  --on-orange: #0c1729;
  --link: #a84400;
  --btn: #b04700;
  --btn-hover: #8f3900;
  --on-btn: #ffffff;
  --text: #0f1b2d;
  --muted: #4a5668;
  --bg: #ffffff;
  --surface: #f3f5f9;
  --card: #ffffff;
  --line: #dde3ec;
  --ok: #17805a;
  --shadow: 0 1px 2px rgb(15 27 45 / 6%), 0 10px 28px -14px rgb(15 27 45 / 22%);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --wrap: 1120px;
  --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --link: #ff9a5c;
    --btn: #f07a1f;
    --btn-hover: #ff9a5c;
    --on-btn: #0c1729;
    --text: #eef2f8;
    --muted: #a7b3c6;
    --bg: #0a1220;
    --surface: #0f1a2d;
    --card: #13213a;
    --line: #22344f;
    --ok: #4fd1a1;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 14px 30px -14px rgb(0 0 0 / 65%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

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

a {
  color: var(--link);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--orange);
  color: var(--on-orange);
  padding: 10px 14px;
  border-radius: var(--radius-m);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: var(--radius-m);
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-m);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-brand {
  background: var(--btn);
  color: var(--on-btn);
}

.btn-brand:hover {
  background: var(--btn-hover);
}

.btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 55%);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 10%);
}

/* Language switch: a short code (EN or ID) that links to the same page in the other language. */

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: -8px;
  border-radius: var(--radius-m);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.lang-switch:hover {
  color: var(--text);
  background: var(--surface);
}

.brand + .lang-switch {
  margin-left: auto;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .site-header .wrap {
    gap: 10px;
  }

  .site-header .lang-switch {
    margin-left: auto;
  }
}

@media (max-width: 360px) {
  .brand span {
    display: none;
  }
}

/* App Store badge: Apple's artwork at its own proportions, with clear space around it. */

.badge-link {
  display: inline-block;
  border-radius: 9px;
  line-height: 0;
}

.badge-link img {
  height: 54px;
  width: auto;
}

/* Hero */

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(55% 60% at 78% 30%, rgb(240 122 31 / 26%), transparent 70%),
    linear-gradient(180deg, var(--slate), var(--slate-deep));
  overflow: hidden;
  isolation: isolate;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding-block: 72px 0;
}

.hero-copy {
  padding-bottom: 72px;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 14%), 0 16px 40px -12px rgb(0 0 0 / 60%);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 800;
}

.tagline {
  margin-top: 14px;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 650;
  line-height: 1.3;
  color: #ffd2ad;
}

.hero .lead {
  margin-top: 16px;
  max-width: 34em;
  color: rgb(255 255 255 / 84%);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 16px;
  font-size: 15px;
  color: rgb(255 255 255 / 72%);
}

.hero-visual {
  align-self: end;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 400px);
  height: auto;
  border-radius: 28px 28px 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 40px;
    text-align: center;
  }

  .hero-copy {
    padding-bottom: 8px;
  }

  .app-icon {
    margin-inline: auto;
    width: 84px;
    height: 84px;
    border-radius: 19px;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual img {
    width: min(78%, 330px);
  }
}

/* Facts strip */

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

.facts ul {
  list-style: none;
  margin: 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.facts strong {
  font-size: 16px;
}

.facts span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .facts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Sections */

.section {
  padding-block: 88px;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 600px) {
  .section {
    padding-block: 64px;
  }

  .section-head {
    margin-bottom: 32px;
  }
}

/* Screenshot gallery: a scrolling row on phones, a 4 x 2 grid on wide screens. */

.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.shots img,
.shot-ipad img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  background: var(--slate-deep);
}

@media (max-width: 860px) {
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 18px;
    scroll-padding-inline: var(--gutter);
  }

  .shots li {
    flex: 0 0 62%;
    max-width: 260px;
    scroll-snap-align: start;
  }
}

.shots-hint {
  display: none;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 860px) {
  .shots-hint {
    display: block;
  }
}

/* Feature cards */

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

.card {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 16px;
  font-size: 20px;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--slate), var(--slate-deep));
  color: var(--orange);
}

.icon svg {
  width: 26px;
  height: 26px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
  vertical-align: middle;
}

.card .tag {
  position: absolute;
  top: 26px;
  right: 22px;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Feature rows with an iPad screenshot */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.feature + .feature {
  margin-top: 88px;
}

.feature:nth-of-type(even) .feature-text {
  order: 2;
}

.feature h2 {
  margin-top: 2px;
}

.feature-text > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.checks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 32px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  -webkit-mask: radial-gradient(circle, #000 0 4px, transparent 4.5px);
  mask: radial-gradient(circle, #000 0 4px, transparent 4.5px);
}

.fine {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature:nth-of-type(even) .feature-text {
    order: 0;
  }

  .feature + .feature {
    margin-top: 64px;
  }
}

/* Free vs Premium */

.plans {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.plans table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.plans caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.plans th,
.plans td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.plans tbody tr:last-child th,
.plans tbody tr:last-child td {
  border-bottom: 0;
}

.plans thead th {
  font-size: 15px;
  background: var(--surface);
}

.plans thead th:nth-child(n + 2),
.plans td {
  width: 24%;
  text-align: center;
}

.plans thead th.premium {
  background: linear-gradient(160deg, var(--slate), var(--slate-deep));
  color: #fff;
}

.plans tbody th {
  font-weight: 600;
}

.plans tbody th small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
}

.yes,
.no {
  display: inline-block;
  font-weight: 800;
}

.yes {
  color: var(--ok);
}

.no {
  color: var(--muted);
}

.plans td small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.plans-note {
  max-width: 820px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

@media (max-width: 600px) {
  .plans th,
  .plans td {
    padding: 12px 10px;
    font-size: 15px;
  }

  .plans thead th:nth-child(n + 2),
  .plans td {
    width: 26%;
  }
}

/* Who it is for */

.audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.audience li {
  padding: 22px;
  border-top: 3px solid var(--orange);
  background: var(--card);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  box-shadow: var(--shadow);
}

.audience strong {
  display: block;
  font-size: 18px;
}

.audience span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 960px) {
  .audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .audience {
    grid-template-columns: 1fr;
  }
}

/* FAQ */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-m);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 500;
  color: var(--link);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq details > div p + p {
  margin-top: 10px;
}

/* Closing call to action */

.cta {
  color: #fff;
  text-align: center;
  background:
    radial-gradient(50% 80% at 50% 0%, rgb(240 122 31 / 24%), transparent 70%),
    linear-gradient(180deg, var(--slate), var(--slate-deep));
}

.cta .app-icon {
  margin: 0 auto 22px;
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

.cta h2 {
  color: #fff;
}

.cta p {
  margin: 14px auto 0;
  max-width: 36em;
  color: rgb(255 255 255 / 82%);
  font-size: 18px;
}

.cta .badge-link {
  margin-top: 28px;
}

/* Footer */

.site-footer {
  padding-block: 48px 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}

.footer-top p {
  margin-top: 10px;
  max-width: 30em;
  color: var(--muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 32px;
  align-content: start;
}

.footer-links a {
  display: inline-block;
  padding-block: 4px;
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link);
  text-decoration: underline;
}

.legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

@media (max-width: 520px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* 404 */

.not-found {
  padding-block: 96px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.not-found h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.not-found p {
  color: var(--muted);
}

.not-found .code {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--link);
}
