/* ===== Variables ===== */
:root {
  --bg: #FCF9F5;
  --ink: #153630;
  --text: #4a5f58;
  --accent: #4FCE45;
  --accent-text: #24781F;
  --logo-green: #69907A;
  --deep: #153630;
  --line: #E8E2DA;
  --soft: #EDE8E0;
  --muted: #6b7c76;
  --white: #fff;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  width: min(1160px, calc(100% - 64px));
  margin: auto;
}

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

a {
  color: var(--ink);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
}

.lead {
  font-size: 19px !important;
  line-height: 1.5;
  color: var(--ink) !important;
}

.serif {
  font-family: Georgia, serif;
  font-weight: 400;
}

.more {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

/* ===== Header ===== */
.site-header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 64px));
  margin: auto;
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 150px;
  display: block;
}

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

/* Language switch */
.lang {
  display: flex;
  gap: 10px;
  margin-left: 28px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.lang a {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
}

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

.lang a[aria-current] {
  color: var(--ink);
  font-weight: 700;
}

.site-header nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .06em;
}

.site-header nav a:hover {
  color: var(--accent-text);
}

/* ===== Hero ===== */
.hero {
  padding: 60px 0 44px;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 20px 0 34px;
}

.hero h1 em {
  color: var(--logo-green);
}

.hero p {
  max-width: 760px;
  color: var(--text);
  font-size: 18px;
}

/* ===== Sections ===== */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(31px, 3.1vw, 41px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 15px 0 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.split p {
  color: var(--text);
  font-size: 17px;
}

.split h2 + .lead {
  margin-top: 28px;
}

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

/* ===== App cards (home) ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

#apps {
  padding-top: 40px;
}

.eyebrow + .app-grid {
  margin-top: 24px;
}

.app-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.app-card img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

.app-card h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 4px;
}

.app-card p {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 18px;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.app-links a:not(.more) {
  font-size: 15px;
  color: var(--muted);
}

.app-card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-style: dashed;
  color: var(--muted);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 19px;
  text-align: center;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(79, 206, 69, .14);
  border-radius: 99px;
  padding: 2px 10px;
  margin-bottom: 10px;
}

/* ===== Dark section (Contact) ===== */
.dark {
  background: var(--deep);
  color: var(--white);
  padding: 56px 0;
}

.dark .eyebrow {
  color: var(--accent);
}

.dark h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(31px, 3.1vw, 41px);
  line-height: 1.08;
  margin: 15px 0 0;
}

.dark p {
  color: #c4d1cc;
  font-size: 17px;
}

.dark a {
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 21px;
}

.dark .more {
  font-family: inherit;
  font-size: 16px;
}

/* ===== App page: hero ===== */
.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 600px) 300px;
  gap: 110px;
  align-items: center;
}

.app-icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px -12px rgba(21, 54, 48, .45);
}

.screenshot {
  display: block;
  width: 300px;
  height: auto;
  border: 9px solid var(--ink);
  border-radius: 46px;
  box-shadow: 0 30px 60px -30px rgba(21, 54, 48, .55);
}

.availability {
  margin: 16px 0 0;
  font-size: 14px !important;
  color: var(--muted) !important;
}

/* App icon grid (home hero): real apps first, empty tiles for apps to come */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 84px);
  gap: 24px;
  justify-content: center;
}

.icon-tile {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 19px;
}

.icon-tile img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 12px 26px -14px rgba(21, 54, 48, .5);
  transition: transform .2s;
}

a.icon-tile:hover img {
  transform: translateY(-3px);
}

.icon-tile.empty {
  border: 1.5px dashed var(--line);
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: 30px;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  width: 150px;
  height: auto;
}

.badge-soon {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

/* ===== App page: section intro ===== */
.section-intro {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--text);
  font-size: 17px;
}

/* ===== App page: features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
  margin-top: 32px;
}

.features div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.features h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 21px;
  margin-bottom: 6px;
}

/* Pro features (Retayn) */
.features h3 .tag {
  font-family: Inter, Arial, sans-serif;
  margin: 0 0 0 6px;
  vertical-align: middle;
}

.features p {
  color: var(--text);
  font-size: 15px;
  margin: 0;
}

/* ===== App page: pricing ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.plan {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.plan.pro {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
}

.plan.pro .price-alt {
  color: #a9bab4;
}

.plan.pro li {
  color: #dbe4e0;
  border-color: rgba(255, 255, 255, .14);
}

.plan h3 {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.price {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.price-alt {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.plan ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 8px 0 8px 26px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  position: relative;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}

.plan:not(.pro) li::before {
  color: var(--accent-text);
}

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

/* ===== App page: support ===== */
.support {
  border-top: 0;
}

.support-mail {
  font-family: Georgia, serif;
  font-size: 21px;
}

/* ===== Policy (legal text) ===== */
.policy {
  max-width: 780px;
  padding: 52px 0 64px;
}

.policy .back {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.policy h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(33px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 18px 0 14px;
}

.policy .meta {
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.policy h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  margin: 44px 0 12px;
}

.policy h3 {
  font-size: 16px;
  margin: 26px 0 6px;
}

.policy p,
.policy li {
  color: var(--text);
  font-size: 16px;
}

.policy ul {
  padding-left: 20px;
}

.policy strong {
  color: var(--ink);
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 15px;
}

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

.policy th {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.policy address {
  font-style: normal;
  color: var(--text);
}

/* ===== Footer ===== */
.footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.footer img {
  width: 110px;
  display: block;
}

.footer p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.footer a {
  color: var(--muted);
}

/* ===== Tablet (≤ 1024px) ===== */
@media (max-width: 1024px) {
  .pricing {
    grid-template-columns: 1fr;
  }

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

  .split {
    gap: 40px;
  }
}

/* ===== Mobile (≤ 800px) ===== */
@media (max-width: 800px) {
  .wrap,
  .site-header {
    width: min(100% - 36px, 1160px);
  }

  /* Header: brand + language on the first row, navigation below */
  .site-header {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 0 12px;
    row-gap: 12px;
  }

  .lang {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .brand img {
    width: 118px;
  }

  .site-header nav {
    gap: 18px;
  }

  .site-header nav a {
    font-size: 11px;
    letter-spacing: .02em;
  }

  /* Hero */
  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .app-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .icon-grid {
    grid-template-columns: repeat(5, 52px);
    gap: 14px;
    justify-content: start;
  }

  .icon-tile {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .icon-grid .empty:nth-child(n+6) {
    display: none;
  }

  .screenshot {
    width: min(260px, 75%);
    margin: 0 auto;
    border-width: 7px;
    border-radius: 38px;
  }

  /* Sections */
  .section,
  .dark {
    padding: 40px 0;
  }

  .split,
  .features {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .features {
    gap: 0;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .placeholder + .placeholder {
    display: none;
  }

  .app-card {
    padding: 24px;
  }

  .app-card img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .dark a,
  .support-mail {
    font-size: 18px;
  }

  /* Policy tables: stack label/value */
  .policy table,
  .policy tbody,
  .policy tr,
  .policy td {
    display: block;
  }

  .policy thead {
    display: none;
  }

  .policy tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .policy td {
    padding: 0;
    border: 0;
  }

  .policy td:first-child {
    color: var(--ink);
    font-weight: 700;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 0;
  }

  .footer p {
    text-align: left;
  }
}
