@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --paper: #f7f4ed;
  --paper-2: #ece5d8;
  --ink: #1b2320;
  --muted: #64706b;
  --line: rgba(27, 35, 32, 0.14);
  --line-strong: rgba(27, 35, 32, 0.24);
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: #fffdf8;
  --green: #0f766e;
  --green-dark: #114f4a;
  --coral: #e4573d;
  --amber: #c98721;
  --blue: #2f6fb0;
  --violet: #6d5fb7;
  --shadow: 0 24px 70px rgba(36, 31, 24, 0.14);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  background:
    linear-gradient(90deg, rgba(27, 35, 32, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(27, 35, 32, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbf8f1 0%, var(--paper) 42%, #efe7d8 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

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

button,
input,
summary {
  font: inherit;
}

.skip-link {
  left: 16px;
  position: absolute;
  top: -40px;
  z-index: 20;
}

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

.page-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px 24px 56px;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 4px 0 28px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: var(--radius-sm);
  color: #fffdf8;
  display: inline-flex;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  letter-spacing: 0;
  width: 42px;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav-links a {
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  outline: 2px solid transparent;
}

.nav-links .nav-cta {
  background: var(--ink);
  color: #fffdf8;
}

.lang-switch {
  align-items: center;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}

.lang-switch button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  min-height: 32px;
  min-width: 38px;
  padding: 5px 8px;
}

.lang-switch button:hover,
.lang-switch button:focus-visible {
  color: var(--ink);
  outline: 2px solid transparent;
}

.lang-switch button.is-active {
  background: var(--ink);
  color: #fffdf8;
}

.content-lang-switch {
  margin-left: 10px;
  vertical-align: middle;
}

.hero {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  min-height: calc(100vh - 118px);
  padding: 18px 0 54px;
  position: relative;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow,
.panel-kicker,
.trust-label,
.article-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.7rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 22px;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

.hero-text {
  color: #46524d;
  font-size: 1.16rem;
  max-width: 62ch;
}

.hero-actions,
.panel-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 10px 15px;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid transparent;
}

.button-primary {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fffdf8;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
}

.hero-stats {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  max-width: 760px;
}

.hero-stats > div {
  border-right: 1px solid var(--line);
  padding: 18px 18px 0 0;
}

.hero-stats > div:last-child {
  border-right: 0;
}

.hero-stats dt {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.hero-stats dd {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0;
}

.hero-panel {
  align-self: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 520px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.hero-panel::before {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(228, 87, 61, 0.12), transparent 30%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-phone {
  background: #101614;
  border: 10px solid #101614;
  border-radius: 28px;
  box-shadow: 0 26px 52px rgba(22, 27, 24, 0.22);
  height: 360px;
  margin: 22px auto 26px;
  overflow: hidden;
  position: relative;
  transform: rotate(-3deg);
  width: 170px;
  z-index: 1;
}

.hero-phone img {
  border-radius: 18px;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.panel-topline,
.panel-copy,
.panel-points,
.panel-actions {
  position: relative;
  z-index: 2;
}

.panel-topline {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-icon,
.project-media {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.panel-icon {
  background: var(--green-dark);
  border-radius: var(--radius-md);
  color: #fffdf8;
  flex: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  height: 74px;
  letter-spacing: 0;
  position: relative;
  width: 74px;
}

.panel-icon::after {
  border: 3px solid rgba(255, 253, 248, 0.88);
  border-radius: 13px;
  content: "";
  inset: 18px;
  position: absolute;
}

.panel-icon-image {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(22, 27, 24, 0.16);
  overflow: hidden;
}

.panel-icon-image::after {
  display: none;
}

.panel-icon-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.panel-topline h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0;
}

.panel-copy {
  color: #46524d;
  font-size: 1rem;
  max-width: 30ch;
}

.panel-points,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-points {
  margin: 22px 0 0;
}

.panel-points span,
.tag-row span,
.content-meta span {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #45514c;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 9px;
}

.trust-strip {
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: #fffdf8;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 12px;
  overflow: hidden;
}

.trust-strip > div {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px;
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-label {
  color: #8fd9d1;
  display: block;
  margin-bottom: 8px;
}

.trust-strip strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.section-block {
  padding: 74px 0 0;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-heading p:last-child {
  color: #53605a;
  font-size: 1.04rem;
  max-width: 68ch;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 16px;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 240px;
  overflow: hidden;
  padding: 16px;
}

.project-card-featured {
  background: var(--surface-strong);
  grid-column: span 2;
  grid-template-columns: 190px minmax(0, 1fr);
}

.project-card:hover {
  border-color: var(--line-strong);
}

.project-media {
  border-radius: var(--radius-md);
  color: #fffdf8;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.project-media span {
  position: relative;
  z-index: 2;
}

.project-media::before,
.project-media::after {
  content: "";
  position: absolute;
}

.project-media-lock {
  background: #13211e;
}

.project-media-lock::before {
  border: 7px solid rgba(255, 253, 248, 0.92);
  border-bottom-width: 16px;
  border-radius: 23px;
  height: 72px;
  width: 72px;
}

.project-media-lock::after {
  background: var(--coral);
  border-radius: 999px;
  bottom: 45px;
  height: 16px;
  width: 16px;
}

.project-media-blue {
  background: var(--blue);
}

.project-media-blue::before {
  border: 8px solid rgba(255, 253, 248, 0.9);
  border-radius: 999px;
  inset: 23px;
}

.project-media-blue::after {
  background: var(--amber);
  border-radius: 999px;
  height: 16px;
  width: 16px;
}

.project-media-warm {
  background: var(--coral);
}

.project-media-warm::before {
  border: 8px solid rgba(255, 253, 248, 0.9);
  border-radius: 22px;
  inset: 23px;
}

.project-media-warm::after {
  background: var(--amber);
  border-radius: 999px;
  bottom: 32px;
  height: 24px;
  width: 24px;
}

.project-media-dark {
  background: var(--violet);
}

.project-media-dark::before {
  background: rgba(255, 253, 248, 0.16);
  border-radius: 18px;
  inset: 20px;
}

.project-media-dark::after {
  background: #fffdf8;
  border-radius: 999px;
  height: 16px;
  width: 16px;
}

.project-media-image {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.32)),
    var(--surface-strong);
  border: 1px solid rgba(27, 35, 32, 0.1);
  padding: 20px;
}

.project-media-image::before,
.project-media-image::after {
  display: none;
}

.project-media-image img {
  border-radius: 23%;
  box-shadow: 0 18px 38px rgba(22, 27, 24, 0.18);
  height: 92px;
  object-fit: cover;
  width: 92px;
}

.project-card-featured .project-media-image img {
  height: 118px;
  width: 118px;
}

.project-body {
  min-width: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.pill {
  border-radius: var(--radius-sm);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 8px;
  text-transform: uppercase;
}

.pill-android {
  background: rgba(15, 118, 110, 0.13);
  color: var(--green-dark);
}

.pill-focus,
.pill-travel {
  background: rgba(201, 135, 33, 0.15);
  color: #805312;
}

.pill-learn {
  background: rgba(47, 111, 176, 0.13);
  color: #214f80;
}

.pill-ios {
  background: rgba(109, 95, 183, 0.14);
  color: #4d4386;
}

.pill-ent {
  background: rgba(228, 87, 61, 0.13);
  color: #9d3727;
}

.card-actions {
  margin-top: 18px;
}

.article-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card,
.faq-item,
.content-card,
.feature-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.article-card {
  min-height: 100%;
  padding: 20px;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.article-link,
.back-link,
.footer-links a {
  color: var(--green-dark);
  display: inline-flex;
  font-weight: 900;
  text-decoration: none;
}

.article-link {
  margin-top: 14px;
}

.article-link:hover,
.article-link:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--coral);
  outline: none;
  text-decoration: underline;
}

.faq-grid {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 4px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  padding: 16px 0;
}

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

.faq-item p {
  margin-bottom: 16px;
  max-width: 72ch;
}

.site-footer {
  align-items: end;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 76px;
  padding: 24px 0 0;
}

.site-footer strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.content-page {
  margin: 0 auto;
  max-width: 980px;
  padding: 24px 24px 64px;
}

.content-hero {
  padding: 34px 0 18px;
}

.content-hero .eyebrow {
  margin-bottom: 16px;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.content-section {
  padding: 22px 0 0;
}

.content-card {
  padding: 24px;
}

.content-list {
  color: #46524d;
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.back-link {
  margin-bottom: 16px;
}

.project-hero {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.78fr);
  padding: 18px 0 8px;
}

.project-hero-copy {
  padding-top: 6px;
}

.project-hero-panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.project-hero-badge {
  align-items: center;
  background: var(--green-dark);
  border-radius: var(--radius-md);
  color: #fffdf8;
  display: inline-flex;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  height: 116px;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  width: 116px;
}

.project-hero-badge::before {
  border: 9px solid rgba(255, 253, 248, 0.92);
  border-bottom-width: 20px;
  border-radius: 27px;
  content: "";
  inset: 25px;
  position: absolute;
}

.project-hero-panel h2 {
  margin-bottom: 10px;
}

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

.feature-item {
  padding: 18px;
}

.feature-item p {
  margin-bottom: 0;
}

.project-screenshot-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screenshot-card {
  align-items: end;
  border-radius: var(--radius-md);
  color: #fffdf8;
  display: flex;
  min-height: 230px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.screenshot-card::before {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.screenshot-card span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.store-screenshot-grid {
  align-items: stretch;
}

.store-screenshot {
  aspect-ratio: 1220 / 2712;
  background: #111816;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 0;
  overflow: hidden;
}

.store-screenshot img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.screenshot-dark {
  background: #13211e;
}

.screenshot-blue {
  background: var(--blue);
}

.screenshot-gold {
  background: var(--amber);
}

@media (max-width: 1100px) {
  .hero,
  .project-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 460px;
  }

  .project-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .page-shell,
  .content-page {
    padding-inline: 18px;
  }

  .site-header,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .nav-links,
  .footer-links {
    justify-content: flex-start;
  }

  .trust-strip,
  .hero-stats,
  .project-card,
  .feature-grid,
  .project-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip > div,
  .hero-stats > div {
    border-right: 0;
  }

  .trust-strip > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-stats > div + div {
    border-top: 1px solid var(--line);
  }

  .project-media {
    min-height: 160px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 14px;
  }

  .hero {
    padding-top: 8px;
  }

  h1 {
    max-width: 100%;
  }

  .button,
  .hero-actions,
  .panel-actions,
  .card-actions,
  .hero-actions .button,
  .panel-actions .button,
  .card-actions .button {
    width: 100%;
  }

  .hero-panel {
    min-height: 430px;
  }

  .hero-phone {
    height: 315px;
    margin-bottom: 24px;
    width: 148px;
  }

  .panel-points {
    margin-bottom: 0;
  }
}
