/*
 * tapp support's website (tappsupport.cz). Static page, no build step, no third-party requests:
 * the font is served from this origin (OFL, fonts/OFL.txt). Colours follow TAPP Studio's
 * language (orange #FF6D1F as the only accent, near-black ink); the product's own mark is the
 * orange speech bubble with TAPP's strokes (img/logo.svg).
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --surface: #f5f4f2;
  --ink: #17171c;
  --muted: #5b5b64;
  --line: #e6e4e0;
  --accent: #ff6d1f;
  --accent-ink: #17171c;
  --dark: #17171d;
  --dark-raised: #22222a;
  --on-dark: #f4f4f6;
  --on-dark-muted: #b3b3bd;
  --footer: #111116;

  --font:
    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 16px;
  --radius-small: 10px;

  color-scheme: light;
  accent-color: var(--accent);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

/* the ring is ink on light grounds and on the orange field, white on the dark bands */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-dark :focus-visible,
.site-footer :focus-visible,
.code:focus-visible {
  outline-color: #ffffff;
}

/* Icons: 24×24 strokes after Lucide (lucide.dev, ISC licence; parts from Feather, MIT): Copyright
   (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather, all other copyright
   (c) for Lucide are held by Lucide Contributors 2022. The inbox's own set where it has the icon
   (packages/dashboard/src/ui/icon-paths.ts), decorative next to their text. */
.icon {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 750;
  text-wrap: balance;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-small);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

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

.brand img {
  width: 34px;
  height: 34px;
}

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

.nav a {
  padding: 10px 12px;
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

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

.header-actions {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.header-actions .button {
  white-space: nowrap;
}

.menu {
  display: none;
  margin-left: auto;
}

.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}

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

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  padding: 12px var(--gutter) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px rgba(23, 23, 28, 0.25);
}

.menu-panel a:not(.button) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}

.menu-panel .button {
  margin-top: 20px;
  width: 100%;
}

.menu-panel .button + .button {
  margin-top: 12px;
}

/* ----------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: #000;
  text-decoration: none;
}

.button-secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.button-small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

.button-on-accent {
  background: var(--ink);
  color: #fff;
}

.button-on-accent:hover {
  background: #000;
}

.button-light {
  background: #fff;
  color: var(--ink);
}

.button-light:hover {
  background: #e7e7ec;
  text-decoration: none;
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 .soft {
  color: #8b8b94;
}

.lead {
  margin-top: 24px;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-facts .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* an iPhone-like frame around a store screenshot of the app */
.phone {
  position: relative;
  padding: 10px;
  background: #121216;
  border-radius: 46px;
  box-shadow: 0 30px 60px -24px rgba(23, 23, 28, 0.45);
}

.phone img {
  border-radius: 36px;
}

/* ----------------------------------------------------------------- section */

.section {
  padding: var(--section) 0;
}

.section-surface {
  background: var(--surface);
}

.section-flush {
  padding-top: 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2,
.split h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.875rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-head p,
.split .text > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.125rem;
}

/* features: a text grid, no boxes */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(28px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.features .icon,
.facts .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--accent);
}

.features h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.features p {
  margin-top: 10px;
  color: var(--muted);
}

/* split layouts */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}

.split .text {
  max-width: 34rem;
}

.checks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 10px 0 10px 30px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* app section */

.phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
}

.phones .phone {
  width: min(46%, 270px);
}

.phones .phone:nth-child(2) {
  margin-top: 56px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* the stores' own badges (as on TAPP's other products), not redrawn */
.store-badge {
  display: block;
  border-radius: 9px;
  transition: opacity 0.15s ease;
}

.store-badge:hover {
  opacity: 0.85;
}

.store-badge img {
  display: block;
  width: auto;
  height: 52px;
}

/* integration */

.code {
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}

.code .tag {
  color: #ff9a62;
}

.code .attr {
  color: #c7c7d1;
}

.code .value {
  color: #a7e3b7;
}

.code-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.integration-list {
  display: grid;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.integration-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 14px;
}

.integration-list .icon {
  grid-row: span 2;
  color: var(--accent);
}

.integration-list strong {
  display: block;
  font-size: 1.0625rem;
}

.integration-list span {
  color: var(--muted);
}

/* security: dark band */

.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section-dark .section-head p {
  color: var(--on-dark-muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #34343e;
  border: 1px solid #34343e;
  border-radius: var(--radius);
  overflow: hidden;
}

.facts li {
  padding: clamp(24px, 3vw, 36px);
  background: var(--dark);
}

.facts h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
}

.facts p {
  margin-top: 10px;
  color: var(--on-dark-muted);
}

/* questions */

/* pricing: our hosting as the dark card, the self-hosted version as the light one */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.plan-hosted {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--on-dark);
}

.plan-hosted :focus-visible {
  outline-color: #ffffff;
}

.plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.plan-badge {
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 28px 0 0;
}

.plan-price strong {
  font-size: clamp(2.5rem, 4.4vw, 3.25rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan-price span,
.plan-extra,
.plan-note {
  color: var(--muted);
}

.plan-extra {
  margin: 10px 0 0;
}

.plan-hosted .plan-price span,
.plan-hosted .plan-extra,
.plan-hosted .plan-note {
  color: var(--on-dark-muted);
}

.plan-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-hosted .plan-list {
  border-top-color: #34343e;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.plan-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}

/* the buttons of both cards on one line at the bottom, however long the texts above */
.plan .button {
  align-self: flex-start;
  margin-top: auto;
}

.plan-note {
  margin: 12px 0 0;
  font-size: 0.875rem;
}

.faq {
  max-width: 52rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 18px 0;
  font-size: 1.1875rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq details p {
  max-width: 44rem;
  padding: 0 0 24px;
  color: var(--muted);
}

/* call to action: the orange field */

.cta {
  background: var(--accent);
  color: var(--accent-ink);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: end;
  padding-block: clamp(64px, 9vw, 120px);
}

.cta h2 {
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cta p {
  margin-top: 18px;
  max-width: 34rem;
  font-size: 1.1875rem;
  font-weight: 500;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.cta-mail {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--footer);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(56px, 7vw, 88px) 48px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 20rem;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.company {
  font-style: normal;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 0 32px;
  border-top: 1px solid #2a2a33;
  font-size: 0.875rem;
}

.powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark-muted);
}

.powered svg {
  width: 12px;
  height: 19px;
}

.powered strong {
  color: #fff;
  font-weight: 650;
}

/* -------------------------------------------------------------- responsive */

/* the navigation, the sign-in and the contact need about 1 290 px on one line */
@media (max-width: 1299px) {
  .nav {
    display: none;
  }

  .menu {
    display: block;
    margin-left: 0;
  }

  .header-actions {
    margin-left: auto;
  }
}

/* the header shows both buttons: the menu does not repeat them */
@media (min-width: 641px) {
  .menu-panel .button {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .features,
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-reverse .media {
    order: 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .header-inner {
    min-height: 64px;
  }

  .header-actions {
    display: none;
  }

  .menu {
    margin-left: auto;
  }

  .brand {
    font-size: 1.0625rem;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .features,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .phones .phone {
    width: min(48%, 220px);
  }

  .phones .phone:nth-child(2) {
    margin-top: 36px;
  }

  .phone {
    padding: 7px;
    border-radius: 34px;
  }

  .phone img {
    border-radius: 27px;
  }

  .store-badge img {
    height: 48px;
  }

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

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

  .site-footer li + li {
    margin-top: 0;
  }

  .site-footer li a,
  .powered {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
