/*
 * Shared stylesheet of the public site. Colours are the app's theme
 * primitives (cream background, ink text, forest links and fills, stone rule,
 * apricot accent on the landing page).
 *
 * Two looks live here. The document pages (privacy, terms, account deletion)
 * use the system font stack in one column of at most 40rem, with the same four
 * text sizes as the app (13/20, 16/24, 19/24, 26/32). The landing page (body
 * class "landing") uses Plus Jakarta Sans and Fraunces, served from /fonts.
 *
 * Everything here is same-origin: the page security policy has no inline
 * style, no script and no font or image source other than the site itself,
 * so every rule lives in this file and nothing loads from anywhere else.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans_400Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans_600SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans_700Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Fraunces";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Fraunces_700Bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #f5f1e8;
  color: #1f2b25;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

a {
  color: #1f4f3f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid #5c8a7a;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- document pages ---------------------------------------------------- */

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 32px;
}

.logo {
  width: 160px;
}

.lang-link {
  font-size: 16px;
  line-height: 24px;
}

.page h1 {
  margin: 0;
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.version {
  margin: 8px 0;
  font-size: 13px;
  line-height: 20px;
  color: #4a4339;
}

.page main p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 24px;
}

.page main h2 {
  margin: 32px 0 8px;
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
}

.page main ul {
  margin: 0 0 16px;
  padding-left: 24px;
  list-style: disc;
}

.page main li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 24px;
}

.site-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #e4ded0;
  font-size: 13px;
  line-height: 20px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot-links a {
  font-weight: 700;
}

.company {
  margin: 0;
  color: #7a7468;
}

/* ---- not-found page ---------------------------------------------------- */

.page .notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

/* ---- landing page ------------------------------------------------------ */

.landing {
  background: #faf7ee;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:where(.landing) :where(p, h1, h2, h3, ol) {
  margin: 0;
}

.lp-wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 32px 8px;
}

.lp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
}

.lp-logo {
  width: 168px;
}

.lp-lang {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #e4ded0;
  border-radius: 999px;
  background: #ffffff;
  color: #1f4f3f;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.lp-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
  padding: 72px 64px;
  border-radius: 36px;
  background: #1f4f3f;
  overflow: hidden;
}

.lp-eyebrow {
  color: #efa676;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lp-h1 {
  margin: 16px 0 22px;
  color: #f5f1e8;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.lp-lead {
  max-width: 540px;
  color: rgba(245, 241, 232, 0.86);
  font-size: 18px;
  line-height: 1.6;
}

.lp-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 10px 22px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: #111111;
  color: #ffffff;
}

.lp-store-s {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 14px;
  text-transform: uppercase;
}

.lp-store-n {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.01em;
}

.lp-meta {
  margin-top: 16px;
  color: rgba(245, 241, 232, 0.7);
  font-size: 14px;
  line-height: 20px;
}

.lp-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 560px;
}

.lp-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #efa676;
  opacity: 0.9;
  transform: translate(-50%, -50%);
}

.lp-phone {
  position: relative;
  width: 308px;
  max-width: none;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.35));
}

.lp-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color: #1f2b25;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.lp-chip-a {
  left: -48px;
  top: 120px;
}

.lp-chip-b {
  right: -40px;
  bottom: 96px;
}

.lp-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #efa676;
}

.lp-sec {
  padding-top: 104px;
}

.lp-h2 {
  max-width: 720px;
  color: #1f4f3f;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.lp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.lp-card {
  padding: 26px 24px;
  border: 1px solid #e4ded0;
  border-radius: 22px;
  background: #ffffff;
}

.lp-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.tint-forest {
  background: #e4efe5;
}

.tint-apricot {
  background: #fce6d6;
}

.lp-ct {
  margin: 18px 0 8px;
  color: #1f2b25;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.lp-cb {
  color: #4a4339;
  font-size: 15px;
  line-height: 24px;
}

.lp-wks {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}

.lp-wk {
  flex: 1;
  padding: 6px 0;
  border-radius: 10px;
  background: #e4efe5;
  color: #1f4f3f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.lp-wk.on {
  background: #fce6d6;
  color: #b8683a;
  box-shadow: inset 0 -3px 0 #efa676;
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.lp-step {
  padding-top: 4px;
}

.lp-step .lp-ct {
  margin-top: 16px;
}

.lp-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1f4f3f;
  color: #f5f1e8;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
}

.lp-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 80px;
  padding: 24px 28px;
  border-radius: 22px;
  background: #fce6d6;
}

.lp-note img {
  flex: none;
}

.lp-note-t {
  margin: 1px 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.lp-cta {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding: 44px 56px;
  border-radius: 32px;
  background: #1f4f3f;
}

.lp-mark {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 24%;
}

.lp-cta-c {
  flex: 1;
}

.lp-cta-t {
  color: #f5f1e8;
  font-size: 34px;
}

.lp-cta-b {
  margin-top: 10px;
  color: rgba(245, 241, 232, 0.86);
  font-size: 16px;
  line-height: 24px;
}

.lp-mail {
  color: #efa676;
  font-weight: 700;
}

.lp-cta .lp-store {
  margin-top: 0;
}

.landing .site-foot {
  gap: 14px;
  margin-top: 48px;
  padding: 28px 0 32px;
}

/* ---- landing page, tablet ---------------------------------------------- */

@media (max-width: 1023px) {
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 40px;
  }

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

  .lp-h1 {
    font-size: 48px;
  }
}

/* ---- landing page, phone ----------------------------------------------- */

@media (max-width: 599px) {
  .lp-wrap {
    padding: 0 20px 8px;
  }

  .lp-head {
    height: 72px;
  }

  .lp-logo {
    width: 136px;
  }

  .lp-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    margin: 0 -20px;
    padding: 40px 20px 0;
    border-radius: 0;
  }

  .lp-h1 {
    margin: 14px 0 18px;
    font-size: 38px;
    line-height: 1.08;
  }

  .lp-lead {
    font-size: 16px;
  }

  .lp-stage {
    align-items: flex-start;
    height: 440px;
    margin: 0 -20px;
    overflow: hidden;
  }

  .lp-sun {
    top: 190px;
    width: 320px;
    height: 320px;
  }

  .lp-phone {
    width: 243px;
    margin-top: 12px;
  }

  .lp-chip {
    padding: 8px 12px;
    font-size: 13px;
  }

  .lp-chip-a {
    left: 12px;
    top: 132px;
  }

  .lp-chip-b {
    right: 12px;
    bottom: auto;
    top: 356px;
  }

  .lp-sec {
    padding-top: 56px;
  }

  .lp-h2 {
    font-size: 28px;
  }

  .lp-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .lp-card {
    padding: 22px 20px;
  }

  .lp-steps {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 24px;
  }

  .lp-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
  }

  .lp-step .lp-num {
    grid-row: span 2;
  }

  .lp-step .lp-ct {
    margin: 2px 0 6px;
  }

  .lp-note {
    margin-top: 56px;
    padding: 20px;
  }

  .lp-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 28px;
    padding: 32px 24px;
    border-radius: 28px;
  }

  .lp-mark {
    width: 72px;
    height: 72px;
  }

  .lp-cta-t {
    font-size: 26px;
  }
}
