:root {
  --dt-blue: #2457c5;
  --dt-blue-dark: #173b86;
  --dt-yellow: #ffd633;
  --dt-ink: #152033;
  --dt-muted: #5e6878;
  --dt-surface: #ffffff;
  --dt-soft: #f3f6fb;
  --dt-line: #dce3ed;
}

html { scroll-behavior: smooth; }
body { margin: 0; color: var(--dt-ink); background: var(--dt-soft); font-family: Arial, "Segoe UI", sans-serif; }
a { color: var(--dt-blue); }
img { max-width: 100%; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 2000; padding: 10px 14px; background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }

body > header { position: sticky; inset-block-start: 0; z-index: 1000; background: rgba(255,255,255,.96); border-block-end: 1px solid var(--dt-line); box-shadow: 0 4px 20px rgba(21,32,51,.07); }
.nav { width: min(1180px, calc(100% - 32px)); margin-inline: auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; flex-direction: column; color: var(--dt-ink); font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.brand span { color: var(--dt-muted); font-size: .7rem; font-weight: 600; letter-spacing: 0; }
.nav > div { display: flex; align-items: center; gap: 8px; }
.nav > div a { padding: 10px 12px; border-radius: 10px; color: var(--dt-ink); font-weight: 700; text-decoration: none; }
.nav > div a:hover { background: var(--dt-soft); color: var(--dt-blue); }
.nav-toggle { display: none; min-width: 48px; min-height: 44px; border: 1px solid var(--dt-line); border-radius: 12px; background: #fff; color: var(--dt-ink); font-weight: 800; }

main { display: block; }
.catalog-hero, .product-hero, .section, .closing { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.catalog-hero { padding-block: clamp(48px, 7vw, 88px) 42px; }
.catalog-hero h1 { max-width: 760px; margin: 8px 0 22px; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.catalog-hero h1 span { color: var(--dt-blue); }
.catalog-hero .lead { max-width: 700px; color: var(--dt-muted); font-size: clamp(1rem, 1.7vw, 1.22rem); line-height: 1.65; }
.eyebrow { color: var(--dt-blue); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.button.primary { background: var(--dt-blue); color: #fff; box-shadow: 0 8px 20px rgba(36,87,197,.2); }
.button.outline { border: 1px solid var(--dt-line); background: #fff; color: var(--dt-ink); }
.hero-bottom, .actions, .card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.app-list { display: flex; gap: 8px; overflow-x: auto; padding-block: 8px; scrollbar-width: thin; }
.app-list a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--dt-line); border-radius: 999px; background: #fff; color: var(--dt-ink); font-weight: 700; text-decoration: none; }
.catalog-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block-start: 30px; }
.catalog-stats > div { padding: 20px; border: 1px solid var(--dt-line); border-radius: 16px; background: #fff; }
.catalog-stats strong, .catalog-stats span { display: block; }
.catalog-stats strong { font-size: 1.4rem; }
.catalog-stats span { margin-block-start: 4px; color: var(--dt-muted); }

.section { padding-block: 48px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 480px); gap: 28px; align-items: end; margin-block-end: 24px; }
.section-heading h2, .catalog-group-heading h2 { margin: 6px 0; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; }
.section-heading > p, .catalog-group-heading > p { color: var(--dt-muted); line-height: 1.65; }
.catalog-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.catalog-group-heading { grid-column: 1 / -1; padding-block: 40px 6px; border-block-start: 1px solid var(--dt-line); }
.catalog-card, .coming-card { min-width: 0; overflow: hidden; border: 1px solid var(--dt-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 32px rgba(21,32,51,.06); }
.catalog-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); }
.catalog-card.featured-app { grid-column: auto; }
.card-copy, .coming-card > div { padding: clamp(22px, 4vw, 34px); }
.card-copy h2, .coming-card h3 { margin: 6px 0 12px; font-size: clamp(1.45rem, 3vw, 2.15rem); }
.card-copy h2 a, .coming-card h3 a { color: var(--dt-ink); text-decoration: none; }
.card-copy > p:not(.eyebrow,.release), .coming-card > div > p:not(.eyebrow,.release) { color: var(--dt-muted); line-height: 1.65; }
.status-line { color: var(--dt-blue-dark); font-weight: 800; }
.card-screenshot-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px; background: #e9eef7; scroll-snap-type: x mandatory; }
.card-screenshot-strip .card-image { flex: 0 0 82%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; scroll-snap-align: start; background: #dce4f1; }
.card-screenshot-strip img, .coming-image img { width: 100%; height: 100%; object-fit: cover; }
.coming-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.coming-card { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); }
.coming-image { display: block; aspect-ratio: 16 / 9; background: #e9eef7; }

.breadcrumb { width: min(1180px, calc(100% - 32px)); margin: 24px auto 0; color: var(--dt-muted); }
.product-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 7vw, 78px); }
.product-hero .product-name { margin: 4px 0; color: var(--dt-muted); font-weight: 800; }
.product-hero h1 { max-width: 620px; margin: 8px 0 16px; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.04; letter-spacing: -.04em; }
.product-hero .lead { max-width: 650px; color: var(--dt-muted); font-size: 1.08rem; line-height: 1.65; }
.hero-shot { margin: 0; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(21,32,51,.14); }
.hero-shot img { display: block; width: 100%; border-radius: 14px; }
.product-nav { position: sticky; inset-block-start: 72px; z-index: 30; display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 10px 16px; border-block: 1px solid var(--dt-line); background: rgba(255,255,255,.96); }
.product-nav a { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; color: var(--dt-ink); font-weight: 700; text-decoration: none; }
.store-copy { max-width: 780px; color: var(--dt-muted); line-height: 1.75; }
.how-to ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding: 0; list-style: none; }
.how-to li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 20px; border: 1px solid var(--dt-line); border-radius: 16px; background: #fff; }
.how-to li span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--dt-blue); color: #fff; font-weight: 900; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 24px; }
.store-figure { margin: 0; overflow: hidden; border: 1px solid var(--dt-line); border-radius: 18px; background: #fff; }
.store-figure a.zoom { display: block; width: 100%; overflow: hidden; background: #e9eef7; }
.store-figure img { display: block; width: 100%; height: auto !important; aspect-ratio: auto; object-fit: contain; }
.store-figure figcaption { padding: 12px 16px; font-weight: 800; }
.store-figure small { display: block; color: var(--dt-muted); font-weight: 500; }
.readability-feature .card-screenshot-strip .card-image { flex: 1 1 100%; aspect-ratio: 16 / 10; }
.readability-feature .card-screenshot-strip img { object-fit: contain; background: #fff; }
.readable-gallery .gallery { grid-template-columns: 1fr; }
.readable-gallery .store-figure img { width: 100%; height: auto; object-fit: contain; }
.readable-gallery .store-figure figcaption { font-size: 1rem; line-height: 1.55; }
dialog#lightbox { width: min(96vw, 1600px); max-width: none; max-height: 96dvh; padding: 52px 18px 18px; border: 0; border-radius: 18px; background: #101827; color: #fff; }
dialog#lightbox::backdrop { background: rgba(8,13,24,.82); }
dialog#lightbox img { display: block; width: auto; max-width: 100%; height: auto !important; max-height: 82dvh; margin: auto; object-fit: contain; }
dialog#lightbox .close-viewer { position: absolute; inset-block-start: 10px; inset-inline-end: 12px; min-width: 42px; min-height: 42px; border: 0; border-radius: 50%; background: #fff; color: #111827; font-size: 1.5rem; }
dialog#lightbox p { margin: 12px auto 4px; max-width: 90ch; text-align: center; }
dialog#lightbox a { display: block; color: #ffd633; text-align: center; }
.closing { margin-block: 34px 70px; padding: clamp(26px, 5vw, 54px); border-radius: 24px; background: var(--dt-ink); color: #fff; }
.closing h2 { max-width: 780px; font-size: clamp(1.8rem, 4vw, 3.4rem); }
footer { padding: 36px max(16px, calc((100% - 1180px)/2)); border-block-start: 1px solid var(--dt-line); background: #fff; }
footer > div { display: flex; flex-wrap: wrap; gap: 16px; margin-block: 16px; }

:where(a,button,summary):focus-visible { outline: 3px solid var(--dt-yellow); outline-offset: 3px; }

@media (max-width: 820px) {
  .nav { min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav > div { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-block: 8px; }
  .nav > div.open { display: flex; }
  .nav > div a { min-height: 44px; display: flex; align-items: center; }
  .catalog-stats { grid-template-columns: 1fr; }
  .section-heading, .product-hero { grid-template-columns: 1fr; }
  .catalog-grid, .coming-grid { grid-template-columns: 1fr; }
  .catalog-card, .catalog-card.featured-app, .coming-card { grid-column: auto; display: block; }
  .product-hero { padding-block-start: 28px; }
  .product-hero h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .product-hero .lead { font-size: 1rem; }
  .product-nav { inset-block-start: 64px; justify-content: flex-start; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .store-figure { flex: 0 0 88%; scroll-snap-align: center; }
  .how-to ol { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .catalog-hero, .product-hero, .section, .closing, .breadcrumb { width: min(100% - 22px, 1180px); }
  .catalog-hero h1 { font-size: clamp(2.25rem, 13vw, 3.5rem); }
  .button { width: 100%; }
  .card-actions { align-items: stretch; }
  .card-screenshot-strip .card-image { flex-basis: 92%; }
}

/* UpMobile-inspired navigation and panel treatment, recreated for DooToob. */
.upmobile-inspired { background: linear-gradient(180deg, #e9eef8 0, #f7f9fd 540px, #eef2f8 100%); }
.upmobile-inspired > header { background: rgba(255,255,255,.98); }
.upmobile-inspired .brand { color: var(--dt-blue); }
.upmobile-inspired .brand::first-letter { color: #111827; }
.upmobile-inspired .catalog-hero {
  width: min(1220px, calc(100% - 32px));
  margin-block-start: 28px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,214,51,.9) 0 6%, transparent 6.5%),
    linear-gradient(135deg, #152f6f 0%, #2457c5 58%, #1888d5 100%);
  box-shadow: 0 22px 55px rgba(28,60,133,.24);
}
.upmobile-inspired .catalog-hero :where(.eyebrow,.lead) { color: #fff; }
.upmobile-inspired .catalog-hero h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
.upmobile-inspired .catalog-hero h1 span { color: var(--dt-yellow); }
.upmobile-inspired .catalog-hero .button.primary { background: var(--dt-yellow); color: #121b2d; box-shadow: none; }
.upmobile-inspired #app-demos { margin-block-start: 34px; }
.upmobile-inspired .app-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; overflow: visible; }
.upmobile-inspired .app-list a {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  color: inherit;
  text-align: center;
  backdrop-filter: blur(8px);
}
.upmobile-inspired .app-list a::before { content: "▦"; display: block; color: var(--dt-yellow); font-size: 1.8rem; line-height: 1; }
.upmobile-inspired #collection > .app-list { margin-block: 12px 30px; }
.upmobile-inspired #collection > .app-list a { border-color: var(--dt-line); background: #fff; color: var(--dt-ink); box-shadow: 0 8px 22px rgba(21,32,51,.06); }
.upmobile-inspired .catalog-stats > div { border-color: rgba(255,255,255,.28); background: rgba(11,27,61,.34); }
.upmobile-inspired .catalog-stats span { color: rgba(255,255,255,.8); }
.upmobile-inspired .catalog-card,
.upmobile-inspired .coming-card { border: 0; border-block-start: 6px solid var(--dt-blue); box-shadow: 0 16px 42px rgba(21,32,51,.11); }
.upmobile-inspired .catalog-card:nth-of-type(3n+1) { border-block-start-color: #2457c5; }
.upmobile-inspired .catalog-card:nth-of-type(3n+2) { border-block-start-color: #1888d5; }
.upmobile-inspired .catalog-card:nth-of-type(3n) { border-block-start-color: #d6a800; }
.upmobile-inspired .product-hero { margin-block-start: 28px; padding-inline: clamp(20px,4vw,48px); border-radius: 28px; background: #fff; box-shadow: 0 18px 48px rgba(21,32,51,.1); }
.upmobile-inspired .product-nav { box-shadow: 0 8px 24px rgba(21,32,51,.06); }

@media (max-width: 820px) {
  .upmobile-inspired.menu-open { overflow: hidden; }
  .upmobile-inspired .nav-toggle { position: relative; z-index: 1100; display: inline-flex; }
  .upmobile-inspired .nav > div {
    position: fixed;
    z-index: 1050;
    inset: 0 0 0 auto;
    width: min(82dvw, 340px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 84px 22px 28px;
    background: linear-gradient(180deg,#173b86,#2457c5);
    box-shadow: -18px 0 45px rgba(21,32,51,.3);
    transform: translateX(110%);
    transition: transform .22s ease;
  }
  .upmobile-inspired .nav > div.open { transform: none; }
  .upmobile-inspired .nav > div a { color: #fff; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
  .upmobile-inspired .catalog-hero { width: min(100% - 20px,1220px); margin-block-start: 10px; padding: 30px 20px; border-radius: 22px; }
  .upmobile-inspired .app-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .upmobile-inspired .app-list a { min-height: 76px; }
  .upmobile-inspired .product-hero { width: min(100% - 20px,1180px); margin-block-start: 10px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .upmobile-inspired .nav > div { transition: none; }
}
