:root {
  --ink: #221729;
  --muted: #6f6174;
  --primary: #8d2fa3;
  --primary-dark: #43124f;
  --rose: #e76aa7;
  --paper: #fff8fd;
  --line: #ead7ec;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(231, 106, 167, 0.18), transparent 34rem),
    linear-gradient(180deg, #fffafd 0%, #ffffff 48%, #fbf4fb 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 253, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.language-dropdown {
  position: relative;
}

.language-toggle,
.language-menu button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.language-toggle {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 96px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(67, 18, 79, 0.16);
}

.language-dropdown.open .language-menu {
  display: grid;
  gap: 4px;
}

.language-menu button {
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button.active {
  background: #f5e8f6;
}

.flag {
  display: inline-block;
  width: 22px;
  height: 15px;
  border-radius: 3px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(34, 23, 41, 0.12);
}

.flag-bg {
  background-image: url("flag-bg.svg");
}

.flag-gb {
  background-image: url("flag-gb.svg");
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--primary-dark);
  background: #f5e8f6;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding: 56px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 34px 0 10px;
  font-size: 24px;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

.hero-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(67, 18, 79, 0.14);
}

.hero-card img {
  width: 112px;
  height: 112px;
  border-radius: 28px;
}

.hero-card strong {
  font-size: 28px;
}

.hero-card span,
.doc-card p,
.document p,
.document li,
.contact-box span {
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 56px;
}

.doc-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.doc-card span {
  color: var(--rose);
  font-weight: 900;
}

.doc-card h2 {
  margin-top: 18px;
  font-size: 22px;
}

.document {
  max-width: 860px;
  padding: 56px 0 70px;
}

.document h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 54px);
}

.document ul {
  padding-left: 22px;
}

.notice,
.contact-box {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--primary-dark);
  background: #f8edf8;
}

.contact-box {
  display: grid;
  gap: 8px;
}

.contact-box a {
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-row {
    width: 100%;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 24px, 1120px);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

.landing-page {
  background:
    radial-gradient(circle at 78% 6%, rgba(141, 47, 163, 0.12), transparent 24rem),
    radial-gradient(circle at 18% 44%, rgba(231, 106, 167, 0.10), transparent 20rem),
    #fff;
}

.landing-header {
  background: rgba(255, 255, 255, 0.94);
}

.landing-main {
  width: min(1260px, calc(100% - 32px));
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(560px, 1.08fr);
  gap: 34px;
  align-items: center;
  min-height: 620px;
  padding: 54px 0 34px;
}

.hero-copy h1 {
  max-width: 610px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.12;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy p {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(74px, 1fr));
  gap: 14px;
  max-width: 640px;
  margin-top: 58px;
  color: var(--primary-dark);
  font-weight: 750;
  text-align: center;
}

.feature-strip span::before {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 30px;
  line-height: 1;
}

.feature-strip span:nth-child(1)::before { content: "☷"; }
.feature-strip span:nth-child(2)::before { content: "▣"; }
.feature-strip span:nth-child(3)::before { content: "☰"; }
.feature-strip span:nth-child(4)::before { content: "▭"; }
.feature-strip span:nth-child(5)::before { content: "◇"; }
.feature-strip span:nth-child(6)::before { content: "☁"; }

.phone-stage {
  position: relative;
  min-height: 610px;
}

.phone {
  position: absolute;
  overflow: hidden;
  border: 9px solid #151116;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(34, 23, 41, 0.22);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 48px;
  height: 14px;
  border-radius: 999px;
  background: #111;
  transform: translateX(-50%);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-main {
  top: 4px;
  left: 50%;
  z-index: 3;
  width: 292px;
  height: 600px;
  transform: translateX(-50%);
}

.phone-side {
  top: 82px;
  z-index: 2;
  width: 222px;
  height: 472px;
}

.phone-left {
  left: 0;
  transform: rotate(-5deg);
}

.phone-right {
  right: 0;
  transform: rotate(5deg);
}

.business-section,
.screens-section {
  padding: 26px 0 28px;
}

.business-section h2,
.screens-section h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(28px, 3vw, 38px);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.business-grid article,
.screen-card {
  border: 1px solid #f0dff1;
  border-radius: 8px;
  background: #fff8fe;
  box-shadow: 0 14px 38px rgba(67, 18, 79, 0.06);
}

.business-grid article {
  min-height: 130px;
  padding: 18px;
}

.business-grid strong,
.business-grid h3 {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 17px;
}

.business-grid p,
.screen-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 54px;
}

.screen-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 220px;
  padding: 20px;
}

.screen-card img {
  width: 118px;
  height: 180px;
  border: 5px solid #171219;
  border-radius: 20px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 12px 28px rgba(34, 23, 41, 0.18);
}

.screen-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}

@media (max-width: 1080px) {
  .app-hero {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 560px;
  }

  .phone-left {
    left: 9%;
  }

  .phone-right {
    right: 9%;
  }

  .business-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screens-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-hero {
    padding-top: 34px;
  }

  .feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .phone-stage {
    min-height: 510px;
  }

  .phone-main {
    width: 230px;
    height: 475px;
  }

  .phone-side {
    width: 170px;
    height: 360px;
    opacity: 0.74;
  }

  .phone-left {
    left: 0;
  }

  .phone-right {
    right: 0;
  }

  .business-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .landing-main {
    width: min(100% - 22px, 1260px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .phone-stage {
    min-height: 455px;
  }

  .phone-main {
    width: 210px;
    height: 430px;
  }

  .phone-side {
    top: 72px;
    width: 145px;
    height: 310px;
  }

  .business-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .screen-card {
    grid-template-columns: 104px 1fr;
    min-height: 190px;
  }

  .screen-card img {
    width: 96px;
    height: 150px;
  }
}

/* SEO content reuses the existing colors, cards and typography. */
.profession-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.business-grid a { display: inline-block; margin-top: 12px; color: var(--primary-dark); }
.profession-screenshot { float: right; width: 210px; margin: 30px 0 24px 30px; }
.profession-screenshot img { display: block; width: 100%; height: auto; border-radius: 16px; }
.profession-screenshot figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.profession-page .notice { clear: both; }
.profession-page .notice h2 { margin-top: 0; }
[id] { scroll-margin-top: 190px; }
@media (max-width: 560px) {
  .profession-grid { grid-template-columns: 1fr; }
  .profession-screenshot { float: none; margin: 30px auto; }
  .phone-left { left: 4px; }
  .phone-right { right: 4px; }
}
