/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }

body {
  background-color: #FAF7F2;
  color: #1A1714;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

/* ── Phone frame ── */
.phone {
  position: relative;
  width: 248px;
  height: 506px;
  background: linear-gradient(150deg, #323234 0%, #1C1C1E 100%);
  border-radius: 52px;
  padding: 10px;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.13),
    0 0 0 1.5px rgba(0,0,0,.55),
    0 40px 100px rgba(0,0,0,.20),
    0 8px 24px rgba(0,0,0,.12);
}
/* volume buttons */
.phone::before {
  content: '';
  position: absolute;
  left: -3.5px; top: 114px;
  width: 3.5px; height: 32px;
  background: #2A2A2C;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 46px 0 #2A2A2C, 0 84px 0 #2A2A2C;
}
/* power button */
.phone::after {
  content: '';
  position: absolute;
  right: -3.5px; top: 152px;
  width: 3.5px; height: 68px;
  background: #2A2A2C;
  border-radius: 0 2px 2px 0;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #FAF7F2;
  border-radius: 43px;
  overflow: hidden;
  position: relative;
}
/* Dynamic Island */
.di {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 28px;
  background: #0A0A0A;
  border-radius: 20px;
  z-index: 100;
}
/* status bar */
.sbar {
  height: 48px;
  display: flex; align-items: flex-end;
  padding: 0 20px 8px;
  position: relative; z-index: 10;
}
.sbar-t  { font-size: 12px; font-weight: 700; color: #1A1714; letter-spacing: -.3px; }
.sbar-r  { margin-left: auto; display: flex; gap: 5px; align-items: center; }

/* tab bar */
.tbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(250,247,242,.93);
  backdrop-filter: blur(14px);
  border-top: .5px solid rgba(0,0,0,.07);
  display: flex; align-items: flex-start;
  padding-top: 9px; justify-content: space-around;
  z-index: 20;
}
.ti     { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8px; font-weight: 500; color: #A8A09A; }
.ti.on  { color: #C85A1C; }
.tico   { font-size: 18px; line-height: 1; height: 22px; display: flex; align-items: center; }
.hpill  {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 112px; height: 4px; background: rgba(0,0,0,.2); border-radius: 3px;
}
/* content body between status + tab */
.sbody { position: absolute; top: 48px; left: 0; right: 0; bottom: 72px; overflow: hidden; }

/* ── Shared in-phone elements ── */
.irow     { display: flex; align-items: center; gap: 8px; background: white; border-radius: 10px; padding: 6px 10px; border: .5px solid rgba(0,0,0,.06); margin-bottom: 5px; }
.irow-ok  { background: #F0FAF4; border-color: rgba(45,138,78,.15); }
.irow-lo  { background: #FEF8F0; border-color: rgba(224,122,32,.20); }
.irow-no  { background: #FEF2F2; border-color: rgba(220,38,38,.15); }
.dot-ok   { width: 14px; height: 14px; border-radius: 50%; background: #EAF7EF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dot-lo   { width: 14px; height: 14px; border-radius: 50%; background: #FEF0DC; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dot-no   { width: 14px; height: 14px; border-radius: 50%; background: #FEE2E2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stkbar   { height: 3px; background: #E8E0D4; border-radius: 2px; overflow: hidden; }
.stkfill  { height: 100%; border-radius: 2px; }

/* ── Gradient heading ── */
.grad {
  background: linear-gradient(130deg, #C85A1C 0%, #E88A45 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── App Store badge ── */
.app-store-badge {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity .2s, transform .15s;
}
.app-store-badge:hover { opacity: .82; transform: translateY(-1px); }

.badge-link {
  display: inline-block;
  text-decoration: none;
}

/* ── Pricing cards ── */
.pcard     { background: white; border-radius: 24px; padding: 32px 28px; border: 1.5px solid #E0D8CE; }
.pcard.pro { background: #FEF0E6; border-color: #C85A1C; }
.pcheck    { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; color: #1A1714; }
.pcheck svg { flex-shrink: 0; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.show { opacity: 1; transform: none; }
.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }
.d3 { transition-delay: .30s; }
.d4 { transition-delay: .40s; }

/* ── Language switcher ── */
.lang-switcher { position: relative; }

.lang-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: #7A7068;
  background: none; border: none; cursor: pointer;
  padding: 5px 8px; border-radius: 8px;
  transition: color .18s;
  font-family: inherit;
}
.lang-btn:hover { color: #1A1714; }

.lang-current {
  font-size: 12px; font-weight: 700;
  letter-spacing: .4px; color: inherit;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: white;
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06);
  min-width: 158px;
  z-index: 300;
}
.lang-dropdown.open { display: block; }

.lang-option {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 8px 10px;
  border: none; background: none; cursor: pointer;
  font-size: 13px; font-weight: 500; color: #1A1714;
  border-radius: 9px;
  transition: background .13s;
  font-family: inherit;
  text-align: left;
}
.lang-option:hover       { background: #FAF7F2; }
.lang-option.active      { font-weight: 700; color: #C85A1C; }
.lang-option .lang-flag  { font-size: 16px; line-height: 1; }
.lang-option .lang-name  { flex: 1; }
.lang-option .lang-check { font-size: 11px; color: #C85A1C; opacity: 0; }
.lang-option.active .lang-check { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .phone              { width: 210px; height: 428px; border-radius: 44px; }
  .phone-screen       { border-radius: 35px; }
  .di                 { width: 78px; height: 24px; top: 10px; }
  .sbar               { height: 40px; padding: 0 16px 6px; }
  .sbar-t             { font-size: 10px; }
  .tbar               { height: 60px; }
  .sbody              { top: 40px; bottom: 60px; }
  .ti                 { font-size: 7px; }
  .tico               { font-size: 15px; height: 18px; }
  .hpill              { width: 90px; height: 3px; }
}
