:root{
  /* App-ish palette */
  --bg-top: #0b1326;
  --bg-mid: #121c33;
  --bg-bot: #1d2a46;

  --fg: #f2e5d7;
  --muted: rgba(242,229,215,0.70);
  --muted-2: rgba(242,229,215,0.55);

  --card: rgba(21,32,56,0.92);
  --border: rgba(255,255,255,0.10);
  --shadow: 0 0 0 1px var(--border);
  --shadow-soft: 0 18px 60px rgba(0,0,0,0.35);

  --radius-xl: 56px;
  --radius-lg: 46px;
  --radius-md: 18px;

  --link-underline: rgba(242,229,215,0.22);

  --accent: #f0b54a; /* “best value” / gold-ish */
  --primary: rgba(116,155,191,0.85); /* button-ish blue */
  --primary-hover: rgba(116,155,191,0.95);
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  color: var(--fg);
  font: 20px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bot) 100%);
}

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

a{
  color: inherit;
  text-decoration:none;
  border-bottom: 2px solid var(--link-underline);
}
a:hover{ border-bottom-color: var(--fg); }

/* Header */
header{
  max-width: 620px;
  width: 100%;
  margin: 60px auto;
  padding: 0 16px;
  text-align: center;
}

header .logo{
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
  background: rgba(21,32,56,0.75);
  display: grid;
  place-items: center;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  overflow: hidden; /* clip icon to rounded corners */
}

header .logo:hover{
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}

header .logo img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* icon fills tile */
  object-position: center;
}

header h1{
  font-weight: 900;
  font-size: 34px;
  color: var(--fg);
  margin: 26px auto 14px;
  letter-spacing: -0.02em;
}

header h2{
  font-weight: 500;
  font-size: 20px;
  color: var(--muted);
  margin: 0 auto 26px;
}

/* “App Store” button */
.apple-buttons{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  justify-content:center;
  align-items:center;
}

.store-btn{
  display:inline-flex;
  align-items:center;
  gap: 12px;
  height: 62px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--primary);
  color: rgba(255,255,255,0.92);
  border-bottom: none;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.store-btn:hover{
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.store-badge{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,0.85);
  display:inline-block;
}

/* Cards */
.card{
  max-width: 976px;
  width: calc(100% - 32px);
  margin: 0 auto 40px;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow), var(--shadow-soft);
  overflow: visible;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.row{
  display:flex;
  gap: 80px;
  padding: 52px 80px 0;
  align-items: center;
}

/* Desktop alternating layout */
.row .shot{ order: 1; }
.row .paragraph{ order: 2; }

.row.reverse{ padding: 52px 80px 0; }
.row.reverse .paragraph{ order: 1; }
.row.reverse .shot{ order: 2; }

.paragraph{ flex: 1; }

.paragraph p{
  font-size: 22px;
  color: var(--muted-2);
}

.paragraph strong{
  color: var(--fg);
  font-weight: 900;
}

/* iPhone screenshots: keep full device visible */
.shot{
  flex: 0 0 318px;
  align-self: flex-end;
  filter: drop-shadow(0 18px 60px rgba(0,0,0,.45));
  margin-bottom: 0;
}

/* IMPORTANT: keep frame clipping ON so it doesn't vanish / overflow weirdly on mobile,
   but still show full phone by using object-fit: contain */
.shot .frame{
  position: relative;
  width: 100%;
  padding-bottom: 122.012578%;
  border-radius: 26px 26px 0 0;
  overflow: hidden;        /* changed from visible */
  border: none;
  background: transparent;
}

.shot .frame img,
.shot .frame svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

/* Wide card */
.wide{
  padding: 52px 60px 0;
}

.wide p{
  margin-bottom: 20px;
  color: var(--muted);
}

.wide .apple-buttons{
  margin-bottom: 40px;
}

.wide .wide-shot{
  width: 100%;
  filter: drop-shadow(0 18px 60px rgba(0,0,0,.45));
}

/* iPad: always show full screenshot, no rounding, no crop */
.wide .wide-shot .frame{
  position: relative;
  padding-bottom: 42.4757%;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
}

.wide .wide-shot .frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* FAQ */
.faq{
  max-width: 743px;
  width: calc(100% - 40px);
  margin: 60px auto 0;
}

.faq h2{
  font-weight: 900;
  font-size: 24px;
  margin: 0 0 18px;
  color: var(--fg);
}

.faq .item{ margin-bottom: 34px; }

.faq .item .q{
  font-weight: 900;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--fg);
}

.faq .item p{
  margin: 0;
  color: var(--muted);
}

/* Footer */
footer{
  max-width: 743px;
  width: calc(100% - 40px);
  margin: 70px auto 40px;
  display:flex;
  flex-wrap:wrap;
  gap: 20px;
  font-weight: 600;
  font-size: 17px;
  color: var(--muted);
}

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

/* Responsive */
@media (max-width: 760px){
  header{ margin: 32px auto 50px; }
  header h1{ font-size: 24px; }
  header h2{ font-size: 18px; }

  .card{ border-radius: var(--radius-lg); }

  .row, .row.reverse, .wide{
    flex-direction: column;
    gap: 32px;
    padding: 32px 32px 0;
  }

  /* Always show text above image on mobile */
  .row > .paragraph{ order: 1 !important; }
  .row > .shot{ order: 2 !important; }
  .row.reverse > .paragraph{ order: 1 !important; }
  .row.reverse > .shot{ order: 2 !important; }

  .shot{
    align-self: center;
    max-width: 280px;
    width: 100%;
  }

  .paragraph p{ font-size: 19px; }

  /* iPhone: keep same contain behavior, just a bit taller so it doesn't feel squished */
  .shot .frame{
    padding-bottom: 130%;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
  }

  /* iPad: DO NOT override to rounded/hidden/cover (that was the bug) */
  .wide .wide-shot .frame{
    padding-bottom: 62%;
    border-radius: 0;
    overflow: visible;
  }

  .wide .wide-shot .frame img{
    object-fit: contain;
  }
}
